]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
davinci: da850-evm: enable driver model for NAND
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 29 Jul 2019 06:58:05 +0000 (08:58 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jul 2019 21:58:52 +0000 (17:58 -0400)
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
arch/arm/dts/da850-evm-u-boot.dtsi
configs/da850evm_defconfig
configs/da850evm_direct_nor_defconfig
configs/da850evm_nand_defconfig
include/configs/da850evm.h

index 1683f3472e4dfc51bd0a21240b46fe85bf791d74..d9e8b9926a6971e23b28c4330d640b0640f8f396 100644 (file)
        soc@1c00000 {
                u-boot,dm-spl;
        };
+
+       nand {
+               compatible = "ti,davinci-nand";
+       };
 };
 
 &flash {
index 99300cb29742f24c8ad3f8978d3909cf915d25ac..7de1d2ffc42ee303c1156dc5ce8bc477170475fd 100644 (file)
@@ -52,6 +52,7 @@ CONFIG_DA8XX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DAVINCI=y
 CONFIG_DM_MMC=y
+CONFIG_MTD=y
 CONFIG_MTD_DEVICE=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
index dcb4d96d0da2423d0f83819c1e28360722de5fdb..e3c2d1398683f3058bb377cd4e2ba96f55957689 100644 (file)
@@ -42,6 +42,7 @@ CONFIG_DA8XX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DAVINCI=y
 # CONFIG_MMC is not set
+CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
 CONFIG_SYS_FLASH_PROTECTION=y
index 706520578391d6fef9ef8bbfd6d842b78156a47b..96602e514adab02f78e8df29579e7dc4da7a53f4 100644 (file)
@@ -49,6 +49,7 @@ CONFIG_DM_GPIO=y
 CONFIG_DA8XX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_DM_MMC=y
+CONFIG_MTD=y
 CONFIG_NAND=y
 CONFIG_NAND_DAVINCI=y
 CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
index 2dab17afabbc367b95d74be0cf966b5967762bf4..ff536131ba53f35247cc67362be329cbf4a1acad 100644 (file)
 #define CONFIG_SPL_NAND_DRIVERS
 #define CONFIG_SPL_NAND_ECC
 #define CONFIG_SPL_NAND_LOAD
+
+#ifndef CONFIG_SPL_BUILD
+#define CONFIG_SYS_NAND_SELF_INIT
+#endif
 #endif
 
 /*