Skip to contentSkip to conversation

km/spi: activate driver model for SPI flash on KM Kirkwood boards

PATCH New Pascal Linder 1 participant 1 message Jun 18, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 5/6 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.

---
 board/keymile/km_arm/Kconfig | 3 +++
 configs/portl2_defconfig     | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
board/keymile/km_arm/Kconfig +3 -0
index 2542f1ea8f..19c1db3bc2 100644
@@ -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
configs/portl2_defconfig +2 -1
index 7e0abaa837..5b7a9d3fe3 100644
@@ -27,6 +27,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
@@ -41,4 +43,3 @@ CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_KIRKWOOD_SPI=y
 CONFIG_BCH=y
-CONFIG_OF_LIBFDT=y
Signature · 1 line
2.21.0