[PATCH linux v4 2/4] Barreleye SCU88 Setup to do_barreleye_setup

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue Mar 22 16:30:34 AEDT 2016


From: Adi Gangidi <adi.gangidi at rackspace.com>

I moved the Barreleye SCU88 Setup to do_barreleye_setup.  This way the SCU88 value gets overwritten to 0x01C00000 only for Barreleye. For Palmetto it remains what it was previously.

SCU 90 Setup though is common for chip sets we have, so it still remains in common setup.
---
 arch/arm/mach-aspeed/aspeed.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
index 684c1b7..143a45e 100644
--- a/arch/arm/mach-aspeed/aspeed.c
+++ b/arch/arm/mach-aspeed/aspeed.c
@@ -118,7 +118,7 @@ static void __init do_common_setup(void)
 	/* SCU setup */
 	writel(0x01C000FF, AST_IO(AST_BASE_SCU | 0x88));
 	writel(0xC1C000FF, AST_IO(AST_BASE_SCU | 0x8c));
-	writel(0x01C00000, AST_IO(AST_BASE_SCU | 0x88));    
+	writel(0x01C0007F, AST_IO(AST_BASE_SCU | 0x88));    
 	writel(0x003FA008, AST_IO(AST_BASE_SCU | 0x90));
 
 	/* Setup scratch registers */
@@ -139,6 +139,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));
+	
+	/* Barreleye SCU setup for PCIe Inventory */
+	writel(0x01C00000, AST_IO(AST_BASE_SCU | 0x88));    
+
 
 	/*
 	 * Do read/modify/write on power gpio to prevent resetting power on
-- 
2.7.1




More information about the openbmc mailing list