From: Dave Liu Date: Thu, 20 Mar 2008 18:28:19 +0800 Subject: [U-Boot-Users] [PATCH v2 7/9] mpc83xx: enable serdes1 for 837x SATA Message-ID: <1206008899.3739.21.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de enable serdes1(LYNX1) for 837x SATA interface Signed-off-by: Dave Liu --- 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 #include #include +#include #if defined(CONFIG_OF_LIBFDT) #include #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