diff options
author | Simon Glass <sjg@chromium.org> | 2016-11-23 06:34:40 -0700 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2016-12-05 13:27:15 +0100 |
commit | fc47cf9d054b79299274f4386cfb867a80af8c7b (patch) | |
tree | c9d4ed67714637899c4f8c18253f6f90133bc939 /board/samsung/common/misc.c | |
parent | 194eded14ccb40af18e1a9fb8ab85903ee0803ef (diff) | |
download | u-boot-fc47cf9d054b79299274f4386cfb867a80af8c7b.tar.gz |
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/misc.c')
-rw-r--r-- | board/samsung/common/misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index 77d0a4e837..203136fb97 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) |