Message ID | 1347736516-10697-1-git-send-email-festevam@gmail.com |
---|---|
State | New |
Headers | show |
On Saturday 15 September 2012, Fabio Estevam wrote: > > /* set NAND page size to 2k if not configured via boot mode pins */ > - __raw_writel(__raw_readl(MXC_CCM_RCSR) | (1 << 30), MXC_CCM_RCSR); > + __raw_writel(__raw_readl(mx3_ccm_base + MXC_CCM_RCSR) | > + (1 << 30), MXC_CCM_RCSR); > > /* RTC */ Shouldn't you change both the read and the write here, rather than just the read? Arnd
diff --git a/arch/arm/mach-imx/mach-armadillo5x0.c b/arch/arm/mach-imx/mach-armadillo5x0.c index 2c6ab32..d22e8cc 100644 --- a/arch/arm/mach-imx/mach-armadillo5x0.c +++ b/arch/arm/mach-imx/mach-armadillo5x0.c @@ -526,7 +526,8 @@ static void __init armadillo5x0_init(void) imx31_add_mxc_nand(&armadillo5x0_nand_board_info); /* set NAND page size to 2k if not configured via boot mode pins */ - __raw_writel(__raw_readl(MXC_CCM_RCSR) | (1 << 30), MXC_CCM_RCSR); + __raw_writel(__raw_readl(mx3_ccm_base + MXC_CCM_RCSR) | + (1 << 30), MXC_CCM_RCSR); /* RTC */ /* Get RTC IRQ and register the chip */