[U-Boot] [PATCH RFC] arm: mx6: Add CCGR0 configuration to default DCD (spl_sd.cfg)

Fabio Estevam festevam at gmail.com
Mon Dec 8 16:36:30 CET 2014


On Mon, Dec 8, 2014 at 1:19 PM, Stefan Roese <sr at denx.de> wrote:
> 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...

Sure, I will test it and will let you know how it goes.

In the meantime, I am wondering if the change below would allow your
board to boot:

--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -105,6 +105,10 @@ void init_aips(void)
 #ifdef CONFIG_MX6SX
        struct aipstz_regs *aips3;
 #endif
+       struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
+
+       /* Turn on AIPS1 and AIPS2 clocks */
+       setbits_le32(&ccm->CCGR0, 0xf);

        aips1 = (struct aipstz_regs *)AIPS1_BASE_ADDR;
        aips2 = (struct aipstz_regs *)AIPS2_BASE_ADDR;


Regards,

Fabio Estevam


More information about the U-Boot mailing list