All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timothy Pearson <tpearson@raptorengineering.com>
To: openbmc@lists.ozlabs.org
Subject: [PATCH 06/17] mach-aspeed: Add missing Firestone setup method and call
Date: Fri, 16 Sep 2016 15:35:22 -0500	[thread overview]
Message-ID: <1474058133-27363-7-git-send-email-tpearson@raptorengineering.com> (raw)
In-Reply-To: <1474058133-27363-1-git-send-email-tpearson@raptorengineering.com>

Signed-off-by: Timothy Pearson <tpearson@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

  parent reply	other threads:[~2016-09-16 20:35 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-16 20:35 [PATCH 00/17] Fix Firestone IPL failure Timothy Pearson
2016-09-16 20:35 ` [PATCH 01/17] phy/broadcom: Add support for the BCM54210E Timothy Pearson
2016-09-16 20:35 ` [PATCH 02/17] net/phy: Expose 100base-T capability only Timothy Pearson
2016-09-23  7:46   ` Joel Stanley
2016-09-16 20:35 ` [PATCH 03/17] Ensure that the old style MDIO interface is active before registering the MDIO bus on Faraday style MACs. Without this patch the hardware may continue to expect new style commands, yielding MDIO timeouts and general lack of communication with the MII Timothy Pearson
2016-09-19  0:51   ` Andrew Jeffery
2016-09-19 17:02     ` Timothy Pearson
2016-09-19 23:47       ` Andrew Jeffery
2016-09-19 22:49     ` Timothy Pearson
2016-09-19 23:48       ` Andrew Jeffery
2016-09-16 20:35 ` [PATCH 04/17] Allow no-hw-checksum override in devicetree outside of NCSI mode Timothy Pearson
2016-09-23  6:57   ` Joel Stanley
2016-09-23 15:01     ` Timothy Pearson
2016-09-16 20:35 ` [PATCH 05/17] arm/dts: Remove mac hardware checksum from Firestone BMC Board Timothy Pearson
2016-09-16 20:35 ` Timothy Pearson [this message]
2016-09-16 20:35 ` [PATCH 07/17] pinctrl-aspeed-g4: Add definition for GPIO pins J2 and O2 Timothy Pearson
2016-09-19  1:06   ` Andrew Jeffery
2016-10-10  6:53   ` Joel Stanley
2016-09-16 20:35 ` [PATCH 08/17] pinctrl-aspeed-g4: Add missing MDIO1 pingroup Timothy Pearson
2016-09-19  1:01   ` Andrew Jeffery
2016-09-23  7:32     ` Joel Stanley
2016-09-16 20:35 ` [PATCH 09/17] Add missing LEDs to Firestone DT Timothy Pearson
2016-09-16 20:35 ` [PATCH 10/17] Add missing console UART " Timothy Pearson
2016-09-23  7:15   ` Joel Stanley
2016-09-16 20:35 ` [PATCH 11/17] Add missing UARTs " Timothy Pearson
2016-09-23  7:15   ` Joel Stanley
2016-09-16 20:35 ` [PATCH 12/17] Fix Turismo I2C OCC mapping on Firestone Timothy Pearson
2016-09-16 20:35 ` [PATCH 13/17] Enable I2C hub and connected devices in Firestone DT Timothy Pearson
2016-09-23  7:17   ` Joel Stanley
2016-09-16 20:35 ` [PATCH 14/17] Enable RGMII pin functions " Timothy Pearson
2016-09-19  1:00   ` Andrew Jeffery
2016-10-10  6:53     ` Joel Stanley
2016-09-16 20:35 ` [PATCH 15/17] Enable vuart " Timothy Pearson
2016-09-23  7:18   ` Joel Stanley
2016-09-16 20:35 ` [PATCH 16/17] Add LED expander mapping to " Timothy Pearson
2016-09-23  7:42   ` Joel Stanley
2016-09-23 15:05     ` Timothy Pearson
2016-09-16 20:35 ` [PATCH 17/17] Enable FSI buffer on Firestone Timothy Pearson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1474058133-27363-7-git-send-email-tpearson@raptorengineering.com \
    --to=tpearson@raptorengineering.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.