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/makefile | |
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/makefile')
-rw-r--r-- | src/usr/pnor/makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usr/pnor/makefile b/src/usr/pnor/makefile index b2c261a4b..d7609af13 100644 --- a/src/usr/pnor/makefile +++ b/src/usr/pnor/makefile @@ -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. # @@ -30,7 +30,9 @@ MODULE = pnor OBJS += pnor_utils.o OBJS += pnorrp.o OBJS += $(if $(CONFIG_SECUREBOOT),spnorrp.o) -OBJS += pnordd.o +OBJS += $(if $(CONFIG_PNORDD_IS_SFC),pnordd.o) +OBJS += $(if $(CONFIG_PNORDD_IS_BMCMBOX),ast_mboxdd.o) +OBJS += $(if $(CONFIG_PNORDD_IS_BMCMBOX),pnor_mboxdd.o) OBJS += pnor_common.o OBJS += pnorvalid.o OBJS += ecc.o @@ -51,3 +53,4 @@ SUBDIRS += test.d SUBDIRS += runtime.d include ${ROOTPATH}/config.mk + |