summaryrefslogtreecommitdiff
path: root/board/samsung/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-11-23 06:34:40 -0700
committerHeiko Schocher <hs@denx.de>2016-12-05 13:27:15 +0100
commitfc47cf9d054b79299274f4386cfb867a80af8c7b (patch)
treec9d4ed67714637899c4f8c18253f6f90133bc939 /board/samsung/common
parent194eded14ccb40af18e1a9fb8ab85903ee0803ef (diff)
downloadu-boot-imx-fc47cf9d054b79299274f4386cfb867a80af8c7b.zip
u-boot-imx-fc47cf9d054b79299274f4386cfb867a80af8c7b.tar.gz
u-boot-imx-fc47cf9d054b79299274f4386cfb867a80af8c7b.tar.bz2
arm: exynos: i2c: Convert exynos boards to use DM_I2C
Three boards are still not converting to use DM_I2C. They are also using the old PMIC framework. Rather than removing them, add #ifdefs to allow them to continue to build. This will give the maintainers a little more time to decide whether to convert them or not. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/samsung/common')
-rw-r--r--board/samsung/common/misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index 77d0a4e..203136f 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -101,6 +101,7 @@ void set_board_info(void)
#ifdef CONFIG_LCD_MENU
static int power_key_pressed(u32 reg)
{
+#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */
struct pmic *pmic;
u32 status;
u32 mask;
@@ -123,6 +124,9 @@ static int power_key_pressed(u32 reg)
return 0;
return !!(status & mask);
+#else
+ return 0;
+#endif
}
static int key_pressed(int key)