summaryrefslogtreecommitdiffstats
path: root/include/configs/sunxi-common.h
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2016-02-23 18:47:19 +0100
committerHans de Goede <hdegoede@redhat.com>2016-02-23 20:50:07 +0100
commit0d8382ae70e7559eba873b4d8b2cf9a15aeccf20 (patch)
tree1197454051f70f8bb0de9c1b105b0f408ed43e8b /include/configs/sunxi-common.h
parent595af9db2422fa5ae734cfe615415b17a5098f34 (diff)
downloadblackbird-obmc-uboot-0d8382ae70e7559eba873b4d8b2cf9a15aeccf20.tar.gz
blackbird-obmc-uboot-0d8382ae70e7559eba873b4d8b2cf9a15aeccf20.zip
sunxi: power: add support for sy8106a driver
SY8106A is a PMIC which is used on the Allwinner H3 Orange Pi Pc and Plus board. The VOUT1_SEL register is implemented to set the default V-CPU voltage to 1200 mV. This driver is required to ensure the SY8106A V-CPU voltage is set to 1200 mV after a software reset. On cold boot the default SY8106A output voltage is selected to be 1200 mV by a pair of resistors on the Orange Pi PC and Plus. Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl> Tested-by: Siarhei Siamashka <siarhei.siamashka@gmail.com> Acked-by: Siarhei Siamashka <siarhei.siamashka@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/configs/sunxi-common.h')
-rw-r--r--include/configs/sunxi-common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index b4dfb3cc47..40850e5d99 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -206,7 +206,8 @@
#define CONFIG_SPL_STACK LOW_LEVEL_SRAM_STACK
/* I2C */
-#if defined CONFIG_AXP152_POWER || defined CONFIG_AXP209_POWER
+#if defined CONFIG_AXP152_POWER || defined CONFIG_AXP209_POWER || \
+ defined CONFIG_SY8106A_POWER
#define CONFIG_SPL_I2C_SUPPORT
#endif
@@ -240,7 +241,8 @@ extern int soft_i2c_gpio_scl;
/* PMU */
#if defined CONFIG_AXP152_POWER || defined CONFIG_AXP209_POWER || \
- defined CONFIG_AXP221_POWER || defined CONFIG_AXP818_POWER
+ defined CONFIG_AXP221_POWER || defined CONFIG_AXP818_POWER || \
+ defined CONFIG_SY8106A_POWER
#define CONFIG_SPL_POWER_SUPPORT
#endif
OpenPOWER on IntegriCloud