aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/arch/arm/mach-bcm283x/include/mach/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/arch/arm/mach-bcm283x/include/mach/base.h')
-rw-r--r--roms/u-boot/arch/arm/mach-bcm283x/include/mach/base.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/roms/u-boot/arch/arm/mach-bcm283x/include/mach/base.h b/roms/u-boot/arch/arm/mach-bcm283x/include/mach/base.h
new file mode 100644
index 000000000..4ccaf6969
--- /dev/null
+++ b/roms/u-boot/arch/arm/mach-bcm283x/include/mach/base.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * (C) Copyright 2019 Matthias Brugger
+ */
+
+#ifndef _BCM283x_BASE_H_
+#define _BCM283x_BASE_H_
+
+extern unsigned long rpi_bcm283x_base;
+
+#ifdef CONFIG_ARMV7_LPAE
+#ifdef CONFIG_TARGET_RPI_4_32B
+#include <addr_map.h>
+#define phys_to_virt addrmap_phys_to_virt
+#define virt_to_phys addrmap_virt_to_phys
+#endif
+#endif
+
+#endif