]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: exynos: Split out the cros_ec drivers
authorSimon Glass <sjg@chromium.org>
Wed, 8 Oct 2014 04:01:42 +0000 (22:01 -0600)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 8 Oct 2014 08:25:47 +0000 (17:25 +0900)
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>
include/configs/exynos5-dt.h
include/configs/exynos5250-dt.h
include/configs/peach-pit.h

index 68f3a41cc1624881d492f95072229b102b56f7ec..0c400b16fa5111af6e3b11dc98d7dcfb4259d9d6 100644 (file)
@@ -69,8 +69,6 @@
 
 /* Enable keyboard */
 #define CONFIG_CROS_EC         /* CROS_EC protocol */
-#define CONFIG_CROS_EC_SPI             /* Support CROS_EC over SPI */
-#define CONFIG_CROS_EC_I2C             /* Support CROS_EC over I2C */
 #define CONFIG_CROS_EC_KEYB    /* CROS_EC keyboard input */
 #define CONFIG_CMD_CROS_EC
 #define CONFIG_KEYBOARD
index 5504515ab1fd8cbdbe0e6c3a0d87c213bf430cc7..05d33a72854bfb42bd2738477245998ed950ebad 100644 (file)
@@ -22,6 +22,8 @@
 
 #define CONFIG_SPL_MAX_FOOTPRINT       (14 * 1024)
 
+#define CONFIG_CROS_EC_I2C             /* Support CROS_EC over I2C */
+
 /* USB */
 #define CONFIG_CMD_USB
 #define CONFIG_USB_XHCI
index 34734ada21c39da8bc0e5b6177eac30ea575787c..8db889c2ce3de3bfedbcaf81b248f9e88e0c9b5a 100644 (file)
@@ -31,5 +31,6 @@
 #endif
 
 #define CONFIG_POWER_TPS65090_EC
+#define CONFIG_CROS_EC_SPI             /* Support CROS_EC over SPI */
 
 #endif /* __CONFIG_PEACH_PIT_H */