1*cba69eeeSIan Campbell /* 2*cba69eeeSIan Campbell * (C) Copyright 2007-2011 3*cba69eeeSIan Campbell * Allwinner Technology Co., Ltd. <www.allwinnertech.com> 4*cba69eeeSIan Campbell * Tom Cubie <tangliang@allwinnertech.com> 5*cba69eeeSIan Campbell * 6*cba69eeeSIan Campbell * SPDX-License-Identifier: GPL-2.0+ 7*cba69eeeSIan Campbell */ 8*cba69eeeSIan Campbell 9*cba69eeeSIan Campbell #ifndef _SUNXI_CPU_H 10*cba69eeeSIan Campbell #define _SUNXI_CPU_H 11*cba69eeeSIan Campbell 12*cba69eeeSIan Campbell #define SUNXI_SRAM_A1_BASE 0x00000000 13*cba69eeeSIan Campbell #define SUNXI_SRAM_A1_SIZE (16 * 1024) /* 16 kiB */ 14*cba69eeeSIan Campbell 15*cba69eeeSIan Campbell #define SUNXI_SRAM_A2_BASE 0x00004000 /* 16 kiB */ 16*cba69eeeSIan Campbell #define SUNXI_SRAM_A3_BASE 0x00008000 /* 13 kiB */ 17*cba69eeeSIan Campbell #define SUNXI_SRAM_A4_BASE 0x0000b400 /* 3 kiB */ 18*cba69eeeSIan Campbell #define SUNXI_SRAM_D_BASE 0x00010000 /* 4 kiB */ 19*cba69eeeSIan Campbell #define SUNXI_SRAM_B_BASE 0x00020000 /* 64 kiB (secure) */ 20*cba69eeeSIan Campbell 21*cba69eeeSIan Campbell #define SUNXI_SRAMC_BASE 0x01c00000 22*cba69eeeSIan Campbell #define SUNXI_DRAMC_BASE 0x01c01000 23*cba69eeeSIan Campbell #define SUNXI_DMA_BASE 0x01c02000 24*cba69eeeSIan Campbell #define SUNXI_NFC_BASE 0x01c03000 25*cba69eeeSIan Campbell #define SUNXI_TS_BASE 0x01c04000 26*cba69eeeSIan Campbell #define SUNXI_SPI0_BASE 0x01c05000 27*cba69eeeSIan Campbell #define SUNXI_SPI1_BASE 0x01c06000 28*cba69eeeSIan Campbell #define SUNXI_MS_BASE 0x01c07000 29*cba69eeeSIan Campbell #define SUNXI_TVD_BASE 0x01c08000 30*cba69eeeSIan Campbell #define SUNXI_CSI0_BASE 0x01c09000 31*cba69eeeSIan Campbell #define SUNXI_TVE0_BASE 0x01c0a000 32*cba69eeeSIan Campbell #define SUNXI_EMAC_BASE 0x01c0b000 33*cba69eeeSIan Campbell #define SUNXI_LCD0_BASE 0x01c0C000 34*cba69eeeSIan Campbell #define SUNXI_LCD1_BASE 0x01c0d000 35*cba69eeeSIan Campbell #define SUNXI_VE_BASE 0x01c0e000 36*cba69eeeSIan Campbell #define SUNXI_MMC0_BASE 0x01c0f000 37*cba69eeeSIan Campbell #define SUNXI_MMC1_BASE 0x01c10000 38*cba69eeeSIan Campbell #define SUNXI_MMC2_BASE 0x01c11000 39*cba69eeeSIan Campbell #define SUNXI_MMC3_BASE 0x01c12000 40*cba69eeeSIan Campbell #define SUNXI_USB0_BASE 0x01c13000 41*cba69eeeSIan Campbell #define SUNXI_USB1_BASE 0x01c14000 42*cba69eeeSIan Campbell #define SUNXI_SS_BASE 0x01c15000 43*cba69eeeSIan Campbell #define SUNXI_HDMI_BASE 0x01c16000 44*cba69eeeSIan Campbell #define SUNXI_SPI2_BASE 0x01c17000 45*cba69eeeSIan Campbell #define SUNXI_SATA_BASE 0x01c18000 46*cba69eeeSIan Campbell #define SUNXI_PATA_BASE 0x01c19000 47*cba69eeeSIan Campbell #define SUNXI_ACE_BASE 0x01c1a000 48*cba69eeeSIan Campbell #define SUNXI_TVE1_BASE 0x01c1b000 49*cba69eeeSIan Campbell #define SUNXI_USB2_BASE 0x01c1c000 50*cba69eeeSIan Campbell #define SUNXI_CSI1_BASE 0x01c1d000 51*cba69eeeSIan Campbell #define SUNXI_TZASC_BASE 0x01c1e000 52*cba69eeeSIan Campbell #define SUNXI_SPI3_BASE 0x01c1f000 53*cba69eeeSIan Campbell 54*cba69eeeSIan Campbell #define SUNXI_CCM_BASE 0x01c20000 55*cba69eeeSIan Campbell #define SUNXI_INTC_BASE 0x01c20400 56*cba69eeeSIan Campbell #define SUNXI_PIO_BASE 0x01c20800 57*cba69eeeSIan Campbell #define SUNXI_TIMER_BASE 0x01c20c00 58*cba69eeeSIan Campbell #define SUNXI_SPDIF_BASE 0x01c21000 59*cba69eeeSIan Campbell #define SUNXI_AC97_BASE 0x01c21400 60*cba69eeeSIan Campbell #define SUNXI_IR0_BASE 0x01c21800 61*cba69eeeSIan Campbell #define SUNXI_IR1_BASE 0x01c21c00 62*cba69eeeSIan Campbell 63*cba69eeeSIan Campbell #define SUNXI_IIS_BASE 0x01c22400 64*cba69eeeSIan Campbell #define SUNXI_LRADC_BASE 0x01c22800 65*cba69eeeSIan Campbell #define SUNXI_AD_DA_BASE 0x01c22c00 66*cba69eeeSIan Campbell #define SUNXI_KEYPAD_BASE 0x01c23000 67*cba69eeeSIan Campbell #define SUNXI_TZPC_BASE 0x01c23400 68*cba69eeeSIan Campbell #define SUNXI_SID_BASE 0x01c23800 69*cba69eeeSIan Campbell #define SUNXI_SJTAG_BASE 0x01c23c00 70*cba69eeeSIan Campbell 71*cba69eeeSIan Campbell #define SUNXI_TP_BASE 0x01c25000 72*cba69eeeSIan Campbell #define SUNXI_PMU_BASE 0x01c25400 73*cba69eeeSIan Campbell #define SUNXI_CPUCFG_BASE 0x01c25c00 74*cba69eeeSIan Campbell 75*cba69eeeSIan Campbell #define SUNXI_UART0_BASE 0x01c28000 76*cba69eeeSIan Campbell #define SUNXI_UART1_BASE 0x01c28400 77*cba69eeeSIan Campbell #define SUNXI_UART2_BASE 0x01c28800 78*cba69eeeSIan Campbell #define SUNXI_UART3_BASE 0x01c28c00 79*cba69eeeSIan Campbell #define SUNXI_UART4_BASE 0x01c29000 80*cba69eeeSIan Campbell #define SUNXI_UART5_BASE 0x01c29400 81*cba69eeeSIan Campbell #define SUNXI_UART6_BASE 0x01c29800 82*cba69eeeSIan Campbell #define SUNXI_UART7_BASE 0x01c29c00 83*cba69eeeSIan Campbell #define SUNXI_PS2_0_BASE 0x01c2a000 84*cba69eeeSIan Campbell #define SUNXI_PS2_1_BASE 0x01c2a400 85*cba69eeeSIan Campbell 86*cba69eeeSIan Campbell #define SUNXI_TWI0_BASE 0x01c2ac00 87*cba69eeeSIan Campbell #define SUNXI_TWI1_BASE 0x01c2b000 88*cba69eeeSIan Campbell #define SUNXI_TWI2_BASE 0x01c2b400 89*cba69eeeSIan Campbell 90*cba69eeeSIan Campbell #define SUNXI_CAN_BASE 0x01c2bc00 91*cba69eeeSIan Campbell 92*cba69eeeSIan Campbell #define SUNXI_SCR_BASE 0x01c2c400 93*cba69eeeSIan Campbell 94*cba69eeeSIan Campbell #define SUNXI_GPS_BASE 0x01c30000 95*cba69eeeSIan Campbell #define SUNXI_MALI400_BASE 0x01c40000 96*cba69eeeSIan Campbell #define SUNXI_GMAC_BASE 0x01c50000 97*cba69eeeSIan Campbell 98*cba69eeeSIan Campbell /* module sram */ 99*cba69eeeSIan Campbell #define SUNXI_SRAM_C_BASE 0x01d00000 100*cba69eeeSIan Campbell 101*cba69eeeSIan Campbell #define SUNXI_DE_FE0_BASE 0x01e00000 102*cba69eeeSIan Campbell #define SUNXI_DE_FE1_BASE 0x01e20000 103*cba69eeeSIan Campbell #define SUNXI_DE_BE0_BASE 0x01e60000 104*cba69eeeSIan Campbell #define SUNXI_DE_BE1_BASE 0x01e40000 105*cba69eeeSIan Campbell #define SUNXI_MP_BASE 0x01e80000 106*cba69eeeSIan Campbell #define SUNXI_AVG_BASE 0x01ea0000 107*cba69eeeSIan Campbell 108*cba69eeeSIan Campbell /* CoreSight Debug Module */ 109*cba69eeeSIan Campbell #define SUNXI_CSDM_BASE 0x3f500000 110*cba69eeeSIan Campbell 111*cba69eeeSIan Campbell #define SUNXI_DDRII_DDRIII_BASE 0x40000000 /* 2 GiB */ 112*cba69eeeSIan Campbell 113*cba69eeeSIan Campbell #define SUNXI_BROM_BASE 0xffff0000 /* 32 kiB */ 114*cba69eeeSIan Campbell 115*cba69eeeSIan Campbell #define SUNXI_CPU_CFG (SUNXI_TIMER_BASE + 0x13c) 116*cba69eeeSIan Campbell 117*cba69eeeSIan Campbell #ifndef __ASSEMBLY__ 118*cba69eeeSIan Campbell void sunxi_board_init(void); 119*cba69eeeSIan Campbell void sunxi_reset(void); 120*cba69eeeSIan Campbell #endif /* __ASSEMBLY__ */ 121*cba69eeeSIan Campbell 122*cba69eeeSIan Campbell #endif /* _CPU_H */ 123