| 1 |
|
| 2 |
|
| 3 |
om> |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
#ifndef RPI_HW_H |
| 9 |
#define RPI_HW_H |
| 10 |
|
| 11 |
#include <lib/utils_def.h> |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#define RPI_IO_BASE ULL(0x1000000000) |
| 18 |
#define RPI_IO_SIZE ULL(0x1000000000) |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
#define RPI3_MBOX_BASE (RPI_IO_BASE + ULL(0x7c013880)) |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
#define RPI3_PM_BASE (RPI_IO_BASE + ULL(0x7d200000)) |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
#define RPI3_RNG_BASE (RPI_IO_BASE + ULL(0x7d208000)) |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
#define RPI4_PL011_UART_BASE (RPI_IO_BASE + ULL(0x7d001000)) |
| 39 |
#define RPI4_PL011_UART_CLOCK ULL(44000000) |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
#define RPI_HAVE_GIC |
| 45 |
#define RPI4_GIC_GICD_BASE (RPI_IO_BASE + ULL(0x7fff9000)) |
| 46 |
#define RPI4_GIC_GICC_BASE (RPI_IO_BASE + ULL(0x7fffa000)) |
| 47 |
|
| 48 |
#define RPI4_LOCAL_CONTROL_BASE_ADDRESS (RPI_IO_BASE + ULL(0x7c280000)) |
| 49 |
#define RPI4_LOCAL_CONTROL_PRESCALER (RPI_IO_BASE + ULL(0x7c280008)) |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
#define RPI_PCIE_RC_BASES RPI_IO_BASE + ULL(0x00100000), \ |
| 55 |
RPI_IO_BASE + ULL(0x00110000), \ |
| 56 |
RPI_IO_BASE + ULL(0x00120000) |
| 57 |
|
| 58 |
#endif |