ARM: i.MX: external NAND boot: Leave icache disabled
It seems running from the NFC SRAM doesn't work with the instruction cache enabled, it leads to corruptions on the i.MX27. We stumbled upon this earlier and the solution at that time was to disable the instruction cache in the NAND boot code. It is, however, more reliable to just not enable the instruction cache in the first place. This is not particularly nice as we have to ifdef this in generic code, duplicate arm_cpu_lowlevel_init(), or call arm_cpu_lowlevel_init() later when we are out of NFC SRAM. From the different bad solutions I chose to ifdef the instruction cache away. It will be enabled later in the common cache functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> |
---|
|
arch/arm/cpu/lowlevel.S |
---|
arch/arm/mach-imx/external-nand-boot.c |
---|