21 #define PERIPHERALS_BASE 0x3F000000
24 #define SYSTEM_TIMER_REGS_BASE (PERIPHERALS_BASE + 0x3000)
27 #define INTERRUPT_REGS_BASE (PERIPHERALS_BASE + 0xB200)
30 #define MAILBOX_REGS_BASE (PERIPHERALS_BASE + 0xB880)
33 #define PM_REGS_BASE (PERIPHERALS_BASE + 0x100000)
36 #define PL011_REGS_BASE (PERIPHERALS_BASE + 0x201000)
39 #define GPIO_REGS_BASE (PERIPHERALS_BASE + 0x200000)
42 #define SDHCI_REGS_BASE (PERIPHERALS_BASE + 0x300000)
45 #define DWC_REGS_BASE (PERIPHERALS_BASE + 0x980000)
55 #define IRQ_SYSTEM_TIMER_0 0
56 #define IRQ_SYSTEM_TIMER_1 1
57 #define IRQ_SYSTEM_TIMER_2 2
58 #define IRQ_SYSTEM_TIMER_3 3
62 #define IRQ_TIMER IRQ_SYSTEM_TIMER_3
81 enum board_power_feature {
91 #define board_setpower bcm2837_setpower
101 extern void dmb(
void);
104 #define pre_peripheral_read_mb dmb
105 #define post_peripheral_read_mb dmb
108 #define pre_peripheral_write_mb dmb
109 #define post_peripheral_write_mb dmb
113 #define pre_peripheral_access_mb dmb
114 #define post_peripheral_access_mb dmb
int bcm2837_setpower(enum board_power_feature feature, bool on)
Definition: bcm2837_power.c:90
void bcm2837_power_init(void)
Definition: bcm2837_power.c:116