Commit aab7e80d5fbc3aeb5feddae88c9cbb649d23345a

Authored by Simon Glass
1 parent 34e609ca82

dm: exynos: Move driver model CONFIGs to Kconfig

Remove driver model CONFIGs from the board config headers and use Kconfig
instead.

Signed-off-by: Simon Glass <sjg@chromium.org>

Showing 9 changed files with 39 additions and 16 deletions Side-by-side Diff

arch/arm/cpu/armv7/exynos/Kconfig
... ... @@ -65,6 +65,21 @@
65 65 config SYS_SOC
66 66 default "exynos"
67 67  
  68 +config DM
  69 + default y if !SPL_BUILD
  70 +
  71 +config DM_SERIAL
  72 + default y if !SPL_BUILD
  73 +
  74 +config DM_SPI
  75 + default y if !SPL_BUILD
  76 +
  77 +config DM_SPI_FLASH
  78 + default y if !SPL_BUILD
  79 +
  80 +config DM_GPIO
  81 + default y if !SPL_BUILD
  82 +
68 83 source "board/samsung/smdkv310/Kconfig"
69 84 source "board/samsung/trats/Kconfig"
70 85 source "board/samsung/universal_c210/Kconfig"
board/samsung/goni/Kconfig
... ... @@ -12,5 +12,14 @@
12 12 config SYS_CONFIG_NAME
13 13 default "s5p_goni"
14 14  
  15 +config DM
  16 + default y if !SPL_BUILD
  17 +
  18 +config DM_GPIO
  19 + default y if !SPL_BUILD
  20 +
  21 +config DM_SERIAL
  22 + default y if !SPL_BUILD
  23 +
15 24 endif
board/samsung/smdk5420/Kconfig
... ... @@ -22,6 +22,9 @@
22 22 config SYS_CONFIG_NAME
23 23 default "peach-pi"
24 24  
  25 +config DM_CROS_EC
  26 + default y
  27 +
25 28 endif
26 29  
27 30 if TARGET_PEACH_PIT
... ... @@ -34,6 +37,9 @@
34 37  
35 38 config SYS_CONFIG_NAME
36 39 default "peach-pit"
  40 +
  41 +config DM_CROS_EC
  42 + default y
37 43  
38 44 endif
39 45  
board/samsung/smdkc100/Kconfig
... ... @@ -12,5 +12,14 @@
12 12 config SYS_CONFIG_NAME
13 13 default "smdkc100"
14 14  
  15 +config DM
  16 + default y if !SPL_BUILD
  17 +
  18 +config DM_GPIO
  19 + default y if !SPL_BUILD
  20 +
  21 +config DM_SERIAL
  22 + default y if !SPL_BUILD
  23 +
15 24 endif
include/configs/exynos-common.h
... ... @@ -17,12 +17,6 @@
17 17 #include <linux/sizes.h>
18 18  
19 19 #define CONFIG_SYS_GENERIC_BOARD
20   -#define CONFIG_DM
21   -#define CONFIG_CMD_DM
22   -#define CONFIG_DM_GPIO
23   -#define CONFIG_DM_SERIAL
24   -#define CONFIG_DM_SPI
25   -#define CONFIG_DM_SPI_FLASH
26 20  
27 21 #define CONFIG_ARCH_CPU_INIT
28 22 #define CONFIG_DISPLAY_CPUINFO
include/configs/peach-pi.h
... ... @@ -44,7 +44,6 @@
44 44  
45 45 #define CONFIG_POWER_TPS65090_EC
46 46 #define CONFIG_CROS_EC_SPI /* Support CROS_EC over SPI */
47   -#define CONFIG_DM_CROS_EC
48 47  
49 48 #define CONFIG_USB_XHCI
50 49 #define CONFIG_USB_XHCI_EXYNOS
include/configs/peach-pit.h
... ... @@ -44,7 +44,6 @@
44 44  
45 45 #define CONFIG_POWER_TPS65090_EC
46 46 #define CONFIG_CROS_EC_SPI /* Support CROS_EC over SPI */
47   -#define CONFIG_DM_CROS_EC
48 47  
49 48 #define CONFIG_USB_XHCI
50 49 #define CONFIG_USB_XHCI_EXYNOS
include/configs/s5p_goni.h
... ... @@ -290,10 +290,6 @@
290 290 #define CONFIG_OF_LIBFDT
291 291  
292 292 #define CONFIG_SYS_GENERIC_BOARD
293   -#define CONFIG_DM
294   -#define CONFIG_CMD_DM
295   -#define CONFIG_DM_GPIO
296   -#define CONFIG_DM_SERIAL
297 293  
298 294 #endif /* __CONFIG_H */
include/configs/smdkc100.h
... ... @@ -224,10 +224,6 @@
224 224 #define CONFIG_OF_LIBFDT
225 225  
226 226 #define CONFIG_SYS_GENERIC_BOARD
227   -#define CONFIG_DM
228   -#define CONFIG_CMD_DM
229   -#define CONFIG_DM_GPIO
230   -#define CONFIG_DM_SERIAL
231 227  
232 228 #endif /* __CONFIG_H */