Commit c4930b1a0ee5a35c49de10e0289f9c8253e78848
Committed by
York Sun
1 parent
6df82e3c0f
Exists in
v2017.01-smarct4x
and in
48 other branches
B4860qds: Set SerDes2 refclk2 at to 156.25MHz for XFI to work
Change setting of SerDes2 refclk2 to have the default value as it is coming on board that is 156.25MHz, for XFI to work. Also change PLL_NUM variable to the one defined in config_mpc85xx.h for B4860 and B4420. Signed-off-by: Shaveta Leekha <shaveta@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff
board/freescale/b4860qds/b4860qds.c
... | ... | @@ -29,7 +29,6 @@ |
29 | 29 | |
30 | 30 | #define CLK_MUX_SEL_MASK 0x4 |
31 | 31 | #define ETH_PHY_CLK_OUT 0x4 |
32 | -#define PLL_NUM 2 | |
33 | 32 | |
34 | 33 | DECLARE_GLOBAL_DATA_PTR; |
35 | 34 | |
... | ... | @@ -386,7 +385,7 @@ |
386 | 385 | /* Steps For SerDes PLLs reset and reconfiguration after |
387 | 386 | * changing SerDes's refclks |
388 | 387 | */ |
389 | - for (i = 0; i < PLL_NUM; i++) { | |
388 | + for (i = 0; i < CONFIG_SYS_FSL_SRDS_NUM_PLLS; i++) { | |
390 | 389 | debug("For PLL%d reset and reconfiguration after" |
391 | 390 | " changing refclks\n", i+1); |
392 | 391 | clrbits_be32(&srds_regs->bank[i].rstctl, |
... | ... | @@ -453,7 +452,7 @@ |
453 | 452 | if (!ret) { |
454 | 453 | ret = set_serdes_refclk(IDT_SERDES2_ADDRESS, 2, |
455 | 454 | SERDES_REFCLK_100, |
456 | - SERDES_REFCLK_100, 0); | |
455 | + SERDES_REFCLK_156_25, 0); | |
457 | 456 | if (ret) { |
458 | 457 | printf("IDT8T49N222A configuration failed.\n"); |
459 | 458 | goto out; |
... | ... | @@ -467,7 +466,7 @@ |
467 | 466 | /* Steps For SerDes PLLs reset and reconfiguration after |
468 | 467 | * changing SerDes's refclks |
469 | 468 | */ |
470 | - for (i = 0; i < PLL_NUM; i++) { | |
469 | + for (i = 0; i < CONFIG_SYS_FSL_SRDS_NUM_PLLS; i++) { | |
471 | 470 | clrbits_be32(&srds2_regs->bank[i].rstctl, |
472 | 471 | SRDS_RSTCTL_SDRST_B); |
473 | 472 | udelay(10); |