diff options
author | Matthias Brugger <mbrugger@suse.com> | 2019-07-24 15:39:05 +0100 |
---|---|---|
committer | Matthias Brugger <mbrugger@suse.com> | 2019-09-06 18:16:59 +0200 |
commit | 1cfac5204c5f4128072878653c6e36336f5cd488 (patch) | |
tree | d44fbe28eff92be122e99599c011c7fa2e275c04 /arch/arm/mach-bcm283x/include/mach/wdog.h | |
parent | 193279d784e2ca2225815803b9a63f1ce3c7389d (diff) | |
download | u-boot-1cfac5204c5f4128072878653c6e36336f5cd488.tar.gz |
ARM: bcm283x: Add BCM283x_BASE define
Devices of bcm283x have different base address, depending if they are on
bcm2835 or bcm2836/7. Use BCM283x_BASE depending on the SoC you want to
build and only add the offset in the header files.
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: Andrei Gherzan <andrei@balena.io>
Diffstat (limited to 'arch/arm/mach-bcm283x/include/mach/wdog.h')
-rw-r--r-- | arch/arm/mach-bcm283x/include/mach/wdog.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-bcm283x/include/mach/wdog.h b/arch/arm/mach-bcm283x/include/mach/wdog.h index 99c88e5df7..8292b3cf1f 100644 --- a/arch/arm/mach-bcm283x/include/mach/wdog.h +++ b/arch/arm/mach-bcm283x/include/mach/wdog.h @@ -6,11 +6,7 @@ #ifndef _BCM2835_WDOG_H #define _BCM2835_WDOG_H -#ifndef CONFIG_BCM2835 -#define BCM2835_WDOG_PHYSADDR 0x3f100000 -#else -#define BCM2835_WDOG_PHYSADDR 0x20100000 -#endif +#define BCM2835_WDOG_PHYSADDR (CONFIG_BCM283x_BASE + 0x00100000) struct bcm2835_wdog_regs { u32 unknown0[7]; |