diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2016-01-14 14:06:26 +0100 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2016-01-21 07:30:01 +0100 |
commit | 9d0826879e13e8139a7b169c2365225e848ff57e (patch) | |
tree | b98b0a2fdac16b1c8b22f0d4b527509ed6b02d60 /board/sunxi/board.c | |
parent | 904dfbfd67fbdf4562236efb3f0769ecfe7a7e58 (diff) | |
download | u-boot-9d0826879e13e8139a7b169c2365225e848ff57e.tar.gz |
sunxi: Add support for the I2C controller which is part of the PRCM
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
[hdegoede@redhat.com: Minor cleanups]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
applied with fixing 2 checkpatch warnings:
WARNING: please, no space before tabs
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/sunxi/board.c')
-rw-r--r-- | board/sunxi/board.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 386e2e04c2..1cc39e4d18 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -422,6 +422,12 @@ void i2c_init_board(void) clock_twi_onoff(4, 1); #endif #endif + +#ifdef CONFIG_R_I2C_ENABLE + clock_twi_onoff(5, 1); + sunxi_gpio_set_cfgpin(SUNXI_GPL(0), SUN8I_H3_GPL_R_TWI); + sunxi_gpio_set_cfgpin(SUNXI_GPL(1), SUN8I_H3_GPL_R_TWI); +#endif } #ifdef CONFIG_SPL_BUILD |