[PATCH linux] arm/mach-aspeed: Perform SCU setup for i2c busses 4-8

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri Nov 20 15:30:22 AEDT 2015


From: Jeremy Kerr <jk at ozlabs.org>

Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
 arch/arm/mach-aspeed/aspeed.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
index 7a1f614..46bc7f5 100644
--- a/arch/arm/mach-aspeed/aspeed.c
+++ b/arch/arm/mach-aspeed/aspeed.c
@@ -183,6 +183,14 @@ static void __init aspeed_init_early(void)
 	udbg_uart_putc('O');
 	udbg_uart_putc('\n');
 
+	/*
+	 * temporary: enable i2c usage of the shared GPIO/I2C pins for
+	 * i2c busses 4 - 8
+	 */
+	reg = readl(AST_IO(AST_BASE_SCU | 0x90));
+	reg |= 0x3E0000;
+	writel(reg, AST_IO(AST_BASE_SCU | 0x90));
+
 	aspeed_dump_scu();
 }
 
-- 
2.6.3




More information about the openbmc mailing list