diff options
author | Pascal Linder <pascal.linder@edu.hefr.ch> | 2019-06-18 08:42:59 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2019-07-11 10:58:03 +0200 |
commit | c2cd4ec00c5d837bc4ce13befe43957bc3d132c7 (patch) | |
tree | 65025a50156f8ebd47970dbece6b3215ca2fc8c1 | |
parent | c85306345a82a80a59fe80f6261a9263325736ad (diff) |
km/spi: activate driver model for SPI flash on KM Kirkwood boards
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>
-rw-r--r-- | board/keymile/km_arm/Kconfig | 3 | ||||
-rw-r--r-- | configs/portl2_defconfig | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/board/keymile/km_arm/Kconfig b/board/keymile/km_arm/Kconfig index 2542f1ea8f..19c1db3bc2 100644 --- a/board/keymile/km_arm/Kconfig +++ b/board/keymile/km_arm/Kconfig @@ -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 diff --git a/configs/portl2_defconfig b/configs/portl2_defconfig index fa546aa994..918d27c331 100644 --- a/configs/portl2_defconfig +++ b/configs/portl2_defconfig @@ -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 |