summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-layerscape/include/mach/layerscape.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-03-06 14:34:52 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-13 13:58:06 +0200
commitab06d72a6ef8939831b8c0b1c412d9a11fc06889 (patch)
treeb015e4c8254ba8896be207947a55decf766daaf7 /arch/arm/mach-layerscape/include/mach/layerscape.h
parented251dc493215e1fa14e610b208059cdcb95e52e (diff)
downloadbarebox-ab06d72a6ef8939831b8c0b1c412d9a11fc06889.tar.gz
barebox-ab06d72a6ef8939831b8c0b1c412d9a11fc06889.tar.xz
ARM: Layerscape: Add PPA firmware support
The "Primary Protected Application" (PPA) is a PSCI compliant firmware distributed by NXP. It is needed to start the secondary cores on Layerscape SoCs. Without it Linux will be started in EL3 and doesn't work properly. The precompiled firmware images can be found on https://github.com/NXP/qoriq-ppa-binary and are not included in barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-layerscape/include/mach/layerscape.h')
-rw-r--r--arch/arm/mach-layerscape/include/mach/layerscape.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-layerscape/include/mach/layerscape.h b/arch/arm/mach-layerscape/include/mach/layerscape.h
index 3366e7f258..1f1da0f66e 100644
--- a/arch/arm/mach-layerscape/include/mach/layerscape.h
+++ b/arch/arm/mach-layerscape/include/mach/layerscape.h
@@ -6,4 +6,14 @@
enum bootsource ls1046_bootsource_get(void);
+#ifdef CONFIG_ARCH_LAYERSCAPE_PPA
+int ls1046a_ppa_init(resource_size_t ppa_start, resource_size_t ppa_size);
+#else
+static inline int ls1046a_ppa_init(resource_size_t ppa_start,
+ resource_size_t ppa_size)
+{
+ return -ENOSYS;
+}
+#endif
+
#endif /* __MACH_LAYERSCAPE_H */