Skip to contentSkip to conversation

mpc83xx: enable serdes1 for 837x SATA

PATCH Superseded Dave Liu 1 participant 1 message Mar 20, 2008

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH v2 7/9 mpc83xx: enable serdes1 for 837x SATA

enable serdes1(LYNX1) for 837x SATA interface

---
 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
index e57a53f..3d32c9c 100644
@@ -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
index 5586533..2ac3d37 100644
@@ -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