[U-Boot] [PATCH v4 05/15] dm: exynos: Split out the cros_ec drivers

Simon Glass sjg at chromium.org
Mon Sep 29 03:18:44 CEST 2014


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 at chromium.org>
---

Changes in v4: None
Changes in v3: None
Changes in v2:
- Add new patch to split out cros_ec drivers
- Don't enable the cros_ec on smdk5420

 include/configs/exynos5-dt.h    | 2 --
 include/configs/exynos5250-dt.h | 2 ++
 include/configs/peach-pit.h     | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/configs/exynos5-dt.h b/include/configs/exynos5-dt.h
index 68f3a41..0c400b1 100644
--- a/include/configs/exynos5-dt.h
+++ b/include/configs/exynos5-dt.h
@@ -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
diff --git a/include/configs/exynos5250-dt.h b/include/configs/exynos5250-dt.h
index 5504515..05d33a7 100644
--- a/include/configs/exynos5250-dt.h
+++ b/include/configs/exynos5250-dt.h
@@ -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
diff --git a/include/configs/peach-pit.h b/include/configs/peach-pit.h
index 34734ad..8db889c 100644
--- a/include/configs/peach-pit.h
+++ b/include/configs/peach-pit.h
@@ -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 */
-- 
2.1.0.rc2.206.gedb03e5



More information about the U-Boot mailing list