diff options
author | Benjamin Herrenschmidt <bherren@au1.ibm.com> | 2017-04-07 16:39:53 +1000 |
---|---|---|
committer | Matthew A. Ploetz <maploetz@us.ibm.com> | 2017-05-01 19:23:06 -0400 |
commit | b4eb096bd19d6b4aee4aa87424818bff1d5605eb (patch) | |
tree | 1810a26913a5a0a6a6ecb0609cea9d26f902e785 /src/usr/pnor/test | |
parent | 863b78e70f9b11e9948c380e1d5cd5790d8d9962 (diff) | |
download | talos-hostboot-b4eb096bd19d6b4aee4aa87424818bff1d5605eb.tar.gz talos-hostboot-b4eb096bd19d6b4aee4aa87424818bff1d5605eb.zip |
pnor: Add AST Mailbox protocol support
This adds a new alternative PnorDD that uses the Asped AST Mbox protocol
as supported by OpenBMC.
To enable this, you need these changes to the config:
@@ -1,10 +1,12 @@
-# The Serial Flash Controller is the AST2400 BMC.
-set SFC_IS_AST2500
+# We use BMC MBOX protocol for flash accesses
+set PNORDD_IS_BMCMBOX
+unset PNORDD_IS_SFC
+unset SFC_IS_AST2500
unset SFC_IS_AST2400
unset BMC_DOES_SFC_INIT
unset SFC_IS_IBM_DPSS
-set ALLOW_MICRON_PNOR
-set ALLOW_MACRONIX_PNOR
+unset ALLOW_MICRON_PNOR
+unset ALLOW_MACRONIX_PNOR
Other systems need to set PNORDD_IS_SFC
Change-Id: I8901288c98d8d0fce8c9a0fb31267f0001b2a731
Not-yet-signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
RTC: 170096
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39387
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Dean Sanner <dsanner@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/test')
-rw-r--r-- | src/usr/pnor/test/pnorddtest.H | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/pnor/test/pnorddtest.H b/src/usr/pnor/test/pnorddtest.H index eb1fa793e..eb444e53d 100644 --- a/src/usr/pnor/test/pnorddtest.H +++ b/src/usr/pnor/test/pnorddtest.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2016 */ +/* Contributors Listed Below - COPYRIGHT 2011,2017 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ @@ -40,7 +40,11 @@ #include <devicefw/userif.H> #include <kernel/console.H> #include <sys/time.h> +#ifdef CONFIG_PNORDD_IS_SFC #include "../pnordd.H" +#else +#include "../pnor_mboxdd.H" +#endif #include "../pnorrp.H" #include <list> #include <targeting/common/attributes.H> |