From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 16 Jul 2014 16:20:58 -0400 Subject: [U-Boot] [PATCH v1 7/7] board/ti/dra7xx: add support for parallel NAND In-Reply-To: <1404500717-775-8-git-send-email-pekon@ti.com> References: <1404500717-775-1-git-send-email-pekon@ti.com> <1404500717-775-8-git-send-email-pekon@ti.com> Message-ID: <20140716202058.GR1847@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jul 05, 2014 at 12:35:17AM +0530, Pekon Gupta wrote: > This patch adds support for x16 NAND device (MT29F2G16AAD) connected to GPMC > chip-select present on DRA7xx EVM. > On this board, GPMC_WPN and NAND_BOOTn are controlled by DIP switch, > So following board settings are required for NAND device detection: > SW5.9 (GPMC_WPN) = LOW > SW5.1 (NAND_BOOTn) = HIGH First, again, I don't like moving towards NAND being the default assumed present storage and making QSPI harder to use. Second, I forgot about this earlier but for the record and per later emails, we should just use CONFIG_CMD_NAND rather than CONFIG_NAND. > index 8d0a0eb..9e6a565 100644 > --- a/include/configs/dra7xx_evm.h > +++ b/include/configs/dra7xx_evm.h > @@ -14,7 +14,7 @@ > > #define CONFIG_DRA7XX > > -#ifndef CONFIG_QSPI_BOOT > +#if !defined(CONFIG_QSPI_BOOT) && !defined(CONFIG_NAND) > /* MMC ENV related defines */ > #define CONFIG_ENV_IS_IN_MMC We want to keep the default env location to be on the eMMC. > +/* NAND: SPL related configs */ > +#if defined(CONFIG_SPL_NAND_SUPPORT) > + /* NAND: SPL falcon mode configs */ > + #ifdef CONFIG_SPL_OS_BOOT > + #define CONFIG_CMD_SPL_NAND_OFS 0x00080000 /* os-boot params*/ > + #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */ > + #define CONFIG_CMD_SPL_WRITE_SIZE 0x2000 > + #endif > +#endif No leading spaces. Thanks. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: