[U-Boot] [PATCH v1 7/7] board/ti/dra7xx: add support for parallel NAND

Tom Rini trini at ti.com
Wed Jul 16 22:20:58 CEST 2014


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: <http://lists.denx.de/pipermail/u-boot/attachments/20140716/ae61919e/attachment.pgp>


More information about the U-Boot mailing list