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(-)

diff --git a/board/freescale/mpc837xemds/mpc837xemds.c 
b/board/freescale/mpc837xemds/mpc837xemds.c
index e57a53f..3d32c9c 100644
--- a/board/freescale/mpc837xemds/mpc837xemds.c
+++ b/board/freescale/mpc837xemds/mpc837xemds.c
@@ -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;
 }
 
diff --git a/include/configs/MPC837XEMDS.h b/include/configs/MPC837XEMDS.h
index 5586533..2ac3d37 100644
--- a/include/configs/MPC837XEMDS.h
+++ b/include/configs/MPC837XEMDS.h
@@ -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.
  */
-- 
1.5.4.rc4




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to