Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
void | cns3xxx_pwr_soft_rst (unsigned int block) |
void | cns3xxx_pwr_clk_en (unsigned int block) |
int | cns3xxx_cpu_clock (void) |
#define CNS3XXX_2DG_BASE 0x87000000 /* 2D Graphic Control */ |
#define CNS3XXX_CAMERA_BASE 0x84000000 /* Camera Interface */ |
#define CNS3XXX_DDR2SDRAM_BASE 0x20000000 /* DDR2 SDRAM Memory */ |
#define CNS3XXX_DMAC_BASE 0x79000000 /* Generic DMA Control */ |
#define CNS3XXX_DMC_BASE 0x72000000 /* DMC Control (DDR2 SDRAM) */ |
#define CNS3XXX_EMBEDDED_SRAM_BASE 0x70002000 /* HANT Embedded SRAM */ |
#define CNS3XXX_FLASH_BASE 0x10000000 /* Flash/SRAM Memory Bank 0 */ |
#define CNS3XXX_L2C_BASE 0x92000000 /* L2 Cache Control */ |
#define CNS3XXX_MISC_BASE_VIRT 0xFFF07000 /* Misc Control */ |
#define CNS3XXX_PCIE0_CFG0_BASE 0xAD000000 /* PCIe Port 0 CFG Type 0 */ |
#define CNS3XXX_PCIE0_CFG1_BASE 0xAE000000 /* PCIe Port 0 CFG Type 1 */ |
#define CNS3XXX_PCIE0_HOST_BASE 0xAB000000 /* PCIe Port 0 RC Base */ |
#define CNS3XXX_PCIE0_IO_BASE 0xAC000000 /* PCIe Port 0 */ |
#define CNS3XXX_PCIE0_MEM_BASE 0xA0000000 /* PCIe Port 0 IO/Memory Space */ |
#define CNS3XXX_PCIE0_MSG_BASE 0xAF000000 /* PCIe Port 0 Message Space */ |
#define CNS3XXX_PCIE1_CFG0_BASE 0xBD000000 /* PCIe Port 1 CFG Type 0 */ |
#define CNS3XXX_PCIE1_CFG1_BASE 0xBE000000 /* PCIe Port 1 CFG Type 1 */ |
#define CNS3XXX_PCIE1_HOST_BASE 0xBB000000 /* PCIe Port 1 RC Base */ |
#define CNS3XXX_PCIE1_IO_BASE 0xBC000000 /* PCIe Port 1 */ |
#define CNS3XXX_PCIE1_MEM_BASE 0xB0000000 /* PCIe Port 1 IO/Memory Space */ |
#define CNS3XXX_PCIE1_MSG_BASE 0xBF000000 /* PCIe Port 1 Message Space */ |
#define CNS3XXX_PM_BASE 0x77000000 /* Power Management Control */ |
#define CNS3XXX_PWR_CLK_EN | ( | BLOCK | ) | (0x1<<PM_CLK_GATE_REG_OFFSET_##BLOCK) |
#define CNS3XXX_PWR_PLL | ( | BLOCK | ) | (0x1<<PM_PLL_HM_PD_CTRL_REG_OFFSET_##BLOCK) |
#define CNS3XXX_PWR_PLL_ALL PM_PLL_HM_PD_CTRL_REG_MASK |
#define CNS3XXX_PWR_SOFTWARE_RST | ( | BLOCK | ) | (0x1<<PM_SOFT_RST_REG_OFFST_##BLOCK) |
#define CNS3XXX_SPI_FLASH_BASE 0x60000000 /* SPI Serial Flash Memory */ |
#define CNS3XXX_SSP_BASE 0x71000000 /* Synchronous Serial Port - SPI/PCM/I2C */ |
#define CNS3XXX_SWITCH_BASE 0x70000000 /* Switch and HNAT Control */ |
#define CNS3XXX_TC11MP_GIC_CPU_BASE 0x90000100 /* Test chip interrupt controller CPU interface */ |
#define CNS3XXX_TC11MP_GIC_DIST_BASE 0x90001000 /* Test chip interrupt controller distributor */ |
#define CNS3XXX_TC11MP_L220_BASE 0x92002000 /* L220 registers */ |
#define CNS3XXX_TC11MP_SCU_BASE 0x90000000 /* IRQ, Test chip */ |
#define CNS3XXX_USB_BASE 0x82000000 /* USB Host Control */ |
#define CNS3XXX_USBOTG_BASE 0x81000000 /* USB OTG Control */ |
#define IRQ_CNS3XXX_ARM11 (IRQ_TC11MP_GIC_START + 16) |
#define IRQ_CNS3XXX_CIM (IRQ_TC11MP_GIC_START + 8) |
#define IRQ_CNS3XXX_CRYPTO (IRQ_TC11MP_GIC_START + 27) |
#define IRQ_CNS3XXX_DMAC0 (IRQ_TC11MP_GIC_START + 37) |
#define IRQ_CNS3XXX_DMAC1 (IRQ_TC11MP_GIC_START + 38) |
#define IRQ_CNS3XXX_DMAC10 (IRQ_TC11MP_GIC_START + 47) |
#define IRQ_CNS3XXX_DMAC11 (IRQ_TC11MP_GIC_START + 48) |
#define IRQ_CNS3XXX_DMAC12 (IRQ_TC11MP_GIC_START + 49) |
#define IRQ_CNS3XXX_DMAC13 (IRQ_TC11MP_GIC_START + 50) |
#define IRQ_CNS3XXX_DMAC14 (IRQ_TC11MP_GIC_START + 51) |
#define IRQ_CNS3XXX_DMAC15 (IRQ_TC11MP_GIC_START + 52) |
#define IRQ_CNS3XXX_DMAC16 (IRQ_TC11MP_GIC_START + 53) |
#define IRQ_CNS3XXX_DMAC17 (IRQ_TC11MP_GIC_START + 54) |
#define IRQ_CNS3XXX_DMAC2 (IRQ_TC11MP_GIC_START + 39) |
#define IRQ_CNS3XXX_DMAC3 (IRQ_TC11MP_GIC_START + 40) |
#define IRQ_CNS3XXX_DMAC4 (IRQ_TC11MP_GIC_START + 41) |
#define IRQ_CNS3XXX_DMAC5 (IRQ_TC11MP_GIC_START + 42) |
#define IRQ_CNS3XXX_DMAC6 (IRQ_TC11MP_GIC_START + 43) |
#define IRQ_CNS3XXX_DMAC7 (IRQ_TC11MP_GIC_START + 44) |
#define IRQ_CNS3XXX_DMAC8 (IRQ_TC11MP_GIC_START + 45) |
#define IRQ_CNS3XXX_DMAC9 (IRQ_TC11MP_GIC_START + 46) |
#define IRQ_CNS3XXX_DMAC_ABORT (IRQ_TC11MP_GIC_START + 36) |
#define IRQ_CNS3XXX_EXTERNAL_PIN0 (IRQ_TC11MP_GIC_START + 61) |
#define IRQ_CNS3XXX_EXTERNAL_PIN1 (IRQ_TC11MP_GIC_START + 62) |
#define IRQ_CNS3XXX_EXTERNAL_PIN2 (IRQ_TC11MP_GIC_START + 63) |
#define IRQ_CNS3XXX_GPIOA (IRQ_TC11MP_GIC_START + 11) |
#define IRQ_CNS3XXX_GPIOB (IRQ_TC11MP_GIC_START + 12) |
#define IRQ_CNS3XXX_GPU (IRQ_TC11MP_GIC_START + 9) |
#define IRQ_CNS3XXX_HCIE (IRQ_TC11MP_GIC_START + 28) |
#define IRQ_CNS3XXX_I2C (IRQ_TC11MP_GIC_START + 7) |
#define IRQ_CNS3XXX_I2S (IRQ_TC11MP_GIC_START + 4) |
#define IRQ_CNS3XXX_L2CC (IRQ_TC11MP_GIC_START + 2) |
#define IRQ_CNS3XXX_LCD (IRQ_TC11MP_GIC_START + 10) |
#define IRQ_CNS3XXX_PCIE0_DEVICE (IRQ_TC11MP_GIC_START + 29) |
#define IRQ_CNS3XXX_PCIE0_RC (IRQ_TC11MP_GIC_START + 55) |
#define IRQ_CNS3XXX_PCIE1_DEVICE (IRQ_TC11MP_GIC_START + 30) |
#define IRQ_CNS3XXX_PCIE1_RC (IRQ_TC11MP_GIC_START + 56) |
#define IRQ_CNS3XXX_PCM (IRQ_TC11MP_GIC_START + 5) |
#define IRQ_CNS3XXX_PMU (IRQ_TC11MP_GIC_START + 0) |
#define IRQ_CNS3XXX_RAID (IRQ_TC11MP_GIC_START + 34) |
#define IRQ_CNS3XXX_RTC (IRQ_TC11MP_GIC_START + 3) |
#define IRQ_CNS3XXX_SATA (IRQ_TC11MP_GIC_START + 33) |
#define IRQ_CNS3XXX_SDIO (IRQ_TC11MP_GIC_START + 1) |
#define IRQ_CNS3XXX_SMC (IRQ_TC11MP_GIC_START + 35) |
#define IRQ_CNS3XXX_SPI (IRQ_TC11MP_GIC_START + 6) |
#define IRQ_CNS3XXX_SW_PPE (IRQ_TC11MP_GIC_START + 26) |
#define IRQ_CNS3XXX_SW_R0QE (IRQ_TC11MP_GIC_START + 20) |
#define IRQ_CNS3XXX_SW_R0QF (IRQ_TC11MP_GIC_START + 21) |
#define IRQ_CNS3XXX_SW_R0RXC (IRQ_TC11MP_GIC_START + 19) |
#define IRQ_CNS3XXX_SW_R0TXC (IRQ_TC11MP_GIC_START + 18) |
#define IRQ_CNS3XXX_SW_R1QE (IRQ_TC11MP_GIC_START + 24) |
#define IRQ_CNS3XXX_SW_R1QF (IRQ_TC11MP_GIC_START + 25) |
#define IRQ_CNS3XXX_SW_R1RXC (IRQ_TC11MP_GIC_START + 23) |
#define IRQ_CNS3XXX_SW_R1TXC (IRQ_TC11MP_GIC_START + 22) |
#define IRQ_CNS3XXX_SW_STATUS (IRQ_TC11MP_GIC_START + 17) |
#define IRQ_CNS3XXX_TIMER0 (IRQ_TC11MP_GIC_START + 57) |
#define IRQ_CNS3XXX_TIMER1 (IRQ_TC11MP_GIC_START + 58) |
#define IRQ_CNS3XXX_TIMER2 (IRQ_TC11MP_GIC_START + 60) |
#define IRQ_CNS3XXX_UART0 (IRQ_TC11MP_GIC_START + 13) |
#define IRQ_CNS3XXX_UART1 (IRQ_TC11MP_GIC_START + 14) |
#define IRQ_CNS3XXX_UART2 (IRQ_TC11MP_GIC_START + 15) |
#define IRQ_CNS3XXX_USB_EHCI (IRQ_TC11MP_GIC_START + 32) |
#define IRQ_CNS3XXX_USB_OHCI (IRQ_TC11MP_GIC_START + 59) |
#define IRQ_CNS3XXX_USB_OTG (IRQ_TC11MP_GIC_START + 31) |
#define MISC_CHIP_CONFIG_REG MISC_MEM_MAP(0x04) |
#define MISC_DEBUG_PROBE_DATA_REG MISC_MEM_MAP(0x08) |
#define MISC_DEBUG_PROBE_SELECTION_REG MISC_MEM_MAP(0x0C) |
#define MISC_E_FUSE_127_96_REG MISC_MEM_MAP(0x4C) |
#define MISC_E_FUSE_31_0_REG MISC_MEM_MAP(0x40) |
#define MISC_E_FUSE_63_32_REG MISC_MEM_MAP(0x44) |
#define MISC_E_FUSE_95_64_REG MISC_MEM_MAP(0x48) |
#define MISC_GPIOA_15_0_PULL_CTRL_REG MISC_MEM_MAP(0x24) |
#define MISC_GPIOA_16_31_PULL_CTRL_REG MISC_MEM_MAP(0x28) |
#define MISC_GPIOA_PIN_ENABLE_REG MISC_MEM_MAP(0x14) |
#define MISC_GPIOB_15_0_PULL_CTRL_REG MISC_MEM_MAP(0x2C) |
#define MISC_GPIOB_16_31_PULL_CTRL_REG MISC_MEM_MAP(0x30) |
#define MISC_GPIOB_PIN_ENABLE_REG MISC_MEM_MAP(0x18) |
#define MISC_IO_PAD_DRIVE_STRENGTH_CTRL_A MISC_MEM_MAP(0x1C) |
#define MISC_IO_PAD_DRIVE_STRENGTH_CTRL_B MISC_MEM_MAP(0x20) |
#define MISC_IO_PIN_FUNC_SELECTION_REG MISC_MEM_MAP(0x10) |
#define MISC_IO_PULL_CTRL_REG MISC_MEM_MAP(0x34) |
#define MISC_MEM_MAP | ( | offs | ) | (void __iomem *)(CNS3XXX_MISC_BASE_VIRT + (offs)) |
#define MISC_MEMORY_REMAP_REG MISC_MEM_MAP(0x00) |
#define MISC_PCIE_AXIM_BMISC | ( | x | ) | MISC_MEM_MAP(0x958 + (x) * 0x100) |
#define MISC_PCIE_AXIM_RMISC | ( | x | ) | MISC_MEM_MAP(0x954 + (x) * 0x100) |
#define MISC_PCIE_AXIS_ARMISC | ( | x | ) | MISC_MEM_MAP(0x948 + (x) * 0x100) |
#define MISC_PCIE_AXIS_AWMISC | ( | x | ) | MISC_MEM_MAP(0x944 + (x) * 0x100) |
#define MISC_PCIE_AXIS_BMISC | ( | x | ) | MISC_MEM_MAP(0x950 + (x) * 0x100) |
#define MISC_PCIE_AXIS_RMISC | ( | x | ) | MISC_MEM_MAP(0x94C + (x) * 0x100) |
#define MISC_PCIE_CTRL | ( | x | ) | MISC_MEM_MAP(0x95C + (x) * 0x100) |
#define MISC_PCIE_CXPL_DEBUGH | ( | x | ) | MISC_MEM_MAP(0x96C + (x) * 0x100) |
#define MISC_PCIE_CXPL_DEBUGL | ( | x | ) | MISC_MEM_MAP(0x968 + (x) * 0x100) |
#define MISC_PCIE_DIAG_DEBUGH | ( | x | ) | MISC_MEM_MAP(0x970 + (x) * 0x100) |
#define MISC_PCIE_INT_MASK | ( | x | ) | MISC_MEM_MAP(0x978 + (x) * 0x100) |
#define MISC_PCIE_INT_STATUS | ( | x | ) | MISC_MEM_MAP(0x97C + (x) * 0x100) |
#define MISC_PCIE_PM_DEBUG | ( | x | ) | MISC_MEM_MAP(0x960 + (x) * 0x100) |
#define MISC_PCIE_RFC_DEBUG | ( | x | ) | MISC_MEM_MAP(0x964 + (x) * 0x100) |
#define MISC_PCIE_W1CLR | ( | x | ) | MISC_MEM_MAP(0x974 + (x) * 0x100) |
#define MISC_PCIEPHY_CMCTL | ( | x | ) | MISC_MEM_MAP(0x900 + (x) * 0x004) |
#define MISC_PCIEPHY_CTL | ( | x | ) | MISC_MEM_MAP(0x940 + (x) * 0x100) |
#define MISC_SATA_POWER_MODE MISC_MEM_MAP(0x310) |
#define MISC_SOFTWARE_TEST_1_REG MISC_MEM_MAP(0x50) |
#define MISC_SOFTWARE_TEST_2_REG MISC_MEM_MAP(0x54) |
#define MISC_USB_CFG_REG MISC_MEM_MAP(0x800) |
#define MISC_USB_STS_REG MISC_MEM_MAP(0x804) |
#define MISC_USBPHY00_CFG_REG MISC_MEM_MAP(0x808) |
#define MISC_USBPHY01_CFG_REG MISC_MEM_MAP(0x80c) |
#define MISC_USBPHY10_CFG_REG MISC_MEM_MAP(0x810) |
#define MISC_USBPHY11_CFG_REG MISC_MEM_MAP(0x814) |
#define NR_IRQS NR_IRQS_CNS3XXX |
#define NR_IRQS_CNS3XXX (IRQ_TC11MP_GIC_START + 64) |
#define PM_CACTIVE_STA_REG PMU_MEM_MAP(0x00C) |
#define PM_CLK_CTRL_REG PMU_MEM_MAP(0x014) |
#define PM_CLK_GATE_REG PMU_MEM_MAP(0x000) |
#define PM_CPU_CLK_DIV | ( | DIV | ) |
#define PM_CSR_REG PMU_MEM_MAP(0x030) |
#define PM_HS_CFG_REG PMU_MEM_MAP(0x008) |
#define PM_PLL_CPU_SEL | ( | CPU | ) |
#define PM_PLL_HM_PD_CTRL_REG PMU_MEM_MAP(0x01C) |
#define PM_PLL_LCD_I2S_CTRL_REG PMU_MEM_MAP(0x018) |
#define PM_PWR_STA_REG PMU_MEM_MAP(0x010) |
#define PM_REGULAT_CTRL_REG PMU_MEM_MAP(0x020) |
#define PM_SOFT_RST_REG PMU_MEM_MAP(0x004) |
#define PM_WDT_CTRL_REG PMU_MEM_MAP(0x024) |
#define PM_WU_CTRL0_REG PMU_MEM_MAP(0x028) |
#define PM_WU_CTRL1_REG PMU_MEM_MAP(0x02C) |
#define PMU_MEM_MAP | ( | offs | ) | (void __iomem *)(CNS3XXX_PM_BASE_VIRT + (offs)) |