]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
km/spi: activate driver model for SPI flash on KM Kirkwood boards
authorPascal Linder <pascal.linder@edu.hefr.ch>
Tue, 18 Jun 2019 06:42:59 +0000 (08:42 +0200)
committerStefan Roese <sr@denx.de>
Thu, 11 Jul 2019 08:58:03 +0000 (10:58 +0200)
The corresponding configurations are selected in the common Kconfig file.
This is easier than changing every affected board default configuration
file. The default configuration for the PORTL2 board, however, still needs
some modifications to correctly use the driver model.

Signed-off-by: Pascal Linder <pascal.linder@edu.hefr.ch>
Signed-off-by: Holger Brunck <holger.brunck@ch.abb.com>
Signed-off-by: Stefan Roese <sr@denx.de>
board/keymile/km_arm/Kconfig
configs/portl2_defconfig

index 2542f1ea8fa1400b9140f8193e8d86a687f3f42f..19c1db3bc25b926649855c6fb80c70a88c44fcfe 100644 (file)
@@ -12,6 +12,9 @@ config SYS_CONFIG_NAME
 config BOARD_SPECIFIC_OPTIONS # dummy
        def_bool y
        select BOARD_LATE_INIT
+       select DM
+       select DM_SPI
+       select DM_SPI_FLASH
        imply CMD_CRAMFS
        imply CMD_DIAG
        imply FS_CRAMFS
index fa546aa994e92f47115133baded4e410ff4aecf5..918d27c331d5e76b84ef6f0625e8e2ecff91bcc0 100644 (file)
@@ -28,6 +28,8 @@ CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:-(ubi0);"
 CONFIG_CMD_UBI=y
 # CONFIG_CMD_UBIFS is not set
+CONFIG_OF_CONTROL=y
+CONFIG_DEFAULT_DEVICE_TREE="kirkwood-km_kirkwood"
 CONFIG_ENV_IS_IN_EEPROM=y
 CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_BOOTCOUNT_RAM=y
@@ -42,4 +44,3 @@ CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_KIRKWOOD_SPI=y
 CONFIG_BCH=y
-CONFIG_OF_LIBFDT=y