mpc83xx: Fix the bug of serdes initialization
authorDave Liu <r63238@freescale.com>
Mon, 31 Mar 2008 09:05:12 +0000 (17:05 +0800)
committerKim Phillips <kim.phillips@freescale.com>
Fri, 11 Apr 2008 22:46:18 +0000 (17:46 -0500)
Currently the serdes will not be initializated due to the
partid's error.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
board/freescale/mpc837xemds/mpc837xemds.c

index f7cd5fe1764c77b228eba9aa94bd890b9982ead9..40a505b1d4cb0aeb3f08097fd943fc4b787fbb1f 100644 (file)
@@ -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);