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/timer.h | |
parent | 193279d784e2ca2225815803b9a63f1ce3c7389d (diff) |
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/timer.h')
-rw-r--r-- | arch/arm/mach-bcm283x/include/mach/timer.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-bcm283x/include/mach/timer.h b/arch/arm/mach-bcm283x/include/mach/timer.h index 56b0c356bb..014355e759 100644 --- a/arch/arm/mach-bcm283x/include/mach/timer.h +++ b/arch/arm/mach-bcm283x/include/mach/timer.h @@ -6,11 +6,7 @@ #ifndef _BCM2835_TIMER_H #define _BCM2835_TIMER_H -#ifndef CONFIG_BCM2835 -#define BCM2835_TIMER_PHYSADDR 0x3f003000 -#else -#define BCM2835_TIMER_PHYSADDR 0x20003000 -#endif +#define BCM2835_TIMER_PHYSADDR (CONFIG_BCM283x_BASE + 0x00003000) #define BCM2835_TIMER_CS_M3 (1 << 3) #define BCM2835_TIMER_CS_M2 (1 << 2) |