mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-11 09:47:00 +02:00
MBOX and Watchdog on RPi5/bcm2712 have a different base IO offsets. Find them via devicetree blob passed by bootloader. Signed-off-by: Dmitry Malkin <dmitry@bedrocksystems.com> Reviewed-by: Matthias Brugger <mbrugger@suse.com> Tested-by: Jens Maus <mail@jens-maus.de> Tested-by: Darko Alavanja <darko.alavanja@konsulko.com> Signed-off-by: Ivan T. Ivanov <iivanov@suse.de> Signed-off-by: Matthias Brugger <mbrugger@suse.com>
23 lines
468 B
C
23 lines
468 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* (C) Copyright 2019 Matthias Brugger
|
|
*/
|
|
|
|
#ifndef _BCM283x_BASE_H_
|
|
#define _BCM283x_BASE_H_
|
|
|
|
extern unsigned long rpi_mbox_base;
|
|
extern unsigned long rpi_timer_base;
|
|
extern unsigned long rpi_sdhci_base;
|
|
extern unsigned long rpi_wdog_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
|