summaryrefslogtreecommitdiffstats
path: root/external/pflash
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2015-08-26 16:02:35 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-08-28 15:24:04 +1000
commit8fec6e8ea950ff32b6a9a7ccbee0084e22985b08 (patch)
treec0a0df3338d2bd95a5ec717bbfc9db35e351f15b /external/pflash
parent55c30aa53919fda1bd903630c4c92bca95cbd42d (diff)
downloadtalos-skiboot-8fec6e8ea950ff32b6a9a7ccbee0084e22985b08.tar.gz
talos-skiboot-8fec6e8ea950ff32b6a9a7ccbee0084e22985b08.zip
external/common: Add POWERPC code reenable building pflash for POWER
As per commit to create the external/common code, this commit introduces the POWER arch compatibility flash reading code. This commit actually should cause no functional change to pflash (it won't be able to access the BMC flash if it ever could), however rather than accessing the flash via the debugfs opal_lpc_{read,write} interface it will access it though the MTD interface provided by linux and importantly skiboot. Not only does using the MTD interface allows applications to treat it like flash despite the fact that they are talking through several layers of abstraction. Using passing through skiboot means that all the access to the flash from the Power8 can be protected from concurrent access. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/pflash')
-rw-r--r--external/pflash/rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/external/pflash/rules.mk b/external/pflash/rules.mk
index 8cd8c738..6671f15f 100644
--- a/external/pflash/rules.mk
+++ b/external/pflash/rules.mk
@@ -4,8 +4,13 @@ ifeq ($(ARCH),ARCH_ARM)
arch = arm
ARCH_OBJS = common/arch_flash_common.o common/arch_flash_arm.o ast-sf-ctrl.o
else
+ifeq ($(ARCH),ARCH_POWERPC)
+arch = powerpc
+ARCH_OBJS = common/arch_flash_common.o common/arch_flash_powerpc.o
+else
$(error Unsupported architecture $(ARCH))
endif
+endif
.DEFAULT_GOAL := all
OpenPOWER on IntegriCloud