
"Hans" == Hans de Goede hdegoede@redhat.com writes:
From: Jelle van der Waa jelle@vdwaa.nl SY8106A is a PMIC which is used on the Allwinner H3 Orange Pi Pc board. The VOUT1_SEL register is implemented to set thea default V-CPU voltage to 1200 mV.
Signed-off-by: Jelle van der Waa jelle@vdwaa.nl [hdegoede@redhat.com: Polish Kconfig parts a bit] Signed-off-by: Hans de Goede hdegoede@redhat.com
board/sunxi/Kconfig | 6 +++++- board/sunxi/board.c | 5 +++++ configs/orangepi_pc_defconfig | 1 - drivers/power/Kconfig | 18 +++++++++++++++++- drivers/power/Makefile | 1 + drivers/power/sy8106a.c | 23 +++++++++++++++++++++++ include/configs/sunxi-common.h | 6 ++++-- include/sy8106a.h | 5 +++++ 8 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 drivers/power/sy8106a.c create mode 100644 include/sy8106a.h
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index a334aa3..449d9dd 100644 --- a/board/sunxi/Kconfig +++ b/board/sunxi/Kconfig @@ -372,11 +372,15 @@ config I2C3_ENABLE See I2C0_ENABLE help text. endif
+if SUNXI_GEN_SUN6I config R_I2C_ENABLE bool "Enable the PRCM I2C/TWI controller"
- default n
- # This is used for the pmic on H3
- default y if MACH_SUN8I_H3
- default n if !MACH_SUN8I_H3
Default is 'n', so the last line can be removed.