Path: blob/master/arch/arm/mach-dove/include/mach/dove.h
10820 views
/*1* arch/arm/mach-dove/include/mach/dove.h2*3* Generic definitions for Marvell Dove 88AP510 SoC4*5* This file is licensed under the terms of the GNU General Public6* License version 2. This program is licensed "as is" without any7* warranty of any kind, whether express or implied.8*/910#ifndef __ASM_ARCH_DOVE_H11#define __ASM_ARCH_DOVE_H1213#include <mach/vmalloc.h>1415/*16* Marvell Dove address maps.17*18* phys virt size19* c8000000 fdb00000 1M Cryptographic SRAM20* e0000000 @runtime 128M PCIe-0 Memory space21* e8000000 @runtime 128M PCIe-1 Memory space22* f1000000 fde00000 8M on-chip south-bridge registers23* f1800000 fe600000 8M on-chip north-bridge registers24* f2000000 fee00000 1M PCIe-0 I/O space25* f2100000 fef00000 1M PCIe-1 I/O space26*/2728#define DOVE_CESA_PHYS_BASE 0xc800000029#define DOVE_CESA_VIRT_BASE 0xfdb0000030#define DOVE_CESA_SIZE SZ_1M3132#define DOVE_PCIE0_MEM_PHYS_BASE 0xe000000033#define DOVE_PCIE0_MEM_SIZE SZ_128M3435#define DOVE_PCIE1_MEM_PHYS_BASE 0xe800000036#define DOVE_PCIE1_MEM_SIZE SZ_128M3738#define DOVE_BOOTROM_PHYS_BASE 0xf800000039#define DOVE_BOOTROM_SIZE SZ_128M4041#define DOVE_SCRATCHPAD_PHYS_BASE 0xf000000042#define DOVE_SCRATCHPAD_VIRT_BASE 0xfdd0000043#define DOVE_SCRATCHPAD_SIZE SZ_1M4445#define DOVE_SB_REGS_PHYS_BASE 0xf100000046#define DOVE_SB_REGS_VIRT_BASE 0xfde0000047#define DOVE_SB_REGS_SIZE SZ_8M4849#define DOVE_NB_REGS_PHYS_BASE 0xf180000050#define DOVE_NB_REGS_VIRT_BASE 0xfe60000051#define DOVE_NB_REGS_SIZE SZ_8M5253#define DOVE_PCIE0_IO_PHYS_BASE 0xf200000054#define DOVE_PCIE0_IO_VIRT_BASE 0xfee0000055#define DOVE_PCIE0_IO_BUS_BASE 0x0000000056#define DOVE_PCIE0_IO_SIZE SZ_1M5758#define DOVE_PCIE1_IO_PHYS_BASE 0xf210000059#define DOVE_PCIE1_IO_VIRT_BASE 0xfef0000060#define DOVE_PCIE1_IO_BUS_BASE 0x0010000061#define DOVE_PCIE1_IO_SIZE SZ_1M6263/*64* Dove Core Registers Map65*/6667/* SPI, I2C, UART */68#define DOVE_I2C_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x11000)69#define DOVE_UART0_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x12000)70#define DOVE_UART0_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x12000)71#define DOVE_UART1_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x12100)72#define DOVE_UART1_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x12100)73#define DOVE_UART2_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x12200)74#define DOVE_UART2_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x12200)75#define DOVE_UART3_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x12300)76#define DOVE_UART3_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x12300)77#define DOVE_SPI0_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x10600)78#define DOVE_SPI1_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x14600)7980/* North-South Bridge */81#define BRIDGE_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x20000)8283/* Cryptographic Engine */84#define DOVE_CRYPT_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x30000)8586/* PCIe 0 */87#define DOVE_PCIE0_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x40000)8889/* USB */90#define DOVE_USB0_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x50000)91#define DOVE_USB1_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x51000)9293/* XOR 0 Engine */94#define DOVE_XOR0_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x60800)95#define DOVE_XOR0_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x60800)96#define DOVE_XOR0_HIGH_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x60A00)97#define DOVE_XOR0_HIGH_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x60A00)9899/* XOR 1 Engine */100#define DOVE_XOR1_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x60900)101#define DOVE_XOR1_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x60900)102#define DOVE_XOR1_HIGH_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x60B00)103#define DOVE_XOR1_HIGH_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x60B00)104105/* Gigabit Ethernet */106#define DOVE_GE00_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x70000)107108/* PCIe 1 */109#define DOVE_PCIE1_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0x80000)110111/* CAFE */112#define DOVE_SDIO0_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x92000)113#define DOVE_SDIO1_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x90000)114#define DOVE_CAM_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x94000)115#define DOVE_CAFE_WIN_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0x98000)116117/* SATA */118#define DOVE_SATA_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0xa0000)119120/* I2S/SPDIF */121#define DOVE_AUD0_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0xb0000)122#define DOVE_AUD1_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0xb4000)123124/* NAND Flash Controller */125#define DOVE_NFC_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0xc0000)126127/* MPP, GPIO, Reset Sampling */128#define DOVE_MPP_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xd0200)129#define DOVE_PMU_MPP_GENERAL_CTRL (DOVE_MPP_VIRT_BASE + 0x10)130#define DOVE_RESET_SAMPLE_LO (DOVE_MPP_VIRT_BASE | 0x014)131#define DOVE_RESET_SAMPLE_HI (DOVE_MPP_VIRT_BASE | 0x018)132#define DOVE_GPIO_LO_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xd0400)133#define DOVE_GPIO_HI_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xd0420)134#define DOVE_GPIO2_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xe8400)135#define DOVE_MPP_GENERAL_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xe803c)136#define DOVE_AU1_SPDIFO_GPIO_EN (1 << 1)137#define DOVE_NAND_GPIO_EN (1 << 0)138#define DOVE_MPP_CTRL4_VIRT_BASE (DOVE_GPIO_LO_VIRT_BASE + 0x40)139#define DOVE_SPI_GPIO_SEL (1 << 5)140#define DOVE_UART1_GPIO_SEL (1 << 4)141#define DOVE_AU1_GPIO_SEL (1 << 3)142#define DOVE_CAM_GPIO_SEL (1 << 2)143#define DOVE_SD1_GPIO_SEL (1 << 1)144#define DOVE_SD0_GPIO_SEL (1 << 0)145146/* Power Management */147#define DOVE_PMU_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xd0000)148#define DOVE_PMU_SIG_CTRL (DOVE_PMU_VIRT_BASE + 0x802c)149150/* Real Time Clock */151#define DOVE_RTC_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0xd8500)152153/* AC97 */154#define DOVE_AC97_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0xe0000)155#define DOVE_AC97_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xe0000)156157/* Peripheral DMA */158#define DOVE_PDMA_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0xe4000)159#define DOVE_PDMA_VIRT_BASE (DOVE_SB_REGS_VIRT_BASE | 0xe4000)160161#define DOVE_GLOBAL_CONFIG_1 (DOVE_SB_REGS_VIRT_BASE | 0xe802C)162#define DOVE_TWSI_ENABLE_OPTION1 (1 << 7)163#define DOVE_GLOBAL_CONFIG_2 (DOVE_SB_REGS_VIRT_BASE | 0xe8030)164#define DOVE_TWSI_ENABLE_OPTION2 (1 << 20)165#define DOVE_TWSI_ENABLE_OPTION3 (1 << 21)166#define DOVE_TWSI_OPTION3_GPIO (1 << 22)167#define DOVE_SSP_PHYS_BASE (DOVE_SB_REGS_PHYS_BASE | 0xec000)168#define DOVE_SSP_CTRL_STATUS_1 (DOVE_SB_REGS_VIRT_BASE | 0xe8034)169#define DOVE_SSP_ON_AU1 (1 << 0)170#define DOVE_SSP_CLOCK_ENABLE (1 << 1)171#define DOVE_SSP_BPB_CLOCK_SRC_SSP (1 << 11)172/* Memory Controller */173#define DOVE_MC_VIRT_BASE (DOVE_NB_REGS_VIRT_BASE | 0x00000)174175/* LCD Controller */176#define DOVE_LCD_PHYS_BASE (DOVE_NB_REGS_PHYS_BASE | 0x10000)177#define DOVE_LCD1_PHYS_BASE (DOVE_NB_REGS_PHYS_BASE | 0x20000)178#define DOVE_LCD2_PHYS_BASE (DOVE_NB_REGS_PHYS_BASE | 0x10000)179#define DOVE_LCD_DCON_PHYS_BASE (DOVE_NB_REGS_PHYS_BASE | 0x30000)180181/* Graphic Engine */182#define DOVE_GPU_PHYS_BASE (DOVE_NB_REGS_PHYS_BASE | 0x40000)183184/* Video Engine */185#define DOVE_VPU_PHYS_BASE (DOVE_NB_REGS_PHYS_BASE | 0x400000)186187#endif188189190