[U-Boot] [PATCH 5/9 V4] convert common files to new SoC access
Daniel Gorsulowski
Daniel.Gorsulowski at esd.eu
Thu Feb 11 10:11:18 CET 2010
Daniel Gorsulowski wrote:
<snip>
> - tmp = at91_sys_read(AT91_CKGR_MCFR);
> - } while (!(tmp & AT91_PMC_MAINRDY));
> - main_clock = (tmp & AT91_PMC_MAINF) * (AT91_SLOW_CLOCK / 16);
> + tmp = readl(&pmc->mcfr);
> + } while (!(tmp & AT91_PMC_IXR_MCKRDY));
> + main_clock = (tmp & (0xffff << 0)) * (AT91_SLOW_CLOCK / 16);
> }
> #endif
> main_clk_rate_hz = main_clock;
> --
>
> I replaced AT91_PMC_MAINF with (0xffff << 0), because AT91_PMC_MAINF in not
> available anymore. Maybe you find a better solution...
>
Sorry, I committed before testing.
AT91_PMC_IXR_MCKRDY is wrong. It should be replaced by 0x00010000 or an
appropriate #define
Daniel
More information about the U-Boot
mailing list