[U-Boot-Users] [PATCH] mpc83xx: Fix the bug of serdes initialization

Dave Liu r63238 at freescale.com
Mon Mar 31 11:05:12 CEST 2008


Currently the serdes will not be initializated due to the
partid's error.

Signed-off-by: Dave Liu <daveliu at freescale.com>
---
 board/freescale/mpc837xemds/mpc837xemds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/freescale/mpc837xemds/mpc837xemds.c b/board/freescale/mpc837xemds/mpc837xemds.c
index f7cd5fe..40a505b 100644
--- a/board/freescale/mpc837xemds/mpc837xemds.c
+++ b/board/freescale/mpc837xemds/mpc837xemds.c
@@ -36,7 +36,7 @@ int board_early_init_f(void)
 	u32 spridr = in_be32(&immr->sysconf.spridr);
 
 	/* we check only part num, and don't look for CPU revisions */
-	switch (spridr) {
+	switch (PARTID_NO_E(spridr)) {
 	case SPR_8377:
 		fsl_setup_serdes(CONFIG_FSL_SERDES1, FSL_SERDES_PROTO_SATA,
 				 FSL_SERDES_CLK_100, FSL_SERDES_VDD_1V);
-- 
1.5.4.rc4







More information about the U-Boot mailing list