Matthias Brugger | 2c68dee | 2019-11-19 16:01:03 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * (C) Copyright 2019 Matthias Brugger |
| 4 | */ |
| 5 | |
| 6 | #ifndef _BCM283x_BASE_H_ |
| 7 | #define _BCM283x_BASE_H_ |
| 8 | |
Dmitry Malkin | b8c537c | 2024-01-23 10:07:54 +0200 | [diff] [blame] | 9 | extern unsigned long rpi_mbox_base; |
| 10 | extern unsigned long rpi_timer_base; |
| 11 | extern unsigned long rpi_sdhci_base; |
| 12 | extern unsigned long rpi_wdog_base; |
Matthias Brugger | 2c68dee | 2019-11-19 16:01:03 +0100 | [diff] [blame] | 13 | |
Marek Szyprowski | ab9d99a | 2020-06-03 14:43:44 +0200 | [diff] [blame] | 14 | #ifdef CONFIG_ARMV7_LPAE |
| 15 | #ifdef CONFIG_TARGET_RPI_4_32B |
| 16 | #include <addr_map.h> |
| 17 | #define phys_to_virt addrmap_phys_to_virt |
| 18 | #define virt_to_phys addrmap_virt_to_phys |
| 19 | #endif |
| 20 | #endif |
| 21 | |
Matthias Brugger | 2c68dee | 2019-11-19 16:01:03 +0100 | [diff] [blame] | 22 | #endif |