> Firstly the second flash controller needed to be setup for parts that has
> one.
Makes sense. I've had problems here with setting up the single flash
controller with the wrong wait states. Sometimes they boot, sometimes
not, depending on temperature.
> I have added the initialization for the second EFC, I have added a
> wait loop in the clock setup to check that we have a stable clock
> before we start fiddling with it and finally I turned both the
> PLL_COUNT and MOSCCOUNT configurations into CDL configurable values.
Should we also change the values of these CDL options when using a
AT91SAM7X512? You could have some requires statements based on the
value of CYGHWR_HAL_ARM_AT91SAM7.
Andrew