[U-Boot] [PATCH v1 2/3] mxc_nand: Update driver to work with i.MX31.
Scott Wood
scottwood at freescale.com
Wed Nov 11 21:56:42 CET 2009
On Wed, Nov 11, 2009 at 08:18:43PM +0100, Magnus Lilja wrote:
> +#ifdef CONFIG_MX27
> +static int is_16bit_nand(void)
> +{
> + struct system_control_regs *sc_regs =
> + (struct system_control_regs *)IMX_SYSTEM_CTL_BASE;
> +
> + if (readl(&sc_regs->fmcr) & NF_16BIT_SEL)
> + return 1;
> + else
> + return 0;
> +}
> +#elif defined(CONFIG_MX31)
> +static int is_16bit_nand(void)
> +{
> + struct clock_control_regs *sc_regs =
> + (struct clock_control_regs *)CCM_BASE;
Maybe call the clock_control regs cc_regs?
Otherwise ACK, assuming this is ARM-tree bound.
-Scott
More information about the U-Boot
mailing list