Hi Fabio,

On 08.12.2014 15:51, Fabio Estevam wrote:
Could you test this on one of your board? If your board also fails to boot
via the "bmode mmc0" command if the CCGR0 register value is missing?

I am currently out of the office without access to my mx6 board,

I see. Perhaps you could do that once you are back in the office...

but
looking in board/freescale/mx6sabresd/mx6sabresd.c we have:
writel(0x00C03F3F, &ccm->CCGR0);

,which turns on the AIPS clocks.

Can't you just turn on the AIPS clocks inside in your board file like
we do on sabresd?

I'm doing just that. Its copied directly from your code. Problem is, this seems to be too late. The BootROM doesn't seem to load SPL completely from the SD card when this CCGR0 line is missing. At least this is how I'm interpreting this hangup.

I am not sure where the AIPS clocks are being turned off in your case though.

I'm pretty sure that no "code" is turning them off. As mentioned before, its not that easy for me to debug this though.

Again, my current best guess is, that the BootROM fails to load the SPL from SD card completely. So we have no chance to configure this register via code, but need to do it via the DCD. It might be that this is related to the "bmode mmc0" command. As I'm unable to test direct SD card booting via strapping. Not sure though.

Thanks,
Stefan

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to