[PATCH linux] Add debounce for power button, pull down gpioQ7 to unlock identify LED

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri Apr 29 15:40:54 AEST 2016


From: Ken <ken.sk.lai at mail.foxconn.com>

---
 arch/arm/mach-aspeed/aspeed.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 arch/arm/mach-aspeed/aspeed.c

diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
old mode 100644
new mode 100755
index 594a781..fa5d467
--- a/arch/arm/mach-aspeed/aspeed.c
+++ b/arch/arm/mach-aspeed/aspeed.c
@@ -138,9 +138,10 @@ static void __init do_barreleye_setup(void)
 	/* GPIO setup */
 	writel(0x9E82FCE7, AST_IO(AST_BASE_GPIO | 0x00));
 	writel(0x0370E677, AST_IO(AST_BASE_GPIO | 0x04));
-
+	writel(0x00001080, AST_IO(AST_BASE_GPIO | 0x84));
 	/* SCU setup */
 	writel(0x01C00000, AST_IO(AST_BASE_SCU | 0x88));
+	writel(0x010FFFFF, AST_IO(AST_BASE_SCU | 0xA8));
 
 	/*
 	 * Do read/modify/write on power gpio to prevent resetting power on
@@ -150,7 +151,10 @@ static void __init do_barreleye_setup(void)
 	reg |= 0xCFC8F7FD;
 	writel(reg, AST_IO(AST_BASE_GPIO | 0x20));
 	writel(0xC738F20A, AST_IO(AST_BASE_GPIO | 0x24));
-	writel(0x0031FFAF, AST_IO(AST_BASE_GPIO | 0x80));
+	writel(0x0031FF2F, AST_IO(AST_BASE_GPIO | 0x80));
+	writel(0x00000001, AST_IO(AST_BASE_GPIO | 0x48));
+	writel(0x00000001, AST_IO(AST_BASE_GPIO | 0x4C));
+	writel(0x00075300, AST_IO(AST_BASE_GPIO | 0x58));
 }
 
 static void __init do_palmetto_setup(void)
-- 
2.8.1




More information about the openbmc mailing list