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
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to