[U-Boot] setup of PEX_GCLK_RATIO in E500 CPUs(P2010) missing ?

Joakim Tjernlund Joakim.Tjernlund at infinera.com
Tue Aug 29 10:47:03 UTC 2017


As we are looking at PCI stuff ATM I would like to ask
about PEX_GCLK_RATIO in E500 CPUs. I cannot find this is setup
at all for E500 but I THINK this is required.

In 83xx one do:
get_clocks();
/* Configure the PCIE controller core clock ratio */
out_le32(hose_cfg_base + PEX_GCLK_RATIO,
(((bus ? gd->arch.pciexp2_clk : gd->arch.pciexp1_clk)
/ 1000000) * 16) / 333);
udelay(1000000);

Any clues?

 Jocke


More information about the U-Boot mailing list