Home | History | Annotate | Line # | Download | only in imx
imx51reg.h revision 1.4
      1  1.4  bsh /* $NetBSD: imx51reg.h,v 1.4 2012/04/15 16:34:11 bsh Exp $ */
      2  1.1  bsh /*-
      3  1.1  bsh  * Copyright (c) 2007 The NetBSD Foundation, Inc.
      4  1.1  bsh  * All rights reserved.
      5  1.1  bsh  *
      6  1.1  bsh  * This code is derived from software contributed to The NetBSD Foundation
      7  1.1  bsh  * by Matt Thomas.
      8  1.1  bsh  *
      9  1.1  bsh  * Redistribution and use in source and binary forms, with or without
     10  1.1  bsh  * modification, are permitted provided that the following conditions
     11  1.1  bsh  * are met:
     12  1.1  bsh  * 1. Redistributions of source code must retain the above copyright
     13  1.1  bsh  *    notice, this list of conditions and the following disclaimer.
     14  1.1  bsh  * 2. Redistributions in binary form must reproduce the above copyright
     15  1.1  bsh  *    notice, this list of conditions and the following disclaimer in the
     16  1.1  bsh  *    documentation and/or other materials provided with the distribution.
     17  1.1  bsh  *
     18  1.1  bsh  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     19  1.1  bsh  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     20  1.1  bsh  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     21  1.1  bsh  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     22  1.1  bsh  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     23  1.1  bsh  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     24  1.1  bsh  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     25  1.1  bsh  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     26  1.1  bsh  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     27  1.1  bsh  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     28  1.1  bsh  * POSSIBILITY OF SUCH DAMAGE.
     29  1.1  bsh  */
     30  1.1  bsh 
     31  1.1  bsh #ifndef _ARM_IMX_IMX51REG_H_
     32  1.1  bsh #define	_ARM_IMX_IMX51REG_H_
     33  1.1  bsh 
     34  1.1  bsh #define	BOOTROM_BASE	0x00000000
     35  1.1  bsh #define	BOOTROM_SIZE	0x9000
     36  1.1  bsh 
     37  1.1  bsh #define	SCCRAM_BASE	0x1ffe0000
     38  1.1  bsh #define	SCCRAM_SIZE	0x20000
     39  1.1  bsh 
     40  1.1  bsh #define	GPUMEM_BASE	0x20000000
     41  1.1  bsh #define	GPUMEM_SIZE	0x20000
     42  1.1  bsh 
     43  1.1  bsh #define	GPU_BASE	0x30000000
     44  1.1  bsh #define	GPU_SIZE	0x10000000
     45  1.1  bsh 
     46  1.4  bsh /* Image Prossasing Unit */
     47  1.4  bsh #define	IPU_BASE	0x40000000
     48  1.4  bsh #define	IPU_CM_BASE	(IPU_BASE + 0x1e000000)
     49  1.4  bsh #define	IPU_CM_SIZE	0x8000
     50  1.4  bsh #define	IPU_IDMAC_BASE	(IPU_BASE + 0x1e008000)
     51  1.4  bsh #define	IPU_IDMAC_SIZE	0x8000
     52  1.4  bsh #define	IPU_DP_BASE	(IPU_BASE + 0x1e018000)
     53  1.4  bsh #define	IPU_DP_SIZE	0x8000
     54  1.4  bsh #define	IPU_IC_BASE	(IPU_BASE + 0x1e020000)
     55  1.4  bsh #define	IPU_IC_SIZE	0x8000
     56  1.4  bsh #define	IPU_IRT_BASE	(IPU_BASE + 0x1e028000)
     57  1.4  bsh #define	IPU_IRT_SIZE	0x8000
     58  1.4  bsh #define	IPU_CSI0_BASE	(IPU_BASE + 0x1e030000)
     59  1.4  bsh #define	IPU_CSI0_SIZE	0x8000
     60  1.4  bsh #define	IPU_CSI1_BASE	(IPU_BASE + 0x1e038000)
     61  1.4  bsh #define	IPU_CSI1_SIZE	0x8000
     62  1.4  bsh #define	IPU_DI0_BASE	(IPU_BASE + 0x1e040000)
     63  1.4  bsh #define	IPU_DI0_SIZE	0x8000
     64  1.4  bsh #define	IPU_DI1_BASE	(IPU_BASE + 0x1e048000)
     65  1.4  bsh #define	IPU_DI1_SIZE	0x8000
     66  1.4  bsh #define	IPU_SMFC_BASE	(IPU_BASE + 0x1e050000)
     67  1.4  bsh #define	IPU_SMFC_SIZE	0x8000
     68  1.4  bsh #define	IPU_DC_BASE	(IPU_BASE + 0x1e058000)
     69  1.4  bsh #define	IPU_DC_SIZE	0x8000
     70  1.4  bsh #define	IPU_DMFC_BASE	(IPU_BASE + 0x1e060000)
     71  1.4  bsh #define	IPU_DMFC_SIZE	0x8000
     72  1.4  bsh #define	IPU_VDI_BASE	(IPU_BASE + 0x1e068000)
     73  1.4  bsh #define	IPU_VDI_SIZE	0x8000
     74  1.4  bsh #define	IPU_CPMEM_BASE	(IPU_BASE + 0x1f000000)
     75  1.4  bsh #define	IPU_CPMEM_SIZE	0x20000
     76  1.4  bsh #define	IPU_LUT_BASE	(IPU_BASE + 0x1f020000)
     77  1.4  bsh #define	IPU_LUT_SIZE	0x20000
     78  1.4  bsh #define	IPU_SRM_BASE	(IPU_BASE + 0x1f040000)
     79  1.4  bsh #define	IPU_SRM_SIZE	0x20000
     80  1.4  bsh #define	IPU_TPM_BASE	(IPU_BASE + 0x1f060000)
     81  1.4  bsh #define	IPU_TPM_SIZE	0x20000
     82  1.4  bsh #define	IPU_DCTMPL_BASE	(IPU_BASE + 0x1f080000)
     83  1.4  bsh #define	IPU_DCTMPL_SIZE	0x20000
     84  1.1  bsh 
     85  1.1  bsh #define	DEBUGROM_BASE	0x60000000
     86  1.1  bsh #define	DEBUGROM_SIZE	0x1000
     87  1.1  bsh 
     88  1.1  bsh #define	ESDHC1_BASE	0x70004000
     89  1.1  bsh #define	ESDHC2_BASE	0x70008000
     90  1.1  bsh #define	ESDHC3_BASE	0x70020000
     91  1.1  bsh #define	ESDHC4_BASE	0x70024000
     92  1.1  bsh #define	ESDHC_SIZE	0x4000
     93  1.1  bsh 
     94  1.1  bsh #define	UART1_BASE	0x73fbc000
     95  1.1  bsh #define	UART2_BASE	0x73fc0000
     96  1.1  bsh #define	UART3_BASE	0x7000c000
     97  1.1  bsh /* register definitions in imxuartreg.h */
     98  1.1  bsh 
     99  1.1  bsh #define	ECSPI1_BASE	0x70010000
    100  1.1  bsh #define	ECSPI2_BASE	0x83fac000
    101  1.1  bsh #define	ECSPI_SIZE	0x4000
    102  1.1  bsh 
    103  1.1  bsh #define	SSI1_BASE	0x83fcc000
    104  1.1  bsh #define	SSI2_BASE	0x70014000
    105  1.1  bsh #define	SSI3_BASE	0x83fe8000
    106  1.1  bsh /* register definitions in imxssireg.h */
    107  1.1  bsh 
    108  1.1  bsh #define	SPDIF_BASE	0x70028000
    109  1.1  bsh #define	SPDIF_SIZE	0x4000
    110  1.1  bsh 
    111  1.1  bsh #define	PATA_UDMA_BASE	0x70030000
    112  1.1  bsh #define	PATA_UDMA_SIZE	0x4000
    113  1.1  bsh #define	PATA_PIO_BASE	0x83fe0000
    114  1.1  bsh #define	PATA_PIO_SIZE	0x4000
    115  1.1  bsh 
    116  1.1  bsh #define	SLM_BASE	0x70034000
    117  1.1  bsh #define	SLM_SIZE	0x4000
    118  1.1  bsh 
    119  1.1  bsh #define	HSI2C_BASE	0x70038000
    120  1.1  bsh #define	HSI2C_SIZE	0x4000
    121  1.1  bsh 
    122  1.1  bsh #define	SPBA_BASE	0x7003c000
    123  1.1  bsh #define	SPBA_SIZE	0x4000
    124  1.1  bsh 
    125  1.1  bsh #define	USBOH3_BASE	0x73f80000
    126  1.1  bsh #define	USBOH3_PL301_BASE	0x73fc4000
    127  1.2  bsh #define	USBOH3_EHCI_SIZE	0x200
    128  1.2  bsh #define	USBOH3_OTG	0x000
    129  1.2  bsh #define	USBOH3_EHCI(n)	(USBOH3_EHCI_SIZE*(n))	/* n=1,2,3 */
    130  1.2  bsh 
    131  1.2  bsh /* USB_CTRL register */
    132  1.2  bsh #define	USBOH3_USBCTRL   	0x800
    133  1.2  bsh #define	 USBCTRL_OWIR	__BIT(31)	/* OTG Wakeup interrupt request */
    134  1.2  bsh #define	 USBCTRL_OSIC_SHIFT	29
    135  1.2  bsh #define	 USBCTRL_OSIC	__BITS(29,30)	/* OTG Serial interface configuration */
    136  1.2  bsh #define	 USBCTRL_OUIE	__BIT(28)	/* OTG Wake-up interrupt enable */
    137  1.2  bsh #define	 USBCTRL_OBPAL	__BITS(25,26)	/* OTG Bypass value */
    138  1.2  bsh #define	 USBCTRL_OPM	__BIT(24)	/* OTG Power Mask */
    139  1.2  bsh #define	 USBCTRL_ICVOL	__BIT(23)	/* Host1 IC_USB voltage status */
    140  1.2  bsh #define	 USBCTRL_ICTPIE	__BIT(19)	/* IC USB TP interrupt enable */
    141  1.2  bsh #define	 USBCTRL_UBPCKE	__BIT(18)	/* Bypass clock enable */
    142  1.2  bsh #define	 USBCTRL_H1TCKOEN __BIT(17)	/* Host1 ULPO PHY clock enable */
    143  1.2  bsh #define	 USBCTRL_ICTPC	__BIT(16)	/* Clear IC TP interrupt flag */
    144  1.2  bsh #define	 USBCTRL_H1WIR	__BIT(15)	/* Host1 wakeup interrupt request */
    145  1.2  bsh #define	 USBCTRL_H1STC_SHIFT	13
    146  1.2  bsh #define	 USBCTRL_H1SIC	__BITS(13,14)	/* Host1 serial interface config */
    147  1.2  bsh #define	 USBCTRL_H1UIE	__BIT(12)	/* Host1 ILPI interrupt enable */
    148  1.2  bsh #define	 USBCTRL_H1WIE	__BIT(11)	/* Host1 wakeup interrupt enable */
    149  1.2  bsh #define	 USBCTRL_H1BPVAL __BITS(9,10)	/* Host1 bypass value */
    150  1.2  bsh #define	 USBCTRL_H1PM	__BIT(8)	/* Host1 power mask */
    151  1.2  bsh #define	 USBCTRL_OHSTLL	__BIT(7)	/* OTG ULPI TLL enable */
    152  1.2  bsh #define	 USBCTRL_H1HSTLL __BIT(6)	/* Host1 ULPI TLL enable */
    153  1.2  bsh #define	 USBCTRL_H1DISFSTTL __BIT(4)	/* Host1 serial TLL disable */
    154  1.2  bsh #define	 USBCTRL_OTCKOEN __BIT(1)	/* OTG ULPI PHY clock enable */
    155  1.2  bsh #define	 USBCTRL_BPE	__BIT(0)	/* Bypass enable */
    156  1.2  bsh 
    157  1.2  bsh #define	USBOH3_OTGMIRROR	0x804
    158  1.2  bsh #define	USBOH3_PHYCTRL0  	0x808
    159  1.2  bsh #define	 PHYCTRL0_VLOAD		__BIT(31)
    160  1.2  bsh #define	 PHYCTRL0_VCONTROL	__BITS(27,30)
    161  1.2  bsh #define	 PHYCTRL0_CONF2		__BIT(26)
    162  1.2  bsh #define	 PHYCTRL0_CONF3		__BIT(25)
    163  1.2  bsh #define	 PHYCTRL0_CHGRDETEN	__BIT(24)
    164  1.2  bsh #define	 PHYCTRL0_CHGRDETON	__BIT(23)
    165  1.2  bsh #define	 PHYCTRL0_VSTATUS	__BITS(15,22)
    166  1.2  bsh #define	 PHYCTRL0_SUSPENDM	__BIT(12)
    167  1.2  bsh #define	 PHYCTRL0_RESET		__BIT(11)
    168  1.2  bsh #define	 PHYCTRL0_UTMI_ON_CLOCK	__BIT(10)
    169  1.2  bsh #define	 PHYCTRL0_OTG_OVER_CUR_POL	__BIT(9)
    170  1.2  bsh #define	 PHYCTRL0_OTG_OVER_CUR_DIS	__BIT(8)
    171  1.2  bsh #define	 PHYCTRL0_OTG_XCVR_CLK_SEL	__BIT(7)
    172  1.2  bsh #define	 PHYCTRL0_H1_XCVR_CLK_SEL	__BIT(4)
    173  1.2  bsh #define	 PHYCTRL0_PWR_POL		__BIT(3)
    174  1.2  bsh #define	 PHYCTRL0_CHRGDET		__BIT(2)
    175  1.2  bsh #define	 PHYCTRL0_CHRGDET_INT_EN	__BIT(1)
    176  1.2  bsh #define	 PHYCTRL0_CHRGDET_INT_FLG	__BIT(0)
    177  1.2  bsh 
    178  1.2  bsh #define	USBOH3_PHYCTRL1  	0x80c
    179  1.2  bsh #define	 PHYCTRL1_PLLDIVVALUE_MASK	__BITS(0,1)
    180  1.2  bsh #define	 PHYCTRL1_PLLDIVVALUE_19MHZ	0	/* 19.2MHz */
    181  1.2  bsh #define	 PHYCTRL1_PLLDIVVALUE_24MHZ	1
    182  1.2  bsh #define	 PHYCTRL1_PLLDIVVALUE_26MHZ	2
    183  1.2  bsh #define	 PHYCTRL1_PLLDIVVALUE_27MHZ	3
    184  1.2  bsh #define	USBOH3_USBCTRL1  	0x810
    185  1.2  bsh #define	 USBCTRL1_UH3_EXT_CLK_EN	__BIT(27)
    186  1.2  bsh #define	 USBCTRL1_UH2_EXT_CLK_EN	__BIT(26)
    187  1.2  bsh #define	 USBCTRL1_UH1_EXT_CLK_EN	__BIT(25)
    188  1.2  bsh #define	 USBCTRL1_OTG_EXT_CLK_EN	__BIT(24)
    189  1.2  bsh #define	USBOH3_USBCTRL2  	0x814
    190  1.2  bsh #define	USBOH3_USBCTRL3  	0x818
    191  1.1  bsh 
    192  1.2  bsh #define	USBOH3_SIZE	0x820
    193  1.1  bsh 
    194  1.1  bsh /* GPIO module */
    195  1.1  bsh 
    196  1.1  bsh #define	GPIO_BASE(n)	(0x73f84000 + 0x4000 * ((n)-1))
    197  1.1  bsh 
    198  1.1  bsh #define	GPIO1_BASE	GPIO_BASE(1)
    199  1.1  bsh #define	GPIO2_BASE	GPIO_BASE(2)
    200  1.1  bsh #define	GPIO3_BASE	GPIO_BASE(3)
    201  1.1  bsh #define	GPIO4_BASE	GPIO_BASE(4)
    202  1.1  bsh 
    203  1.2  bsh #define	GPIO_NGROUPS		4
    204  1.1  bsh 
    205  1.1  bsh #define	KPP_BASE	0x73f94000
    206  1.1  bsh /* register definitions in imxkppreg.h */
    207  1.1  bsh 
    208  1.1  bsh #define	WDOG1_BASE	0x73f98000
    209  1.1  bsh #define	WDOG2_BASE	0x73f9c000
    210  1.2  bsh #define	WDOG_SIZE	0x000a
    211  1.1  bsh 
    212  1.1  bsh #define	GPT_BASE	0x73fa0000
    213  1.1  bsh #define	GPT_SIZE	0x4000
    214  1.1  bsh 
    215  1.1  bsh #define	SRTC_BASE	0x73fa4000
    216  1.1  bsh #define	SRTC_SIZE	0x4000
    217  1.1  bsh 
    218  1.1  bsh /* IO multiplexor */
    219  1.1  bsh #define	IOMUXC_BASE	0x73fa8000
    220  1.1  bsh #define	IOMUXC_SIZE	0x4000
    221  1.1  bsh 
    222  1.1  bsh #define	IOMUXC_MUX_CTL		0x001c		/* multiprex control */
    223  1.3  bsh #define	 IOMUX_CONFIG_SION	__BIT(4)
    224  1.1  bsh #define	 IOMUX_CONFIG_ALT0	(0)
    225  1.1  bsh #define	 IOMUX_CONFIG_ALT1	(1)
    226  1.1  bsh #define	 IOMUX_CONFIG_ALT2	(2)
    227  1.1  bsh #define	 IOMUX_CONFIG_ALT3	(3)
    228  1.1  bsh #define	 IOMUX_CONFIG_ALT4	(4)
    229  1.1  bsh #define	 IOMUX_CONFIG_ALT5	(5)
    230  1.1  bsh #define	 IOMUX_CONFIG_ALT6	(6)
    231  1.1  bsh #define	 IOMUX_CONFIG_ALT7	(7)
    232  1.1  bsh #define	IOMUXC_PAD_CTL		0x03f0		/* pad control */
    233  1.3  bsh #define	 PAD_CTL_HVE		__BIT(13)
    234  1.2  bsh #define	 PAD_CTL_DDR_INPUT	__BIT(9)
    235  1.2  bsh #define	 PAD_CTL_HYS		__BIT(8)
    236  1.2  bsh #define	 PAD_CTL_PKE		__BIT(7)
    237  1.2  bsh #define	 PAD_CTL_PUE		__BIT(6)
    238  1.2  bsh #define	 PAD_CTL_PULL		(PAD_CTL_PKE|PAD_CTL_PUE)
    239  1.2  bsh #define	 PAD_CTL_KEEPER		(PAD_CTL_PKE|0)
    240  1.1  bsh #define	 PAD_CTL_PUS_100K_PD	(0x0 << 4)
    241  1.1  bsh #define	 PAD_CTL_PUS_47K_PU	(0x1 << 4)
    242  1.1  bsh #define	 PAD_CTL_PUS_100K_PU	(0x2 << 4)
    243  1.1  bsh #define	 PAD_CTL_PUS_22K_PU	(0x3 << 4)
    244  1.2  bsh #define	 PAD_CTL_ODE		__BIT(3)	/* opendrain */
    245  1.1  bsh #define	 PAD_CTL_DSE_LOW	(0x0 << 1)
    246  1.1  bsh #define	 PAD_CTL_DSE_MID	(0x1 << 1)
    247  1.1  bsh #define	 PAD_CTL_DSE_HIGH	(0x2 << 1)
    248  1.1  bsh #define	 PAD_CTL_DSE_MAX	(0x3 << 1)
    249  1.2  bsh #define	 PAD_CTL_SRE		__BIT(0)
    250  1.1  bsh #define	IOMUXC_INPUT_CTL	0x08c4		/* input control */
    251  1.1  bsh #define	 INPUT_DAISY_0		0
    252  1.1  bsh #define	 INPUT_DAISY_1		1
    253  1.1  bsh #define	 INPUT_DAISY_2		2
    254  1.1  bsh #define	 INPUT_DAISY_3		3
    255  1.1  bsh #define	 INPUT_DAISY_4		4
    256  1.1  bsh #define	 INPUT_DAISY_5		5
    257  1.1  bsh #define	 INPUT_DAISY_6		6
    258  1.1  bsh #define	 INPUT_DAISY_7		7
    259  1.1  bsh 
    260  1.1  bsh /*
    261  1.1  bsh  * IOMUX index
    262  1.1  bsh  */
    263  1.1  bsh #define	IOMUX_PIN_TO_MUX_ADDRESS(pin)	(((pin) >> 16) & 0xffff)
    264  1.1  bsh #define	IOMUX_PIN_TO_PAD_ADDRESS(pin)	(((pin) >>  0) & 0xffff)
    265  1.1  bsh 
    266  1.1  bsh #define	IOMUX_PIN(mux_adr, pad_adr)			\
    267  1.1  bsh 	(((mux_adr) << 16) | (((pad_adr) << 0)))
    268  1.1  bsh #define	IOMUX_MUX_NONE	0xffff
    269  1.1  bsh #define	IOMUX_PAD_NONE	0xffff
    270  1.1  bsh 
    271  1.1  bsh /* EPIT */
    272  1.1  bsh #define	EPIT1_BASE	0x73FAC000
    273  1.1  bsh #define	EPIT2_BASE	0x73FB0000
    274  1.1  bsh /* register definitions in imxepitreg.h */
    275  1.1  bsh 
    276  1.1  bsh #define	PWM1_BASE	0x73fb4000
    277  1.1  bsh #define	PWM2_BASE	0x73fb8000
    278  1.1  bsh #define	PWM_SIZE	0x4000
    279  1.1  bsh 
    280  1.1  bsh #define	SRC_BASE	0x73fd0000
    281  1.1  bsh #define	SRC_SIZE	0x4000
    282  1.1  bsh 
    283  1.1  bsh #define	CCM_BASE	0x73fd4000
    284  1.2  bsh #define	CCM_SIZE	0x0088
    285  1.1  bsh 
    286  1.1  bsh #define	GPC_BASE	0x73fd8000
    287  1.1  bsh #define	GPC_SIZE	0x4000
    288  1.1  bsh 
    289  1.1  bsh #define	DPLLIP1_BASE	0x83f80000
    290  1.1  bsh #define	DPLLIP2_BASE	0x83f84000
    291  1.1  bsh #define	DPLLIP3_BASE	0x83f88000
    292  1.1  bsh #define	DPLLIP_SIZE	0x4000
    293  1.1  bsh 
    294  1.1  bsh #define	AHBMAX_BASE	0x83f94000
    295  1.1  bsh #define	AHBMAX_SIZE	0x4000
    296  1.1  bsh 
    297  1.1  bsh #define	IIM_BASE	0x83f98000
    298  1.1  bsh #define	IIM_SIZE	0x4000
    299  1.1  bsh 
    300  1.1  bsh #define	CSU_BASE	0x83f9c000
    301  1.1  bsh #define	CSU_SIZE	0x4000
    302  1.1  bsh 
    303  1.1  bsh #define	OWIRE_BASE	0x83fa4000	/* 1-wire */
    304  1.1  bsh #define	OWIRE_SIZE	0x4000
    305  1.1  bsh 
    306  1.1  bsh #define	FIRI_BASE	0x83fa8000
    307  1.1  bsh #define	FIRI_SIZE	0x4000
    308  1.1  bsh 
    309  1.1  bsh 
    310  1.1  bsh #define	SDMA_BASE	0x83fb0000
    311  1.1  bsh #define	SDMA_SIZE	0x4000
    312  1.1  bsh /* see imxsdmareg.h for register definitions */
    313  1.1  bsh 
    314  1.1  bsh #define	SCC_BASE	0x83fb4000
    315  1.1  bsh #define	SCC_SIZE	0x4000
    316  1.1  bsh 
    317  1.1  bsh #define	ROMCP_BASE	0x83fb8000
    318  1.1  bsh #define	ROMCP_SIZE	0x4000
    319  1.1  bsh 
    320  1.1  bsh #define	RTIC_BASE	0x83fbc000
    321  1.1  bsh #define	RTIC_SIZE	0x4000
    322  1.1  bsh 
    323  1.1  bsh #define	CSPI_BASE	0x83fc0000
    324  1.1  bsh #define	CSPI_SIZE	0x4000
    325  1.1  bsh 
    326  1.1  bsh #define	I2C1_BASE	0x83fc8000
    327  1.1  bsh #define	I2C2_BASE	0x83fc4000
    328  1.1  bsh /* register definitions in imxi2creg.h */
    329  1.1  bsh 
    330  1.1  bsh #define	AUDMUX_BASE	0x83fd0000
    331  1.1  bsh #define	AUDMUX_SIZE	0x4000
    332  1.1  bsh #define	AUDMUX_PTCR(n)	((n - 1) * 0x8)
    333  1.1  bsh #define	 PTCR_TFSDIR	(1 << 31)
    334  1.1  bsh #define	 PTCR_TFSEL(x)	(((x) & 0x7) << 27)
    335  1.1  bsh #define	 PTCR_TCLKDIR	(1 << 26)
    336  1.1  bsh #define	 PTCR_TCSEL(x)	(((x) & 0x7) << 22)
    337  1.1  bsh #define	 PTCR_RFSDIR	(1 << 21)
    338  1.1  bsh #define	 PTCR_RFSEL(x)	(((x) & 0x7) << 17)
    339  1.1  bsh #define	 PTCR_RCLKDIR	(1 << 16)
    340  1.1  bsh #define	 PTCR_RCSEL(x)	(((x) & 0x7) << 12)
    341  1.1  bsh #define	 PTCR_SYN	(1 << 11)
    342  1.1  bsh 
    343  1.1  bsh #define	AUDMUX_PDCR(n)	((n - 1) * 0x8 + 0x4)
    344  1.1  bsh #define	 PDCR_RXDSEL(x)	(((x) & 0x7) << 13)
    345  1.1  bsh #define	 PDCR_TXRXEN	(1 << 12)
    346  1.1  bsh #define	 PDCR_MODE(x)	(((x) & 0x3) << 8)
    347  1.1  bsh #define	 PDCR_INMMASK(x)	(((x) & 0xff) << 0)
    348  1.1  bsh #define	AUDMUX_CNMCR	0x38
    349  1.1  bsh 
    350  1.1  bsh #define	EMI_BASE	0x83fd8000
    351  1.1  bsh #define	EMI_SIZE	0x4000
    352  1.1  bsh 
    353  1.1  bsh #define	SIM_BASE	0x83fe4000
    354  1.1  bsh #define	SIM_SIZE	0x4000
    355  1.1  bsh 
    356  1.1  bsh #define	FEC_BASE	0x83fec000
    357  1.1  bsh #define	FEC_SIZE	0x4000
    358  1.1  bsh #define	TVE_BASE	0x83ff0000
    359  1.1  bsh #define	TVE_SIZE	0x4000
    360  1.1  bsh #define	VPU_BASE	0x83ff4000
    361  1.1  bsh #define	VPU_SIZE	0x4000
    362  1.1  bsh #define	SAHARA_BASE	0x83ff8000
    363  1.1  bsh #define	SAHARA_SIZE	0x4000
    364  1.1  bsh 
    365  1.1  bsh #define	CSD0DDR_BASE	0x90000000
    366  1.1  bsh #define	CSD1DDR_BASE	0xa0000000
    367  1.1  bsh #define	CSDDDR_SIZE	0x10000000	/* 256MiB */
    368  1.1  bsh #define	CS0_BASE	0xb0000000
    369  1.1  bsh #define	CS0_SIZE	0x08000000	/* 128MiB */
    370  1.1  bsh #define	CS1_BASE	0xb8000000
    371  1.1  bsh #define	CS1_SIZE	0x08000000	/* 128MiB */
    372  1.1  bsh #define	CS2_BASE	0xc0000000
    373  1.1  bsh #define	CS2_SIZE	0x08000000	/* 128MiB */
    374  1.1  bsh #define	CS3_BASE	0xc8000000
    375  1.1  bsh #define	CS3_SIZE	0x04000000	/* 64MiB */
    376  1.1  bsh #define	CS4_BASE	0xcc000000
    377  1.1  bsh #define	CS4_SIZE	0x02000000	/* 32MiB */
    378  1.1  bsh #define	CS5_BASE	0xcefe0000
    379  1.1  bsh #define	CS5_SIZE	0x00010000	/* 32MiB */
    380  1.1  bsh #define	NAND_FLASH_BASE	0xcfff0000	/* internal buffer */
    381  1.1  bsh #define	NAND_FLASH_SIZE	0x00010000
    382  1.1  bsh 
    383  1.1  bsh #define	GPU2D_BASE	0xd0000000
    384  1.1  bsh #define	GPU2D_SIZE	0x10000000
    385  1.1  bsh 
    386  1.1  bsh #define	TZIC_BASE		0xe0000000
    387  1.1  bsh /* register definitions in imx51_tzicreg.h */
    388  1.1  bsh 
    389  1.1  bsh #endif /* _ARM_IMX_IMX51REG_H_ */
    390