Subject: [PATCH 3/3] sunxi: Add extra I2C bus support to Ainol AW1 defconfig
From: Paul Kocialkowski <[email-masked]>
To: [email-masked], [email-masked]
Cc: Jagan Teki <[email-masked]>, Maxime Ripard <[email-masked]>, Albert Aribaud <[email-masked]>, Paul Kocialkowski <[email-masked]>
Date: Sun, 25 Mar 2018 14:36:01 +0200

I2C bus 1 is used for the accelerometer and i2c bus 2 for the
touchscreen of the device. While these are not supported in U-Boot, its
command line can be used to access these peripherals.

Signed-off-by: Paul Kocialkowski <[email-masked]>
---
 configs/Ainol_AW1_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/Ainol_AW1_defconfig b/configs/Ainol_AW1_defconfig
index 9fb464b703..87f14b0ea5 100644
--- a/configs/Ainol_AW1_defconfig
+++ b/configs/Ainol_AW1_defconfig
@@ -4,6 +4,8 @@ CONFIG_MACH_SUN7I=y
 CONFIG_DRAM_CLK=432
 CONFIG_DRAM_ZQ=123
 CONFIG_MMC0_CD_PIN="PH1"
+CONFIG_I2C1_ENABLE=y
+CONFIG_I2C2_ENABLE=y
 CONFIG_USB0_VBUS_PIN="PB9"
 CONFIG_USB0_VBUS_DET="AXP0-VBUS-DETECT"
 CONFIG_USB0_ID_DET="PH4"
-- 
2.16.2