xref: /rk3399_ARM-atf/plat/allwinner/sun50i_h6/include/sunxi_mmap.h (revision e603983d3703a0c9cee3f43baf550ca397e20b34)
1bed42a5dSAndre Przywara /*
2ae3fe6e3SSamuel Holland  * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
3bed42a5dSAndre Przywara  *
4bed42a5dSAndre Przywara  * SPDX-License-Identifier: BSD-3-Clause
5bed42a5dSAndre Przywara  */
6bed42a5dSAndre Przywara 
7c3cf06f1SAntonio Nino Diaz #ifndef SUNXI_MMAP_H
8c3cf06f1SAntonio Nino Diaz #define SUNXI_MMAP_H
9bed42a5dSAndre Przywara 
10bed42a5dSAndre Przywara /* Memory regions */
11bed42a5dSAndre Przywara #define SUNXI_ROM_BASE			0x00000000
12bed42a5dSAndre Przywara #define SUNXI_ROM_SIZE			0x00010000
13bed42a5dSAndre Przywara #define SUNXI_SRAM_BASE			0x00020000
14f78f00aaSAndre Przywara #define SUNXI_SRAM_SIZE			0x000f8000
15bed42a5dSAndre Przywara #define SUNXI_SRAM_A1_BASE		0x00020000
16bed42a5dSAndre Przywara #define SUNXI_SRAM_A1_SIZE		0x00008000
17ae3fe6e3SSamuel Holland #define SUNXI_SRAM_A2_BASE		0x00100000
18f04dfbb2SIcenowy Zheng #define SUNXI_SRAM_A2_BL31_OFFSET	0x00004000
19ae3fe6e3SSamuel Holland #define SUNXI_SRAM_A2_SIZE		0x00018000
20bed42a5dSAndre Przywara #define SUNXI_SRAM_C_BASE		0x00028000
21bed42a5dSAndre Przywara #define SUNXI_SRAM_C_SIZE		0x0001e000
22bed42a5dSAndre Przywara #define SUNXI_DEV_BASE			0x01000000
23bed42a5dSAndre Przywara #define SUNXI_DEV_SIZE			0x09000000
24bed42a5dSAndre Przywara #define SUNXI_DRAM_BASE			0x40000000
25c3af6b00SAndre Przywara #define SUNXI_DRAM_VIRT_BASE		0x0a000000
26bed42a5dSAndre Przywara 
27bed42a5dSAndre Przywara /* Memory-mapped devices */
28bed42a5dSAndre Przywara #define SUNXI_SYSCON_BASE		0x03000000
29bed42a5dSAndre Przywara #define SUNXI_CPUCFG_BASE		0x09010000
30bed42a5dSAndre Przywara #define SUNXI_SID_BASE			0x03006000
31bed42a5dSAndre Przywara #define SUNXI_DMA_BASE			0x03002000
32bed42a5dSAndre Przywara #define SUNXI_MSGBOX_BASE		0x03003000
335fac0d32SAndre Przywara #define SUNXI_CCU_BASE			0x03001000
345fac0d32SAndre Przywara #define SUNXI_PIO_BASE			0x0300b000
3549d98cd5SSamuel Holland #define SUNXI_SPC_BASE			0x03008000
36bed42a5dSAndre Przywara #define SUNXI_TIMER_BASE		0x03009000
37bed42a5dSAndre Przywara #define SUNXI_WDOG_BASE			0x030090a0
38bed42a5dSAndre Przywara #define SUNXI_THS_BASE			0x05070400
39bed42a5dSAndre Przywara #define SUNXI_UART0_BASE		0x05000000
40bed42a5dSAndre Przywara #define SUNXI_UART1_BASE		0x05000400
41bed42a5dSAndre Przywara #define SUNXI_UART2_BASE		0x05000800
42bed42a5dSAndre Przywara #define SUNXI_UART3_BASE		0x05000c00
43bed42a5dSAndre Przywara #define SUNXI_I2C0_BASE			0x05002000
44bed42a5dSAndre Przywara #define SUNXI_I2C1_BASE			0x05002400
45bed42a5dSAndre Przywara #define SUNXI_I2C2_BASE			0x05002800
46bed42a5dSAndre Przywara #define SUNXI_I2C3_BASE			0x05002c00
47bed42a5dSAndre Przywara #define SUNXI_SPI0_BASE			0x05010000
48bed42a5dSAndre Przywara #define SUNXI_SPI1_BASE			0x05011000
49bed42a5dSAndre Przywara #define SUNXI_SCU_BASE			0x03020000
50bed42a5dSAndre Przywara #define SUNXI_GICD_BASE			0x03021000
51bed42a5dSAndre Przywara #define SUNXI_GICC_BASE			0x03022000
52bed42a5dSAndre Przywara #define SUNXI_R_TIMER_BASE		0x07020000
53bed42a5dSAndre Przywara #define SUNXI_R_INTC_BASE		0x07021000
54bed42a5dSAndre Przywara #define SUNXI_R_WDOG_BASE		0x07020400
55bed42a5dSAndre Przywara #define SUNXI_R_PRCM_BASE		0x07010000
56bed42a5dSAndre Przywara #define SUNXI_R_TWD_BASE		0x07020800
57bed42a5dSAndre Przywara #define SUNXI_R_CPUCFG_BASE		0x07000400
58bed42a5dSAndre Przywara #define SUNXI_R_I2C_BASE		0x07081400
597060e0d8SSamuel Holland #define SUNXI_R_RSB_BASE		0x07083000
60bed42a5dSAndre Przywara #define SUNXI_R_UART_BASE		0x07080000
61bed42a5dSAndre Przywara #define SUNXI_R_PIO_BASE		0x07022000
62*b15e2cdaSMikhail Kalashnikov #define SUNXI_CPUSUBSYS_BASE		0x08100000
63bed42a5dSAndre Przywara 
64c3cf06f1SAntonio Nino Diaz #endif /* SUNXI_MMAP_H */
65