On Tue, Jul 22, 2014 at 04:03:23PM +0530, pekon gupta wrote:

> This patch adds support for x16 NAND device (MT29F2G16AAD) connected to GPMC
> chip-select[0] on DRA7xx EVM.
> As GPMC pins are shared by multiple devices, so in addition to this patch
> following board settings are required for NAND device detection [1]:
> 
>   SW5.9 (GPMC_WPN)   = OFF (logic-1)
>   SW5.1 (NAND_BOOTn) = ON  (logic-0) /* Active-low */
>   SW5.2 (NOR_BOOTn)  = OFF (logic-1)
>   SW5.3 (eMMC_BOOTn) = OFF (logic-1)
>   SW5.4 (QSPI_BOOTn) = OFF (logic-1)
> 
> And also set appropriate SYSBOOT configurations
>   SW2.1 (SYSBOOT[0]) = ON  (logic-1) /* selects NAND Boot */
>   SW2.2 (SYSBOOT[1]) = OFF (logic-0) /* selects NAND Boot */
>   SW2.3 (SYSBOOT[2]) = OFF (logic-0) /* selects NAND Boot */
>   SW2.4 (SYSBOOT[3]) = OFF (logic-0) /* selects NAND Boot */
>   SW2.5 (SYSBOOT[4]) = ON  (logic-1) /* selects NAND Boot */
>   SW2.6 (SYSBOOT[5]) = ON  (logic-1) /* selects NAND Boot */
>   SW2.7 (SYSBOOT[6]) = OFF (logic-0) /* reserved */
>   SW2.8 (SYSBOOT[7]) = OFF (logic-0) /* reserved */
> 
>   SW3.1 (SYSBOOT[ 8])= ON  (logic-1) /* selects SYS_CLK1 speed */
>   SW3.2 (SYSBOOT[ 9])= OFF (logic-0) /* selects SYS_CLK1 speed */
>   SW3.3 (SYSBOOT[10])= ON  (logic-1) /* wait-pin monitoring = enabled */
>   SW3.4 (SYSBOOT[11])= OFF (logic-0) /* device type: Addr/Data Muxed */
>   SW3.5 (SYSBOOT[12])= ON  (logic-1) /* device type: Addr/Data Muxed */
>   SW3.6 (SYSBOOT[13])= ON  (logic-1) /* device bus-width: 1(x16) */
>   SW3.7 (SYSBOOT[14])= OFF (logic-0) /* reserved */
>   SW3.8 (SYSBOOT[15])= ON  (logic-1) /* reserved */
> 
> Following changes are required in board.cfg to enable NAND on J6-EVM:
> 
> diff --git a/boards.cfg b/boards.cfg
> -Active  arm         armv7          omap5       ti              dra7xx        
>       dra7xx_evm                            dra7xx_evm:CONS_INDEX=1           
>                                                                               
>                   Lokesh Vutla <[email protected]>
> +Active  arm         armv7          omap5       ti              dra7xx        
>       dra7xx_evm                            dra7xx_evm:CONS_INDEX=1,NAND      
>                                                                               
>                   Lokesh Vutla <[email protected]>
> 
> [1] 
> http://processors.wiki.ti.com/index.php/Linux_Core_NAND_User%27s_Guide#Board_specific_configurations
> 
> Signed-off-by: Pekon Gupta <[email protected]>

Applied to u-boot-ti/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to