Path: blob/master/arch/arm/mach-mxs/include/mach/mx28.h
10820 views
/*1* Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License as published by5* the Free Software Foundation; either version 2 of the License, or6* (at your option) any later version.7*8* This program is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11* GNU General Public License for more details.12*13* You should have received a copy of the GNU General Public License along14* with this program; if not, write to the Free Software Foundation, Inc.,15* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.16*/1718#ifndef __MACH_MX28_H__19#define __MACH_MX28_H__2021#include <mach/mxs.h>2223/*24* OCRAM25*/26#define MX28_OCRAM_BASE_ADDR 0x0000000027#define MX28_OCRAM_SIZE SZ_128K2829/*30* IO31*/32#define MX28_IO_BASE_ADDR 0x8000000033#define MX28_IO_SIZE SZ_1M3435#define MX28_ICOLL_BASE_ADDR (MX28_IO_BASE_ADDR + 0x000000)36#define MX28_HSADC_BASE_ADDR (MX28_IO_BASE_ADDR + 0x002000)37#define MX28_APBH_DMA_BASE_ADDR (MX28_IO_BASE_ADDR + 0x004000)38#define MX28_PERFMON_BASE_ADDR (MX28_IO_BASE_ADDR + 0x006000)39#define MX28_BCH_BASE_ADDR (MX28_IO_BASE_ADDR + 0x00a000)40#define MX28_GPMI_BASE_ADDR (MX28_IO_BASE_ADDR + 0x00c000)41#define MX28_SSP0_BASE_ADDR (MX28_IO_BASE_ADDR + 0x010000)42#define MX28_SSP1_BASE_ADDR (MX28_IO_BASE_ADDR + 0x012000)43#define MX28_SSP2_BASE_ADDR (MX28_IO_BASE_ADDR + 0x014000)44#define MX28_SSP3_BASE_ADDR (MX28_IO_BASE_ADDR + 0x016000)45#define MX28_PINCTRL_BASE_ADDR (MX28_IO_BASE_ADDR + 0x018000)46#define MX28_DIGCTL_BASE_ADDR (MX28_IO_BASE_ADDR + 0x01c000)47#define MX28_ETM_BASE_ADDR (MX28_IO_BASE_ADDR + 0x022000)48#define MX28_APBX_DMA_BASE_ADDR (MX28_IO_BASE_ADDR + 0x024000)49#define MX28_DCP_BASE_ADDR (MX28_IO_BASE_ADDR + 0x028000)50#define MX28_PXP_BASE_ADDR (MX28_IO_BASE_ADDR + 0x02a000)51#define MX28_OCOTP_BASE_ADDR (MX28_IO_BASE_ADDR + 0x02c000)52#define MX28_AXI_AHB0_BASE_ADDR (MX28_IO_BASE_ADDR + 0x02e000)53#define MX28_LCDIF_BASE_ADDR (MX28_IO_BASE_ADDR + 0x030000)54#define MX28_CAN0_BASE_ADDR (MX28_IO_BASE_ADDR + 0x032000)55#define MX28_CAN1_BASE_ADDR (MX28_IO_BASE_ADDR + 0x034000)56#define MX28_SIMDBG_BASE_ADDR (MX28_IO_BASE_ADDR + 0x03c000)57#define MX28_SIMGPMISEL_BASE_ADDR (MX28_IO_BASE_ADDR + 0x03c200)58#define MX28_SIMSSPSEL_BASE_ADDR (MX28_IO_BASE_ADDR + 0x03c300)59#define MX28_SIMMEMSEL_BASE_ADDR (MX28_IO_BASE_ADDR + 0x03c400)60#define MX28_GPIOMON_BASE_ADDR (MX28_IO_BASE_ADDR + 0x03c500)61#define MX28_SIMENET_BASE_ADDR (MX28_IO_BASE_ADDR + 0x03c700)62#define MX28_ARMJTAG_BASE_ADDR (MX28_IO_BASE_ADDR + 0x03c800)63#define MX28_CLKCTRL_BASE_ADDR (MX28_IO_BASE_ADDR + 0x040000)64#define MX28_SAIF0_BASE_ADDR (MX28_IO_BASE_ADDR + 0x042000)65#define MX28_POWER_BASE_ADDR (MX28_IO_BASE_ADDR + 0x044000)66#define MX28_SAIF1_BASE_ADDR (MX28_IO_BASE_ADDR + 0x046000)67#define MX28_LRADC_BASE_ADDR (MX28_IO_BASE_ADDR + 0x050000)68#define MX28_SPDIF_BASE_ADDR (MX28_IO_BASE_ADDR + 0x054000)69#define MX28_RTC_BASE_ADDR (MX28_IO_BASE_ADDR + 0x056000)70#define MX28_I2C0_BASE_ADDR (MX28_IO_BASE_ADDR + 0x058000)71#define MX28_I2C1_BASE_ADDR (MX28_IO_BASE_ADDR + 0x05a000)72#define MX28_PWM_BASE_ADDR (MX28_IO_BASE_ADDR + 0x064000)73#define MX28_TIMROT_BASE_ADDR (MX28_IO_BASE_ADDR + 0x068000)74#define MX28_AUART0_BASE_ADDR (MX28_IO_BASE_ADDR + 0x06a000)75#define MX28_AUART1_BASE_ADDR (MX28_IO_BASE_ADDR + 0x06c000)76#define MX28_AUART2_BASE_ADDR (MX28_IO_BASE_ADDR + 0x06e000)77#define MX28_AUART3_BASE_ADDR (MX28_IO_BASE_ADDR + 0x070000)78#define MX28_AUART4_BASE_ADDR (MX28_IO_BASE_ADDR + 0x072000)79#define MX28_DUART_BASE_ADDR (MX28_IO_BASE_ADDR + 0x074000)80#define MX28_USBPHY0_BASE_ADDR (MX28_IO_BASE_ADDR + 0x07C000)81#define MX28_USBPHY1_BASE_ADDR (MX28_IO_BASE_ADDR + 0x07e000)82#define MX28_USBCTRL0_BASE_ADDR (MX28_IO_BASE_ADDR + 0x080000)83#define MX28_USBCTRL1_BASE_ADDR (MX28_IO_BASE_ADDR + 0x090000)84#define MX28_DFLPT_BASE_ADDR (MX28_IO_BASE_ADDR + 0x0c0000)85#define MX28_DRAM_BASE_ADDR (MX28_IO_BASE_ADDR + 0x0e0000)86#define MX28_ENET_MAC0_BASE_ADDR (MX28_IO_BASE_ADDR + 0x0f0000)87#define MX28_ENET_MAC1_BASE_ADDR (MX28_IO_BASE_ADDR + 0x0f4000)8889#define MX28_IO_P2V(x) MXS_IO_P2V(x)90#define MX28_IO_ADDRESS(x) IOMEM(MX28_IO_P2V(x))9192/*93* IRQ94*/95#define MX28_INT_BATT_BRNOUT 096#define MX28_INT_VDDD_BRNOUT 197#define MX28_INT_VDDIO_BRNOUT 298#define MX28_INT_VDDA_BRNOUT 399#define MX28_INT_VDD5V_DROOP 4100#define MX28_INT_DCDC4P2_BRNOUT 5101#define MX28_INT_VDD5V 6102#define MX28_INT_CAN0 8103#define MX28_INT_CAN1 9104#define MX28_INT_LRADC_TOUCH 10105#define MX28_INT_HSADC 13106#define MX28_INT_IRADC_THRESH0 14107#define MX28_INT_IRADC_THRESH1 15108#define MX28_INT_LRADC_CH0 16109#define MX28_INT_LRADC_CH1 17110#define MX28_INT_LRADC_CH2 18111#define MX28_INT_LRADC_CH3 19112#define MX28_INT_LRADC_CH4 20113#define MX28_INT_LRADC_CH5 21114#define MX28_INT_LRADC_CH6 22115#define MX28_INT_LRADC_CH7 23116#define MX28_INT_LRADC_BUTTON0 24117#define MX28_INT_LRADC_BUTTON1 25118#define MX28_INT_PERFMON 27119#define MX28_INT_RTC_1MSEC 28120#define MX28_INT_RTC_ALARM 29121#define MX28_INT_COMMS 31122#define MX28_INT_EMI_ERR 32123#define MX28_INT_LCDIF 38124#define MX28_INT_PXP 39125#define MX28_INT_BCH 41126#define MX28_INT_GPMI 42127#define MX28_INT_SPDIF_ERROR 45128#define MX28_INT_DUART 47129#define MX28_INT_TIMER0 48130#define MX28_INT_TIMER1 49131#define MX28_INT_TIMER2 50132#define MX28_INT_TIMER3 51133#define MX28_INT_DCP_VMI 52134#define MX28_INT_DCP 53135#define MX28_INT_DCP_SECURE 54136#define MX28_INT_SAIF1 58137#define MX28_INT_SAIF0 59138#define MX28_INT_SPDIF_DMA 66139#define MX28_INT_I2C0_DMA 68140#define MX28_INT_I2C1_DMA 69141#define MX28_INT_AUART0_RX_DMA 70142#define MX28_INT_AUART0_TX_DMA 71143#define MX28_INT_AUART1_RX_DMA 72144#define MX28_INT_AUART1_TX_DMA 73145#define MX28_INT_AUART2_RX_DMA 74146#define MX28_INT_AUART2_TX_DMA 75147#define MX28_INT_AUART3_RX_DMA 76148#define MX28_INT_AUART3_TX_DMA 77149#define MX28_INT_AUART4_RX_DMA 78150#define MX28_INT_AUART4_TX_DMA 79151#define MX28_INT_SAIF0_DMA 80152#define MX28_INT_SAIF1_DMA 81153#define MX28_INT_SSP0_DMA 82154#define MX28_INT_SSP1_DMA 83155#define MX28_INT_SSP2_DMA 84156#define MX28_INT_SSP3_DMA 85157#define MX28_INT_LCDIF_DMA 86158#define MX28_INT_HSADC_DMA 87159#define MX28_INT_GPMI_DMA 88160#define MX28_INT_DIGCTL_DEBUG_TRAP 89161#define MX28_INT_USB1 92162#define MX28_INT_USB0 93163#define MX28_INT_USB1_WAKEUP 94164#define MX28_INT_USB0_WAKEUP 95165#define MX28_INT_SSP0_ERROR 96166#define MX28_INT_SSP1_ERROR 97167#define MX28_INT_SSP2_ERROR 98168#define MX28_INT_SSP3_ERROR 99169#define MX28_INT_ENET_SWI 100170#define MX28_INT_ENET_MAC0 101171#define MX28_INT_ENET_MAC1 102172#define MX28_INT_ENET_MAC0_1588 103173#define MX28_INT_ENET_MAC1_1588 104174#define MX28_INT_I2C1_ERROR 110175#define MX28_INT_I2C0_ERROR 111176#define MX28_INT_AUART0 112177#define MX28_INT_AUART1 113178#define MX28_INT_AUART2 114179#define MX28_INT_AUART3 115180#define MX28_INT_AUART4 116181#define MX28_INT_GPIO4 123182#define MX28_INT_GPIO3 124183#define MX28_INT_GPIO2 125184#define MX28_INT_GPIO1 126185#define MX28_INT_GPIO0 127186187/*188* APBH DMA189*/190#define MX28_DMA_SSP0 0191#define MX28_DMA_SSP1 1192#define MX28_DMA_SSP2 2193#define MX28_DMA_SSP3 3194#define MX28_DMA_GPMI0 4195#define MX28_DMA_GPMI1 5196#define MX28_DMA_GPMI2 6197#define MX28_DMA_GPMI3 7198#define MX28_DMA_GPMI4 8199#define MX28_DMA_GPMI5 9200#define MX28_DMA_GPMI6 10201#define MX28_DMA_GPMI7 11202#define MX28_DMA_HSADC 12203#define MX28_DMA_LCDIF 13204205/*206* APBX DMA207*/208#define MX28_DMA_AUART4_RX 0209#define MX28_DMA_AUART4_TX 1210#define MX28_DMA_SPDIF_TX 2211#define MX28_DMA_SAIF0 4212#define MX28_DMA_SAIF1 5213#define MX28_DMA_I2C0 6214#define MX28_DMA_I2C1 7215#define MX28_DMA_AUART0_RX 8216#define MX28_DMA_AUART0_TX 9217#define MX28_DMA_AUART1_RX 10218#define MX28_DMA_AUART1_TX 11219#define MX28_DMA_AUART2_RX 12220#define MX28_DMA_AUART2_TX 13221#define MX28_DMA_AUART3_RX 14222#define MX28_DMA_AUART3_TX 15223224#endif /* __MACH_MX28_H__ */225226227