aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-07-17 11:32:54 +0930
committerStewart Smith <stewart@linux.ibm.com>2018-07-17 01:13:16 -0500
commit1d8793c64b596cfdcc3cf6035a3b4cbe3c341ae9 (patch)
tree79e5822309463faa9d7763799fe2eb1875a05988 /platforms
parentebc8524a3a457f73083d984296bfd797940a711c (diff)
downloadskiboot-1d8793c64b596cfdcc3cf6035a3b4cbe3c341ae9.zip
skiboot-1d8793c64b596cfdcc3cf6035a3b4cbe3c341ae9.tar.gz
skiboot-1d8793c64b596cfdcc3cf6035a3b4cbe3c341ae9.tar.bz2
lpc: Silence LPC SYNC no-response error when necessary
Add the ability to silence particular errors from the LPC bus when they can be expected, particularly: LPC[000]: Got SYNC no-response error. Error address reg: 0xd001002f This is necessary on platform exit on some astbmc machines to avoid unnecessary noise in the msglog. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/astbmc/common.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 4b5d9a6..2c32db7 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -430,33 +430,7 @@ void astbmc_early_init(void)
static bool astbmc_isolate_via_io(void)
{
- uint32_t hw_strapping;
- uint32_t silicon_rev;
- uint8_t family;
-
- silicon_rev = ast_ahb_readl(SCU_REVISION_ID);
- family = SCU_REVISION_SOC_FAMILY(silicon_rev);
-
- if (family == SCU_REVISION_SOC_FAMILY_2400) {
- /* Strapping is read-modify-write on SCU70 */
- hw_strapping = SCU_STRAP_SIO_DECODE_DISABLE;
- hw_strapping |= ast_ahb_readl(SCU_HW_STRAPPING);
- } else if (family == SCU_REVISION_SOC_FAMILY_2500) {
- /*
- * Strapping is W1S on SCU70, W1C on SCU7C. We're setting a bit
- * so read-modify-write *should* work, but in reality it breaks
- * the AXI/AHB divider, so don't do that.
- */
- hw_strapping = SCU_STRAP_SIO_DECODE_DISABLE;
- } else {
- prerror("PLAT: Unrecognised BMC silicon revision 0x%x, isolation failed\n",
- silicon_rev);
- return false;
- }
-
- ast_ahb_writel(hw_strapping, SCU_HW_STRAPPING);
-
- return true;
+ return ast_sio_disable();
}
static bool astbmc_isolate_via_ipmi(void)