From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Wed, 11 Nov 2009 14:56:42 -0600 Subject: [U-Boot] [PATCH v1 2/3] mxc_nand: Update driver to work with i.MX31. In-Reply-To: <5e2ba58d09eb3857a20eb6c4d6761d6623aff751.1257966944.git.lilja.magnus@gmail.com> References: <5e2ba58d09eb3857a20eb6c4d6761d6623aff751.1257966944.git.lilja.magnus@gmail.com> Message-ID: <20091111205642.GA12671@loki.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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