Commit 98149d72f36f5543854568cb2d48277b0e7a88ba

Authored by Simon Glass
Committed by Minkyu Kang
1 parent 5b9c8cb6cb

dm: exynos: Split out the cros_ec drivers

With the driver model conversion we are going to be using driver model for
SPI and not for I2C. This works OK so long as a board doesn't need both
dm and non-dm versions of the cros_ec driver. Since pit uses SPI and snow
uses I2C we need to split the configs so that only one driver is compiled
for each platform.

We can fix this later when driver model supports I2C.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Showing 3 changed files with 3 additions and 2 deletions Side-by-side Diff

include/configs/exynos5-dt.h
... ... @@ -69,8 +69,6 @@
69 69  
70 70 /* Enable keyboard */
71 71 #define CONFIG_CROS_EC /* CROS_EC protocol */
72   -#define CONFIG_CROS_EC_SPI /* Support CROS_EC over SPI */
73   -#define CONFIG_CROS_EC_I2C /* Support CROS_EC over I2C */
74 72 #define CONFIG_CROS_EC_KEYB /* CROS_EC keyboard input */
75 73 #define CONFIG_CMD_CROS_EC
76 74 #define CONFIG_KEYBOARD
include/configs/exynos5250-dt.h
... ... @@ -22,6 +22,8 @@
22 22  
23 23 #define CONFIG_SPL_MAX_FOOTPRINT (14 * 1024)
24 24  
  25 +#define CONFIG_CROS_EC_I2C /* Support CROS_EC over I2C */
  26 +
25 27 /* USB */
26 28 #define CONFIG_CMD_USB
27 29 #define CONFIG_USB_XHCI
include/configs/peach-pit.h
... ... @@ -31,6 +31,7 @@
31 31 #endif
32 32  
33 33 #define CONFIG_POWER_TPS65090_EC
  34 +#define CONFIG_CROS_EC_SPI /* Support CROS_EC over SPI */
34 35  
35 36 #endif /* __CONFIG_PEACH_PIT_H */