From: Simon Glass Date: Fri, 19 May 2017 02:09:31 +0000 (-0600) Subject: samsung: Move pmic header out of config file X-Git-Tag: v2017.07-rc1~127 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f6e76202d4f11c8e38e2cec6111a8e2f99e83fcc;p=u-boot samsung: Move pmic header out of config file We should not be including a PMIC header file in the board config. Move it to a C file. Signed-off-by: Simon Glass --- diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index dc4dead20b..b18eed2fac 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -18,6 +18,19 @@ #include #include #include +/* + * Use #ifdef to work around conflicting headers while we wait for this to be + * converted to driver model. + */ +#ifdef CONFIG_DM_PMIC_MAX77686 +#include +#endif +#ifdef CONFIG_DM_PMIC_MAX8998 +#include +#endif +#ifdef CONFIG_PMIC_MAX8997 +#include +#endif #include #include diff --git a/include/configs/s5pc210_universal.h b/include/configs/s5pc210_universal.h index 6c75626e82..0265684e67 100644 --- a/include/configs/s5pc210_universal.h +++ b/include/configs/s5pc210_universal.h @@ -176,7 +176,6 @@ int universal_spi_read(void); /* Download menu - definitions for check keys */ #ifndef __ASSEMBLY__ -#include #define KEY_PWR_PMIC_NAME "MAX8998_PMIC" #define KEY_PWR_STATUS_REG MAX8998_REG_STATUS1 diff --git a/include/configs/trats.h b/include/configs/trats.h index 6806cd9565..e08bbc49ae 100644 --- a/include/configs/trats.h +++ b/include/configs/trats.h @@ -188,7 +188,6 @@ /* Download menu - definitions for check keys */ #ifndef __ASSEMBLY__ -#include #define KEY_PWR_PMIC_NAME "MAX8997_PMIC" #define KEY_PWR_STATUS_REG MAX8997_REG_STATUS1 diff --git a/include/configs/trats2.h b/include/configs/trats2.h index 6a4604ce93..927d48255c 100644 --- a/include/configs/trats2.h +++ b/include/configs/trats2.h @@ -169,7 +169,6 @@ /* Download menu - definitions for check keys */ #ifndef __ASSEMBLY__ -#include #define KEY_PWR_PMIC_NAME "MAX77686_PMIC" #define KEY_PWR_STATUS_REG MAX77686_REG_PMIC_STATUS1