From: Scott Wood Date: Wed, 30 Apr 2014 13:11:57 -0500 Subject: [U-Boot] [PATCH v4 4/5] mtd: nand: omap: add CONFIG_SYS_NAND_DEVICE_WIDTH to determine NAND device bus-width In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73EAC685E@DBDE04.ent.ti.com> References: <1398685316-8369-1-git-send-email-pekon@ti.com> <1398685316-8369-5-git-send-email-pekon@ti.com> <1398812131.24575.101.camel@snotra.buserror.net> <20980858CB6D3A4BAE95CA194937D5E73EAC685E@DBDE04.ent.ti.com> Message-ID: <1398881517.24575.195.camel@snotra.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, 2014-04-30 at 05:12 +0000, Gupta, Pekon wrote: > Hi Scott, > > >From: Scott Wood [mailto:scottwood at freescale.com] > >>On Mon, 2014-04-28 at 17:11 +0530, Pekon Gupta wrote: > >> + CONFIG_SYS_NAND_DEVICE_WIDTH > >> + Specifies bus-width of the default NAND device connected to SoC. > >> + This config is useful for driver which cannot self initialize or > >> + parse ONFI parameter (like SPL drivers), or for supporting non-ONFI > >> + compliant devices. > >> + This config can take following values: > >> + - 8: x8 NAND devices is connected > >> + - 16: x16 NAND device is connected > > > >Please list here the drivers that pay attention to this config symbol. > > > Different drivers use different approach. Precisely -- that's why I don't want it to look like this is a generic option that all drivers use. > - Some driver like omap_gpmc.c require users to hack their board file > and do NAND device-width configurations by themselves. I'd call it configuration rather than hacking. :-) > - Others drivers uses some different CONFIG_SYS_NAND_xx symbols > which is not documented in doc/README.nand > > - atmel_nand.c: uses CONFIG_SYS_NAND_DBW_16 > - fsl_ifc_nand.c: depends on configuration done in board file > - fsmc_nand.c: CONFIG_SYS_FSMC_NAND_16BIT > - mpc5121_nfc.c: depends on configurations done in board file > - mxc_nand.c: uses CONFIG_SYS_NAND_BUSWIDTH_16BIT > - ndfc.c: uses CONFIG_SYS_NAND_BUSWIDTH_16BIT > - tegra_nand.c: ?? > > I just realize OMAP driver can also _reuse_ CONFIG_SYS_NAND_BUSWIDTH_16BIT > instead of adding new config. Is this okay ? I missed it because it wasn't documented. Yes, just document it and list the drivers that use it. -Scott