From b4eb096bd19d6b4aee4aa87424818bff1d5605eb Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Fri, 7 Apr 2017 16:39:53 +1000 Subject: 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 RTC: 170096 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39387 Tested-by: Jenkins Server Reviewed-by: Dean Sanner Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell Reviewed-by: Matthew A. Ploetz --- src/usr/pnor/makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/usr/pnor/makefile') 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 + -- cgit v1.2.1