[PATCH 06/17] mach-aspeed: Add missing Firestone setup method and call
Timothy Pearson
tpearson at raptorengineering.com
Sat Sep 17 06:35:22 AEST 2016
Signed-off-by: Timothy Pearson <tpearson at raptorengineering.com>
---
arch/arm/mach-aspeed/aspeed.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
index 1b0ee11..12a63db 100644
--- a/arch/arm/mach-aspeed/aspeed.c
+++ b/arch/arm/mach-aspeed/aspeed.c
@@ -119,6 +119,18 @@ static void __init do_palmetto_setup(void)
writel(0x01C0007F, AST_IO(AST_BASE_SCU | 0x88));
}
+static void __init do_firestone_setup(void)
+{
+ do_common_setup();
+
+ /* Setup PNOR address mapping for 64M flash */
+ writel(0x30000C00, AST_IO(AST_BASE_LPC | 0x88));
+ writel(0xFC0003FF, AST_IO(AST_BASE_LPC | 0x8C));
+
+ /* Override serial destination to use the dedicated serial port */
+ writel(0x00004000, AST_IO(AST_BASE_LPC | 0x174));
+}
+
static void __init do_garrison_setup(void)
{
do_common_setup();
@@ -196,6 +208,8 @@ static void __init aspeed_init_early(void)
do_barreleye_setup();
if (of_machine_is_compatible("tyan,palmetto-bmc"))
do_palmetto_setup();
+ if (of_machine_is_compatible("ibm,firestone-bmc"))
+ do_firestone_setup();
if (of_machine_is_compatible("ibm,garrison-bmc"))
do_garrison_setup();
if (of_machine_is_compatible("aspeed,ast2500-evb"))
--
1.7.9.5
More information about the openbmc
mailing list