mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
davinci: da850-evm: enable driver model for NAND
Enable the driver-model on da850-evm. We need to add a dummy nand node to the device tree, as the real nand node is a sub-node of the aemif device. On linux the aemif driver populates all its child nodes, but we can't do it in u-boot currently. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Tested-by: Adam Ford <aford173@gmail.com> #da850-evm
This commit is contained in:
parent
f5a47554e0
commit
95cffd9906
@ -10,6 +10,10 @@
|
|||||||
soc@1c00000 {
|
soc@1c00000 {
|
||||||
u-boot,dm-spl;
|
u-boot,dm-spl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nand {
|
||||||
|
compatible = "ti,davinci-nand";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&flash {
|
&flash {
|
||||||
|
@ -52,6 +52,7 @@ CONFIG_DA8XX_GPIO=y
|
|||||||
CONFIG_DM_I2C=y
|
CONFIG_DM_I2C=y
|
||||||
CONFIG_SYS_I2C_DAVINCI=y
|
CONFIG_SYS_I2C_DAVINCI=y
|
||||||
CONFIG_DM_MMC=y
|
CONFIG_DM_MMC=y
|
||||||
|
CONFIG_MTD=y
|
||||||
CONFIG_MTD_DEVICE=y
|
CONFIG_MTD_DEVICE=y
|
||||||
CONFIG_DM_SPI_FLASH=y
|
CONFIG_DM_SPI_FLASH=y
|
||||||
CONFIG_SPI_FLASH=y
|
CONFIG_SPI_FLASH=y
|
||||||
|
@ -42,6 +42,7 @@ CONFIG_DA8XX_GPIO=y
|
|||||||
CONFIG_DM_I2C=y
|
CONFIG_DM_I2C=y
|
||||||
CONFIG_SYS_I2C_DAVINCI=y
|
CONFIG_SYS_I2C_DAVINCI=y
|
||||||
# CONFIG_MMC is not set
|
# CONFIG_MMC is not set
|
||||||
|
CONFIG_MTD=y
|
||||||
CONFIG_MTD_NOR_FLASH=y
|
CONFIG_MTD_NOR_FLASH=y
|
||||||
CONFIG_FLASH_CFI_DRIVER=y
|
CONFIG_FLASH_CFI_DRIVER=y
|
||||||
CONFIG_SYS_FLASH_PROTECTION=y
|
CONFIG_SYS_FLASH_PROTECTION=y
|
||||||
|
@ -49,6 +49,7 @@ CONFIG_DM_GPIO=y
|
|||||||
CONFIG_DA8XX_GPIO=y
|
CONFIG_DA8XX_GPIO=y
|
||||||
CONFIG_DM_I2C=y
|
CONFIG_DM_I2C=y
|
||||||
CONFIG_DM_MMC=y
|
CONFIG_DM_MMC=y
|
||||||
|
CONFIG_MTD=y
|
||||||
CONFIG_NAND=y
|
CONFIG_NAND=y
|
||||||
CONFIG_NAND_DAVINCI=y
|
CONFIG_NAND_DAVINCI=y
|
||||||
CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
|
CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
|
||||||
|
@ -174,6 +174,10 @@
|
|||||||
#define CONFIG_SPL_NAND_DRIVERS
|
#define CONFIG_SPL_NAND_DRIVERS
|
||||||
#define CONFIG_SPL_NAND_ECC
|
#define CONFIG_SPL_NAND_ECC
|
||||||
#define CONFIG_SPL_NAND_LOAD
|
#define CONFIG_SPL_NAND_LOAD
|
||||||
|
|
||||||
|
#ifndef CONFIG_SPL_BUILD
|
||||||
|
#define CONFIG_SYS_NAND_SELF_INIT
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user