mpc83xx: enable serdes1 for 837x SATA
PATCH v2 7/9 mpc83xx: enable serdes1 for 837x SATA
enable serdes1(LYNX1) for 837x SATA interface
Signed-off-by Dave Liu <[email protected]>
--- board/freescale/mpc837xemds/mpc837xemds.c | 3 +++ include/configs/MPC837XEMDS.h | 9 +++++++++ 2 files changed, 12 insertions(+), 0 deletions(-)
board/freescale/mpc837xemds/mpc837xemds.c +3 -0
@@ -13,6 +13,7 @@#include <common.h> #include <i2c.h> #include <spd_sdram.h> +#include <asm/fsl_serdes.h> #if defined(CONFIG_OF_LIBFDT )#include <libfdt.h> #endif
@@ -29,6 +30,8 @@ int board_early_init_f(void)/* Clear all of the interrupt of BCSR */ bcsr[0xe ] =0xff ; +fsl_setup_serdes (); +return 0 ; }
include/configs/MPC837XEMDS.h +9 -0
@@ -329,6 +329,15 @@#define CFG_I2C_RTC_ADDR 0x68/* at address 0x68 */ /* +* SERDES +*/ +#define CONFIG_FSL_SERDES +#define CONFIG_FSL_SERDES1 (CFG_IMMR + 0xE3000) +#define CONFIG_FSL_SERDES1_PROTO FSL_SERDES_PROTO_SATA +#define CONFIG_FSL_SERDES1_CLK FSL_SERDES_CLK_100 +#define CONFIG_FSL_SERDES1_VDD_1V 1 + +/* * General PCI * Addresses are mapped 1-1. */
Signature · 1 line
1.5.4.rc4