Add BCM2838_{PERIPHERALS,ARM_LOCAL}_BASE and support macros
This commit is contained in:
parent
586dde2b6f
commit
7fcc8da53e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bcm2835reg.h,v 1.24 2019/09/25 18:01:03 skrll Exp $ */
|
||||
/* $NetBSD: bcm2835reg.h,v 1.25 2019/09/25 18:05:39 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2012 The NetBSD Foundation, Inc.
|
||||
|
@ -44,11 +44,17 @@
|
|||
#error Must define SOC_BCM2835 or SOC_BCM2836, and not both
|
||||
#endif
|
||||
|
||||
#define BCM2838_PERIPHERALS_BASE 0xfe000000
|
||||
#define BCM2836_PERIPHERALS_BASE 0x3f000000
|
||||
#define BCM2835_PERIPHERALS_BASE 0x20000000
|
||||
#define BCM283X_PERIPHERALS_SIZE 0x01000000 /* 16MBytes */
|
||||
#define BCM283X_PERIPHERALS_BASE_BUS 0x7e000000
|
||||
|
||||
#define BCM2838_PERIPHERALS_PHYS_TO_BUS(a) \
|
||||
((a) - BCM2838_PERIPHERALS_BASE + BCM283X_PERIPHERALS_BASE_BUS)
|
||||
#define BCM2838_PERIPHERALS_BUS_TO_PHYS(a) \
|
||||
((a) - BCM283X_PERIPHERALS_BASE_BUS + BCM2838_PERIPHERALS_BASE)
|
||||
|
||||
#define BCM2836_PERIPHERALS_PHYS_TO_BUS(a) \
|
||||
((a) - BCM2836_PERIPHERALS_BASE + BCM283X_PERIPHERALS_BASE_BUS)
|
||||
#define BCM2836_PERIPHERALS_BUS_TO_PHYS(a) \
|
||||
|
@ -206,6 +212,9 @@
|
|||
|
||||
#define BCM2835_UART0_CLK 3000000
|
||||
|
||||
#define BCM2838_ARM_LOCAL_BASE 0xff800000
|
||||
#define BCM2838_ARM_LOCAL_SIZE 0x00100000 /* 1MByte */
|
||||
|
||||
#define BCM2836_ARM_LOCAL_BASE 0x40000000
|
||||
#define BCM2836_ARM_LOCAL_SIZE 0x00001000 /* 4KBytes */
|
||||
|
||||
|
|
Loading…
Reference in New Issue