diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-03-13 09:31:56 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2015-03-13 10:14:58 -0400 |
commit | 4a01f3a509bbfac6b38722807f4a7bd1933e1ee0 (patch) | |
tree | 77605f30f53a3ebd88a5c1ce81e2ad8eee2c03e6 /arch/arm/mach-imx | |
parent | 6869a22fcf10ba9e32ad9a6301ee3fe326625fd6 (diff) |
ARM: mx25: Remove "mx25.h" header file
As mx25 has been converted to a dt-only platform, we do not need the "mx25.h"
header file anymore.
Remove it and also clean up all the mx25 occurences from the platform helper
code.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/devices/platform-fec.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-imx-fb.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-imx-i2c.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-imx-keypad.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-imx-ssi.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-imx-uart.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-imx2-wdt.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-mx2-camera.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-mxc-ehci.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-mxc_nand.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices/platform-spi_imx.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-imx/hardware.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-imx/mx25.h | 117 |
14 files changed, 0 insertions, 202 deletions
diff --git a/arch/arm/mach-imx/devices/platform-fec.c b/arch/arm/mach-imx/devices/platform-fec.c index d86f9250b4ee..b403a4fe2892 100644 --- a/arch/arm/mach-imx/devices/platform-fec.c +++ b/arch/arm/mach-imx/devices/platform-fec.c | |||
@@ -19,11 +19,6 @@ | |||
19 | .irq = soc ## _INT_FEC, \ | 19 | .irq = soc ## _INT_FEC, \ |
20 | } | 20 | } |
21 | 21 | ||
22 | #ifdef CONFIG_SOC_IMX25 | ||
23 | const struct imx_fec_data imx25_fec_data __initconst = | ||
24 | imx_fec_data_entry_single(MX25, "imx25-fec"); | ||
25 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
26 | |||
27 | #ifdef CONFIG_SOC_IMX27 | 22 | #ifdef CONFIG_SOC_IMX27 |
28 | const struct imx_fec_data imx27_fec_data __initconst = | 23 | const struct imx_fec_data imx27_fec_data __initconst = |
29 | imx_fec_data_entry_single(MX27, "imx27-fec"); | 24 | imx_fec_data_entry_single(MX27, "imx27-fec"); |
diff --git a/arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c b/arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c index 23b0061347cb..25e1de6f3a47 100644 --- a/arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c +++ b/arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c | |||
@@ -18,11 +18,6 @@ | |||
18 | .irq = soc ## _INT_USB_OTG, \ | 18 | .irq = soc ## _INT_USB_OTG, \ |
19 | } | 19 | } |
20 | 20 | ||
21 | #ifdef CONFIG_SOC_IMX25 | ||
22 | const struct imx_fsl_usb2_udc_data imx25_fsl_usb2_udc_data __initconst = | ||
23 | imx_fsl_usb2_udc_data_entry_single(MX25, "imx-udc-mx27"); | ||
24 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
25 | |||
26 | #ifdef CONFIG_SOC_IMX27 | 21 | #ifdef CONFIG_SOC_IMX27 |
27 | const struct imx_fsl_usb2_udc_data imx27_fsl_usb2_udc_data __initconst = | 22 | const struct imx_fsl_usb2_udc_data imx27_fsl_usb2_udc_data __initconst = |
28 | imx_fsl_usb2_udc_data_entry_single(MX27, "imx-udc-mx27"); | 23 | imx_fsl_usb2_udc_data_entry_single(MX27, "imx-udc-mx27"); |
diff --git a/arch/arm/mach-imx/devices/platform-imx-fb.c b/arch/arm/mach-imx/devices/platform-imx-fb.c index 25a47c616b2d..7df6328306f9 100644 --- a/arch/arm/mach-imx/devices/platform-imx-fb.c +++ b/arch/arm/mach-imx/devices/platform-imx-fb.c | |||
@@ -29,11 +29,6 @@ const struct imx_imx_fb_data imx21_imx_fb_data __initconst = | |||
29 | imx_imx_fb_data_entry_single(MX21, "imx21-fb", SZ_4K); | 29 | imx_imx_fb_data_entry_single(MX21, "imx21-fb", SZ_4K); |
30 | #endif /* ifdef CONFIG_SOC_IMX21 */ | 30 | #endif /* ifdef CONFIG_SOC_IMX21 */ |
31 | 31 | ||
32 | #ifdef CONFIG_SOC_IMX25 | ||
33 | const struct imx_imx_fb_data imx25_imx_fb_data __initconst = | ||
34 | imx_imx_fb_data_entry_single(MX25, "imx21-fb", SZ_16K); | ||
35 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
36 | |||
37 | #ifdef CONFIG_SOC_IMX27 | 32 | #ifdef CONFIG_SOC_IMX27 |
38 | const struct imx_imx_fb_data imx27_imx_fb_data __initconst = | 33 | const struct imx_imx_fb_data imx27_imx_fb_data __initconst = |
39 | imx_imx_fb_data_entry_single(MX27, "imx21-fb", SZ_4K); | 34 | imx_imx_fb_data_entry_single(MX27, "imx21-fb", SZ_4K); |
diff --git a/arch/arm/mach-imx/devices/platform-imx-i2c.c b/arch/arm/mach-imx/devices/platform-imx-i2c.c index 644ac2689882..ae9791522fc8 100644 --- a/arch/arm/mach-imx/devices/platform-imx-i2c.c +++ b/arch/arm/mach-imx/devices/platform-imx-i2c.c | |||
@@ -31,16 +31,6 @@ const struct imx_imx_i2c_data imx21_imx_i2c_data __initconst = | |||
31 | imx_imx_i2c_data_entry_single(MX21, "imx21-i2c", 0, , SZ_4K); | 31 | imx_imx_i2c_data_entry_single(MX21, "imx21-i2c", 0, , SZ_4K); |
32 | #endif /* ifdef CONFIG_SOC_IMX21 */ | 32 | #endif /* ifdef CONFIG_SOC_IMX21 */ |
33 | 33 | ||
34 | #ifdef CONFIG_SOC_IMX25 | ||
35 | const struct imx_imx_i2c_data imx25_imx_i2c_data[] __initconst = { | ||
36 | #define imx25_imx_i2c_data_entry(_id, _hwid) \ | ||
37 | imx_imx_i2c_data_entry(MX25, "imx21-i2c", _id, _hwid, SZ_16K) | ||
38 | imx25_imx_i2c_data_entry(0, 1), | ||
39 | imx25_imx_i2c_data_entry(1, 2), | ||
40 | imx25_imx_i2c_data_entry(2, 3), | ||
41 | }; | ||
42 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
43 | |||
44 | #ifdef CONFIG_SOC_IMX27 | 34 | #ifdef CONFIG_SOC_IMX27 |
45 | const struct imx_imx_i2c_data imx27_imx_i2c_data[] __initconst = { | 35 | const struct imx_imx_i2c_data imx27_imx_i2c_data[] __initconst = { |
46 | #define imx27_imx_i2c_data_entry(_id, _hwid) \ | 36 | #define imx27_imx_i2c_data_entry(_id, _hwid) \ |
diff --git a/arch/arm/mach-imx/devices/platform-imx-keypad.c b/arch/arm/mach-imx/devices/platform-imx-keypad.c index f42200b7aca9..479e4d70dbf9 100644 --- a/arch/arm/mach-imx/devices/platform-imx-keypad.c +++ b/arch/arm/mach-imx/devices/platform-imx-keypad.c | |||
@@ -21,11 +21,6 @@ const struct imx_imx_keypad_data imx21_imx_keypad_data __initconst = | |||
21 | imx_imx_keypad_data_entry_single(MX21, SZ_16); | 21 | imx_imx_keypad_data_entry_single(MX21, SZ_16); |
22 | #endif /* ifdef CONFIG_SOC_IMX21 */ | 22 | #endif /* ifdef CONFIG_SOC_IMX21 */ |
23 | 23 | ||
24 | #ifdef CONFIG_SOC_IMX25 | ||
25 | const struct imx_imx_keypad_data imx25_imx_keypad_data __initconst = | ||
26 | imx_imx_keypad_data_entry_single(MX25, SZ_16K); | ||
27 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
28 | |||
29 | #ifdef CONFIG_SOC_IMX27 | 24 | #ifdef CONFIG_SOC_IMX27 |
30 | const struct imx_imx_keypad_data imx27_imx_keypad_data __initconst = | 25 | const struct imx_imx_keypad_data imx27_imx_keypad_data __initconst = |
31 | imx_imx_keypad_data_entry_single(MX27, SZ_16); | 26 | imx_imx_keypad_data_entry_single(MX27, SZ_16); |
diff --git a/arch/arm/mach-imx/devices/platform-imx-ssi.c b/arch/arm/mach-imx/devices/platform-imx-ssi.c index 1c7c721ebff1..6f0e94eb29ee 100644 --- a/arch/arm/mach-imx/devices/platform-imx-ssi.c +++ b/arch/arm/mach-imx/devices/platform-imx-ssi.c | |||
@@ -30,15 +30,6 @@ const struct imx_imx_ssi_data imx21_imx_ssi_data[] __initconst = { | |||
30 | }; | 30 | }; |
31 | #endif /* ifdef CONFIG_SOC_IMX21 */ | 31 | #endif /* ifdef CONFIG_SOC_IMX21 */ |
32 | 32 | ||
33 | #ifdef CONFIG_SOC_IMX25 | ||
34 | const struct imx_imx_ssi_data imx25_imx_ssi_data[] __initconst = { | ||
35 | #define imx25_imx_ssi_data_entry(_id, _hwid) \ | ||
36 | imx_imx_ssi_data_entry(MX25, _id, _hwid, SZ_4K) | ||
37 | imx25_imx_ssi_data_entry(0, 1), | ||
38 | imx25_imx_ssi_data_entry(1, 2), | ||
39 | }; | ||
40 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
41 | |||
42 | #ifdef CONFIG_SOC_IMX27 | 33 | #ifdef CONFIG_SOC_IMX27 |
43 | const struct imx_imx_ssi_data imx27_imx_ssi_data[] __initconst = { | 34 | const struct imx_imx_ssi_data imx27_imx_ssi_data[] __initconst = { |
44 | #define imx27_imx_ssi_data_entry(_id, _hwid) \ | 35 | #define imx27_imx_ssi_data_entry(_id, _hwid) \ |
diff --git a/arch/arm/mach-imx/devices/platform-imx-uart.c b/arch/arm/mach-imx/devices/platform-imx-uart.c index 8c01836bc1d4..6962cff4a950 100644 --- a/arch/arm/mach-imx/devices/platform-imx-uart.c +++ b/arch/arm/mach-imx/devices/platform-imx-uart.c | |||
@@ -47,18 +47,6 @@ const struct imx_imx_uart_1irq_data imx21_imx_uart_data[] __initconst = { | |||
47 | }; | 47 | }; |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | #ifdef CONFIG_SOC_IMX25 | ||
51 | const struct imx_imx_uart_1irq_data imx25_imx_uart_data[] __initconst = { | ||
52 | #define imx25_imx_uart_data_entry(_id, _hwid) \ | ||
53 | imx_imx_uart_1irq_data_entry(MX25, _id, _hwid, SZ_16K) | ||
54 | imx25_imx_uart_data_entry(0, 1), | ||
55 | imx25_imx_uart_data_entry(1, 2), | ||
56 | imx25_imx_uart_data_entry(2, 3), | ||
57 | imx25_imx_uart_data_entry(3, 4), | ||
58 | imx25_imx_uart_data_entry(4, 5), | ||
59 | }; | ||
60 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
61 | |||
62 | #ifdef CONFIG_SOC_IMX27 | 50 | #ifdef CONFIG_SOC_IMX27 |
63 | const struct imx_imx_uart_1irq_data imx27_imx_uart_data[] __initconst = { | 51 | const struct imx_imx_uart_1irq_data imx27_imx_uart_data[] __initconst = { |
64 | #define imx27_imx_uart_data_entry(_id, _hwid) \ | 52 | #define imx27_imx_uart_data_entry(_id, _hwid) \ |
diff --git a/arch/arm/mach-imx/devices/platform-imx2-wdt.c b/arch/arm/mach-imx/devices/platform-imx2-wdt.c index 54f63bc25ca4..8c134c8d7500 100644 --- a/arch/arm/mach-imx/devices/platform-imx2-wdt.c +++ b/arch/arm/mach-imx/devices/platform-imx2-wdt.c | |||
@@ -25,11 +25,6 @@ const struct imx_imx2_wdt_data imx21_imx2_wdt_data __initconst = | |||
25 | imx_imx2_wdt_data_entry_single(MX21, 0, , SZ_4K); | 25 | imx_imx2_wdt_data_entry_single(MX21, 0, , SZ_4K); |
26 | #endif /* ifdef CONFIG_SOC_IMX21 */ | 26 | #endif /* ifdef CONFIG_SOC_IMX21 */ |
27 | 27 | ||
28 | #ifdef CONFIG_SOC_IMX25 | ||
29 | const struct imx_imx2_wdt_data imx25_imx2_wdt_data __initconst = | ||
30 | imx_imx2_wdt_data_entry_single(MX25, 0, , SZ_16K); | ||
31 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
32 | |||
33 | #ifdef CONFIG_SOC_IMX27 | 28 | #ifdef CONFIG_SOC_IMX27 |
34 | const struct imx_imx2_wdt_data imx27_imx2_wdt_data __initconst = | 29 | const struct imx_imx2_wdt_data imx27_imx2_wdt_data __initconst = |
35 | imx_imx2_wdt_data_entry_single(MX27, 0, , SZ_4K); | 30 | imx_imx2_wdt_data_entry_single(MX27, 0, , SZ_4K); |
diff --git a/arch/arm/mach-imx/devices/platform-mx2-camera.c b/arch/arm/mach-imx/devices/platform-mx2-camera.c index b53e1f348f51..4c377c33242c 100644 --- a/arch/arm/mach-imx/devices/platform-mx2-camera.c +++ b/arch/arm/mach-imx/devices/platform-mx2-camera.c | |||
@@ -27,11 +27,6 @@ | |||
27 | .irqemmaprp = soc ## _INT_EMMAPRP, \ | 27 | .irqemmaprp = soc ## _INT_EMMAPRP, \ |
28 | } | 28 | } |
29 | 29 | ||
30 | #ifdef CONFIG_SOC_IMX25 | ||
31 | const struct imx_mx2_camera_data imx25_mx2_camera_data __initconst = | ||
32 | imx_mx2_camera_data_entry_single(MX25, "imx25-camera"); | ||
33 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
34 | |||
35 | #ifdef CONFIG_SOC_IMX27 | 30 | #ifdef CONFIG_SOC_IMX27 |
36 | const struct imx_mx2_camera_data imx27_mx2_camera_data __initconst = | 31 | const struct imx_mx2_camera_data imx27_mx2_camera_data __initconst = |
37 | imx_mx2_camera_data_entry_single_emma(MX27, "imx27-camera"); | 32 | imx_mx2_camera_data_entry_single_emma(MX27, "imx27-camera"); |
diff --git a/arch/arm/mach-imx/devices/platform-mxc-ehci.c b/arch/arm/mach-imx/devices/platform-mxc-ehci.c index 296353662ff0..4537abd2a8f2 100644 --- a/arch/arm/mach-imx/devices/platform-mxc-ehci.c +++ b/arch/arm/mach-imx/devices/platform-mxc-ehci.c | |||
@@ -18,13 +18,6 @@ | |||
18 | .irq = soc ## _INT_USB_ ## hs, \ | 18 | .irq = soc ## _INT_USB_ ## hs, \ |
19 | } | 19 | } |
20 | 20 | ||
21 | #ifdef CONFIG_SOC_IMX25 | ||
22 | const struct imx_mxc_ehci_data imx25_mxc_ehci_otg_data __initconst = | ||
23 | imx_mxc_ehci_data_entry_single(MX25, 0, OTG); | ||
24 | const struct imx_mxc_ehci_data imx25_mxc_ehci_hs_data __initconst = | ||
25 | imx_mxc_ehci_data_entry_single(MX25, 1, HS); | ||
26 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
27 | |||
28 | #ifdef CONFIG_SOC_IMX27 | 21 | #ifdef CONFIG_SOC_IMX27 |
29 | const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data __initconst = | 22 | const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data __initconst = |
30 | imx_mxc_ehci_data_entry_single(MX27, 0, OTG); | 23 | imx_mxc_ehci_data_entry_single(MX27, 0, OTG); |
diff --git a/arch/arm/mach-imx/devices/platform-mxc_nand.c b/arch/arm/mach-imx/devices/platform-mxc_nand.c index fa618a34f462..676df4920c7b 100644 --- a/arch/arm/mach-imx/devices/platform-mxc_nand.c +++ b/arch/arm/mach-imx/devices/platform-mxc_nand.c | |||
@@ -34,11 +34,6 @@ const struct imx_mxc_nand_data imx21_mxc_nand_data __initconst = | |||
34 | imx_mxc_nand_data_entry_single(MX21, "imx21-nand", SZ_4K); | 34 | imx_mxc_nand_data_entry_single(MX21, "imx21-nand", SZ_4K); |
35 | #endif /* ifdef CONFIG_SOC_IMX21 */ | 35 | #endif /* ifdef CONFIG_SOC_IMX21 */ |
36 | 36 | ||
37 | #ifdef CONFIG_SOC_IMX25 | ||
38 | const struct imx_mxc_nand_data imx25_mxc_nand_data __initconst = | ||
39 | imx_mxc_nand_data_entry_single(MX25, "imx25-nand", SZ_8K); | ||
40 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
41 | |||
42 | #ifdef CONFIG_SOC_IMX27 | 37 | #ifdef CONFIG_SOC_IMX27 |
43 | const struct imx_mxc_nand_data imx27_mxc_nand_data __initconst = | 38 | const struct imx_mxc_nand_data imx27_mxc_nand_data __initconst = |
44 | imx_mxc_nand_data_entry_single(MX27, "imx27-nand", SZ_4K); | 39 | imx_mxc_nand_data_entry_single(MX27, "imx27-nand", SZ_4K); |
diff --git a/arch/arm/mach-imx/devices/platform-spi_imx.c b/arch/arm/mach-imx/devices/platform-spi_imx.c index aca825d74c48..5e9707b47f92 100644 --- a/arch/arm/mach-imx/devices/platform-spi_imx.c +++ b/arch/arm/mach-imx/devices/platform-spi_imx.c | |||
@@ -39,17 +39,6 @@ const struct imx_spi_imx_data imx21_cspi_data[] __initconst = { | |||
39 | }; | 39 | }; |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #ifdef CONFIG_SOC_IMX25 | ||
43 | /* i.mx25 has the i.mx35 type cspi */ | ||
44 | const struct imx_spi_imx_data imx25_cspi_data[] __initconst = { | ||
45 | #define imx25_cspi_data_entry(_id, _hwid) \ | ||
46 | imx_spi_imx_data_entry(MX25, CSPI, "imx35-cspi", _id, _hwid, SZ_16K) | ||
47 | imx25_cspi_data_entry(0, 1), | ||
48 | imx25_cspi_data_entry(1, 2), | ||
49 | imx25_cspi_data_entry(2, 3), | ||
50 | }; | ||
51 | #endif /* ifdef CONFIG_SOC_IMX25 */ | ||
52 | |||
53 | #ifdef CONFIG_SOC_IMX27 | 42 | #ifdef CONFIG_SOC_IMX27 |
54 | const struct imx_spi_imx_data imx27_cspi_data[] __initconst = { | 43 | const struct imx_spi_imx_data imx27_cspi_data[] __initconst = { |
55 | #define imx27_cspi_data_entry(_id, _hwid) \ | 44 | #define imx27_cspi_data_entry(_id, _hwid) \ |
diff --git a/arch/arm/mach-imx/hardware.h b/arch/arm/mach-imx/hardware.h index 66b2b564c463..76af2c03c241 100644 --- a/arch/arm/mach-imx/hardware.h +++ b/arch/arm/mach-imx/hardware.h | |||
@@ -112,7 +112,6 @@ | |||
112 | #include "mx21.h" | 112 | #include "mx21.h" |
113 | #include "mx27.h" | 113 | #include "mx27.h" |
114 | #include "mx1.h" | 114 | #include "mx1.h" |
115 | #include "mx25.h" | ||
116 | 115 | ||
117 | #define imx_map_entry(soc, name, _type) { \ | 116 | #define imx_map_entry(soc, name, _type) { \ |
118 | .virtual = soc ## _IO_P2V(soc ## _ ## name ## _BASE_ADDR), \ | 117 | .virtual = soc ## _IO_P2V(soc ## _ ## name ## _BASE_ADDR), \ |
diff --git a/arch/arm/mach-imx/mx25.h b/arch/arm/mach-imx/mx25.h deleted file mode 100644 index ec466400a200..000000000000 --- a/arch/arm/mach-imx/mx25.h +++ /dev/null | |||
@@ -1,117 +0,0 @@ | |||
1 | #ifndef __MACH_MX25_H__ | ||
2 | #define __MACH_MX25_H__ | ||
3 | |||
4 | #define MX25_AIPS1_BASE_ADDR 0x43f00000 | ||
5 | #define MX25_AIPS1_SIZE SZ_1M | ||
6 | #define MX25_AIPS2_BASE_ADDR 0x53f00000 | ||
7 | #define MX25_AIPS2_SIZE SZ_1M | ||
8 | #define MX25_AVIC_BASE_ADDR 0x68000000 | ||
9 | #define MX25_AVIC_SIZE SZ_1M | ||
10 | |||
11 | #define MX25_I2C1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x80000) | ||
12 | #define MX25_I2C3_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x84000) | ||
13 | #define MX25_CAN1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x88000) | ||
14 | #define MX25_CAN2_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x8c000) | ||
15 | #define MX25_I2C2_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x98000) | ||
16 | #define MX25_CSPI1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xa4000) | ||
17 | #define MX25_IOMUXC_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xac000) | ||
18 | |||
19 | #define MX25_CRM_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x80000) | ||
20 | #define MX25_GPT1_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x90000) | ||
21 | #define MX25_GPIO4_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x9c000) | ||
22 | #define MX25_PWM2_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xa0000) | ||
23 | #define MX25_GPIO3_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xa4000) | ||
24 | #define MX25_PWM3_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xa8000) | ||
25 | #define MX25_PWM4_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xc8000) | ||
26 | #define MX25_GPIO1_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xcc000) | ||
27 | #define MX25_GPIO2_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xd0000) | ||
28 | #define MX25_WDOG_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xdc000) | ||
29 | #define MX25_PWM1_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xe0000) | ||
30 | |||
31 | #define MX25_UART1_BASE_ADDR 0x43f90000 | ||
32 | #define MX25_UART2_BASE_ADDR 0x43f94000 | ||
33 | #define MX25_AUDMUX_BASE_ADDR 0x43fb0000 | ||
34 | #define MX25_UART3_BASE_ADDR 0x5000c000 | ||
35 | #define MX25_UART4_BASE_ADDR 0x50008000 | ||
36 | #define MX25_UART5_BASE_ADDR 0x5002c000 | ||
37 | |||
38 | #define MX25_CSPI3_BASE_ADDR 0x50004000 | ||
39 | #define MX25_CSPI2_BASE_ADDR 0x50010000 | ||
40 | #define MX25_FEC_BASE_ADDR 0x50038000 | ||
41 | #define MX25_SSI2_BASE_ADDR 0x50014000 | ||
42 | #define MX25_SSI1_BASE_ADDR 0x50034000 | ||
43 | #define MX25_NFC_BASE_ADDR 0xbb000000 | ||
44 | #define MX25_IIM_BASE_ADDR 0x53ff0000 | ||
45 | #define MX25_DRYICE_BASE_ADDR 0x53ffc000 | ||
46 | #define MX25_ESDHC1_BASE_ADDR 0x53fb4000 | ||
47 | #define MX25_ESDHC2_BASE_ADDR 0x53fb8000 | ||
48 | #define MX25_LCDC_BASE_ADDR 0x53fbc000 | ||
49 | #define MX25_KPP_BASE_ADDR 0x43fa8000 | ||
50 | #define MX25_SDMA_BASE_ADDR 0x53fd4000 | ||
51 | #define MX25_USB_BASE_ADDR 0x53ff4000 | ||
52 | #define MX25_USB_OTG_BASE_ADDR (MX25_USB_BASE_ADDR + 0x0000) | ||
53 | /* | ||
54 | * The reference manual (IMX25RM, Rev. 1, 06/2009) specifies an offset of 0x200 | ||
55 | * for the host controller. Early documentation drafts specified 0x400 and | ||
56 | * Freescale internal sources confirm only the latter value to work. | ||
57 | */ | ||
58 | #define MX25_USB_HS_BASE_ADDR (MX25_USB_BASE_ADDR + 0x0400) | ||
59 | #define MX25_CSI_BASE_ADDR 0x53ff8000 | ||
60 | |||
61 | #define MX25_IO_P2V(x) IMX_IO_P2V(x) | ||
62 | #define MX25_IO_ADDRESS(x) IOMEM(MX25_IO_P2V(x)) | ||
63 | |||
64 | /* | ||
65 | * Interrupt numbers | ||
66 | */ | ||
67 | #include <asm/irq.h> | ||
68 | #define MX25_INT_CSPI3 (NR_IRQS_LEGACY + 0) | ||
69 | #define MX25_INT_I2C1 (NR_IRQS_LEGACY + 3) | ||
70 | #define MX25_INT_I2C2 (NR_IRQS_LEGACY + 4) | ||
71 | #define MX25_INT_UART4 (NR_IRQS_LEGACY + 5) | ||
72 | #define MX25_INT_ESDHC2 (NR_IRQS_LEGACY + 8) | ||
73 | #define MX25_INT_ESDHC1 (NR_IRQS_LEGACY + 9) | ||
74 | #define MX25_INT_I2C3 (NR_IRQS_LEGACY + 10) | ||
75 | #define MX25_INT_SSI2 (NR_IRQS_LEGACY + 11) | ||
76 | #define MX25_INT_SSI1 (NR_IRQS_LEGACY + 12) | ||
77 | #define MX25_INT_CSPI2 (NR_IRQS_LEGACY + 13) | ||
78 | #define MX25_INT_CSPI1 (NR_IRQS_LEGACY + 14) | ||
79 | #define MX25_INT_GPIO3 (NR_IRQS_LEGACY + 16) | ||
80 | #define MX25_INT_CSI (NR_IRQS_LEGACY + 17) | ||
81 | #define MX25_INT_UART3 (NR_IRQS_LEGACY + 18) | ||
82 | #define MX25_INT_GPIO4 (NR_IRQS_LEGACY + 23) | ||
83 | #define MX25_INT_KPP (NR_IRQS_LEGACY + 24) | ||
84 | #define MX25_INT_DRYICE (NR_IRQS_LEGACY + 25) | ||
85 | #define MX25_INT_PWM1 (NR_IRQS_LEGACY + 26) | ||
86 | #define MX25_INT_UART2 (NR_IRQS_LEGACY + 32) | ||
87 | #define MX25_INT_NFC (NR_IRQS_LEGACY + 33) | ||
88 | #define MX25_INT_SDMA (NR_IRQS_LEGACY + 34) | ||
89 | #define MX25_INT_USB_HS (NR_IRQS_LEGACY + 35) | ||
90 | #define MX25_INT_PWM2 (NR_IRQS_LEGACY + 36) | ||
91 | #define MX25_INT_USB_OTG (NR_IRQS_LEGACY + 37) | ||
92 | #define MX25_INT_LCDC (NR_IRQS_LEGACY + 39) | ||
93 | #define MX25_INT_UART5 (NR_IRQS_LEGACY + 40) | ||
94 | #define MX25_INT_PWM3 (NR_IRQS_LEGACY + 41) | ||
95 | #define MX25_INT_PWM4 (NR_IRQS_LEGACY + 42) | ||
96 | #define MX25_INT_CAN1 (NR_IRQS_LEGACY + 43) | ||
97 | #define MX25_INT_CAN2 (NR_IRQS_LEGACY + 44) | ||
98 | #define MX25_INT_UART1 (NR_IRQS_LEGACY + 45) | ||
99 | #define MX25_INT_GPIO2 (NR_IRQS_LEGACY + 51) | ||
100 | #define MX25_INT_GPIO1 (NR_IRQS_LEGACY + 52) | ||
101 | #define MX25_INT_GPT1 (NR_IRQS_LEGACY + 54) | ||
102 | #define MX25_INT_FEC (NR_IRQS_LEGACY + 57) | ||
103 | |||
104 | #define MX25_DMA_REQ_SSI2_RX1 22 | ||
105 | #define MX25_DMA_REQ_SSI2_TX1 23 | ||
106 | #define MX25_DMA_REQ_SSI2_RX0 24 | ||
107 | #define MX25_DMA_REQ_SSI2_TX0 25 | ||
108 | #define MX25_DMA_REQ_SSI1_RX1 26 | ||
109 | #define MX25_DMA_REQ_SSI1_TX1 27 | ||
110 | #define MX25_DMA_REQ_SSI1_RX0 28 | ||
111 | #define MX25_DMA_REQ_SSI1_TX0 29 | ||
112 | |||
113 | #ifndef __ASSEMBLY__ | ||
114 | extern int mx25_revision(void); | ||
115 | #endif | ||
116 | |||
117 | #endif /* ifndef __MACH_MX25_H__ */ | ||