diff options
Diffstat (limited to 'arch')
73 files changed, 1879 insertions, 3867 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ca64b4240271..35e6d6b5d7d1 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -669,7 +669,7 @@ config ARCH_MSM_NODT | |||
669 | (clock and power control, etc). | 669 | (clock and power control, etc). |
670 | 670 | ||
671 | config ARCH_SHMOBILE_LEGACY | 671 | config ARCH_SHMOBILE_LEGACY |
672 | bool "Renesas SH-Mobile / R-Mobile (non-multiplatform)" | 672 | bool "Renesas ARM SoCs (non-multiplatform)" |
673 | select ARCH_SHMOBILE | 673 | select ARCH_SHMOBILE |
674 | select ARM_PATCH_PHYS_VIRT | 674 | select ARM_PATCH_PHYS_VIRT |
675 | select CLKDEV_LOOKUP | 675 | select CLKDEV_LOOKUP |
@@ -685,8 +685,9 @@ config ARCH_SHMOBILE_LEGACY | |||
685 | select PM_GENERIC_DOMAINS if PM | 685 | select PM_GENERIC_DOMAINS if PM |
686 | select SPARSE_IRQ | 686 | select SPARSE_IRQ |
687 | help | 687 | help |
688 | Support for Renesas's SH-Mobile and R-Mobile ARM platforms using | 688 | Support for Renesas ARM SoC platforms using a non-multiplatform |
689 | a non-multiplatform kernel. | 689 | kernel. This includes the SH-Mobile, R-Mobile, EMMA-Mobile, R-Car |
690 | and RZ families. | ||
690 | 691 | ||
691 | config ARCH_RPC | 692 | config ARCH_RPC |
692 | bool "RiscPC" | 693 | bool "RiscPC" |
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faa38bcc7001..ede21c16fdc0 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -119,7 +119,8 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-cloudbox.dtb \ | |||
119 | dtb-$(CONFIG_ARCH_MARCO) += marco-evb.dtb | 119 | dtb-$(CONFIG_ARCH_MARCO) += marco-evb.dtb |
120 | dtb-$(CONFIG_ARCH_MOXART) += moxart-uc7112lx.dtb | 120 | dtb-$(CONFIG_ARCH_MOXART) += moxart-uc7112lx.dtb |
121 | dtb-$(CONFIG_ARCH_MSM) += qcom-msm8660-surf.dtb \ | 121 | dtb-$(CONFIG_ARCH_MSM) += qcom-msm8660-surf.dtb \ |
122 | qcom-msm8960-cdp.dtb | 122 | qcom-msm8960-cdp.dtb \ |
123 | qcom-apq8074-dragonboard.dtb | ||
123 | dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \ | 124 | dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \ |
124 | armada-370-mirabox.dtb \ | 125 | armada-370-mirabox.dtb \ |
125 | armada-370-netgear-rn102.dtb \ | 126 | armada-370-netgear-rn102.dtb \ |
@@ -188,12 +189,19 @@ dtb-$(CONFIG_ARCH_NSPIRE) += nspire-cx.dtb \ | |||
188 | nspire-tp.dtb \ | 189 | nspire-tp.dtb \ |
189 | nspire-clp.dtb | 190 | nspire-clp.dtb |
190 | dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \ | 191 | dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \ |
192 | omap2430-sdp.dtb \ | ||
193 | omap2420-n800.dtb \ | ||
194 | omap2420-n810.dtb \ | ||
195 | omap2420-n810-wimax.dtb \ | ||
191 | omap3430-sdp.dtb \ | 196 | omap3430-sdp.dtb \ |
192 | omap3-beagle.dtb \ | 197 | omap3-beagle.dtb \ |
198 | omap3-cm-t3730.dtb \ | ||
199 | omap3-sbc-t3730.dtb \ | ||
193 | omap3-devkit8000.dtb \ | 200 | omap3-devkit8000.dtb \ |
194 | omap3-beagle-xm.dtb \ | 201 | omap3-beagle-xm.dtb \ |
195 | omap3-evm.dtb \ | 202 | omap3-evm.dtb \ |
196 | omap3-evm-37xx.dtb \ | 203 | omap3-evm-37xx.dtb \ |
204 | omap3-ldp.dtb \ | ||
197 | omap3-n900.dtb \ | 205 | omap3-n900.dtb \ |
198 | omap3-n9.dtb \ | 206 | omap3-n9.dtb \ |
199 | omap3-n950.dtb \ | 207 | omap3-n950.dtb \ |
@@ -233,6 +241,7 @@ dtb-$(CONFIG_ARCH_S3C64XX) += s3c6410-mini6410.dtb \ | |||
233 | s3c6410-smdk6410.dtb | 241 | s3c6410-smdk6410.dtb |
234 | dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \ | 242 | dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \ |
235 | r7s72100-genmai.dtb \ | 243 | r7s72100-genmai.dtb \ |
244 | r7s72100-genmai-reference.dtb \ | ||
236 | r8a7740-armadillo800eva.dtb \ | 245 | r8a7740-armadillo800eva.dtb \ |
237 | r8a7778-bockw.dtb \ | 246 | r8a7778-bockw.dtb \ |
238 | r8a7778-bockw-reference.dtb \ | 247 | r8a7778-bockw-reference.dtb \ |
@@ -241,13 +250,15 @@ dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += emev2-kzm9d.dtb \ | |||
241 | r8a7779-marzen-reference.dtb \ | 250 | r8a7779-marzen-reference.dtb \ |
242 | r8a7791-koelsch.dtb \ | 251 | r8a7791-koelsch.dtb \ |
243 | r8a7790-lager.dtb \ | 252 | r8a7790-lager.dtb \ |
244 | r8a7790-lager-reference.dtb \ | ||
245 | sh73a0-kzm9g.dtb \ | 253 | sh73a0-kzm9g.dtb \ |
246 | sh73a0-kzm9g-reference.dtb \ | 254 | sh73a0-kzm9g-reference.dtb \ |
247 | r8a73a4-ape6evm.dtb \ | 255 | r8a73a4-ape6evm.dtb \ |
248 | r8a73a4-ape6evm-reference.dtb \ | 256 | r8a73a4-ape6evm-reference.dtb \ |
249 | sh7372-mackerel.dtb | 257 | sh7372-mackerel.dtb |
250 | dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb | 258 | dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb \ |
259 | r7s72100-genmai-reference.dtb \ | ||
260 | r8a7791-koelsch.dtb \ | ||
261 | r8a7790-lager.dtb | ||
251 | dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_arria5_socdk.dtb \ | 262 | dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_arria5_socdk.dtb \ |
252 | socfpga_cyclone5_socdk.dtb \ | 263 | socfpga_cyclone5_socdk.dtb \ |
253 | socfpga_cyclone5_sockit.dtb \ | 264 | socfpga_cyclone5_sockit.dtb \ |
diff --git a/arch/arm/boot/dts/am3517-evm.dts b/arch/arm/boot/dts/am3517-evm.dts index 03fcbf0a88a8..b4127c6493a2 100644 --- a/arch/arm/boot/dts/am3517-evm.dts +++ b/arch/arm/boot/dts/am3517-evm.dts | |||
@@ -17,6 +17,21 @@ | |||
17 | device_type = "memory"; | 17 | device_type = "memory"; |
18 | reg = <0x80000000 0x10000000>; /* 256 MB */ | 18 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
19 | }; | 19 | }; |
20 | |||
21 | vmmc_fixed: vmmc { | ||
22 | compatible = "regulator-fixed"; | ||
23 | regulator-name = "vmmc_fixed"; | ||
24 | regulator-min-microvolt = <3300000>; | ||
25 | regulator-max-microvolt = <3300000>; | ||
26 | }; | ||
27 | }; | ||
28 | |||
29 | &davinci_emac { | ||
30 | status = "okay"; | ||
31 | }; | ||
32 | |||
33 | &davinci_mdio { | ||
34 | status = "okay"; | ||
20 | }; | 35 | }; |
21 | 36 | ||
22 | &i2c1 { | 37 | &i2c1 { |
@@ -30,3 +45,17 @@ | |||
30 | &i2c3 { | 45 | &i2c3 { |
31 | clock-frequency = <400000>; | 46 | clock-frequency = <400000>; |
32 | }; | 47 | }; |
48 | |||
49 | &mmc1 { | ||
50 | vmmc-supply = <&vmmc_fixed>; | ||
51 | bus-width = <4>; | ||
52 | }; | ||
53 | |||
54 | &mmc2 { | ||
55 | status = "disabled"; | ||
56 | }; | ||
57 | |||
58 | &mmc3 { | ||
59 | status = "disabled"; | ||
60 | }; | ||
61 | |||
diff --git a/arch/arm/boot/dts/omap2.dtsi b/arch/arm/boot/dts/omap2.dtsi index d0c5b37e248c..5377ddf83bf8 100644 --- a/arch/arm/boot/dts/omap2.dtsi +++ b/arch/arm/boot/dts/omap2.dtsi | |||
@@ -145,7 +145,7 @@ | |||
145 | compatible = "ti,omap2-rng"; | 145 | compatible = "ti,omap2-rng"; |
146 | ti,hwmods = "rng"; | 146 | ti,hwmods = "rng"; |
147 | reg = <0x480a0000 0x50>; | 147 | reg = <0x480a0000 0x50>; |
148 | interrupts = <36>; | 148 | interrupts = <52>; |
149 | }; | 149 | }; |
150 | 150 | ||
151 | sham: sham@480a4000 { | 151 | sham: sham@480a4000 { |
diff --git a/arch/arm/boot/dts/omap2420-n800.dts b/arch/arm/boot/dts/omap2420-n800.dts new file mode 100644 index 000000000000..d8c1b423606a --- /dev/null +++ b/arch/arm/boot/dts/omap2420-n800.dts | |||
@@ -0,0 +1,8 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | #include "omap2420-n8x0-common.dtsi" | ||
4 | |||
5 | / { | ||
6 | model = "Nokia N800"; | ||
7 | compatible = "nokia,n800", "nokia,n8x0", "ti,omap2420", "ti,omap2"; | ||
8 | }; | ||
diff --git a/arch/arm/boot/dts/omap2420-n810-wimax.dts b/arch/arm/boot/dts/omap2420-n810-wimax.dts new file mode 100644 index 000000000000..6b25b0359ac9 --- /dev/null +++ b/arch/arm/boot/dts/omap2420-n810-wimax.dts | |||
@@ -0,0 +1,8 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | #include "omap2420-n8x0-common.dtsi" | ||
4 | |||
5 | / { | ||
6 | model = "Nokia N810 WiMax"; | ||
7 | compatible = "nokia,n810-wimax", "nokia,n8x0", "ti,omap2420", "ti,omap2"; | ||
8 | }; | ||
diff --git a/arch/arm/boot/dts/omap2420-n810.dts b/arch/arm/boot/dts/omap2420-n810.dts new file mode 100644 index 000000000000..21baec154b78 --- /dev/null +++ b/arch/arm/boot/dts/omap2420-n810.dts | |||
@@ -0,0 +1,8 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | #include "omap2420-n8x0-common.dtsi" | ||
4 | |||
5 | / { | ||
6 | model = "Nokia N810"; | ||
7 | compatible = "nokia,n810", "nokia,n8x0", "ti,omap2420", "ti,omap2"; | ||
8 | }; | ||
diff --git a/arch/arm/boot/dts/omap2420-n8x0-common.dtsi b/arch/arm/boot/dts/omap2420-n8x0-common.dtsi new file mode 100644 index 000000000000..89608b206519 --- /dev/null +++ b/arch/arm/boot/dts/omap2420-n8x0-common.dtsi | |||
@@ -0,0 +1,99 @@ | |||
1 | #include "omap2420.dtsi" | ||
2 | |||
3 | / { | ||
4 | memory { | ||
5 | device_type = "memory"; | ||
6 | reg = <0x80000000 0x8000000>; /* 128 MB */ | ||
7 | }; | ||
8 | |||
9 | ocp { | ||
10 | i2c@0 { | ||
11 | compatible = "i2c-cbus-gpio"; | ||
12 | gpios = <&gpio3 2 0 /* gpio66 clk */ | ||
13 | &gpio3 1 0 /* gpio65 dat */ | ||
14 | &gpio3 0 0 /* gpio64 sel */ | ||
15 | >; | ||
16 | #address-cells = <1>; | ||
17 | #size-cells = <0>; | ||
18 | retu_mfd: retu@1 { | ||
19 | compatible = "retu-mfd"; | ||
20 | interrupt-parent = <&gpio4>; | ||
21 | interrupts = <12 IRQ_TYPE_EDGE_RISING>; | ||
22 | reg = <0x1>; | ||
23 | }; | ||
24 | }; | ||
25 | }; | ||
26 | }; | ||
27 | |||
28 | &i2c1 { | ||
29 | clock-frequency = <400000>; | ||
30 | }; | ||
31 | |||
32 | &i2c2 { | ||
33 | clock-frequency = <400000>; | ||
34 | }; | ||
35 | |||
36 | &gpmc { | ||
37 | ranges = <0 0 0x04000000 0x10000000>; | ||
38 | |||
39 | /* gpio-irq for dma: 26 */ | ||
40 | |||
41 | onenand@0,0 { | ||
42 | #address-cells = <1>; | ||
43 | #size-cells = <1>; | ||
44 | reg = <0 0 0x10000000>; | ||
45 | |||
46 | gpmc,sync-read; | ||
47 | gpmc,burst-length = <16>; | ||
48 | gpmc,burst-read; | ||
49 | gpmc,burst-wrap; | ||
50 | gpmc,device-width = <2>; | ||
51 | gpmc,mux-add-data = <2>; | ||
52 | gpmc,cs-on-ns = <0>; | ||
53 | gpmc,cs-rd-off-ns = <127>; | ||
54 | gpmc,cs-wr-off-ns = <109>; | ||
55 | gpmc,adv-on-ns = <0>; | ||
56 | gpmc,adv-rd-off-ns = <18>; | ||
57 | gpmc,adv-wr-off-ns = <18>; | ||
58 | gpmc,oe-on-ns = <27>; | ||
59 | gpmc,oe-off-ns = <127>; | ||
60 | gpmc,we-on-ns = <27>; | ||
61 | gpmc,we-off-ns = <72>; | ||
62 | gpmc,rd-cycle-ns = <145>; | ||
63 | gpmc,wr-cycle-ns = <136>; | ||
64 | gpmc,access-ns = <118>; | ||
65 | gpmc,page-burst-access-ns = <27>; | ||
66 | gpmc,bus-turnaround-ns = <0>; | ||
67 | gpmc,cycle2cycle-delay-ns = <0>; | ||
68 | gpmc,wait-monitoring-ns = <0>; | ||
69 | gpmc,clk-activation-ns = <9>; | ||
70 | gpmc,sync-clk-ps = <27000>; | ||
71 | |||
72 | /* MTD partition table corresponding to old board-n8x0 file. */ | ||
73 | partition@0 { | ||
74 | label = "bootloader"; | ||
75 | reg = <0x00000000 0x00020000>; | ||
76 | read-only; | ||
77 | }; | ||
78 | partition@1 { | ||
79 | label = "config"; | ||
80 | reg = <0x00020000 0x00060000>; | ||
81 | }; | ||
82 | partition@2 { | ||
83 | label = "kernel"; | ||
84 | reg = <0x00080000 0x00200000>; | ||
85 | }; | ||
86 | partition@3 { | ||
87 | label = "initfs"; | ||
88 | reg = <0x00280000 0x00400000>; | ||
89 | }; | ||
90 | partition@4 { | ||
91 | label = "rootfs"; | ||
92 | reg = <0x00680000 0x0f980000>; | ||
93 | }; | ||
94 | partition@5 { | ||
95 | label = "omap2-onenand"; | ||
96 | reg = <0x00000000 0x10000000>; | ||
97 | }; | ||
98 | }; | ||
99 | }; | ||
diff --git a/arch/arm/boot/dts/omap2430-sdp.dts b/arch/arm/boot/dts/omap2430-sdp.dts new file mode 100644 index 000000000000..2c90d29b4cad --- /dev/null +++ b/arch/arm/boot/dts/omap2430-sdp.dts | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | /dts-v1/; | ||
9 | |||
10 | #include "omap2430.dtsi" | ||
11 | |||
12 | / { | ||
13 | model = "TI OMAP2430 SDP"; | ||
14 | compatible = "ti,omap2430-sdp", "ti,omap2430", "ti,omap2"; | ||
15 | |||
16 | memory { | ||
17 | device_type = "memory"; | ||
18 | reg = <0x80000000 0x8000000>; /* 128 MB */ | ||
19 | }; | ||
20 | }; | ||
21 | |||
22 | &i2c2 { | ||
23 | clock-frequency = <100000>; | ||
24 | |||
25 | twl: twl@48 { | ||
26 | reg = <0x48>; | ||
27 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | ||
28 | }; | ||
29 | }; | ||
30 | |||
31 | #include "twl4030.dtsi" | ||
32 | |||
33 | &mmc1 { | ||
34 | vmmc-supply = <&vmmc1>; | ||
35 | bus-width = <4>; | ||
36 | }; | ||
37 | |||
38 | &gpmc { | ||
39 | ranges = <5 0 0x08000000 0x01000000>; | ||
40 | ethernet@gpmc { | ||
41 | compatible = "smsc,lan91c94"; | ||
42 | interrupt-parent = <&gpio5>; | ||
43 | interrupts = <21 IRQ_TYPE_LEVEL_LOW>; /* gpio149 */ | ||
44 | reg = <5 0x300 0xf>; | ||
45 | bank-width = <2>; | ||
46 | gpmc,mux-add-data; | ||
47 | }; | ||
48 | }; | ||
49 | |||
diff --git a/arch/arm/boot/dts/omap3-beagle-xm.dts b/arch/arm/boot/dts/omap3-beagle-xm.dts index df33a50bc070..447e714d435b 100644 --- a/arch/arm/boot/dts/omap3-beagle-xm.dts +++ b/arch/arm/boot/dts/omap3-beagle-xm.dts | |||
@@ -99,7 +99,7 @@ | |||
99 | &omap3_pmx_core { | 99 | &omap3_pmx_core { |
100 | pinctrl-names = "default"; | 100 | pinctrl-names = "default"; |
101 | pinctrl-0 = < | 101 | pinctrl-0 = < |
102 | &hsusbb2_pins | 102 | &hsusb2_pins |
103 | >; | 103 | >; |
104 | 104 | ||
105 | uart3_pins: pinmux_uart3_pins { | 105 | uart3_pins: pinmux_uart3_pins { |
@@ -109,20 +109,32 @@ | |||
109 | >; | 109 | >; |
110 | }; | 110 | }; |
111 | 111 | ||
112 | hsusbb2_pins: pinmux_hsusbb2_pins { | 112 | hsusb2_pins: pinmux_hsusb2_pins { |
113 | pinctrl-single,pins = < | 113 | pinctrl-single,pins = < |
114 | 0x5c0 (PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ | 114 | OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ |
115 | 0x5c2 (PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ | 115 | OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ |
116 | 0x5c4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ | 116 | OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ |
117 | 0x5c6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ | 117 | OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ |
118 | 0x5c8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ | 118 | OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ |
119 | 0x5cA (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ | 119 | OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ |
120 | 0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ | 120 | >; |
121 | 0x1a6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ | 121 | }; |
122 | 0x1a8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ | 122 | }; |
123 | 0x1aa (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ | 123 | |
124 | 0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ | 124 | &omap3_pmx_core2 { |
125 | 0x1ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ | 125 | pinctrl-names = "default"; |
126 | pinctrl-0 = < | ||
127 | &hsusb2_2_pins | ||
128 | >; | ||
129 | |||
130 | hsusb2_2_pins: pinmux_hsusb2_2_pins { | ||
131 | pinctrl-single,pins = < | ||
132 | OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ | ||
133 | OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ | ||
134 | OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ | ||
135 | OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ | ||
136 | OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ | ||
137 | OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ | ||
126 | >; | 138 | >; |
127 | }; | 139 | }; |
128 | }; | 140 | }; |
diff --git a/arch/arm/boot/dts/omap3-beagle.dts b/arch/arm/boot/dts/omap3-beagle.dts index 3ba4a625ea5b..5053766d369b 100644 --- a/arch/arm/boot/dts/omap3-beagle.dts +++ b/arch/arm/boot/dts/omap3-beagle.dts | |||
@@ -93,23 +93,17 @@ | |||
93 | &omap3_pmx_core { | 93 | &omap3_pmx_core { |
94 | pinctrl-names = "default"; | 94 | pinctrl-names = "default"; |
95 | pinctrl-0 = < | 95 | pinctrl-0 = < |
96 | &hsusbb2_pins | 96 | &hsusb2_pins |
97 | >; | 97 | >; |
98 | 98 | ||
99 | hsusbb2_pins: pinmux_hsusbb2_pins { | 99 | hsusb2_pins: pinmux_hsusb2_pins { |
100 | pinctrl-single,pins = < | 100 | pinctrl-single,pins = < |
101 | 0x5c0 (PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ | 101 | OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ |
102 | 0x5c2 (PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ | 102 | OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ |
103 | 0x5c4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ | 103 | OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ |
104 | 0x5c6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ | 104 | OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ |
105 | 0x5c8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ | 105 | OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ |
106 | 0x5cA (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ | 106 | OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ |
107 | 0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ | ||
108 | 0x1a6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ | ||
109 | 0x1a8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ | ||
110 | 0x1aa (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ | ||
111 | 0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ | ||
112 | 0x1ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ | ||
113 | >; | 107 | >; |
114 | }; | 108 | }; |
115 | 109 | ||
@@ -121,6 +115,24 @@ | |||
121 | }; | 115 | }; |
122 | }; | 116 | }; |
123 | 117 | ||
118 | &omap3_pmx_core2 { | ||
119 | pinctrl-names = "default"; | ||
120 | pinctrl-0 = < | ||
121 | &hsusb2_2_pins | ||
122 | >; | ||
123 | |||
124 | hsusb2_2_pins: pinmux_hsusb2_2_pins { | ||
125 | pinctrl-single,pins = < | ||
126 | OMAP3430_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ | ||
127 | OMAP3430_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ | ||
128 | OMAP3430_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ | ||
129 | OMAP3430_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ | ||
130 | OMAP3430_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ | ||
131 | OMAP3430_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ | ||
132 | >; | ||
133 | }; | ||
134 | }; | ||
135 | |||
124 | &i2c1 { | 136 | &i2c1 { |
125 | clock-frequency = <2600000>; | 137 | clock-frequency = <2600000>; |
126 | 138 | ||
diff --git a/arch/arm/boot/dts/omap3-cm-t3730.dts b/arch/arm/boot/dts/omap3-cm-t3730.dts new file mode 100644 index 000000000000..486f4d6c4219 --- /dev/null +++ b/arch/arm/boot/dts/omap3-cm-t3730.dts | |||
@@ -0,0 +1,104 @@ | |||
1 | /* | ||
2 | * Support for CompuLab CM-T3730 | ||
3 | */ | ||
4 | /dts-v1/; | ||
5 | |||
6 | #include "omap36xx.dtsi" | ||
7 | #include "omap3-cm-t3x30.dtsi" | ||
8 | |||
9 | / { | ||
10 | model = "CompuLab CM-T3730"; | ||
11 | compatible = "compulab,omap3-cm-t3730", "ti,omap36xx", "ti,omap3"; | ||
12 | |||
13 | wl12xx_vmmc2: wl12xx_vmmc2 { | ||
14 | compatible = "regulator-fixed"; | ||
15 | regulator-name = "vw1271"; | ||
16 | pinctrl-names = "default"; | ||
17 | pinctrl-0 = <&wl12xx_gpio>; | ||
18 | regulator-min-microvolt = <1800000>; | ||
19 | regulator-max-microvolt = <1800000>; | ||
20 | gpio = <&gpio3 9 GPIO_ACTIVE_HIGH>; /* gpio73 */ | ||
21 | startup-delay-us = <20000>; | ||
22 | enable-active-high; | ||
23 | }; | ||
24 | |||
25 | wl12xx_vaux2: wl12xx_vaux2 { | ||
26 | compatible = "regulator-fixed"; | ||
27 | regulator-name = "vwl1271_vaux2"; | ||
28 | regulator-min-microvolt = <1800000>; | ||
29 | regulator-max-microvolt = <1800000>; | ||
30 | vin-supply = <&vaux2>; | ||
31 | }; | ||
32 | }; | ||
33 | |||
34 | &omap3_pmx_core { | ||
35 | mmc1_pins: pinmux_mmc1_pins { | ||
36 | pinctrl-single,pins = < | ||
37 | 0x114 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */ | ||
38 | 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */ | ||
39 | 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */ | ||
40 | 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */ | ||
41 | 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */ | ||
42 | 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ | ||
43 | >; | ||
44 | }; | ||
45 | |||
46 | mmc2_pins: pinmux_mmc2_pins { | ||
47 | pinctrl-single,pins = < | ||
48 | 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */ | ||
49 | 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */ | ||
50 | 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */ | ||
51 | 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */ | ||
52 | 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */ | ||
53 | 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */ | ||
54 | >; | ||
55 | }; | ||
56 | |||
57 | smsc1_pins: pinmux_smsc1_pins { | ||
58 | pinctrl-single,pins = < | ||
59 | 0x88 (PIN_OUTPUT | MUX_MODE0) /* gpmc_ncs5.gpmc_ncs5 */ | ||
60 | 0x16a (PIN_INPUT_PULLUP | MUX_MODE4) /* uart3_cts_rctx.gpio_163 */ | ||
61 | >; | ||
62 | }; | ||
63 | |||
64 | uart3_pins: pinmux_uart3_pins { | ||
65 | pinctrl-single,pins = < | ||
66 | 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */ | ||
67 | 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */ | ||
68 | >; | ||
69 | }; | ||
70 | |||
71 | wl12xx_gpio: pinmux_wl12xx_gpio { | ||
72 | pinctrl-single,pins = < | ||
73 | 0xb2 (PIN_OUTPUT | MUX_MODE4) /* dss_data3.gpio_73 */ | ||
74 | 0x134 (PIN_INPUT | MUX_MODE4) /* sdmmc2_dat4.gpio_136 */ | ||
75 | >; | ||
76 | }; | ||
77 | }; | ||
78 | |||
79 | &mmc1 { | ||
80 | vmmc-supply = <&vmmc1>; | ||
81 | bus-width = <4>; | ||
82 | pinctrl-names = "default"; | ||
83 | pinctrl-0 = <&mmc1_pins>; | ||
84 | }; | ||
85 | |||
86 | &mmc2 { | ||
87 | pinctrl-names = "default"; | ||
88 | pinctrl-0 = <&mmc2_pins>; | ||
89 | vmmc-supply = <&wl12xx_vmmc2>; | ||
90 | vmmc_aux-supply = <&wl12xx_vaux2>; | ||
91 | non-removable; | ||
92 | bus-width = <4>; | ||
93 | cap-power-off-card; | ||
94 | }; | ||
95 | |||
96 | &smsc1 { | ||
97 | pinctrl-names = "default"; | ||
98 | pinctrl-0 = <&smsc1_pins>; | ||
99 | }; | ||
100 | |||
101 | &uart3 { | ||
102 | pinctrl-names = "default"; | ||
103 | pinctrl-0 = <&uart3_pins>; | ||
104 | }; | ||
diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi new file mode 100644 index 000000000000..3a9f004d8924 --- /dev/null +++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi | |||
@@ -0,0 +1,95 @@ | |||
1 | /* | ||
2 | * Common support for CompuLab CM-T3530 and CM-T3730 | ||
3 | */ | ||
4 | |||
5 | / { | ||
6 | memory { | ||
7 | device_type = "memory"; | ||
8 | reg = <0x80000000 0x10000000>; /* 256 MB */ | ||
9 | }; | ||
10 | |||
11 | cpus { | ||
12 | cpu@0 { | ||
13 | cpu0-supply = <&vcc>; | ||
14 | }; | ||
15 | }; | ||
16 | |||
17 | leds { | ||
18 | compatible = "gpio-leds"; | ||
19 | ledb { | ||
20 | label = "cm-t35:green"; | ||
21 | gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>; /* gpio186 */ | ||
22 | linux,default-trigger = "heartbeat"; | ||
23 | }; | ||
24 | }; | ||
25 | |||
26 | vddvario: regulator-vddvario { | ||
27 | compatible = "regulator-fixed"; | ||
28 | regulator-name = "vddvario"; | ||
29 | regulator-always-on; | ||
30 | }; | ||
31 | |||
32 | vdd33a: regulator-vdd33a { | ||
33 | compatible = "regulator-fixed"; | ||
34 | regulator-name = "vdd33a"; | ||
35 | regulator-always-on; | ||
36 | }; | ||
37 | }; | ||
38 | |||
39 | &gpmc { | ||
40 | ranges = <5 0 0x2c000000 0x01000000>; | ||
41 | |||
42 | smsc1: ethernet@5,0 { | ||
43 | compatible = "smsc,lan9221", "smsc,lan9115"; | ||
44 | interrupt-parent = <&gpio6>; | ||
45 | interrupts = <3 IRQ_TYPE_LEVEL_LOW>; | ||
46 | reg = <5 0 0xff>; | ||
47 | bank-width = <2>; | ||
48 | gpmc,mux-add-data; | ||
49 | gpmc,cs-on-ns = <0>; | ||
50 | gpmc,cs-rd-off-ns = <186>; | ||
51 | gpmc,cs-wr-off-ns = <186>; | ||
52 | gpmc,adv-on-ns = <12>; | ||
53 | gpmc,adv-rd-off-ns = <48>; | ||
54 | gpmc,adv-wr-off-ns = <48>; | ||
55 | gpmc,oe-on-ns = <54>; | ||
56 | gpmc,oe-off-ns = <168>; | ||
57 | gpmc,we-on-ns = <54>; | ||
58 | gpmc,we-off-ns = <168>; | ||
59 | gpmc,rd-cycle-ns = <186>; | ||
60 | gpmc,wr-cycle-ns = <186>; | ||
61 | gpmc,access-ns = <114>; | ||
62 | gpmc,page-burst-access-ns = <6>; | ||
63 | gpmc,bus-turnaround-ns = <12>; | ||
64 | gpmc,cycle2cycle-delay-ns = <18>; | ||
65 | gpmc,wr-data-mux-bus-ns = <90>; | ||
66 | gpmc,wr-access-ns = <186>; | ||
67 | gpmc,cycle2cycle-samecsen; | ||
68 | gpmc,cycle2cycle-diffcsen; | ||
69 | vddvario-supply = <&vddvario>; | ||
70 | vdd33a-supply = <&vdd33a>; | ||
71 | reg-io-width = <4>; | ||
72 | smsc,save-mac-address; | ||
73 | }; | ||
74 | }; | ||
75 | |||
76 | &i2c1 { | ||
77 | clock-frequency = <400000>; | ||
78 | |||
79 | twl: twl@48 { | ||
80 | reg = <0x48>; | ||
81 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | ||
82 | interrupt-parent = <&intc>; | ||
83 | }; | ||
84 | }; | ||
85 | |||
86 | #include "twl4030.dtsi" | ||
87 | #include "twl4030_omap3.dtsi" | ||
88 | |||
89 | &i2c3 { | ||
90 | clock-frequency = <400000>; | ||
91 | }; | ||
92 | |||
93 | &twl_gpio { | ||
94 | ti,use-leds; | ||
95 | }; | ||
diff --git a/arch/arm/boot/dts/omap3-igep.dtsi b/arch/arm/boot/dts/omap3-igep.dtsi index 165aaf7591ba..c17009323520 100644 --- a/arch/arm/boot/dts/omap3-igep.dtsi +++ b/arch/arm/boot/dts/omap3-igep.dtsi | |||
@@ -133,8 +133,6 @@ | |||
133 | 0x194 (PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */ | 133 | 0x194 (PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */ |
134 | >; | 134 | >; |
135 | }; | 135 | }; |
136 | |||
137 | leds_pins: pinmux_leds_pins { }; | ||
138 | }; | 136 | }; |
139 | 137 | ||
140 | &i2c1 { | 138 | &i2c1 { |
diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts index 1c7e74d2d2bc..25a2b5f652fd 100644 --- a/arch/arm/boot/dts/omap3-igep0020.dts +++ b/arch/arm/boot/dts/omap3-igep0020.dts | |||
@@ -66,28 +66,10 @@ | |||
66 | &omap3_pmx_core { | 66 | &omap3_pmx_core { |
67 | pinctrl-names = "default"; | 67 | pinctrl-names = "default"; |
68 | pinctrl-0 = < | 68 | pinctrl-0 = < |
69 | &hsusbb1_pins | ||
70 | &tfp410_pins | 69 | &tfp410_pins |
71 | &dss_pins | 70 | &dss_pins |
72 | >; | 71 | >; |
73 | 72 | ||
74 | hsusbb1_pins: pinmux_hsusbb1_pins { | ||
75 | pinctrl-single,pins = < | ||
76 | 0x5aa (PIN_OUTPUT | MUX_MODE3) /* etk_ctl.hsusb1_clk */ | ||
77 | 0x5a8 (PIN_OUTPUT | MUX_MODE3) /* etk_clk.hsusb1_stp */ | ||
78 | 0x5bc (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d8.hsusb1_dir */ | ||
79 | 0x5be (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d9.hsusb1_nxt */ | ||
80 | 0x5ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d0.hsusb1_data0 */ | ||
81 | 0x5ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d1.hsusb1_data1 */ | ||
82 | 0x5b0 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d2.hsusb1_data2 */ | ||
83 | 0x5b2 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d3.hsusb1_data7 */ | ||
84 | 0x5b4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d4.hsusb1_data4 */ | ||
85 | 0x5b6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d5.hsusb1_data5 */ | ||
86 | 0x5b8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d6.hsusb1_data6 */ | ||
87 | 0x5ba (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d7.hsusb1_data3 */ | ||
88 | >; | ||
89 | }; | ||
90 | |||
91 | tfp410_pins: tfp410_dvi_pins { | 73 | tfp410_pins: tfp410_dvi_pins { |
92 | pinctrl-single,pins = < | 74 | pinctrl-single,pins = < |
93 | 0x196 (PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */ | 75 | 0x196 (PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */ |
@@ -128,12 +110,36 @@ | |||
128 | }; | 110 | }; |
129 | }; | 111 | }; |
130 | 112 | ||
131 | &leds_pins { | 113 | &omap3_pmx_core2 { |
132 | pinctrl-single,pins = < | 114 | pinctrl-names = "default"; |
133 | 0x5c4 (PIN_OUTPUT | MUX_MODE4) /* etk_d12.gpio_26 */ | 115 | pinctrl-0 = < |
134 | 0x5c6 (PIN_OUTPUT | MUX_MODE4) /* etk_d13.gpio_27 */ | 116 | &hsusbb1_pins |
135 | 0x5c8 (PIN_OUTPUT | MUX_MODE4) /* etk_d14.gpio_28 */ | ||
136 | >; | 117 | >; |
118 | |||
119 | hsusbb1_pins: pinmux_hsusbb1_pins { | ||
120 | pinctrl-single,pins = < | ||
121 | OMAP3630_CORE2_IOPAD(0x25da, PIN_OUTPUT | MUX_MODE3) /* etk_ctl.hsusb1_clk */ | ||
122 | OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3) /* etk_clk.hsusb1_stp */ | ||
123 | OMAP3630_CORE2_IOPAD(0x25ec, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d8.hsusb1_dir */ | ||
124 | OMAP3630_CORE2_IOPAD(0x25ee, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d9.hsusb1_nxt */ | ||
125 | OMAP3630_CORE2_IOPAD(0x25dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d0.hsusb1_data0 */ | ||
126 | OMAP3630_CORE2_IOPAD(0x25de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d1.hsusb1_data1 */ | ||
127 | OMAP3630_CORE2_IOPAD(0x25e0, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d2.hsusb1_data2 */ | ||
128 | OMAP3630_CORE2_IOPAD(0x25e2, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d3.hsusb1_data7 */ | ||
129 | OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d4.hsusb1_data4 */ | ||
130 | OMAP3630_CORE2_IOPAD(0x25e6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d5.hsusb1_data5 */ | ||
131 | OMAP3630_CORE2_IOPAD(0x25e8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d6.hsusb1_data6 */ | ||
132 | OMAP3630_CORE2_IOPAD(0x25ea, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d7.hsusb1_data3 */ | ||
133 | >; | ||
134 | }; | ||
135 | |||
136 | leds_pins: pinmux_leds_pins { | ||
137 | pinctrl-single,pins = < | ||
138 | OMAP3630_CORE2_IOPAD(0x25f4, PIN_OUTPUT | MUX_MODE4) /* etk_d12.gpio_26 */ | ||
139 | OMAP3630_CORE2_IOPAD(0x25f6, PIN_OUTPUT | MUX_MODE4) /* etk_d13.gpio_27 */ | ||
140 | OMAP3630_CORE2_IOPAD(0x25f8, PIN_OUTPUT | MUX_MODE4) /* etk_d14.gpio_28 */ | ||
141 | >; | ||
142 | }; | ||
137 | }; | 143 | }; |
138 | 144 | ||
139 | &i2c3 { | 145 | &i2c3 { |
diff --git a/arch/arm/boot/dts/omap3-igep0030.dts b/arch/arm/boot/dts/omap3-igep0030.dts index 02a23f8a3384..145c58cfc8ac 100644 --- a/arch/arm/boot/dts/omap3-igep0030.dts +++ b/arch/arm/boot/dts/omap3-igep0030.dts | |||
@@ -46,10 +46,12 @@ | |||
46 | }; | 46 | }; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | &leds_pins { | 49 | &omap3_pmx_core2 { |
50 | pinctrl-single,pins = < | 50 | leds_pins: pinmux_leds_pins { |
51 | 0x5b0 (PIN_OUTPUT | MUX_MODE4) /* etk_d2.gpio_16 */ | 51 | pinctrl-single,pins = < |
52 | >; | 52 | OMAP3630_CORE2_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE4) /* etk_d2.gpio_16 */ |
53 | >; | ||
54 | }; | ||
53 | }; | 55 | }; |
54 | 56 | ||
55 | &gpmc { | 57 | &gpmc { |
diff --git a/arch/arm/boot/dts/omap3-ldp.dts b/arch/arm/boot/dts/omap3-ldp.dts new file mode 100644 index 000000000000..ddce0d807f70 --- /dev/null +++ b/arch/arm/boot/dts/omap3-ldp.dts | |||
@@ -0,0 +1,231 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | /dts-v1/; | ||
9 | |||
10 | #include "omap34xx.dtsi" | ||
11 | #include "omap-gpmc-smsc911x.dtsi" | ||
12 | |||
13 | / { | ||
14 | model = "TI OMAP3430 LDP (Zoom1 Labrador)"; | ||
15 | compatible = "ti,omap3-ldp", "ti,omap3"; | ||
16 | |||
17 | memory { | ||
18 | device_type = "memory"; | ||
19 | reg = <0x80000000 0x8000000>; /* 128 MB */ | ||
20 | }; | ||
21 | |||
22 | cpus { | ||
23 | cpu@0 { | ||
24 | cpu0-supply = <&vcc>; | ||
25 | }; | ||
26 | }; | ||
27 | |||
28 | gpio_keys { | ||
29 | compatible = "gpio-keys"; | ||
30 | pinctrl-names = "default"; | ||
31 | pinctrl-0 = <&gpio_key_pins>; | ||
32 | |||
33 | key_enter { | ||
34 | label = "enter"; | ||
35 | gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; /* gpio101 */ | ||
36 | linux,code = <0x0107001c>; /* KEY_ENTER */ | ||
37 | gpio-key,wakeup; | ||
38 | }; | ||
39 | |||
40 | key_f1 { | ||
41 | label = "f1"; | ||
42 | gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; /* gpio102 */ | ||
43 | linux,code = <0x0303003b>; /* KEY_F1 */ | ||
44 | gpio-key,wakeup; | ||
45 | }; | ||
46 | |||
47 | key_f2 { | ||
48 | label = "f2"; | ||
49 | gpios = <&gpio4 7 GPIO_ACTIVE_LOW>; /* gpio103 */ | ||
50 | linux,code = <0x0403003c>; /* KEY_F2 */ | ||
51 | gpio-key,wakeup; | ||
52 | }; | ||
53 | |||
54 | key_f3 { | ||
55 | label = "f3"; | ||
56 | gpios = <&gpio4 8 GPIO_ACTIVE_LOW>; /* gpio104 */ | ||
57 | linux,code = <0x0503003d>; /* KEY_F3 */ | ||
58 | gpio-key,wakeup; | ||
59 | }; | ||
60 | |||
61 | key_f4 { | ||
62 | label = "f4"; | ||
63 | gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; /* gpio105 */ | ||
64 | linux,code = <0x0704003e>; /* KEY_F4 */ | ||
65 | gpio-key,wakeup; | ||
66 | }; | ||
67 | |||
68 | key_left { | ||
69 | label = "left"; | ||
70 | gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; /* gpio106 */ | ||
71 | linux,code = <0x04070069>; /* KEY_LEFT */ | ||
72 | gpio-key,wakeup; | ||
73 | }; | ||
74 | |||
75 | key_right { | ||
76 | label = "right"; | ||
77 | gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; /* gpio107 */ | ||
78 | linux,code = <0x0507006a>; /* KEY_RIGHT */ | ||
79 | gpio-key,wakeup; | ||
80 | }; | ||
81 | |||
82 | key_up { | ||
83 | label = "up"; | ||
84 | gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; /* gpio108 */ | ||
85 | linux,code = <0x06070067>; /* KEY_UP */ | ||
86 | gpio-key,wakeup; | ||
87 | }; | ||
88 | |||
89 | key_down { | ||
90 | label = "down"; | ||
91 | gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; /* gpio109 */ | ||
92 | linux,code = <0x0707006c>; /* KEY_DOWN */ | ||
93 | gpio-key,wakeup; | ||
94 | }; | ||
95 | }; | ||
96 | }; | ||
97 | |||
98 | &gpmc { | ||
99 | ranges = <0 0 0x00000000 0x01000000>, | ||
100 | <1 0 0x08000000 0x01000000>; | ||
101 | |||
102 | nand@0,0 { | ||
103 | linux,mtd-name= "micron,nand"; | ||
104 | reg = <0 0 0>; | ||
105 | nand-bus-width = <16>; | ||
106 | ti,nand-ecc-opt = "bch8"; | ||
107 | |||
108 | gpmc,sync-clk-ps = <0>; | ||
109 | gpmc,cs-on-ns = <0>; | ||
110 | gpmc,cs-rd-off-ns = <44>; | ||
111 | gpmc,cs-wr-off-ns = <44>; | ||
112 | gpmc,adv-on-ns = <6>; | ||
113 | gpmc,adv-rd-off-ns = <34>; | ||
114 | gpmc,adv-wr-off-ns = <44>; | ||
115 | gpmc,we-off-ns = <40>; | ||
116 | gpmc,oe-off-ns = <54>; | ||
117 | gpmc,access-ns = <64>; | ||
118 | gpmc,rd-cycle-ns = <82>; | ||
119 | gpmc,wr-cycle-ns = <82>; | ||
120 | gpmc,wr-access-ns = <40>; | ||
121 | gpmc,wr-data-mux-bus-ns = <0>; | ||
122 | |||
123 | #address-cells = <1>; | ||
124 | #size-cells = <1>; | ||
125 | |||
126 | partition@0 { | ||
127 | label = "X-Loader"; | ||
128 | reg = <0 0x80000>; | ||
129 | }; | ||
130 | partition@80000 { | ||
131 | label = "U-Boot"; | ||
132 | reg = <0x80000 0x140000>; | ||
133 | }; | ||
134 | partition@1c0000 { | ||
135 | label = "Environment"; | ||
136 | reg = <0x1c0000 0x40000>; | ||
137 | }; | ||
138 | partition@200000 { | ||
139 | label = "Kernel"; | ||
140 | reg = <0x200000 0x1e00000>; | ||
141 | }; | ||
142 | partition@2000000 { | ||
143 | label = "Filesystem"; | ||
144 | reg = <0x2000000 0xe000000>; | ||
145 | }; | ||
146 | }; | ||
147 | |||
148 | ethernet@gpmc { | ||
149 | interrupt-parent = <&gpio5>; | ||
150 | interrupts = <24 IRQ_TYPE_LEVEL_LOW>; | ||
151 | reg = <1 0 0xff>; | ||
152 | }; | ||
153 | }; | ||
154 | |||
155 | &i2c1 { | ||
156 | clock-frequency = <2600000>; | ||
157 | |||
158 | twl: twl@48 { | ||
159 | reg = <0x48>; | ||
160 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | ||
161 | interrupt-parent = <&intc>; | ||
162 | }; | ||
163 | }; | ||
164 | |||
165 | #include "twl4030.dtsi" | ||
166 | #include "twl4030_omap3.dtsi" | ||
167 | |||
168 | &i2c2 { | ||
169 | clock-frequency = <400000>; | ||
170 | }; | ||
171 | |||
172 | &i2c3 { | ||
173 | clock-frequency = <400000>; | ||
174 | }; | ||
175 | |||
176 | &mmc1 { | ||
177 | vmmc-supply = <&vmmc1>; | ||
178 | bus-width = <4>; | ||
179 | }; | ||
180 | |||
181 | &omap3_pmx_core { | ||
182 | gpio_key_pins: pinmux_gpio_key_pins { | ||
183 | pinctrl-single,pins = < | ||
184 | 0xea (PIN_INPUT | MUX_MODE4) /* cam_d2.gpio_101 */ | ||
185 | 0xec (PIN_INPUT | MUX_MODE4) /* cam_d3.gpio_102 */ | ||
186 | 0xee (PIN_INPUT | MUX_MODE4) /* cam_d4.gpio_103 */ | ||
187 | 0xf0 (PIN_INPUT | MUX_MODE4) /* cam_d5.gpio_104 */ | ||
188 | 0xf2 (PIN_INPUT | MUX_MODE4) /* cam_d6.gpio_105 */ | ||
189 | 0xf4 (PIN_INPUT | MUX_MODE4) /* cam_d7.gpio_106 */ | ||
190 | 0xf6 (PIN_INPUT | MUX_MODE4) /* cam_d8.gpio_107 */ | ||
191 | 0xf8 (PIN_INPUT | MUX_MODE4) /* cam_d9.gpio_108 */ | ||
192 | 0xfa (PIN_INPUT | MUX_MODE4) /* cam_d10.gpio_109 */ | ||
193 | >; | ||
194 | }; | ||
195 | |||
196 | musb_pins: pinmux_musb_pins { | ||
197 | pinctrl-single,pins = < | ||
198 | 0x172 (PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */ | ||
199 | 0x17a (PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */ | ||
200 | 0x17c (PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */ | ||
201 | 0x17e (PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */ | ||
202 | 0x180 (PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */ | ||
203 | 0x182 (PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */ | ||
204 | 0x184 (PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */ | ||
205 | 0x186 (PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */ | ||
206 | 0x188 (PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */ | ||
207 | 0x176 (PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */ | ||
208 | 0x178 (PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */ | ||
209 | 0x174 (PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */ | ||
210 | >; | ||
211 | }; | ||
212 | }; | ||
213 | |||
214 | &usb_otg_hs { | ||
215 | pinctrl-names = "default"; | ||
216 | pinctrl-0 = <&musb_pins>; | ||
217 | interface-type = <0>; | ||
218 | usb-phy = <&usb2_phy>; | ||
219 | mode = <3>; | ||
220 | power = <50>; | ||
221 | }; | ||
222 | |||
223 | &vaux1 { | ||
224 | /* Needed for ads7846 */ | ||
225 | regulator-name = "vcc"; | ||
226 | }; | ||
227 | |||
228 | &vpll2 { | ||
229 | /* Needed for DSS */ | ||
230 | regulator-name = "vdds_dsi"; | ||
231 | }; | ||
diff --git a/arch/arm/boot/dts/omap3-sb-t35.dtsi b/arch/arm/boot/dts/omap3-sb-t35.dtsi new file mode 100644 index 000000000000..b9a2fedce7ee --- /dev/null +++ b/arch/arm/boot/dts/omap3-sb-t35.dtsi | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * Common support for CompuLab SB-T35 used on SBC-T3530, SBC-T3517 and SBC-T3730 | ||
3 | */ | ||
4 | |||
5 | &gpmc { | ||
6 | ranges = <4 0 0x2d000000 0x01000000>; | ||
7 | |||
8 | smsc2: ethernet@4,0 { | ||
9 | compatible = "smsc,lan9221", "smsc,lan9115"; | ||
10 | interrupt-parent = <&gpio3>; | ||
11 | interrupts = <1 IRQ_TYPE_LEVEL_LOW>; | ||
12 | reg = <4 0 0xff>; | ||
13 | bank-width = <2>; | ||
14 | gpmc,mux-add-data; | ||
15 | gpmc,cs-on-ns = <0>; | ||
16 | gpmc,cs-rd-off-ns = <186>; | ||
17 | gpmc,cs-wr-off-ns = <186>; | ||
18 | gpmc,adv-on-ns = <12>; | ||
19 | gpmc,adv-rd-off-ns = <48>; | ||
20 | gpmc,adv-wr-off-ns = <48>; | ||
21 | gpmc,oe-on-ns = <54>; | ||
22 | gpmc,oe-off-ns = <168>; | ||
23 | gpmc,we-on-ns = <54>; | ||
24 | gpmc,we-off-ns = <168>; | ||
25 | gpmc,rd-cycle-ns = <186>; | ||
26 | gpmc,wr-cycle-ns = <186>; | ||
27 | gpmc,access-ns = <114>; | ||
28 | gpmc,page-burst-access-ns = <6>; | ||
29 | gpmc,bus-turnaround-ns = <12>; | ||
30 | gpmc,cycle2cycle-delay-ns = <18>; | ||
31 | gpmc,wr-data-mux-bus-ns = <90>; | ||
32 | gpmc,wr-access-ns = <186>; | ||
33 | gpmc,cycle2cycle-samecsen; | ||
34 | gpmc,cycle2cycle-diffcsen; | ||
35 | vddvario-supply = <&vddvario>; | ||
36 | vdd33a-supply = <&vdd33a>; | ||
37 | reg-io-width = <4>; | ||
38 | smsc,save-mac-address; | ||
39 | }; | ||
40 | }; | ||
diff --git a/arch/arm/boot/dts/omap3-sbc-t3730.dts b/arch/arm/boot/dts/omap3-sbc-t3730.dts new file mode 100644 index 000000000000..c119bd545053 --- /dev/null +++ b/arch/arm/boot/dts/omap3-sbc-t3730.dts | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * Suppport for CompuLab SBC-T3730 with CM-T3730 | ||
3 | */ | ||
4 | |||
5 | #include "omap3-cm-t3730.dts" | ||
6 | #include "omap3-sb-t35.dtsi" | ||
7 | |||
8 | / { | ||
9 | model = "CompuLab SBC-T3730 with CM-T3730"; | ||
10 | compatible = "compulab,omap3-sbc-t3730", "compulab,omap3-cm-t3730", "ti,omap36xx", "ti,omap3"; | ||
11 | }; | ||
12 | |||
13 | &gpmc { | ||
14 | ranges = <5 0 0x2c000000 0x01000000>, | ||
15 | <4 0 0x2d000000 0x01000000>; | ||
16 | }; | ||
17 | |||
18 | &smsc2 { | ||
19 | pinctrl-names = "default"; | ||
20 | pinctrl-0 = <&smsc2_pins>; | ||
21 | }; | ||
22 | |||
23 | &omap3_pmx_core { | ||
24 | smsc2_pins: pinmux_smsc2_pins { | ||
25 | pinctrl-single,pins = < | ||
26 | 0x86 (PIN_OUTPUT | MUX_MODE0) /* gpmc_ncs4.gpmc_ncs4 */ | ||
27 | 0xa2 (PIN_INPUT_PULLUP | MUX_MODE4) /* gpmc_wait3.gpio_65 */ | ||
28 | >; | ||
29 | }; | ||
30 | }; \ No newline at end of file | ||
diff --git a/arch/arm/boot/dts/omap3-zoom3.dts b/arch/arm/boot/dts/omap3-zoom3.dts index 15eb9fe5169c..6644f516a42b 100644 --- a/arch/arm/boot/dts/omap3-zoom3.dts +++ b/arch/arm/boot/dts/omap3-zoom3.dts | |||
@@ -80,13 +80,8 @@ | |||
80 | 80 | ||
81 | mmc3_pins: pinmux_mmc3_pins { | 81 | mmc3_pins: pinmux_mmc3_pins { |
82 | pinctrl-single,pins = < | 82 | pinctrl-single,pins = < |
83 | 0x168 (PIN_INPUT | MUX_MODE4) /* mcbsp1_clkx.gpio_162 WLAN IRQ */ | 83 | OMAP3_CORE1_IOPAD(0x2198, PIN_INPUT | MUX_MODE4) /* mcbsp1_clkx.gpio_162 WLAN IRQ */ |
84 | 0x1a0 (PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs1.sdmmc3_cmd */ | 84 | OMAP3_CORE1_IOPAD(0x21d0, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs1.sdmmc3_cmd */ |
85 | 0x5a8 (PIN_INPUT_PULLUP | MUX_MODE2) /* etk_clk.sdmmc3_clk */ | ||
86 | 0x5b4 (PIN_INPUT_PULLUP | MUX_MODE2) /* etk_d4.sdmmc3_dat0 */ | ||
87 | 0x5b6 (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE2) /* etk_d5.sdmmc3_dat1 */ | ||
88 | 0x5b8 (PIN_INPUT_PULLUP | MUX_MODE2) /* etk_d6.sdmmc3_dat2 */ | ||
89 | 0x5b2 (PIN_INPUT_PULLUP | MUX_MODE2) /* etk_d3.sdmmc3_dat3 */ | ||
90 | >; | 85 | >; |
91 | }; | 86 | }; |
92 | 87 | ||
@@ -125,6 +120,18 @@ | |||
125 | }; | 120 | }; |
126 | }; | 121 | }; |
127 | 122 | ||
123 | &omap3_pmx_core2 { | ||
124 | mmc3_2_pins: pinmux_mmc3_2_pins { | ||
125 | pinctrl-single,pins = < | ||
126 | OMAP3630_CORE2_IOPAD(0x25d8, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_clk.sdmmc3_clk */ | ||
127 | OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_d4.sdmmc3_dat0 */ | ||
128 | OMAP3630_CORE2_IOPAD(0x25e6, WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE2) /* etk_d5.sdmmc3_dat1 */ | ||
129 | OMAP3630_CORE2_IOPAD(0x25e8, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_d6.sdmmc3_dat2 */ | ||
130 | OMAP3630_CORE2_IOPAD(0x25e2, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_d3.sdmmc3_dat3 */ | ||
131 | >; | ||
132 | }; | ||
133 | }; | ||
134 | |||
128 | &omap3_pmx_wkup { | 135 | &omap3_pmx_wkup { |
129 | wlan_host_wkup: pinmux_wlan_host_wkup_pins { | 136 | wlan_host_wkup: pinmux_wlan_host_wkup_pins { |
130 | pinctrl-single,pins = < | 137 | pinctrl-single,pins = < |
@@ -187,7 +194,7 @@ | |||
187 | bus-width = <4>; | 194 | bus-width = <4>; |
188 | cap-power-off-card; | 195 | cap-power-off-card; |
189 | pinctrl-names = "default"; | 196 | pinctrl-names = "default"; |
190 | pinctrl-0 = <&mmc3_pins>; | 197 | pinctrl-0 = <&mmc3_pins &mmc3_2_pins>; |
191 | }; | 198 | }; |
192 | 199 | ||
193 | &uart1 { | 200 | &uart1 { |
diff --git a/arch/arm/boot/dts/omap3.dtsi b/arch/arm/boot/dts/omap3.dtsi index daabf99d402a..427395c083f5 100644 --- a/arch/arm/boot/dts/omap3.dtsi +++ b/arch/arm/boot/dts/omap3.dtsi | |||
@@ -117,7 +117,7 @@ | |||
117 | 117 | ||
118 | omap3_pmx_core: pinmux@48002030 { | 118 | omap3_pmx_core: pinmux@48002030 { |
119 | compatible = "ti,omap3-padconf", "pinctrl-single"; | 119 | compatible = "ti,omap3-padconf", "pinctrl-single"; |
120 | reg = <0x48002030 0x05cc>; | 120 | reg = <0x48002030 0x0238>; |
121 | #address-cells = <1>; | 121 | #address-cells = <1>; |
122 | #size-cells = <0>; | 122 | #size-cells = <0>; |
123 | #interrupt-cells = <1>; | 123 | #interrupt-cells = <1>; |
diff --git a/arch/arm/boot/dts/omap34xx.dtsi b/arch/arm/boot/dts/omap34xx.dtsi index 5355d6173748..77d124678c95 100644 --- a/arch/arm/boot/dts/omap34xx.dtsi +++ b/arch/arm/boot/dts/omap34xx.dtsi | |||
@@ -25,4 +25,17 @@ | |||
25 | clock-latency = <300000>; /* From legacy driver */ | 25 | clock-latency = <300000>; /* From legacy driver */ |
26 | }; | 26 | }; |
27 | }; | 27 | }; |
28 | |||
29 | ocp { | ||
30 | omap3_pmx_core2: pinmux@480025d8 { | ||
31 | compatible = "ti,omap3-padconf", "pinctrl-single"; | ||
32 | reg = <0x480025d8 0x24>; | ||
33 | #address-cells = <1>; | ||
34 | #size-cells = <0>; | ||
35 | #interrupt-cells = <1>; | ||
36 | interrupt-controller; | ||
37 | pinctrl-single,register-width = <16>; | ||
38 | pinctrl-single,function-mask = <0xff1f>; | ||
39 | }; | ||
40 | }; | ||
28 | }; | 41 | }; |
diff --git a/arch/arm/boot/dts/omap36xx.dtsi b/arch/arm/boot/dts/omap36xx.dtsi index 380c22eb468e..b7c7bd96c404 100644 --- a/arch/arm/boot/dts/omap36xx.dtsi +++ b/arch/arm/boot/dts/omap36xx.dtsi | |||
@@ -38,5 +38,16 @@ | |||
38 | ti,hwmods = "uart4"; | 38 | ti,hwmods = "uart4"; |
39 | clock-frequency = <48000000>; | 39 | clock-frequency = <48000000>; |
40 | }; | 40 | }; |
41 | |||
42 | omap3_pmx_core2: pinmux@480025a0 { | ||
43 | compatible = "ti,omap3-padconf", "pinctrl-single"; | ||
44 | reg = <0x480025a0 0x5c>; | ||
45 | #address-cells = <1>; | ||
46 | #size-cells = <0>; | ||
47 | #interrupt-cells = <1>; | ||
48 | interrupt-controller; | ||
49 | pinctrl-single,register-width = <16>; | ||
50 | pinctrl-single,function-mask = <0xff1f>; | ||
51 | }; | ||
41 | }; | 52 | }; |
42 | }; | 53 | }; |
diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts new file mode 100644 index 000000000000..13ac3e222495 --- /dev/null +++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts | |||
@@ -0,0 +1,6 @@ | |||
1 | #include "qcom-msm8974.dtsi" | ||
2 | |||
3 | / { | ||
4 | model = "Qualcomm APQ8074 Dragonboard"; | ||
5 | compatible = "qcom,apq8074-dragonboard", "qcom,apq8074"; | ||
6 | }; | ||
diff --git a/arch/arm/boot/dts/r7s72100-genmai-reference.dts b/arch/arm/boot/dts/r7s72100-genmai-reference.dts new file mode 100644 index 000000000000..da19c70ed82b --- /dev/null +++ b/arch/arm/boot/dts/r7s72100-genmai-reference.dts | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * Device Tree Source for the Genmai board | ||
3 | * | ||
4 | * Copyright (C) 2013 Renesas Solutions Corp. | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public License | ||
7 | * version 2. This program is licensed "as is" without any warranty of any | ||
8 | * kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | /dts-v1/; | ||
12 | /include/ "r7s72100.dtsi" | ||
13 | |||
14 | / { | ||
15 | model = "Genmai"; | ||
16 | compatible = "renesas,genmai-reference", "renesas,r7s72100"; | ||
17 | |||
18 | chosen { | ||
19 | bootargs = "console=ttySC2,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; | ||
20 | }; | ||
21 | |||
22 | memory { | ||
23 | device_type = "memory"; | ||
24 | reg = <0x08000000 0x08000000>; | ||
25 | }; | ||
26 | |||
27 | lbsc { | ||
28 | #address-cells = <1>; | ||
29 | #size-cells = <1>; | ||
30 | }; | ||
31 | }; | ||
diff --git a/arch/arm/configs/armadillo800eva_defconfig b/arch/arm/configs/armadillo800eva_defconfig index 5abf1a2e3160..9287a62de830 100644 --- a/arch/arm/configs/armadillo800eva_defconfig +++ b/arch/arm/configs/armadillo800eva_defconfig | |||
@@ -105,6 +105,7 @@ CONFIG_FB=y | |||
105 | CONFIG_FB_SH_MOBILE_LCDC=y | 105 | CONFIG_FB_SH_MOBILE_LCDC=y |
106 | CONFIG_FB_SH_MOBILE_HDMI=y | 106 | CONFIG_FB_SH_MOBILE_HDMI=y |
107 | CONFIG_LCD_CLASS_DEVICE=y | 107 | CONFIG_LCD_CLASS_DEVICE=y |
108 | CONFIG_BACKLIGHT_PWM=y | ||
108 | CONFIG_FRAMEBUFFER_CONSOLE=y | 109 | CONFIG_FRAMEBUFFER_CONSOLE=y |
109 | CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y | 110 | CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y |
110 | CONFIG_LOGO=y | 111 | CONFIG_LOGO=y |
@@ -130,6 +131,8 @@ CONFIG_DMADEVICES=y | |||
130 | CONFIG_SH_DMAE=y | 131 | CONFIG_SH_DMAE=y |
131 | CONFIG_UIO=y | 132 | CONFIG_UIO=y |
132 | CONFIG_UIO_PDRV_GENIRQ=y | 133 | CONFIG_UIO_PDRV_GENIRQ=y |
134 | CONFIG_PWM=y | ||
135 | CONFIG_PWM_RENESAS_TPU=y | ||
133 | # CONFIG_DNOTIFY is not set | 136 | # CONFIG_DNOTIFY is not set |
134 | CONFIG_MSDOS_FS=y | 137 | CONFIG_MSDOS_FS=y |
135 | CONFIG_VFAT_FS=y | 138 | CONFIG_VFAT_FS=y |
diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig index 34e9780e63ba..f43392dc2dcf 100644 --- a/arch/arm/configs/bcm2835_defconfig +++ b/arch/arm/configs/bcm2835_defconfig | |||
@@ -44,17 +44,26 @@ CONFIG_VFP=y | |||
44 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | 44 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set |
45 | # CONFIG_SUSPEND is not set | 45 | # CONFIG_SUSPEND is not set |
46 | CONFIG_NET=y | 46 | CONFIG_NET=y |
47 | CONFIG_PACKET=y | ||
47 | CONFIG_UNIX=y | 48 | CONFIG_UNIX=y |
48 | CONFIG_INET=y | 49 | CONFIG_INET=y |
49 | CONFIG_NETWORK_SECMARK=y | 50 | CONFIG_NETWORK_SECMARK=y |
50 | # CONFIG_WIRELESS is not set | 51 | CONFIG_NETFILTER=y |
52 | CONFIG_CFG80211=y | ||
53 | CONFIG_MAC80211=y | ||
51 | CONFIG_DEVTMPFS=y | 54 | CONFIG_DEVTMPFS=y |
52 | CONFIG_DEVTMPFS_MOUNT=y | 55 | CONFIG_DEVTMPFS_MOUNT=y |
53 | # CONFIG_STANDALONE is not set | 56 | # CONFIG_STANDALONE is not set |
54 | # CONFIG_INPUT_MOUSEDEV is not set | 57 | CONFIG_SCSI=y |
55 | # CONFIG_INPUT_KEYBOARD is not set | 58 | CONFIG_BLK_DEV_SD=y |
56 | # CONFIG_INPUT_MOUSE is not set | 59 | CONFIG_SCSI_MULTI_LUN=y |
57 | # CONFIG_SERIO is not set | 60 | CONFIG_SCSI_CONSTANTS=y |
61 | CONFIG_SCSI_SCAN_ASYNC=y | ||
62 | CONFIG_NETDEVICES=y | ||
63 | CONFIG_USB_USBNET=y | ||
64 | CONFIG_USB_NET_SMSC95XX=y | ||
65 | CONFIG_ZD1211RW=y | ||
66 | CONFIG_INPUT_EVDEV=y | ||
58 | # CONFIG_LEGACY_PTYS is not set | 67 | # CONFIG_LEGACY_PTYS is not set |
59 | # CONFIG_DEVKMEM is not set | 68 | # CONFIG_DEVKMEM is not set |
60 | CONFIG_SERIAL_AMBA_PL011=y | 69 | CONFIG_SERIAL_AMBA_PL011=y |
@@ -71,15 +80,13 @@ CONFIG_FB=y | |||
71 | CONFIG_FB_SIMPLE=y | 80 | CONFIG_FB_SIMPLE=y |
72 | CONFIG_FRAMEBUFFER_CONSOLE=y | 81 | CONFIG_FRAMEBUFFER_CONSOLE=y |
73 | CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y | 82 | CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y |
74 | # CONFIG_USB_SUPPORT is not set | 83 | CONFIG_USB=y |
84 | CONFIG_USB_STORAGE=y | ||
75 | CONFIG_MMC=y | 85 | CONFIG_MMC=y |
76 | CONFIG_MMC_SDHCI=y | 86 | CONFIG_MMC_SDHCI=y |
77 | CONFIG_MMC_SDHCI_PLTFM=y | 87 | CONFIG_MMC_SDHCI_PLTFM=y |
78 | CONFIG_MMC_SDHCI_BCM2835=y | 88 | CONFIG_MMC_SDHCI_BCM2835=y |
79 | CONFIG_NEW_LEDS=y | ||
80 | CONFIG_LEDS_CLASS=y | ||
81 | CONFIG_LEDS_GPIO=y | 89 | CONFIG_LEDS_GPIO=y |
82 | CONFIG_LEDS_TRIGGERS=y | ||
83 | CONFIG_LEDS_TRIGGER_TIMER=y | 90 | CONFIG_LEDS_TRIGGER_TIMER=y |
84 | CONFIG_LEDS_TRIGGER_ONESHOT=y | 91 | CONFIG_LEDS_TRIGGER_ONESHOT=y |
85 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | 92 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y |
@@ -88,6 +95,8 @@ CONFIG_LEDS_TRIGGER_GPIO=y | |||
88 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | 95 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y |
89 | CONFIG_LEDS_TRIGGER_TRANSIENT=y | 96 | CONFIG_LEDS_TRIGGER_TRANSIENT=y |
90 | CONFIG_LEDS_TRIGGER_CAMERA=y | 97 | CONFIG_LEDS_TRIGGER_CAMERA=y |
98 | CONFIG_STAGING=y | ||
99 | CONFIG_USB_DWC2=y | ||
91 | # CONFIG_IOMMU_SUPPORT is not set | 100 | # CONFIG_IOMMU_SUPPORT is not set |
92 | CONFIG_EXT2_FS=y | 101 | CONFIG_EXT2_FS=y |
93 | CONFIG_EXT2_FS_XATTR=y | 102 | CONFIG_EXT2_FS_XATTR=y |
@@ -109,20 +118,20 @@ CONFIG_NLS_ASCII=y | |||
109 | CONFIG_NLS_ISO8859_1=y | 118 | CONFIG_NLS_ISO8859_1=y |
110 | CONFIG_NLS_UTF8=y | 119 | CONFIG_NLS_UTF8=y |
111 | CONFIG_PRINTK_TIME=y | 120 | CONFIG_PRINTK_TIME=y |
121 | CONFIG_BOOT_PRINTK_DELAY=y | ||
122 | CONFIG_DYNAMIC_DEBUG=y | ||
123 | CONFIG_DEBUG_INFO=y | ||
112 | # CONFIG_ENABLE_WARN_DEPRECATED is not set | 124 | # CONFIG_ENABLE_WARN_DEPRECATED is not set |
113 | # CONFIG_ENABLE_MUST_CHECK is not set | 125 | # CONFIG_ENABLE_MUST_CHECK is not set |
114 | CONFIG_UNUSED_SYMBOLS=y | 126 | CONFIG_UNUSED_SYMBOLS=y |
115 | CONFIG_LOCKUP_DETECTOR=y | ||
116 | CONFIG_DEBUG_INFO=y | ||
117 | CONFIG_DEBUG_MEMORY_INIT=y | 127 | CONFIG_DEBUG_MEMORY_INIT=y |
118 | CONFIG_BOOT_PRINTK_DELAY=y | 128 | CONFIG_LOCKUP_DETECTOR=y |
119 | CONFIG_SCHED_TRACER=y | 129 | CONFIG_SCHED_TRACER=y |
120 | CONFIG_STACK_TRACER=y | 130 | CONFIG_STACK_TRACER=y |
121 | CONFIG_FUNCTION_PROFILER=y | 131 | CONFIG_FUNCTION_PROFILER=y |
122 | CONFIG_DYNAMIC_DEBUG=y | 132 | CONFIG_TEST_KSTRTOX=y |
123 | CONFIG_KGDB=y | 133 | CONFIG_KGDB=y |
124 | CONFIG_KGDB_KDB=y | 134 | CONFIG_KGDB_KDB=y |
125 | CONFIG_TEST_KSTRTOX=y | ||
126 | CONFIG_STRICT_DEVMEM=y | 135 | CONFIG_STRICT_DEVMEM=y |
127 | CONFIG_DEBUG_LL=y | 136 | CONFIG_DEBUG_LL=y |
128 | CONFIG_EARLY_PRINTK=y | 137 | CONFIG_EARLY_PRINTK=y |
diff --git a/arch/arm/configs/bockw_defconfig b/arch/arm/configs/bockw_defconfig index 1dd39716d7cb..80cff50beb34 100644 --- a/arch/arm/configs/bockw_defconfig +++ b/arch/arm/configs/bockw_defconfig | |||
@@ -27,12 +27,12 @@ CONFIG_HIGHMEM=y | |||
27 | CONFIG_ZBOOT_ROM_TEXT=0x0 | 27 | CONFIG_ZBOOT_ROM_TEXT=0x0 |
28 | CONFIG_ZBOOT_ROM_BSS=0x0 | 28 | CONFIG_ZBOOT_ROM_BSS=0x0 |
29 | CONFIG_ARM_APPENDED_DTB=y | 29 | CONFIG_ARM_APPENDED_DTB=y |
30 | CONFIG_CMDLINE="console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp" | 30 | CONFIG_VFP=y |
31 | CONFIG_CMDLINE_FORCE=y | ||
32 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | 31 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set |
33 | # CONFIG_SUSPEND is not set | 32 | # CONFIG_SUSPEND is not set |
34 | CONFIG_PM_RUNTIME=y | 33 | CONFIG_PM_RUNTIME=y |
35 | CONFIG_NET=y | 34 | CONFIG_NET=y |
35 | CONFIG_PACKET=y | ||
36 | CONFIG_UNIX=y | 36 | CONFIG_UNIX=y |
37 | CONFIG_INET=y | 37 | CONFIG_INET=y |
38 | CONFIG_IP_PNP=y | 38 | CONFIG_IP_PNP=y |
@@ -44,8 +44,6 @@ CONFIG_IP_PNP_DHCP=y | |||
44 | # CONFIG_INET_DIAG is not set | 44 | # CONFIG_INET_DIAG is not set |
45 | # CONFIG_IPV6 is not set | 45 | # CONFIG_IPV6 is not set |
46 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 46 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
47 | CONFIG_DEVTMPFS=y | ||
48 | CONFIG_DEVTMPFS_MOUNT=y | ||
49 | # CONFIG_STANDALONE is not set | 47 | # CONFIG_STANDALONE is not set |
50 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | 48 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set |
51 | # CONFIG_FW_LOADER is not set | 49 | # CONFIG_FW_LOADER is not set |
@@ -82,6 +80,7 @@ CONFIG_SERIAL_SH_SCI_CONSOLE=y | |||
82 | # CONFIG_HWMON is not set | 80 | # CONFIG_HWMON is not set |
83 | CONFIG_I2C=y | 81 | CONFIG_I2C=y |
84 | CONFIG_I2C_RCAR=y | 82 | CONFIG_I2C_RCAR=y |
83 | CONFIG_REGULATOR=y | ||
85 | CONFIG_MEDIA_SUPPORT=y | 84 | CONFIG_MEDIA_SUPPORT=y |
86 | CONFIG_MEDIA_CAMERA_SUPPORT=y | 85 | CONFIG_MEDIA_CAMERA_SUPPORT=y |
87 | CONFIG_V4L_PLATFORM_DRIVERS=y | 86 | CONFIG_V4L_PLATFORM_DRIVERS=y |
@@ -108,11 +107,12 @@ CONFIG_MMC_SDHI=y | |||
108 | CONFIG_MMC_SH_MMCIF=y | 107 | CONFIG_MMC_SH_MMCIF=y |
109 | CONFIG_RTC_CLASS=y | 108 | CONFIG_RTC_CLASS=y |
110 | CONFIG_RTC_DRV_RX8581=y | 109 | CONFIG_RTC_DRV_RX8581=y |
110 | CONFIG_DMADEVICES=y | ||
111 | CONFIG_RCAR_HPB_DMAE=y | ||
111 | CONFIG_UIO=y | 112 | CONFIG_UIO=y |
112 | CONFIG_UIO_PDRV_GENIRQ=y | 113 | CONFIG_UIO_PDRV_GENIRQ=y |
113 | # CONFIG_IOMMU_SUPPORT is not set | 114 | # CONFIG_IOMMU_SUPPORT is not set |
114 | # CONFIG_DNOTIFY is not set | 115 | # CONFIG_DNOTIFY is not set |
115 | # CONFIG_INOTIFY_USER is not set | ||
116 | CONFIG_TMPFS=y | 116 | CONFIG_TMPFS=y |
117 | # CONFIG_MISC_FILESYSTEMS is not set | 117 | # CONFIG_MISC_FILESYSTEMS is not set |
118 | CONFIG_NFS_FS=y | 118 | CONFIG_NFS_FS=y |
diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index ad7dfbbafa45..dbe1f1c47bb0 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm/configs/exynos_defconfig | |||
@@ -13,7 +13,7 @@ CONFIG_S3C24XX_PWM=y | |||
13 | CONFIG_ARCH_EXYNOS5=y | 13 | CONFIG_ARCH_EXYNOS5=y |
14 | CONFIG_MACH_EXYNOS4_DT=y | 14 | CONFIG_MACH_EXYNOS4_DT=y |
15 | CONFIG_SMP=y | 15 | CONFIG_SMP=y |
16 | CONFIG_NR_CPUS=2 | 16 | CONFIG_NR_CPUS=8 |
17 | CONFIG_PREEMPT=y | 17 | CONFIG_PREEMPT=y |
18 | CONFIG_AEABI=y | 18 | CONFIG_AEABI=y |
19 | CONFIG_HIGHMEM=y | 19 | CONFIG_HIGHMEM=y |
@@ -79,6 +79,7 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y | |||
79 | CONFIG_REGULATOR_GPIO=y | 79 | CONFIG_REGULATOR_GPIO=y |
80 | CONFIG_REGULATOR_MAX8997=y | 80 | CONFIG_REGULATOR_MAX8997=y |
81 | CONFIG_REGULATOR_MAX77686=y | 81 | CONFIG_REGULATOR_MAX77686=y |
82 | CONFIG_REGULATOR_S2MPS11=y | ||
82 | CONFIG_REGULATOR_S5M8767=y | 83 | CONFIG_REGULATOR_S5M8767=y |
83 | CONFIG_REGULATOR_TPS65090=y | 84 | CONFIG_REGULATOR_TPS65090=y |
84 | CONFIG_FB=y | 85 | CONFIG_FB=y |
diff --git a/arch/arm/configs/genmai_defconfig b/arch/arm/configs/genmai_defconfig new file mode 100644 index 000000000000..aa0b704f48af --- /dev/null +++ b/arch/arm/configs/genmai_defconfig | |||
@@ -0,0 +1,116 @@ | |||
1 | CONFIG_SYSVIPC=y | ||
2 | CONFIG_NO_HZ=y | ||
3 | CONFIG_IKCONFIG=y | ||
4 | CONFIG_IKCONFIG_PROC=y | ||
5 | CONFIG_LOG_BUF_SHIFT=16 | ||
6 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
7 | CONFIG_SYSCTL_SYSCALL=y | ||
8 | CONFIG_EMBEDDED=y | ||
9 | CONFIG_PERF_EVENTS=y | ||
10 | CONFIG_SLAB=y | ||
11 | # CONFIG_LBDAF is not set | ||
12 | # CONFIG_BLK_DEV_BSG is not set | ||
13 | # CONFIG_IOSCHED_DEADLINE is not set | ||
14 | # CONFIG_IOSCHED_CFQ is not set | ||
15 | CONFIG_ARCH_SHMOBILE_LEGACY=y | ||
16 | CONFIG_ARCH_R7S72100=y | ||
17 | CONFIG_MACH_GENMAI=y | ||
18 | # CONFIG_SH_TIMER_CMT is not set | ||
19 | # CONFIG_SH_TIMER_MTU2 is not set | ||
20 | # CONFIG_SH_TIMER_TMU is not set | ||
21 | # CONFIG_EM_TIMER_STI is not set | ||
22 | CONFIG_ARM_ERRATA_430973=y | ||
23 | CONFIG_ARM_ERRATA_458693=y | ||
24 | CONFIG_ARM_ERRATA_460075=y | ||
25 | CONFIG_ARM_ERRATA_743622=y | ||
26 | CONFIG_ARM_ERRATA_754322=y | ||
27 | CONFIG_AEABI=y | ||
28 | # CONFIG_OABI_COMPAT is not set | ||
29 | CONFIG_FORCE_MAX_ZONEORDER=13 | ||
30 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
31 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
32 | CONFIG_ARM_APPENDED_DTB=y | ||
33 | CONFIG_KEXEC=y | ||
34 | CONFIG_AUTO_ZRELADDR=y | ||
35 | CONFIG_VFP=y | ||
36 | CONFIG_NEON=y | ||
37 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
38 | CONFIG_PM_RUNTIME=y | ||
39 | CONFIG_NET=y | ||
40 | CONFIG_PACKET=y | ||
41 | CONFIG_UNIX=y | ||
42 | CONFIG_INET=y | ||
43 | CONFIG_IP_PNP=y | ||
44 | CONFIG_IP_PNP_DHCP=y | ||
45 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
46 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
47 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
48 | # CONFIG_INET_LRO is not set | ||
49 | # CONFIG_INET_DIAG is not set | ||
50 | # CONFIG_IPV6 is not set | ||
51 | # CONFIG_WIRELESS is not set | ||
52 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
53 | CONFIG_NETDEVICES=y | ||
54 | # CONFIG_NET_CORE is not set | ||
55 | # CONFIG_NET_VENDOR_ARC is not set | ||
56 | # CONFIG_NET_CADENCE is not set | ||
57 | # CONFIG_NET_VENDOR_BROADCOM is not set | ||
58 | # CONFIG_NET_VENDOR_CIRRUS is not set | ||
59 | # CONFIG_NET_VENDOR_FARADAY is not set | ||
60 | # CONFIG_NET_VENDOR_INTEL is not set | ||
61 | # CONFIG_NET_VENDOR_MARVELL is not set | ||
62 | # CONFIG_NET_VENDOR_MICREL is not set | ||
63 | # CONFIG_NET_VENDOR_NATSEMI is not set | ||
64 | CONFIG_SH_ETH=y | ||
65 | # CONFIG_NET_VENDOR_SEEQ is not set | ||
66 | # CONFIG_NET_VENDOR_SMSC is not set | ||
67 | # CONFIG_NET_VENDOR_STMICRO is not set | ||
68 | # CONFIG_NET_VENDOR_VIA is not set | ||
69 | # CONFIG_NET_VENDOR_WIZNET is not set | ||
70 | # CONFIG_WLAN is not set | ||
71 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
72 | CONFIG_INPUT_EVDEV=y | ||
73 | # CONFIG_KEYBOARD_ATKBD is not set | ||
74 | # CONFIG_INPUT_MOUSE is not set | ||
75 | # CONFIG_SERIO is not set | ||
76 | # CONFIG_LEGACY_PTYS is not set | ||
77 | CONFIG_SERIAL_SH_SCI=y | ||
78 | CONFIG_SERIAL_SH_SCI_NR_UARTS=10 | ||
79 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | ||
80 | # CONFIG_HW_RANDOM is not set | ||
81 | CONFIG_I2C_SH_MOBILE=y | ||
82 | # CONFIG_HWMON is not set | ||
83 | CONFIG_THERMAL=y | ||
84 | CONFIG_RCAR_THERMAL=y | ||
85 | CONFIG_REGULATOR=y | ||
86 | CONFIG_REGULATOR_FIXED_VOLTAGE=y | ||
87 | CONFIG_DRM=y | ||
88 | CONFIG_DRM_RCAR_DU=y | ||
89 | # CONFIG_USB_SUPPORT is not set | ||
90 | CONFIG_MMC=y | ||
91 | CONFIG_MMC_SDHI=y | ||
92 | CONFIG_MMC_SH_MMCIF=y | ||
93 | CONFIG_NEW_LEDS=y | ||
94 | CONFIG_LEDS_CLASS=y | ||
95 | CONFIG_RTC_CLASS=y | ||
96 | CONFIG_DMADEVICES=y | ||
97 | CONFIG_SH_DMAE=y | ||
98 | # CONFIG_IOMMU_SUPPORT is not set | ||
99 | # CONFIG_DNOTIFY is not set | ||
100 | CONFIG_MSDOS_FS=y | ||
101 | CONFIG_VFAT_FS=y | ||
102 | CONFIG_TMPFS=y | ||
103 | CONFIG_CONFIGFS_FS=y | ||
104 | # CONFIG_MISC_FILESYSTEMS is not set | ||
105 | CONFIG_NFS_FS=y | ||
106 | CONFIG_NFS_V3_ACL=y | ||
107 | CONFIG_NFS_V4=y | ||
108 | CONFIG_NFS_V4_1=y | ||
109 | CONFIG_ROOT_NFS=y | ||
110 | CONFIG_NLS_CODEPAGE_437=y | ||
111 | CONFIG_NLS_ISO8859_1=y | ||
112 | # CONFIG_ENABLE_WARN_DEPRECATED is not set | ||
113 | # CONFIG_ENABLE_MUST_CHECK is not set | ||
114 | # CONFIG_ARM_UNWIND is not set | ||
115 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | ||
116 | # CONFIG_CRYPTO_HW is not set | ||
diff --git a/arch/arm/configs/kirkwood_defconfig b/arch/arm/configs/kirkwood_defconfig index 0ae0eaebf6b2..2e762d94e94b 100644 --- a/arch/arm/configs/kirkwood_defconfig +++ b/arch/arm/configs/kirkwood_defconfig | |||
@@ -27,6 +27,7 @@ CONFIG_PCI_MVEBU=y | |||
27 | CONFIG_PREEMPT=y | 27 | CONFIG_PREEMPT=y |
28 | CONFIG_AEABI=y | 28 | CONFIG_AEABI=y |
29 | # CONFIG_OABI_COMPAT is not set | 29 | # CONFIG_OABI_COMPAT is not set |
30 | CONFIG_HIGHMEM=y | ||
30 | CONFIG_ZBOOT_ROM_TEXT=0x0 | 31 | CONFIG_ZBOOT_ROM_TEXT=0x0 |
31 | CONFIG_ZBOOT_ROM_BSS=0x0 | 32 | CONFIG_ZBOOT_ROM_BSS=0x0 |
32 | CONFIG_CPU_FREQ=y | 33 | CONFIG_CPU_FREQ=y |
diff --git a/arch/arm/configs/koelsch_defconfig b/arch/arm/configs/koelsch_defconfig index 7fd65a01ec7e..e248f49d5549 100644 --- a/arch/arm/configs/koelsch_defconfig +++ b/arch/arm/configs/koelsch_defconfig | |||
@@ -29,7 +29,29 @@ CONFIG_VFP=y | |||
29 | CONFIG_NEON=y | 29 | CONFIG_NEON=y |
30 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | 30 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set |
31 | CONFIG_PM_RUNTIME=y | 31 | CONFIG_PM_RUNTIME=y |
32 | CONFIG_NET=y | ||
33 | CONFIG_PACKET=y | ||
34 | CONFIG_UNIX=y | ||
35 | CONFIG_INET=y | ||
36 | CONFIG_IP_PNP=y | ||
37 | CONFIG_IP_PNP_DHCP=y | ||
32 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 38 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
39 | CONFIG_NETDEVICES=y | ||
40 | # CONFIG_NET_VENDOR_ARC is not set | ||
41 | # CONFIG_NET_CADENCE is not set | ||
42 | # CONFIG_NET_VENDOR_BROADCOM is not set | ||
43 | # CONFIG_NET_VENDOR_CIRRUS is not set | ||
44 | # CONFIG_NET_VENDOR_FARADAY is not set | ||
45 | # CONFIG_NET_VENDOR_INTEL is not set | ||
46 | # CONFIG_NET_VENDOR_MARVELL is not set | ||
47 | # CONFIG_NET_VENDOR_MICREL is not set | ||
48 | # CONFIG_NET_VENDOR_NATSEMI is not set | ||
49 | CONFIG_SH_ETH=y | ||
50 | # CONFIG_NET_VENDOR_SEEQ is not set | ||
51 | # CONFIG_NET_VENDOR_SMSC is not set | ||
52 | # CONFIG_NET_VENDOR_STMICRO is not set | ||
53 | # CONFIG_NET_VENDOR_VIA is not set | ||
54 | # CONFIG_NET_VENDOR_WIZNET is not set | ||
33 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | 55 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set |
34 | # CONFIG_INPUT_MOUSE is not set | 56 | # CONFIG_INPUT_MOUSE is not set |
35 | # CONFIG_LEGACY_PTYS is not set | 57 | # CONFIG_LEGACY_PTYS is not set |
@@ -45,10 +67,11 @@ CONFIG_NEW_LEDS=y | |||
45 | CONFIG_LEDS_CLASS=y | 67 | CONFIG_LEDS_CLASS=y |
46 | # CONFIG_IOMMU_SUPPORT is not set | 68 | # CONFIG_IOMMU_SUPPORT is not set |
47 | # CONFIG_DNOTIFY is not set | 69 | # CONFIG_DNOTIFY is not set |
48 | # CONFIG_INOTIFY_USER is not set | ||
49 | CONFIG_TMPFS=y | 70 | CONFIG_TMPFS=y |
50 | CONFIG_CONFIGFS_FS=y | 71 | CONFIG_CONFIGFS_FS=y |
51 | # CONFIG_MISC_FILESYSTEMS is not set | 72 | # CONFIG_MISC_FILESYSTEMS is not set |
73 | CONFIG_NFS_FS=y | ||
74 | CONFIG_ROOT_NFS=y | ||
52 | # CONFIG_ENABLE_WARN_DEPRECATED is not set | 75 | # CONFIG_ENABLE_WARN_DEPRECATED is not set |
53 | # CONFIG_ENABLE_MUST_CHECK is not set | 76 | # CONFIG_ENABLE_MUST_CHECK is not set |
54 | # CONFIG_ARM_UNWIND is not set | 77 | # CONFIG_ARM_UNWIND is not set |
diff --git a/arch/arm/configs/kzm9d_defconfig b/arch/arm/configs/kzm9d_defconfig index 217f1dda2965..e42ce3756af3 100644 --- a/arch/arm/configs/kzm9d_defconfig +++ b/arch/arm/configs/kzm9d_defconfig | |||
@@ -32,6 +32,7 @@ CONFIG_FORCE_MAX_ZONEORDER=13 | |||
32 | CONFIG_ZBOOT_ROM_TEXT=0x0 | 32 | CONFIG_ZBOOT_ROM_TEXT=0x0 |
33 | CONFIG_ZBOOT_ROM_BSS=0x0 | 33 | CONFIG_ZBOOT_ROM_BSS=0x0 |
34 | CONFIG_ARM_APPENDED_DTB=y | 34 | CONFIG_ARM_APPENDED_DTB=y |
35 | CONFIG_AUTO_ZRELADDR=y | ||
35 | CONFIG_VFP=y | 36 | CONFIG_VFP=y |
36 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | 37 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set |
37 | CONFIG_PM_RUNTIME=y | 38 | CONFIG_PM_RUNTIME=y |
diff --git a/arch/arm/configs/lager_defconfig b/arch/arm/configs/lager_defconfig index 35dc8b2be47f..883443f8f4f3 100644 --- a/arch/arm/configs/lager_defconfig +++ b/arch/arm/configs/lager_defconfig | |||
@@ -80,7 +80,7 @@ CONFIG_SERIAL_SH_SCI_CONSOLE=y | |||
80 | # CONFIG_HW_RANDOM is not set | 80 | # CONFIG_HW_RANDOM is not set |
81 | CONFIG_I2C=y | 81 | CONFIG_I2C=y |
82 | CONFIG_I2C_GPIO=y | 82 | CONFIG_I2C_GPIO=y |
83 | CONFIG_I2C_SH_MOBILE=y | 83 | CONFIG_I2C_RCAR=y |
84 | CONFIG_GPIO_SH_PFC=y | 84 | CONFIG_GPIO_SH_PFC=y |
85 | CONFIG_GPIOLIB=y | 85 | CONFIG_GPIOLIB=y |
86 | CONFIG_GPIO_RCAR=y | 86 | CONFIG_GPIO_RCAR=y |
@@ -89,6 +89,7 @@ CONFIG_THERMAL=y | |||
89 | CONFIG_RCAR_THERMAL=y | 89 | CONFIG_RCAR_THERMAL=y |
90 | CONFIG_REGULATOR=y | 90 | CONFIG_REGULATOR=y |
91 | CONFIG_REGULATOR_FIXED_VOLTAGE=y | 91 | CONFIG_REGULATOR_FIXED_VOLTAGE=y |
92 | CONFIG_REGULATOR_GPIO=y | ||
92 | CONFIG_DRM=y | 93 | CONFIG_DRM=y |
93 | CONFIG_DRM_RCAR_DU=y | 94 | CONFIG_DRM_RCAR_DU=y |
94 | # CONFIG_USB_SUPPORT is not set | 95 | # CONFIG_USB_SUPPORT is not set |
diff --git a/arch/arm/configs/marzen_defconfig b/arch/arm/configs/marzen_defconfig index 6981338cd08d..f21bd405cc2a 100644 --- a/arch/arm/configs/marzen_defconfig +++ b/arch/arm/configs/marzen_defconfig | |||
@@ -30,12 +30,12 @@ CONFIG_HIGHMEM=y | |||
30 | CONFIG_ZBOOT_ROM_TEXT=0x0 | 30 | CONFIG_ZBOOT_ROM_TEXT=0x0 |
31 | CONFIG_ZBOOT_ROM_BSS=0x0 | 31 | CONFIG_ZBOOT_ROM_BSS=0x0 |
32 | CONFIG_ARM_APPENDED_DTB=y | 32 | CONFIG_ARM_APPENDED_DTB=y |
33 | CONFIG_CMDLINE="console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on" | 33 | CONFIG_VFP=y |
34 | CONFIG_CMDLINE_FORCE=y | ||
35 | CONFIG_KEXEC=y | 34 | CONFIG_KEXEC=y |
36 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | 35 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set |
37 | CONFIG_PM_RUNTIME=y | 36 | CONFIG_PM_RUNTIME=y |
38 | CONFIG_NET=y | 37 | CONFIG_NET=y |
38 | CONFIG_PACKET=y | ||
39 | CONFIG_UNIX=y | 39 | CONFIG_UNIX=y |
40 | CONFIG_INET=y | 40 | CONFIG_INET=y |
41 | CONFIG_IP_PNP=y | 41 | CONFIG_IP_PNP=y |
@@ -43,8 +43,6 @@ CONFIG_IP_PNP_DHCP=y | |||
43 | # CONFIG_IPV6 is not set | 43 | # CONFIG_IPV6 is not set |
44 | # CONFIG_WIRELESS is not set | 44 | # CONFIG_WIRELESS is not set |
45 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 45 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
46 | CONFIG_DEVTMPFS=y | ||
47 | CONFIG_DEVTMPFS_MOUNT=y | ||
48 | # CONFIG_STANDALONE is not set | 46 | # CONFIG_STANDALONE is not set |
49 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | 47 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set |
50 | # CONFIG_FW_LOADER is not set | 48 | # CONFIG_FW_LOADER is not set |
@@ -61,7 +59,6 @@ CONFIG_NETDEVICES=y | |||
61 | # CONFIG_NET_VENDOR_MICREL is not set | 59 | # CONFIG_NET_VENDOR_MICREL is not set |
62 | # CONFIG_NET_VENDOR_NATSEMI is not set | 60 | # CONFIG_NET_VENDOR_NATSEMI is not set |
63 | # CONFIG_NET_VENDOR_SEEQ is not set | 61 | # CONFIG_NET_VENDOR_SEEQ is not set |
64 | CONFIG_SMC911X=y | ||
65 | CONFIG_SMSC911X=y | 62 | CONFIG_SMSC911X=y |
66 | # CONFIG_NET_VENDOR_STMICRO is not set | 63 | # CONFIG_NET_VENDOR_STMICRO is not set |
67 | # CONFIG_WLAN is not set | 64 | # CONFIG_WLAN is not set |
@@ -106,11 +103,12 @@ CONFIG_USB_STORAGE=y | |||
106 | CONFIG_NEW_LEDS=y | 103 | CONFIG_NEW_LEDS=y |
107 | CONFIG_LEDS_CLASS=y | 104 | CONFIG_LEDS_CLASS=y |
108 | CONFIG_LEDS_GPIO=y | 105 | CONFIG_LEDS_GPIO=y |
106 | CONFIG_DMADEVICES=y | ||
107 | CONFIG_RCAR_HPB_DMAE=y | ||
109 | CONFIG_UIO=y | 108 | CONFIG_UIO=y |
110 | CONFIG_UIO_PDRV_GENIRQ=y | 109 | CONFIG_UIO_PDRV_GENIRQ=y |
111 | # CONFIG_IOMMU_SUPPORT is not set | 110 | # CONFIG_IOMMU_SUPPORT is not set |
112 | # CONFIG_DNOTIFY is not set | 111 | # CONFIG_DNOTIFY is not set |
113 | # CONFIG_INOTIFY_USER is not set | ||
114 | CONFIG_TMPFS=y | 112 | CONFIG_TMPFS=y |
115 | # CONFIG_MISC_FILESYSTEMS is not set | 113 | # CONFIG_MISC_FILESYSTEMS is not set |
116 | CONFIG_NFS_FS=y | 114 | CONFIG_NFS_FS=y |
diff --git a/arch/arm/configs/msm_defconfig b/arch/arm/configs/msm_defconfig index b2671e5c8bd3..0219c65cefd5 100644 --- a/arch/arm/configs/msm_defconfig +++ b/arch/arm/configs/msm_defconfig | |||
@@ -20,6 +20,7 @@ CONFIG_PARTITION_ADVANCED=y | |||
20 | CONFIG_ARCH_MSM_DT=y | 20 | CONFIG_ARCH_MSM_DT=y |
21 | CONFIG_ARCH_MSM8X60=y | 21 | CONFIG_ARCH_MSM8X60=y |
22 | CONFIG_ARCH_MSM8960=y | 22 | CONFIG_ARCH_MSM8960=y |
23 | CONFIG_ARCH_MSM8974=y | ||
23 | CONFIG_SMP=y | 24 | CONFIG_SMP=y |
24 | CONFIG_PREEMPT=y | 25 | CONFIG_PREEMPT=y |
25 | CONFIG_AEABI=y | 26 | CONFIG_AEABI=y |
@@ -86,6 +87,8 @@ CONFIG_SPI=y | |||
86 | CONFIG_DEBUG_GPIO=y | 87 | CONFIG_DEBUG_GPIO=y |
87 | CONFIG_GPIO_SYSFS=y | 88 | CONFIG_GPIO_SYSFS=y |
88 | CONFIG_POWER_SUPPLY=y | 89 | CONFIG_POWER_SUPPLY=y |
90 | CONFIG_POWER_RESET=y | ||
91 | CONFIG_POWER_RESET_MSM=y | ||
89 | CONFIG_THERMAL=y | 92 | CONFIG_THERMAL=y |
90 | CONFIG_REGULATOR=y | 93 | CONFIG_REGULATOR=y |
91 | CONFIG_MEDIA_SUPPORT=y | 94 | CONFIG_MEDIA_SUPPORT=y |
diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 0ae6dc35209f..687e4e811b2a 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig | |||
@@ -72,6 +72,7 @@ CONFIG_NET_CALXEDA_XGMAC=y | |||
72 | CONFIG_KS8851=y | 72 | CONFIG_KS8851=y |
73 | CONFIG_SMSC911X=y | 73 | CONFIG_SMSC911X=y |
74 | CONFIG_STMMAC_ETH=y | 74 | CONFIG_STMMAC_ETH=y |
75 | CONFIG_ICPLUS_PHY=y | ||
75 | CONFIG_MDIO_SUN4I=y | 76 | CONFIG_MDIO_SUN4I=y |
76 | CONFIG_TI_CPSW=y | 77 | CONFIG_TI_CPSW=y |
77 | CONFIG_KEYBOARD_SPEAR=y | 78 | CONFIG_KEYBOARD_SPEAR=y |
@@ -95,6 +96,8 @@ CONFIG_SERIAL_XILINX_PS_UART=y | |||
95 | CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y | 96 | CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y |
96 | CONFIG_SERIAL_FSL_LPUART=y | 97 | CONFIG_SERIAL_FSL_LPUART=y |
97 | CONFIG_SERIAL_FSL_LPUART_CONSOLE=y | 98 | CONFIG_SERIAL_FSL_LPUART_CONSOLE=y |
99 | CONFIG_SERIAL_ST_ASC=y | ||
100 | CONFIG_SERIAL_ST_ASC_CONSOLE=y | ||
98 | CONFIG_I2C_DESIGNWARE_PLATFORM=y | 101 | CONFIG_I2C_DESIGNWARE_PLATFORM=y |
99 | CONFIG_I2C_SIRF=y | 102 | CONFIG_I2C_SIRF=y |
100 | CONFIG_I2C_TEGRA=y | 103 | CONFIG_I2C_TEGRA=y |
diff --git a/arch/arm/configs/mvebu_defconfig b/arch/arm/configs/mvebu_defconfig index 594d706b641f..0f4511d2849f 100644 --- a/arch/arm/configs/mvebu_defconfig +++ b/arch/arm/configs/mvebu_defconfig | |||
@@ -55,6 +55,8 @@ CONFIG_MTD_CFI_INTELEXT=y | |||
55 | CONFIG_MTD_CFI_AMDSTD=y | 55 | CONFIG_MTD_CFI_AMDSTD=y |
56 | CONFIG_MTD_CFI_STAA=y | 56 | CONFIG_MTD_CFI_STAA=y |
57 | CONFIG_MTD_PHYSMAP_OF=y | 57 | CONFIG_MTD_PHYSMAP_OF=y |
58 | CONFIG_MTD_NAND=y | ||
59 | CONFIG_MTD_NAND_PXA3xx=y | ||
58 | CONFIG_SERIAL_8250_DW=y | 60 | CONFIG_SERIAL_8250_DW=y |
59 | CONFIG_GPIOLIB=y | 61 | CONFIG_GPIOLIB=y |
60 | CONFIG_GPIO_SYSFS=y | 62 | CONFIG_GPIO_SYSFS=y |
@@ -69,6 +71,7 @@ CONFIG_USB_XHCI_HCD=y | |||
69 | CONFIG_MMC=y | 71 | CONFIG_MMC=y |
70 | CONFIG_MMC_MVSDIO=y | 72 | CONFIG_MMC_MVSDIO=y |
71 | CONFIG_NEW_LEDS=y | 73 | CONFIG_NEW_LEDS=y |
74 | CONFIG_LEDS_GPIO=y | ||
72 | CONFIG_LEDS_CLASS=m | 75 | CONFIG_LEDS_CLASS=m |
73 | CONFIG_LEDS_TRIGGERS=y | 76 | CONFIG_LEDS_TRIGGERS=y |
74 | CONFIG_LEDS_TRIGGER_TIMER=y | 77 | CONFIG_LEDS_TRIGGER_TIMER=y |
diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index 4934295bb4f0..e38653876541 100644 --- a/arch/arm/configs/tegra_defconfig +++ b/arch/arm/configs/tegra_defconfig | |||
@@ -36,8 +36,8 @@ CONFIG_PCIEPORTBUS=y | |||
36 | CONFIG_SMP=y | 36 | CONFIG_SMP=y |
37 | CONFIG_PREEMPT=y | 37 | CONFIG_PREEMPT=y |
38 | CONFIG_AEABI=y | 38 | CONFIG_AEABI=y |
39 | # CONFIG_OABI_COMPAT is not set | ||
40 | CONFIG_HIGHMEM=y | 39 | CONFIG_HIGHMEM=y |
40 | CONFIG_CMA=y | ||
41 | CONFIG_ZBOOT_ROM_TEXT=0x0 | 41 | CONFIG_ZBOOT_ROM_TEXT=0x0 |
42 | CONFIG_ZBOOT_ROM_BSS=0x0 | 42 | CONFIG_ZBOOT_ROM_BSS=0x0 |
43 | CONFIG_KEXEC=y | 43 | CONFIG_KEXEC=y |
@@ -63,7 +63,6 @@ CONFIG_INET_ESP=y | |||
63 | # CONFIG_INET_LRO is not set | 63 | # CONFIG_INET_LRO is not set |
64 | # CONFIG_INET_DIAG is not set | 64 | # CONFIG_INET_DIAG is not set |
65 | CONFIG_IPV6=y | 65 | CONFIG_IPV6=y |
66 | CONFIG_IPV6_PRIVACY=y | ||
67 | CONFIG_IPV6_ROUTER_PREF=y | 66 | CONFIG_IPV6_ROUTER_PREF=y |
68 | CONFIG_IPV6_OPTIMISTIC_DAD=y | 67 | CONFIG_IPV6_OPTIMISTIC_DAD=y |
69 | CONFIG_INET6_AH=y | 68 | CONFIG_INET6_AH=y |
@@ -85,7 +84,6 @@ CONFIG_RFKILL_GPIO=y | |||
85 | CONFIG_DEVTMPFS=y | 84 | CONFIG_DEVTMPFS=y |
86 | CONFIG_DEVTMPFS_MOUNT=y | 85 | CONFIG_DEVTMPFS_MOUNT=y |
87 | # CONFIG_FIRMWARE_IN_KERNEL is not set | 86 | # CONFIG_FIRMWARE_IN_KERNEL is not set |
88 | CONFIG_CMA=y | ||
89 | CONFIG_DMA_CMA=y | 87 | CONFIG_DMA_CMA=y |
90 | CONFIG_MTD=y | 88 | CONFIG_MTD=y |
91 | CONFIG_MTD_M25P80=y | 89 | CONFIG_MTD_M25P80=y |
@@ -114,6 +112,7 @@ CONFIG_RT2800USB=m | |||
114 | CONFIG_INPUT_EVDEV=y | 112 | CONFIG_INPUT_EVDEV=y |
115 | CONFIG_KEYBOARD_GPIO=y | 113 | CONFIG_KEYBOARD_GPIO=y |
116 | CONFIG_KEYBOARD_TEGRA=y | 114 | CONFIG_KEYBOARD_TEGRA=y |
115 | CONFIG_KEYBOARD_CROS_EC=y | ||
117 | CONFIG_MOUSE_PS2_ELANTECH=y | 116 | CONFIG_MOUSE_PS2_ELANTECH=y |
118 | CONFIG_INPUT_MISC=y | 117 | CONFIG_INPUT_MISC=y |
119 | CONFIG_INPUT_MPU3050=y | 118 | CONFIG_INPUT_MPU3050=y |
@@ -132,6 +131,7 @@ CONFIG_SPI=y | |||
132 | CONFIG_SPI_TEGRA114=y | 131 | CONFIG_SPI_TEGRA114=y |
133 | CONFIG_SPI_TEGRA20_SFLASH=y | 132 | CONFIG_SPI_TEGRA20_SFLASH=y |
134 | CONFIG_SPI_TEGRA20_SLINK=y | 133 | CONFIG_SPI_TEGRA20_SLINK=y |
134 | CONFIG_PINCTRL_AS3722=y | ||
135 | CONFIG_PINCTRL_PALMAS=y | 135 | CONFIG_PINCTRL_PALMAS=y |
136 | CONFIG_GPIO_PCA953X_IRQ=y | 136 | CONFIG_GPIO_PCA953X_IRQ=y |
137 | CONFIG_GPIO_PALMAS=y | 137 | CONFIG_GPIO_PALMAS=y |
@@ -143,6 +143,9 @@ CONFIG_CHARGER_TPS65090=y | |||
143 | CONFIG_POWER_RESET=y | 143 | CONFIG_POWER_RESET=y |
144 | CONFIG_POWER_RESET_GPIO=y | 144 | CONFIG_POWER_RESET_GPIO=y |
145 | CONFIG_SENSORS_LM90=y | 145 | CONFIG_SENSORS_LM90=y |
146 | CONFIG_MFD_AS3722=y | ||
147 | CONFIG_MFD_CROS_EC=y | ||
148 | CONFIG_MFD_CROS_EC_SPI=y | ||
146 | CONFIG_MFD_MAX8907=y | 149 | CONFIG_MFD_MAX8907=y |
147 | CONFIG_MFD_PALMAS=y | 150 | CONFIG_MFD_PALMAS=y |
148 | CONFIG_MFD_TPS65090=y | 151 | CONFIG_MFD_TPS65090=y |
@@ -151,6 +154,7 @@ CONFIG_MFD_TPS65910=y | |||
151 | CONFIG_REGULATOR=y | 154 | CONFIG_REGULATOR=y |
152 | CONFIG_REGULATOR_FIXED_VOLTAGE=y | 155 | CONFIG_REGULATOR_FIXED_VOLTAGE=y |
153 | CONFIG_REGULATOR_VIRTUAL_CONSUMER=y | 156 | CONFIG_REGULATOR_VIRTUAL_CONSUMER=y |
157 | CONFIG_REGULATOR_AS3722=y | ||
154 | CONFIG_REGULATOR_GPIO=y | 158 | CONFIG_REGULATOR_GPIO=y |
155 | CONFIG_REGULATOR_MAX8907=y | 159 | CONFIG_REGULATOR_MAX8907=y |
156 | CONFIG_REGULATOR_PALMAS=y | 160 | CONFIG_REGULATOR_PALMAS=y |
@@ -164,7 +168,8 @@ CONFIG_MEDIA_CAMERA_SUPPORT=y | |||
164 | CONFIG_MEDIA_USB_SUPPORT=y | 168 | CONFIG_MEDIA_USB_SUPPORT=y |
165 | CONFIG_USB_VIDEO_CLASS=m | 169 | CONFIG_USB_VIDEO_CLASS=m |
166 | CONFIG_DRM=y | 170 | CONFIG_DRM=y |
167 | CONFIG_TEGRA_HOST1X=y | 171 | CONFIG_DRM_PANEL=y |
172 | CONFIG_DRM_PANEL_SIMPLE=y | ||
168 | CONFIG_DRM_TEGRA=y | 173 | CONFIG_DRM_TEGRA=y |
169 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | 174 | CONFIG_BACKLIGHT_LCD_SUPPORT=y |
170 | # CONFIG_LCD_CLASS_DEVICE is not set | 175 | # CONFIG_LCD_CLASS_DEVICE is not set |
@@ -187,6 +192,7 @@ CONFIG_SND_SOC_TEGRA_WM8753=y | |||
187 | CONFIG_SND_SOC_TEGRA_WM8903=y | 192 | CONFIG_SND_SOC_TEGRA_WM8903=y |
188 | CONFIG_SND_SOC_TEGRA_TRIMSLICE=y | 193 | CONFIG_SND_SOC_TEGRA_TRIMSLICE=y |
189 | CONFIG_SND_SOC_TEGRA_ALC5632=y | 194 | CONFIG_SND_SOC_TEGRA_ALC5632=y |
195 | CONFIG_SND_SOC_TEGRA_MAX98090=y | ||
190 | CONFIG_USB=y | 196 | CONFIG_USB=y |
191 | CONFIG_USB_XHCI_HCD=y | 197 | CONFIG_USB_XHCI_HCD=y |
192 | CONFIG_USB_EHCI_HCD=y | 198 | CONFIG_USB_EHCI_HCD=y |
@@ -211,6 +217,7 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | |||
211 | CONFIG_LEDS_TRIGGER_TRANSIENT=y | 217 | CONFIG_LEDS_TRIGGER_TRANSIENT=y |
212 | CONFIG_LEDS_TRIGGER_CAMERA=y | 218 | CONFIG_LEDS_TRIGGER_CAMERA=y |
213 | CONFIG_RTC_CLASS=y | 219 | CONFIG_RTC_CLASS=y |
220 | CONFIG_RTC_DRV_AS3722=y | ||
214 | CONFIG_RTC_DRV_MAX8907=y | 221 | CONFIG_RTC_DRV_MAX8907=y |
215 | CONFIG_RTC_DRV_PALMAS=y | 222 | CONFIG_RTC_DRV_PALMAS=y |
216 | CONFIG_RTC_DRV_TPS6586X=y | 223 | CONFIG_RTC_DRV_TPS6586X=y |
@@ -256,16 +263,15 @@ CONFIG_ROOT_NFS=y | |||
256 | CONFIG_NLS_CODEPAGE_437=y | 263 | CONFIG_NLS_CODEPAGE_437=y |
257 | CONFIG_NLS_ISO8859_1=y | 264 | CONFIG_NLS_ISO8859_1=y |
258 | CONFIG_PRINTK_TIME=y | 265 | CONFIG_PRINTK_TIME=y |
266 | CONFIG_DEBUG_INFO=y | ||
259 | CONFIG_MAGIC_SYSRQ=y | 267 | CONFIG_MAGIC_SYSRQ=y |
260 | CONFIG_DEBUG_FS=y | 268 | CONFIG_DEBUG_SLAB=y |
269 | CONFIG_DEBUG_VM=y | ||
261 | CONFIG_DETECT_HUNG_TASK=y | 270 | CONFIG_DETECT_HUNG_TASK=y |
262 | CONFIG_SCHEDSTATS=y | 271 | CONFIG_SCHEDSTATS=y |
263 | CONFIG_TIMER_STATS=y | 272 | CONFIG_TIMER_STATS=y |
264 | CONFIG_DEBUG_SLAB=y | ||
265 | # CONFIG_DEBUG_PREEMPT is not set | 273 | # CONFIG_DEBUG_PREEMPT is not set |
266 | CONFIG_DEBUG_MUTEXES=y | 274 | CONFIG_DEBUG_MUTEXES=y |
267 | CONFIG_DEBUG_INFO=y | ||
268 | CONFIG_DEBUG_VM=y | ||
269 | CONFIG_DEBUG_SG=y | 275 | CONFIG_DEBUG_SG=y |
270 | CONFIG_DEBUG_LL=y | 276 | CONFIG_DEBUG_LL=y |
271 | CONFIG_EARLY_PRINTK=y | 277 | CONFIG_EARLY_PRINTK=y |
diff --git a/arch/arm/mach-msm/board-dt.c b/arch/arm/mach-msm/board-dt.c index 16e6183ac9f1..1f11d93e700e 100644 --- a/arch/arm/mach-msm/board-dt.c +++ b/arch/arm/mach-msm/board-dt.c | |||
@@ -26,7 +26,16 @@ static const char * const msm_dt_match[] __initconst = { | |||
26 | NULL | 26 | NULL |
27 | }; | 27 | }; |
28 | 28 | ||
29 | static const char * const apq8074_dt_match[] __initconst = { | ||
30 | "qcom,apq8074-dragonboard", | ||
31 | NULL | ||
32 | }; | ||
33 | |||
29 | DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)") | 34 | DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)") |
30 | .smp = smp_ops(msm_smp_ops), | 35 | .smp = smp_ops(msm_smp_ops), |
31 | .dt_compat = msm_dt_match, | 36 | .dt_compat = msm_dt_match, |
32 | MACHINE_END | 37 | MACHINE_END |
38 | |||
39 | DT_MACHINE_START(APQ_DT, "Qualcomm MSM (Flattened Device Tree)") | ||
40 | .dt_compat = apq8074_dt_match, | ||
41 | MACHINE_END | ||
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index dc21df166161..4191ae08f4c8 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -192,19 +192,6 @@ config MACH_OMAP2_TUSB6010 | |||
192 | depends on ARCH_OMAP2 && SOC_OMAP2420 | 192 | depends on ARCH_OMAP2 && SOC_OMAP2420 |
193 | default y if MACH_NOKIA_N8X0 | 193 | default y if MACH_NOKIA_N8X0 |
194 | 194 | ||
195 | config MACH_OMAP_H4 | ||
196 | bool "OMAP 2420 H4 board" | ||
197 | depends on SOC_OMAP2420 | ||
198 | default y | ||
199 | select OMAP_DEBUG_DEVICES | ||
200 | select OMAP_PACKAGE_ZAF | ||
201 | |||
202 | config MACH_OMAP_2430SDP | ||
203 | bool "OMAP 2430 SDP board" | ||
204 | depends on SOC_OMAP2430 | ||
205 | default y | ||
206 | select OMAP_PACKAGE_ZAC | ||
207 | |||
208 | config MACH_OMAP3_BEAGLE | 195 | config MACH_OMAP3_BEAGLE |
209 | bool "OMAP3 BEAGLE board" | 196 | bool "OMAP3 BEAGLE board" |
210 | depends on ARCH_OMAP3 | 197 | depends on ARCH_OMAP3 |
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index adcef406ff0a..f78b177e8f4f 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -66,8 +66,6 @@ obj-$(CONFIG_SOC_OMAP5) += omap4-restart.o | |||
66 | obj-$(CONFIG_SOC_DRA7XX) += omap4-restart.o | 66 | obj-$(CONFIG_SOC_DRA7XX) += omap4-restart.o |
67 | 67 | ||
68 | # Pin multiplexing | 68 | # Pin multiplexing |
69 | obj-$(CONFIG_SOC_OMAP2420) += mux2420.o | ||
70 | obj-$(CONFIG_SOC_OMAP2430) += mux2430.o | ||
71 | obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o | 69 | obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o |
72 | 70 | ||
73 | # SMS/SDRC | 71 | # SMS/SDRC |
@@ -237,8 +235,6 @@ obj-$(CONFIG_SOC_OMAP2420) += msdi.o | |||
237 | 235 | ||
238 | # Specific board support | 236 | # Specific board support |
239 | obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o pdata-quirks.o | 237 | obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o pdata-quirks.o |
240 | obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o | ||
241 | obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o | ||
242 | obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o | 238 | obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o |
243 | obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o | 239 | obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o |
244 | obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o | 240 | obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o |
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c deleted file mode 100644 index c711ad6ac067..000000000000 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ /dev/null | |||
@@ -1,273 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap2/board-2430sdp.c | ||
3 | * | ||
4 | * Copyright (C) 2006 Texas Instruments | ||
5 | * | ||
6 | * Modified from mach-omap2/board-generic.c | ||
7 | * | ||
8 | * Initial Code : Based on a patch from Komal Shah and Richard Woodruff | ||
9 | * Updated the Code for 2430 SDP : Syed Mohammed Khasim | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License version 2 as | ||
13 | * published by the Free Software Foundation. | ||
14 | */ | ||
15 | |||
16 | #include <linux/kernel.h> | ||
17 | #include <linux/init.h> | ||
18 | #include <linux/platform_device.h> | ||
19 | #include <linux/mtd/mtd.h> | ||
20 | #include <linux/mtd/partitions.h> | ||
21 | #include <linux/mtd/physmap.h> | ||
22 | #include <linux/mmc/host.h> | ||
23 | #include <linux/delay.h> | ||
24 | #include <linux/i2c/twl.h> | ||
25 | #include <linux/regulator/machine.h> | ||
26 | #include <linux/err.h> | ||
27 | #include <linux/clk.h> | ||
28 | #include <linux/io.h> | ||
29 | #include <linux/gpio.h> | ||
30 | #include <linux/usb/phy.h> | ||
31 | |||
32 | #include <asm/mach-types.h> | ||
33 | #include <asm/mach/arch.h> | ||
34 | #include <asm/mach/map.h> | ||
35 | |||
36 | #include "common.h" | ||
37 | #include "gpmc.h" | ||
38 | #include "gpmc-smc91x.h" | ||
39 | |||
40 | #include <video/omapdss.h> | ||
41 | #include <video/omap-panel-data.h> | ||
42 | |||
43 | #include "mux.h" | ||
44 | #include "hsmmc.h" | ||
45 | #include "common-board-devices.h" | ||
46 | |||
47 | #define SDP2430_CS0_BASE 0x04000000 | ||
48 | #define SECONDARY_LCD_GPIO 147 | ||
49 | |||
50 | static struct mtd_partition sdp2430_partitions[] = { | ||
51 | /* bootloader (U-Boot, etc) in first sector */ | ||
52 | { | ||
53 | .name = "bootloader", | ||
54 | .offset = 0, | ||
55 | .size = SZ_256K, | ||
56 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
57 | }, | ||
58 | /* bootloader params in the next sector */ | ||
59 | { | ||
60 | .name = "params", | ||
61 | .offset = MTDPART_OFS_APPEND, | ||
62 | .size = SZ_128K, | ||
63 | .mask_flags = 0, | ||
64 | }, | ||
65 | /* kernel */ | ||
66 | { | ||
67 | .name = "kernel", | ||
68 | .offset = MTDPART_OFS_APPEND, | ||
69 | .size = SZ_2M, | ||
70 | .mask_flags = 0 | ||
71 | }, | ||
72 | /* file system */ | ||
73 | { | ||
74 | .name = "filesystem", | ||
75 | .offset = MTDPART_OFS_APPEND, | ||
76 | .size = MTDPART_SIZ_FULL, | ||
77 | .mask_flags = 0 | ||
78 | } | ||
79 | }; | ||
80 | |||
81 | static struct physmap_flash_data sdp2430_flash_data = { | ||
82 | .width = 2, | ||
83 | .parts = sdp2430_partitions, | ||
84 | .nr_parts = ARRAY_SIZE(sdp2430_partitions), | ||
85 | }; | ||
86 | |||
87 | static struct resource sdp2430_flash_resource = { | ||
88 | .start = SDP2430_CS0_BASE, | ||
89 | .end = SDP2430_CS0_BASE + SZ_64M - 1, | ||
90 | .flags = IORESOURCE_MEM, | ||
91 | }; | ||
92 | |||
93 | static struct platform_device sdp2430_flash_device = { | ||
94 | .name = "physmap-flash", | ||
95 | .id = 0, | ||
96 | .dev = { | ||
97 | .platform_data = &sdp2430_flash_data, | ||
98 | }, | ||
99 | .num_resources = 1, | ||
100 | .resource = &sdp2430_flash_resource, | ||
101 | }; | ||
102 | |||
103 | /* LCD */ | ||
104 | #define SDP2430_LCD_PANEL_BACKLIGHT_GPIO 91 | ||
105 | #define SDP2430_LCD_PANEL_ENABLE_GPIO 154 | ||
106 | |||
107 | static const struct display_timing sdp2430_lcd_videomode = { | ||
108 | .pixelclock = { 0, 5400000, 0 }, | ||
109 | |||
110 | .hactive = { 0, 240, 0 }, | ||
111 | .hfront_porch = { 0, 3, 0 }, | ||
112 | .hback_porch = { 0, 39, 0 }, | ||
113 | .hsync_len = { 0, 3, 0 }, | ||
114 | |||
115 | .vactive = { 0, 320, 0 }, | ||
116 | .vfront_porch = { 0, 2, 0 }, | ||
117 | .vback_porch = { 0, 7, 0 }, | ||
118 | .vsync_len = { 0, 1, 0 }, | ||
119 | |||
120 | .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | | ||
121 | DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE, | ||
122 | }; | ||
123 | |||
124 | static struct panel_dpi_platform_data sdp2430_lcd_pdata = { | ||
125 | .name = "lcd", | ||
126 | .source = "dpi.0", | ||
127 | |||
128 | .data_lines = 16, | ||
129 | |||
130 | .display_timing = &sdp2430_lcd_videomode, | ||
131 | |||
132 | .enable_gpio = SDP2430_LCD_PANEL_ENABLE_GPIO, | ||
133 | .backlight_gpio = SDP2430_LCD_PANEL_BACKLIGHT_GPIO, | ||
134 | }; | ||
135 | |||
136 | static struct platform_device sdp2430_lcd_device = { | ||
137 | .name = "panel-dpi", | ||
138 | .id = 0, | ||
139 | .dev.platform_data = &sdp2430_lcd_pdata, | ||
140 | }; | ||
141 | |||
142 | static struct omap_dss_board_info sdp2430_dss_data = { | ||
143 | .default_display_name = "lcd", | ||
144 | }; | ||
145 | |||
146 | static struct platform_device *sdp2430_devices[] __initdata = { | ||
147 | &sdp2430_flash_device, | ||
148 | &sdp2430_lcd_device, | ||
149 | }; | ||
150 | |||
151 | #if IS_ENABLED(CONFIG_SMC91X) | ||
152 | |||
153 | static struct omap_smc91x_platform_data board_smc91x_data = { | ||
154 | .cs = 5, | ||
155 | .gpio_irq = 149, | ||
156 | .flags = GPMC_MUX_ADD_DATA | GPMC_TIMINGS_SMC91C96 | | ||
157 | IORESOURCE_IRQ_LOWLEVEL, | ||
158 | |||
159 | }; | ||
160 | |||
161 | static void __init board_smc91x_init(void) | ||
162 | { | ||
163 | omap_mux_init_gpio(149, OMAP_PIN_INPUT); | ||
164 | gpmc_smc91x_init(&board_smc91x_data); | ||
165 | } | ||
166 | |||
167 | #else | ||
168 | |||
169 | static inline void board_smc91x_init(void) | ||
170 | { | ||
171 | } | ||
172 | |||
173 | #endif | ||
174 | |||
175 | static struct regulator_consumer_supply sdp2430_vmmc1_supplies[] = { | ||
176 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), | ||
177 | }; | ||
178 | |||
179 | /* VMMC1 for OMAP VDD_MMC1 (i/o) and MMC1 card */ | ||
180 | static struct regulator_init_data sdp2430_vmmc1 = { | ||
181 | .constraints = { | ||
182 | .min_uV = 1850000, | ||
183 | .max_uV = 3150000, | ||
184 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
185 | | REGULATOR_MODE_STANDBY, | ||
186 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | ||
187 | | REGULATOR_CHANGE_MODE | ||
188 | | REGULATOR_CHANGE_STATUS, | ||
189 | }, | ||
190 | .num_consumer_supplies = ARRAY_SIZE(sdp2430_vmmc1_supplies), | ||
191 | .consumer_supplies = &sdp2430_vmmc1_supplies[0], | ||
192 | }; | ||
193 | |||
194 | static struct twl4030_gpio_platform_data sdp2430_gpio_data = { | ||
195 | }; | ||
196 | |||
197 | static struct twl4030_platform_data sdp2430_twldata = { | ||
198 | /* platform_data for children goes here */ | ||
199 | .gpio = &sdp2430_gpio_data, | ||
200 | .vmmc1 = &sdp2430_vmmc1, | ||
201 | }; | ||
202 | |||
203 | static struct i2c_board_info __initdata sdp2430_i2c1_boardinfo[] = { | ||
204 | { | ||
205 | I2C_BOARD_INFO("isp1301_omap", 0x2D), | ||
206 | .flags = I2C_CLIENT_WAKE, | ||
207 | }, | ||
208 | }; | ||
209 | |||
210 | static int __init omap2430_i2c_init(void) | ||
211 | { | ||
212 | sdp2430_i2c1_boardinfo[0].irq = gpio_to_irq(78); | ||
213 | omap_register_i2c_bus(1, 100, sdp2430_i2c1_boardinfo, | ||
214 | ARRAY_SIZE(sdp2430_i2c1_boardinfo)); | ||
215 | omap_pmic_init(2, 100, "twl4030", 7 + OMAP_INTC_START, | ||
216 | &sdp2430_twldata); | ||
217 | return 0; | ||
218 | } | ||
219 | |||
220 | static struct omap2_hsmmc_info mmc[] __initdata = { | ||
221 | { | ||
222 | .mmc = 1, | ||
223 | .caps = MMC_CAP_4_BIT_DATA, | ||
224 | .gpio_cd = -EINVAL, | ||
225 | .gpio_wp = -EINVAL, | ||
226 | .ext_clock = 1, | ||
227 | }, | ||
228 | {} /* Terminator */ | ||
229 | }; | ||
230 | |||
231 | #ifdef CONFIG_OMAP_MUX | ||
232 | static struct omap_board_mux board_mux[] __initdata = { | ||
233 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
234 | }; | ||
235 | #endif | ||
236 | |||
237 | static void __init omap_2430sdp_init(void) | ||
238 | { | ||
239 | omap2430_mux_init(board_mux, OMAP_PACKAGE_ZAC); | ||
240 | |||
241 | omap2430_i2c_init(); | ||
242 | |||
243 | platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); | ||
244 | omap_serial_init(); | ||
245 | omap_sdrc_init(NULL, NULL); | ||
246 | omap_hsmmc_init(mmc); | ||
247 | |||
248 | omap_mux_init_signal("usb0hs_stp", OMAP_PULL_ENA | OMAP_PULL_UP); | ||
249 | usb_bind_phy("musb-hdrc.0.auto", 0, "twl4030_usb"); | ||
250 | usb_musb_init(NULL); | ||
251 | |||
252 | board_smc91x_init(); | ||
253 | |||
254 | /* Turn off secondary LCD backlight */ | ||
255 | gpio_request_one(SECONDARY_LCD_GPIO, GPIOF_OUT_INIT_LOW, | ||
256 | "Secondary LCD backlight"); | ||
257 | |||
258 | omap_display_init(&sdp2430_dss_data); | ||
259 | } | ||
260 | |||
261 | MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board") | ||
262 | /* Maintainer: Syed Khasim - Texas Instruments Inc */ | ||
263 | .atag_offset = 0x100, | ||
264 | .reserve = omap_reserve, | ||
265 | .map_io = omap243x_map_io, | ||
266 | .init_early = omap2430_init_early, | ||
267 | .init_irq = omap2_init_irq, | ||
268 | .handle_irq = omap2_intc_handle_irq, | ||
269 | .init_machine = omap_2430sdp_init, | ||
270 | .init_late = omap2430_init_late, | ||
271 | .init_time = omap2_sync32k_timer_init, | ||
272 | .restart = omap2xxx_restart, | ||
273 | MACHINE_END | ||
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c deleted file mode 100644 index f7808349a734..000000000000 --- a/arch/arm/mach-omap2/board-h4.c +++ /dev/null | |||
@@ -1,365 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap2/board-h4.c | ||
3 | * | ||
4 | * Copyright (C) 2005 Nokia Corporation | ||
5 | * Author: Paul Mundt <paul.mundt@nokia.com> | ||
6 | * | ||
7 | * Modified from mach-omap/omap1/board-generic.c | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | #include <linux/gpio.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/platform_device.h> | ||
17 | #include <linux/mtd/mtd.h> | ||
18 | #include <linux/mtd/partitions.h> | ||
19 | #include <linux/mtd/physmap.h> | ||
20 | #include <linux/delay.h> | ||
21 | #include <linux/workqueue.h> | ||
22 | #include <linux/i2c.h> | ||
23 | #include <linux/platform_data/at24.h> | ||
24 | #include <linux/input.h> | ||
25 | #include <linux/err.h> | ||
26 | #include <linux/clk.h> | ||
27 | #include <linux/io.h> | ||
28 | #include <linux/input/matrix_keypad.h> | ||
29 | #include <linux/mfd/menelaus.h> | ||
30 | #include <linux/omap-dma.h> | ||
31 | |||
32 | #include <asm/mach-types.h> | ||
33 | #include <asm/mach/arch.h> | ||
34 | #include <asm/mach/map.h> | ||
35 | |||
36 | #include <video/omapdss.h> | ||
37 | #include <video/omap-panel-data.h> | ||
38 | |||
39 | #include "common.h" | ||
40 | #include "mux.h" | ||
41 | #include "control.h" | ||
42 | #include "gpmc.h" | ||
43 | #include "gpmc-smc91x.h" | ||
44 | |||
45 | #define H4_FLASH_CS 0 | ||
46 | |||
47 | #if defined(CONFIG_KEYBOARD_MATRIX) || defined(CONFIG_KEYBOARD_MATRIX_MODULE) | ||
48 | static const uint32_t board_matrix_keys[] = { | ||
49 | KEY(0, 0, KEY_LEFT), | ||
50 | KEY(1, 0, KEY_RIGHT), | ||
51 | KEY(2, 0, KEY_A), | ||
52 | KEY(3, 0, KEY_B), | ||
53 | KEY(4, 0, KEY_C), | ||
54 | KEY(0, 1, KEY_DOWN), | ||
55 | KEY(1, 1, KEY_UP), | ||
56 | KEY(2, 1, KEY_E), | ||
57 | KEY(3, 1, KEY_F), | ||
58 | KEY(4, 1, KEY_G), | ||
59 | KEY(0, 2, KEY_ENTER), | ||
60 | KEY(1, 2, KEY_I), | ||
61 | KEY(2, 2, KEY_J), | ||
62 | KEY(3, 2, KEY_K), | ||
63 | KEY(4, 2, KEY_3), | ||
64 | KEY(0, 3, KEY_M), | ||
65 | KEY(1, 3, KEY_N), | ||
66 | KEY(2, 3, KEY_O), | ||
67 | KEY(3, 3, KEY_P), | ||
68 | KEY(4, 3, KEY_Q), | ||
69 | KEY(0, 4, KEY_R), | ||
70 | KEY(1, 4, KEY_4), | ||
71 | KEY(2, 4, KEY_T), | ||
72 | KEY(3, 4, KEY_U), | ||
73 | KEY(4, 4, KEY_ENTER), | ||
74 | KEY(0, 5, KEY_V), | ||
75 | KEY(1, 5, KEY_W), | ||
76 | KEY(2, 5, KEY_L), | ||
77 | KEY(3, 5, KEY_S), | ||
78 | KEY(4, 5, KEY_ENTER), | ||
79 | }; | ||
80 | |||
81 | static const struct matrix_keymap_data board_keymap_data = { | ||
82 | .keymap = board_matrix_keys, | ||
83 | .keymap_size = ARRAY_SIZE(board_matrix_keys), | ||
84 | }; | ||
85 | |||
86 | static unsigned int board_keypad_row_gpios[] = { | ||
87 | 88, 89, 124, 11, 6, 96 | ||
88 | }; | ||
89 | |||
90 | static unsigned int board_keypad_col_gpios[] = { | ||
91 | 90, 91, 100, 36, 12, 97, 98 | ||
92 | }; | ||
93 | |||
94 | static struct matrix_keypad_platform_data board_keypad_platform_data = { | ||
95 | .keymap_data = &board_keymap_data, | ||
96 | .row_gpios = board_keypad_row_gpios, | ||
97 | .num_row_gpios = ARRAY_SIZE(board_keypad_row_gpios), | ||
98 | .col_gpios = board_keypad_col_gpios, | ||
99 | .num_col_gpios = ARRAY_SIZE(board_keypad_col_gpios), | ||
100 | .active_low = 1, | ||
101 | |||
102 | .debounce_ms = 20, | ||
103 | .col_scan_delay_us = 5, | ||
104 | }; | ||
105 | |||
106 | static struct platform_device board_keyboard = { | ||
107 | .name = "matrix-keypad", | ||
108 | .id = -1, | ||
109 | .dev = { | ||
110 | .platform_data = &board_keypad_platform_data, | ||
111 | }, | ||
112 | }; | ||
113 | static void __init board_mkp_init(void) | ||
114 | { | ||
115 | omap_mux_init_gpio(88, OMAP_PULL_ENA | OMAP_PULL_UP); | ||
116 | omap_mux_init_gpio(89, OMAP_PULL_ENA | OMAP_PULL_UP); | ||
117 | omap_mux_init_gpio(124, OMAP_PULL_ENA | OMAP_PULL_UP); | ||
118 | omap_mux_init_signal("mcbsp2_dr.gpio_11", OMAP_PULL_ENA | OMAP_PULL_UP); | ||
119 | if (omap_has_menelaus()) { | ||
120 | omap_mux_init_signal("sdrc_a14.gpio0", | ||
121 | OMAP_PULL_ENA | OMAP_PULL_UP); | ||
122 | omap_mux_init_signal("vlynq_rx0.gpio_15", 0); | ||
123 | omap_mux_init_signal("gpio_98", 0); | ||
124 | board_keypad_row_gpios[5] = 0; | ||
125 | board_keypad_col_gpios[2] = 15; | ||
126 | board_keypad_col_gpios[6] = 18; | ||
127 | } else { | ||
128 | omap_mux_init_signal("gpio_96", OMAP_PULL_ENA | OMAP_PULL_UP); | ||
129 | omap_mux_init_signal("gpio_100", 0); | ||
130 | omap_mux_init_signal("gpio_98", 0); | ||
131 | } | ||
132 | omap_mux_init_signal("gpio_90", 0); | ||
133 | omap_mux_init_signal("gpio_91", 0); | ||
134 | omap_mux_init_signal("gpio_36", 0); | ||
135 | omap_mux_init_signal("mcbsp2_clkx.gpio_12", 0); | ||
136 | omap_mux_init_signal("gpio_97", 0); | ||
137 | |||
138 | platform_device_register(&board_keyboard); | ||
139 | } | ||
140 | #else | ||
141 | static inline void board_mkp_init(void) | ||
142 | { | ||
143 | } | ||
144 | #endif | ||
145 | |||
146 | static struct mtd_partition h4_partitions[] = { | ||
147 | /* bootloader (U-Boot, etc) in first sector */ | ||
148 | { | ||
149 | .name = "bootloader", | ||
150 | .offset = 0, | ||
151 | .size = SZ_128K, | ||
152 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
153 | }, | ||
154 | /* bootloader params in the next sector */ | ||
155 | { | ||
156 | .name = "params", | ||
157 | .offset = MTDPART_OFS_APPEND, | ||
158 | .size = SZ_128K, | ||
159 | .mask_flags = 0, | ||
160 | }, | ||
161 | /* kernel */ | ||
162 | { | ||
163 | .name = "kernel", | ||
164 | .offset = MTDPART_OFS_APPEND, | ||
165 | .size = SZ_2M, | ||
166 | .mask_flags = 0 | ||
167 | }, | ||
168 | /* file system */ | ||
169 | { | ||
170 | .name = "filesystem", | ||
171 | .offset = MTDPART_OFS_APPEND, | ||
172 | .size = MTDPART_SIZ_FULL, | ||
173 | .mask_flags = 0 | ||
174 | } | ||
175 | }; | ||
176 | |||
177 | static struct physmap_flash_data h4_flash_data = { | ||
178 | .width = 2, | ||
179 | .parts = h4_partitions, | ||
180 | .nr_parts = ARRAY_SIZE(h4_partitions), | ||
181 | }; | ||
182 | |||
183 | static struct resource h4_flash_resource = { | ||
184 | .flags = IORESOURCE_MEM, | ||
185 | }; | ||
186 | |||
187 | static struct platform_device h4_flash_device = { | ||
188 | .name = "physmap-flash", | ||
189 | .id = 0, | ||
190 | .dev = { | ||
191 | .platform_data = &h4_flash_data, | ||
192 | }, | ||
193 | .num_resources = 1, | ||
194 | .resource = &h4_flash_resource, | ||
195 | }; | ||
196 | |||
197 | static const struct display_timing cm_t35_lcd_videomode = { | ||
198 | .pixelclock = { 0, 6250000, 0 }, | ||
199 | |||
200 | .hactive = { 0, 240, 0 }, | ||
201 | .hfront_porch = { 0, 15, 0 }, | ||
202 | .hback_porch = { 0, 60, 0 }, | ||
203 | .hsync_len = { 0, 15, 0 }, | ||
204 | |||
205 | .vactive = { 0, 320, 0 }, | ||
206 | .vfront_porch = { 0, 1, 0 }, | ||
207 | .vback_porch = { 0, 1, 0 }, | ||
208 | .vsync_len = { 0, 1, 0 }, | ||
209 | |||
210 | .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH | | ||
211 | DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE, | ||
212 | }; | ||
213 | |||
214 | static struct panel_dpi_platform_data cm_t35_lcd_pdata = { | ||
215 | .name = "lcd", | ||
216 | .source = "dpi.0", | ||
217 | |||
218 | .data_lines = 16, | ||
219 | |||
220 | .display_timing = &cm_t35_lcd_videomode, | ||
221 | |||
222 | .enable_gpio = -1, | ||
223 | .backlight_gpio = -1, | ||
224 | }; | ||
225 | |||
226 | static struct platform_device cm_t35_lcd_device = { | ||
227 | .name = "panel-dpi", | ||
228 | .id = 0, | ||
229 | .dev.platform_data = &cm_t35_lcd_pdata, | ||
230 | }; | ||
231 | |||
232 | static struct platform_device *h4_devices[] __initdata = { | ||
233 | &h4_flash_device, | ||
234 | &cm_t35_lcd_device, | ||
235 | }; | ||
236 | |||
237 | static struct omap_dss_board_info h4_dss_data = { | ||
238 | .default_display_name = "lcd", | ||
239 | }; | ||
240 | |||
241 | /* 2420 Sysboot setup (2430 is different) */ | ||
242 | static u32 get_sysboot_value(void) | ||
243 | { | ||
244 | return (omap_ctrl_readl(OMAP24XX_CONTROL_STATUS) & | ||
245 | (OMAP2_SYSBOOT_5_MASK | OMAP2_SYSBOOT_4_MASK | | ||
246 | OMAP2_SYSBOOT_3_MASK | OMAP2_SYSBOOT_2_MASK | | ||
247 | OMAP2_SYSBOOT_1_MASK | OMAP2_SYSBOOT_0_MASK)); | ||
248 | } | ||
249 | |||
250 | /* H4-2420's always used muxed mode, H4-2422's always use non-muxed | ||
251 | * | ||
252 | * Note: OMAP-GIT doesn't correctly do is_cpu_omap2422 and is_cpu_omap2423 | ||
253 | * correctly. The macro needs to look at production_id not just hawkeye. | ||
254 | */ | ||
255 | static u32 is_gpmc_muxed(void) | ||
256 | { | ||
257 | u32 mux; | ||
258 | mux = get_sysboot_value(); | ||
259 | if ((mux & 0xF) == 0xd) | ||
260 | return 1; /* NAND config (could be either) */ | ||
261 | if (mux & 0x2) /* if mux'ed */ | ||
262 | return 1; | ||
263 | else | ||
264 | return 0; | ||
265 | } | ||
266 | |||
267 | #if IS_ENABLED(CONFIG_SMC91X) | ||
268 | |||
269 | static struct omap_smc91x_platform_data board_smc91x_data = { | ||
270 | .cs = 1, | ||
271 | .gpio_irq = 92, | ||
272 | .flags = GPMC_TIMINGS_SMC91C96 | IORESOURCE_IRQ_LOWLEVEL, | ||
273 | }; | ||
274 | |||
275 | static void __init board_smc91x_init(void) | ||
276 | { | ||
277 | if (is_gpmc_muxed()) | ||
278 | board_smc91x_data.flags |= GPMC_MUX_ADD_DATA; | ||
279 | |||
280 | omap_mux_init_gpio(board_smc91x_data.gpio_irq, OMAP_PIN_INPUT); | ||
281 | gpmc_smc91x_init(&board_smc91x_data); | ||
282 | } | ||
283 | |||
284 | #else | ||
285 | |||
286 | static inline void board_smc91x_init(void) | ||
287 | { | ||
288 | } | ||
289 | |||
290 | #endif | ||
291 | |||
292 | static void __init h4_init_flash(void) | ||
293 | { | ||
294 | unsigned long base; | ||
295 | |||
296 | if (gpmc_cs_request(H4_FLASH_CS, SZ_64M, &base) < 0) { | ||
297 | printk("Can't request GPMC CS for flash\n"); | ||
298 | return; | ||
299 | } | ||
300 | h4_flash_resource.start = base; | ||
301 | h4_flash_resource.end = base + SZ_64M - 1; | ||
302 | } | ||
303 | |||
304 | static struct at24_platform_data m24c01 = { | ||
305 | .byte_len = SZ_1K / 8, | ||
306 | .page_size = 16, | ||
307 | }; | ||
308 | |||
309 | static struct i2c_board_info __initdata h4_i2c_board_info[] = { | ||
310 | { | ||
311 | I2C_BOARD_INFO("isp1301_omap", 0x2d), | ||
312 | }, | ||
313 | { /* EEPROM on mainboard */ | ||
314 | I2C_BOARD_INFO("24c01", 0x52), | ||
315 | .platform_data = &m24c01, | ||
316 | }, | ||
317 | { /* EEPROM on cpu card */ | ||
318 | I2C_BOARD_INFO("24c01", 0x57), | ||
319 | .platform_data = &m24c01, | ||
320 | }, | ||
321 | }; | ||
322 | |||
323 | #ifdef CONFIG_OMAP_MUX | ||
324 | static struct omap_board_mux board_mux[] __initdata = { | ||
325 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
326 | }; | ||
327 | #endif | ||
328 | |||
329 | static void __init omap_h4_init(void) | ||
330 | { | ||
331 | omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAF); | ||
332 | |||
333 | /* | ||
334 | * Make sure the serial ports are muxed on at this point. | ||
335 | * You have to mux them off in device drivers later on | ||
336 | * if not needed. | ||
337 | */ | ||
338 | |||
339 | board_mkp_init(); | ||
340 | h4_i2c_board_info[0].irq = gpio_to_irq(125); | ||
341 | i2c_register_board_info(1, h4_i2c_board_info, | ||
342 | ARRAY_SIZE(h4_i2c_board_info)); | ||
343 | |||
344 | platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices)); | ||
345 | omap_serial_init(); | ||
346 | omap_sdrc_init(NULL, NULL); | ||
347 | h4_init_flash(); | ||
348 | board_smc91x_init(); | ||
349 | |||
350 | omap_display_init(&h4_dss_data); | ||
351 | } | ||
352 | |||
353 | MACHINE_START(OMAP_H4, "OMAP2420 H4 board") | ||
354 | /* Maintainer: Paul Mundt <paul.mundt@nokia.com> */ | ||
355 | .atag_offset = 0x100, | ||
356 | .reserve = omap_reserve, | ||
357 | .map_io = omap242x_map_io, | ||
358 | .init_early = omap2420_init_early, | ||
359 | .init_irq = omap2_init_irq, | ||
360 | .handle_irq = omap2_intc_handle_irq, | ||
361 | .init_machine = omap_h4_init, | ||
362 | .init_late = omap2420_init_late, | ||
363 | .init_time = omap2_sync32k_timer_init, | ||
364 | .restart = omap2xxx_restart, | ||
365 | MACHINE_END | ||
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 827d15009a86..aead77a4bc6d 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/i2c.h> | 21 | #include <linux/i2c.h> |
22 | #include <linux/spi/spi.h> | 22 | #include <linux/spi/spi.h> |
23 | #include <linux/usb/musb.h> | 23 | #include <linux/usb/musb.h> |
24 | #include <linux/platform_data/i2c-cbus-gpio.h> | ||
25 | #include <linux/platform_data/spi-omap2-mcspi.h> | 24 | #include <linux/platform_data/spi-omap2-mcspi.h> |
26 | #include <linux/platform_data/mtd-onenand-omap2.h> | 25 | #include <linux/platform_data/mtd-onenand-omap2.h> |
27 | #include <linux/mfd/menelaus.h> | 26 | #include <linux/mfd/menelaus.h> |
@@ -32,8 +31,7 @@ | |||
32 | 31 | ||
33 | #include "common.h" | 32 | #include "common.h" |
34 | #include "mmc.h" | 33 | #include "mmc.h" |
35 | 34 | #include "soc.h" | |
36 | #include "mux.h" | ||
37 | #include "gpmc-onenand.h" | 35 | #include "gpmc-onenand.h" |
38 | 36 | ||
39 | #define TUSB6010_ASYNC_CS 1 | 37 | #define TUSB6010_ASYNC_CS 1 |
@@ -42,44 +40,30 @@ | |||
42 | #define TUSB6010_GPIO_ENABLE 0 | 40 | #define TUSB6010_GPIO_ENABLE 0 |
43 | #define TUSB6010_DMACHAN 0x3f | 41 | #define TUSB6010_DMACHAN 0x3f |
44 | 42 | ||
45 | #if defined(CONFIG_I2C_CBUS_GPIO) || defined(CONFIG_I2C_CBUS_GPIO_MODULE) | 43 | #define NOKIA_N810_WIMAX (1 << 2) |
46 | static struct i2c_cbus_platform_data n8x0_cbus_data = { | 44 | #define NOKIA_N810 (1 << 1) |
47 | .clk_gpio = 66, | 45 | #define NOKIA_N800 (1 << 0) |
48 | .dat_gpio = 65, | ||
49 | .sel_gpio = 64, | ||
50 | }; | ||
51 | 46 | ||
52 | static struct platform_device n8x0_cbus_device = { | 47 | static u32 board_caps; |
53 | .name = "i2c-cbus-gpio", | ||
54 | .id = 3, | ||
55 | .dev = { | ||
56 | .platform_data = &n8x0_cbus_data, | ||
57 | }, | ||
58 | }; | ||
59 | 48 | ||
60 | static struct i2c_board_info n8x0_i2c_board_info_3[] __initdata = { | 49 | #define board_is_n800() (board_caps & NOKIA_N800) |
61 | { | 50 | #define board_is_n810() (board_caps & NOKIA_N810) |
62 | I2C_BOARD_INFO("retu-mfd", 0x01), | 51 | #define board_is_n810_wimax() (board_caps & NOKIA_N810_WIMAX) |
63 | }, | ||
64 | }; | ||
65 | 52 | ||
66 | static void __init n8x0_cbus_init(void) | 53 | static void board_check_revision(void) |
67 | { | 54 | { |
68 | const int retu_irq_gpio = 108; | 55 | if (of_have_populated_dt()) { |
56 | if (of_machine_is_compatible("nokia,n800")) | ||
57 | board_caps = NOKIA_N800; | ||
58 | else if (of_machine_is_compatible("nokia,n810")) | ||
59 | board_caps = NOKIA_N810; | ||
60 | else if (of_machine_is_compatible("nokia,n810-wimax")) | ||
61 | board_caps = NOKIA_N810_WIMAX; | ||
62 | } | ||
69 | 63 | ||
70 | if (gpio_request_one(retu_irq_gpio, GPIOF_IN, "Retu IRQ")) | 64 | if (!board_caps) |
71 | return; | 65 | pr_err("Unknown board\n"); |
72 | irq_set_irq_type(gpio_to_irq(retu_irq_gpio), IRQ_TYPE_EDGE_RISING); | ||
73 | n8x0_i2c_board_info_3[0].irq = gpio_to_irq(retu_irq_gpio); | ||
74 | i2c_register_board_info(3, n8x0_i2c_board_info_3, | ||
75 | ARRAY_SIZE(n8x0_i2c_board_info_3)); | ||
76 | platform_device_register(&n8x0_cbus_device); | ||
77 | } | ||
78 | #else /* CONFIG_I2C_CBUS_GPIO */ | ||
79 | static void __init n8x0_cbus_init(void) | ||
80 | { | ||
81 | } | 66 | } |
82 | #endif /* CONFIG_I2C_CBUS_GPIO */ | ||
83 | 67 | ||
84 | #if defined(CONFIG_USB_MUSB_TUSB6010) || defined(CONFIG_USB_MUSB_TUSB6010_MODULE) | 68 | #if defined(CONFIG_USB_MUSB_TUSB6010) || defined(CONFIG_USB_MUSB_TUSB6010_MODULE) |
85 | /* | 69 | /* |
@@ -178,49 +162,6 @@ static struct spi_board_info n800_spi_board_info[] __initdata = { | |||
178 | }, | 162 | }, |
179 | }; | 163 | }; |
180 | 164 | ||
181 | #if defined(CONFIG_MTD_ONENAND_OMAP2) || \ | ||
182 | defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) | ||
183 | |||
184 | static struct mtd_partition onenand_partitions[] = { | ||
185 | { | ||
186 | .name = "bootloader", | ||
187 | .offset = 0, | ||
188 | .size = 0x20000, | ||
189 | .mask_flags = MTD_WRITEABLE, /* Force read-only */ | ||
190 | }, | ||
191 | { | ||
192 | .name = "config", | ||
193 | .offset = MTDPART_OFS_APPEND, | ||
194 | .size = 0x60000, | ||
195 | }, | ||
196 | { | ||
197 | .name = "kernel", | ||
198 | .offset = MTDPART_OFS_APPEND, | ||
199 | .size = 0x200000, | ||
200 | }, | ||
201 | { | ||
202 | .name = "initfs", | ||
203 | .offset = MTDPART_OFS_APPEND, | ||
204 | .size = 0x400000, | ||
205 | }, | ||
206 | { | ||
207 | .name = "rootfs", | ||
208 | .offset = MTDPART_OFS_APPEND, | ||
209 | .size = MTDPART_SIZ_FULL, | ||
210 | }, | ||
211 | }; | ||
212 | |||
213 | static struct omap_onenand_platform_data board_onenand_data[] = { | ||
214 | { | ||
215 | .cs = 0, | ||
216 | .gpio_irq = 26, | ||
217 | .parts = onenand_partitions, | ||
218 | .nr_parts = ARRAY_SIZE(onenand_partitions), | ||
219 | .flags = ONENAND_SYNC_READ, | ||
220 | } | ||
221 | }; | ||
222 | #endif | ||
223 | |||
224 | #if defined(CONFIG_MENELAUS) && \ | 165 | #if defined(CONFIG_MENELAUS) && \ |
225 | (defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)) | 166 | (defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)) |
226 | 167 | ||
@@ -342,7 +283,7 @@ static void n810_set_power_emmc(struct device *dev, | |||
342 | static int n8x0_mmc_set_power(struct device *dev, int slot, int power_on, | 283 | static int n8x0_mmc_set_power(struct device *dev, int slot, int power_on, |
343 | int vdd) | 284 | int vdd) |
344 | { | 285 | { |
345 | if (machine_is_nokia_n800() || slot == 0) | 286 | if (board_is_n800() || slot == 0) |
346 | return n8x0_mmc_set_power_menelaus(dev, slot, power_on, vdd); | 287 | return n8x0_mmc_set_power_menelaus(dev, slot, power_on, vdd); |
347 | 288 | ||
348 | n810_set_power_emmc(dev, power_on); | 289 | n810_set_power_emmc(dev, power_on); |
@@ -388,7 +329,7 @@ static void n8x0_mmc_callback(void *data, u8 card_mask) | |||
388 | { | 329 | { |
389 | int bit, *openp, index; | 330 | int bit, *openp, index; |
390 | 331 | ||
391 | if (machine_is_nokia_n800()) { | 332 | if (board_is_n800()) { |
392 | bit = 1 << 1; | 333 | bit = 1 << 1; |
393 | openp = &slot2_cover_open; | 334 | openp = &slot2_cover_open; |
394 | index = 1; | 335 | index = 1; |
@@ -421,7 +362,7 @@ static int n8x0_mmc_late_init(struct device *dev) | |||
421 | if (r < 0) | 362 | if (r < 0) |
422 | return r; | 363 | return r; |
423 | 364 | ||
424 | if (machine_is_nokia_n800()) | 365 | if (board_is_n800()) |
425 | vs2sel = 0; | 366 | vs2sel = 0; |
426 | else | 367 | else |
427 | vs2sel = 2; | 368 | vs2sel = 2; |
@@ -444,7 +385,7 @@ static int n8x0_mmc_late_init(struct device *dev) | |||
444 | if (r < 0) | 385 | if (r < 0) |
445 | return r; | 386 | return r; |
446 | 387 | ||
447 | if (machine_is_nokia_n800()) { | 388 | if (board_is_n800()) { |
448 | bit = 1 << 1; | 389 | bit = 1 << 1; |
449 | openp = &slot2_cover_open; | 390 | openp = &slot2_cover_open; |
450 | } else { | 391 | } else { |
@@ -471,7 +412,7 @@ static void n8x0_mmc_shutdown(struct device *dev) | |||
471 | { | 412 | { |
472 | int vs2sel; | 413 | int vs2sel; |
473 | 414 | ||
474 | if (machine_is_nokia_n800()) | 415 | if (board_is_n800()) |
475 | vs2sel = 0; | 416 | vs2sel = 0; |
476 | else | 417 | else |
477 | vs2sel = 2; | 418 | vs2sel = 2; |
@@ -486,7 +427,7 @@ static void n8x0_mmc_cleanup(struct device *dev) | |||
486 | 427 | ||
487 | gpio_free(N8X0_SLOT_SWITCH_GPIO); | 428 | gpio_free(N8X0_SLOT_SWITCH_GPIO); |
488 | 429 | ||
489 | if (machine_is_nokia_n810()) { | 430 | if (board_is_n810()) { |
490 | gpio_free(N810_EMMC_VSD_GPIO); | 431 | gpio_free(N810_EMMC_VSD_GPIO); |
491 | gpio_free(N810_EMMC_VIO_GPIO); | 432 | gpio_free(N810_EMMC_VIO_GPIO); |
492 | } | 433 | } |
@@ -497,7 +438,7 @@ static void n8x0_mmc_cleanup(struct device *dev) | |||
497 | * MMC controller2 is not in use. | 438 | * MMC controller2 is not in use. |
498 | */ | 439 | */ |
499 | static struct omap_mmc_platform_data mmc1_data = { | 440 | static struct omap_mmc_platform_data mmc1_data = { |
500 | .nr_slots = 2, | 441 | .nr_slots = 0, |
501 | .switch_slot = n8x0_mmc_switch_slot, | 442 | .switch_slot = n8x0_mmc_switch_slot, |
502 | .init = n8x0_mmc_late_init, | 443 | .init = n8x0_mmc_late_init, |
503 | .cleanup = n8x0_mmc_cleanup, | 444 | .cleanup = n8x0_mmc_cleanup, |
@@ -537,7 +478,7 @@ static void __init n8x0_mmc_init(void) | |||
537 | { | 478 | { |
538 | int err; | 479 | int err; |
539 | 480 | ||
540 | if (machine_is_nokia_n810()) { | 481 | if (board_is_n810()) { |
541 | mmc1_data.slots[0].name = "external"; | 482 | mmc1_data.slots[0].name = "external"; |
542 | 483 | ||
543 | /* | 484 | /* |
@@ -555,7 +496,7 @@ static void __init n8x0_mmc_init(void) | |||
555 | if (err) | 496 | if (err) |
556 | return; | 497 | return; |
557 | 498 | ||
558 | if (machine_is_nokia_n810()) { | 499 | if (board_is_n810()) { |
559 | err = gpio_request_array(n810_emmc_gpios, | 500 | err = gpio_request_array(n810_emmc_gpios, |
560 | ARRAY_SIZE(n810_emmc_gpios)); | 501 | ARRAY_SIZE(n810_emmc_gpios)); |
561 | if (err) { | 502 | if (err) { |
@@ -564,11 +505,11 @@ static void __init n8x0_mmc_init(void) | |||
564 | } | 505 | } |
565 | } | 506 | } |
566 | 507 | ||
508 | mmc1_data.nr_slots = 2; | ||
567 | mmc_data[0] = &mmc1_data; | 509 | mmc_data[0] = &mmc1_data; |
568 | omap242x_init_mmc(mmc_data); | ||
569 | } | 510 | } |
570 | #else | 511 | #else |
571 | 512 | static struct omap_mmc_platform_data mmc1_data; | |
572 | void __init n8x0_mmc_init(void) | 513 | void __init n8x0_mmc_init(void) |
573 | { | 514 | { |
574 | } | 515 | } |
@@ -650,109 +591,32 @@ static struct i2c_board_info n810_i2c_board_info_2[] __initdata = { | |||
650 | }, | 591 | }, |
651 | }; | 592 | }; |
652 | 593 | ||
653 | #ifdef CONFIG_OMAP_MUX | 594 | static int __init n8x0_late_initcall(void) |
654 | static struct omap_board_mux board_mux[] __initdata = { | ||
655 | /* I2S codec port pins for McBSP block */ | ||
656 | OMAP2420_MUX(EAC_AC_SCLK, OMAP_MUX_MODE1 | OMAP_PIN_INPUT), | ||
657 | OMAP2420_MUX(EAC_AC_FS, OMAP_MUX_MODE1 | OMAP_PIN_INPUT), | ||
658 | OMAP2420_MUX(EAC_AC_DIN, OMAP_MUX_MODE1 | OMAP_PIN_INPUT), | ||
659 | OMAP2420_MUX(EAC_AC_DOUT, OMAP_MUX_MODE1 | OMAP_PIN_OUTPUT), | ||
660 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
661 | }; | ||
662 | |||
663 | static struct omap_device_pad serial2_pads[] __initdata = { | ||
664 | { | ||
665 | .name = "uart3_rx_irrx.uart3_rx_irrx", | ||
666 | .flags = OMAP_DEVICE_PAD_REMUX | OMAP_DEVICE_PAD_WAKEUP, | ||
667 | .enable = OMAP_MUX_MODE0, | ||
668 | .idle = OMAP_MUX_MODE3 /* Mux as GPIO for idle */ | ||
669 | }, | ||
670 | }; | ||
671 | |||
672 | static inline void board_serial_init(void) | ||
673 | { | 595 | { |
674 | struct omap_board_data bdata; | 596 | if (!board_caps) |
675 | 597 | return -ENODEV; | |
676 | bdata.flags = 0; | ||
677 | bdata.pads = NULL; | ||
678 | bdata.pads_cnt = 0; | ||
679 | |||
680 | bdata.id = 0; | ||
681 | omap_serial_init_port(&bdata, NULL); | ||
682 | |||
683 | bdata.id = 1; | ||
684 | omap_serial_init_port(&bdata, NULL); | ||
685 | |||
686 | bdata.id = 2; | ||
687 | bdata.pads = serial2_pads; | ||
688 | bdata.pads_cnt = ARRAY_SIZE(serial2_pads); | ||
689 | omap_serial_init_port(&bdata, NULL); | ||
690 | } | ||
691 | 598 | ||
692 | #else | 599 | n8x0_mmc_init(); |
600 | n8x0_usb_init(); | ||
693 | 601 | ||
694 | static inline void board_serial_init(void) | 602 | return 0; |
695 | { | ||
696 | omap_serial_init(); | ||
697 | } | 603 | } |
604 | omap_late_initcall(n8x0_late_initcall); | ||
698 | 605 | ||
699 | #endif | 606 | /* |
700 | 607 | * Legacy init pdata init for n8x0. Note that we want to follow the | |
701 | static void __init n8x0_init_machine(void) | 608 | * I2C bus numbering starting at 0 for device tree like other omaps. |
609 | */ | ||
610 | void * __init n8x0_legacy_init(void) | ||
702 | { | 611 | { |
703 | omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAC); | 612 | board_check_revision(); |
704 | /* FIXME: add n810 spi devices */ | ||
705 | spi_register_board_info(n800_spi_board_info, | 613 | spi_register_board_info(n800_spi_board_info, |
706 | ARRAY_SIZE(n800_spi_board_info)); | 614 | ARRAY_SIZE(n800_spi_board_info)); |
707 | omap_register_i2c_bus(1, 400, n8x0_i2c_board_info_1, | 615 | i2c_register_board_info(0, n8x0_i2c_board_info_1, |
708 | ARRAY_SIZE(n8x0_i2c_board_info_1)); | 616 | ARRAY_SIZE(n8x0_i2c_board_info_1)); |
709 | omap_register_i2c_bus(2, 400, NULL, 0); | 617 | if (board_is_n810()) |
710 | if (machine_is_nokia_n810()) | 618 | i2c_register_board_info(1, n810_i2c_board_info_2, |
711 | i2c_register_board_info(2, n810_i2c_board_info_2, | ||
712 | ARRAY_SIZE(n810_i2c_board_info_2)); | 619 | ARRAY_SIZE(n810_i2c_board_info_2)); |
713 | board_serial_init(); | ||
714 | omap_sdrc_init(NULL, NULL); | ||
715 | gpmc_onenand_init(board_onenand_data); | ||
716 | n8x0_mmc_init(); | ||
717 | n8x0_usb_init(); | ||
718 | n8x0_cbus_init(); | ||
719 | } | ||
720 | 620 | ||
721 | MACHINE_START(NOKIA_N800, "Nokia N800") | 621 | return &mmc1_data; |
722 | .atag_offset = 0x100, | 622 | } |
723 | .reserve = omap_reserve, | ||
724 | .map_io = omap242x_map_io, | ||
725 | .init_early = omap2420_init_early, | ||
726 | .init_irq = omap2_init_irq, | ||
727 | .handle_irq = omap2_intc_handle_irq, | ||
728 | .init_machine = n8x0_init_machine, | ||
729 | .init_late = omap2420_init_late, | ||
730 | .init_time = omap2_sync32k_timer_init, | ||
731 | .restart = omap2xxx_restart, | ||
732 | MACHINE_END | ||
733 | |||
734 | MACHINE_START(NOKIA_N810, "Nokia N810") | ||
735 | .atag_offset = 0x100, | ||
736 | .reserve = omap_reserve, | ||
737 | .map_io = omap242x_map_io, | ||
738 | .init_early = omap2420_init_early, | ||
739 | .init_irq = omap2_init_irq, | ||
740 | .handle_irq = omap2_intc_handle_irq, | ||
741 | .init_machine = n8x0_init_machine, | ||
742 | .init_late = omap2420_init_late, | ||
743 | .init_time = omap2_sync32k_timer_init, | ||
744 | .restart = omap2xxx_restart, | ||
745 | MACHINE_END | ||
746 | |||
747 | MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") | ||
748 | .atag_offset = 0x100, | ||
749 | .reserve = omap_reserve, | ||
750 | .map_io = omap242x_map_io, | ||
751 | .init_early = omap2420_init_early, | ||
752 | .init_irq = omap2_init_irq, | ||
753 | .handle_irq = omap2_intc_handle_irq, | ||
754 | .init_machine = n8x0_init_machine, | ||
755 | .init_late = omap2420_init_late, | ||
756 | .init_time = omap2_sync32k_timer_init, | ||
757 | .restart = omap2xxx_restart, | ||
758 | MACHINE_END | ||
diff --git a/arch/arm/mach-omap2/common-board-devices.h b/arch/arm/mach-omap2/common-board-devices.h index 72bb41b3fd25..f338177e6900 100644 --- a/arch/arm/mach-omap2/common-board-devices.h +++ b/arch/arm/mach-omap2/common-board-devices.h | |||
@@ -10,5 +10,6 @@ struct ads7846_platform_data; | |||
10 | 10 | ||
11 | void omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce, | 11 | void omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce, |
12 | struct ads7846_platform_data *board_pdata); | 12 | struct ads7846_platform_data *board_pdata); |
13 | void *n8x0_legacy_init(void); | ||
13 | 14 | ||
14 | #endif /* __OMAP_COMMON_BOARD_DEVICES__ */ | 15 | #endif /* __OMAP_COMMON_BOARD_DEVICES__ */ |
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index e30ef6797c63..240db38f232c 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -293,6 +293,7 @@ static inline void omap4_cpu_resume(void) | |||
293 | #endif | 293 | #endif |
294 | 294 | ||
295 | void pdata_quirks_init(struct of_device_id *); | 295 | void pdata_quirks_init(struct of_device_id *); |
296 | void omap_auxdata_legacy_init(struct device *dev); | ||
296 | void omap_pcs_legacy_init(int irq, void (*rearm)(void)); | 297 | void omap_pcs_legacy_init(int irq, void (*rearm)(void)); |
297 | 298 | ||
298 | struct omap_sdrc_params; | 299 | struct omap_sdrc_params; |
diff --git a/arch/arm/mach-omap2/msdi.c b/arch/arm/mach-omap2/msdi.c index c52d8b4a3e91..828e0db3d943 100644 --- a/arch/arm/mach-omap2/msdi.c +++ b/arch/arm/mach-omap2/msdi.c | |||
@@ -88,72 +88,3 @@ int omap_msdi_reset(struct omap_hwmod *oh) | |||
88 | 88 | ||
89 | return 0; | 89 | return 0; |
90 | } | 90 | } |
91 | |||
92 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | ||
93 | |||
94 | static inline void omap242x_mmc_mux(struct omap_mmc_platform_data | ||
95 | *mmc_controller) | ||
96 | { | ||
97 | if ((mmc_controller->slots[0].switch_pin > 0) && \ | ||
98 | (mmc_controller->slots[0].switch_pin < OMAP_MAX_GPIO_LINES)) | ||
99 | omap_mux_init_gpio(mmc_controller->slots[0].switch_pin, | ||
100 | OMAP_PIN_INPUT_PULLUP); | ||
101 | if ((mmc_controller->slots[0].gpio_wp > 0) && \ | ||
102 | (mmc_controller->slots[0].gpio_wp < OMAP_MAX_GPIO_LINES)) | ||
103 | omap_mux_init_gpio(mmc_controller->slots[0].gpio_wp, | ||
104 | OMAP_PIN_INPUT_PULLUP); | ||
105 | |||
106 | omap_mux_init_signal("sdmmc_cmd", 0); | ||
107 | omap_mux_init_signal("sdmmc_clki", 0); | ||
108 | omap_mux_init_signal("sdmmc_clko", 0); | ||
109 | omap_mux_init_signal("sdmmc_dat0", 0); | ||
110 | omap_mux_init_signal("sdmmc_dat_dir0", 0); | ||
111 | omap_mux_init_signal("sdmmc_cmd_dir", 0); | ||
112 | if (mmc_controller->slots[0].caps & MMC_CAP_4_BIT_DATA) { | ||
113 | omap_mux_init_signal("sdmmc_dat1", 0); | ||
114 | omap_mux_init_signal("sdmmc_dat2", 0); | ||
115 | omap_mux_init_signal("sdmmc_dat3", 0); | ||
116 | omap_mux_init_signal("sdmmc_dat_dir1", 0); | ||
117 | omap_mux_init_signal("sdmmc_dat_dir2", 0); | ||
118 | omap_mux_init_signal("sdmmc_dat_dir3", 0); | ||
119 | } | ||
120 | |||
121 | /* | ||
122 | * Use internal loop-back in MMC/SDIO Module Input Clock | ||
123 | * selection | ||
124 | */ | ||
125 | if (mmc_controller->slots[0].internal_clock) { | ||
126 | u32 v = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0); | ||
127 | v |= (1 << 24); | ||
128 | omap_ctrl_writel(v, OMAP2_CONTROL_DEVCONF0); | ||
129 | } | ||
130 | } | ||
131 | |||
132 | void __init omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data) | ||
133 | { | ||
134 | struct platform_device *pdev; | ||
135 | struct omap_hwmod *oh; | ||
136 | int id = 0; | ||
137 | char *oh_name = "msdi1"; | ||
138 | char *dev_name = "mmci-omap"; | ||
139 | |||
140 | if (!mmc_data[0]) { | ||
141 | pr_err("%s fails: Incomplete platform data\n", __func__); | ||
142 | return; | ||
143 | } | ||
144 | |||
145 | omap242x_mmc_mux(mmc_data[0]); | ||
146 | |||
147 | oh = omap_hwmod_lookup(oh_name); | ||
148 | if (!oh) { | ||
149 | pr_err("Could not look up %s\n", oh_name); | ||
150 | return; | ||
151 | } | ||
152 | pdev = omap_device_build(dev_name, id, oh, mmc_data[0], | ||
153 | sizeof(struct omap_mmc_platform_data)); | ||
154 | if (IS_ERR(pdev)) | ||
155 | WARN(1, "Can'd build omap_device for %s:%s.\n", | ||
156 | dev_name, oh->name); | ||
157 | } | ||
158 | |||
159 | #endif | ||
diff --git a/arch/arm/mach-omap2/mux.h b/arch/arm/mach-omap2/mux.h index 16f78a990d04..a722330d4d53 100644 --- a/arch/arm/mach-omap2/mux.h +++ b/arch/arm/mach-omap2/mux.h | |||
@@ -7,8 +7,6 @@ | |||
7 | * published by the Free Software Foundation. | 7 | * published by the Free Software Foundation. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "mux2420.h" | ||
11 | #include "mux2430.h" | ||
12 | #include "mux34xx.h" | 10 | #include "mux34xx.h" |
13 | 11 | ||
14 | #define OMAP_MUX_TERMINATOR 0xffff | 12 | #define OMAP_MUX_TERMINATOR 0xffff |
diff --git a/arch/arm/mach-omap2/mux2420.c b/arch/arm/mach-omap2/mux2420.c deleted file mode 100644 index cf6de0971c6c..000000000000 --- a/arch/arm/mach-omap2/mux2420.c +++ /dev/null | |||
@@ -1,690 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010 Nokia | ||
3 | * Copyright (C) 2010 Texas Instruments | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #include <linux/module.h> | ||
11 | #include <linux/init.h> | ||
12 | |||
13 | #include "mux.h" | ||
14 | |||
15 | #ifdef CONFIG_OMAP_MUX | ||
16 | |||
17 | #define _OMAP2420_MUXENTRY(M0, g, m0, m1, m2, m3, m4, m5, m6, m7) \ | ||
18 | { \ | ||
19 | .reg_offset = (OMAP2420_CONTROL_PADCONF_##M0##_OFFSET), \ | ||
20 | .gpio = (g), \ | ||
21 | .muxnames = { m0, m1, m2, m3, m4, m5, m6, m7 }, \ | ||
22 | } | ||
23 | |||
24 | #else | ||
25 | |||
26 | #define _OMAP2420_MUXENTRY(M0, g, m0, m1, m2, m3, m4, m5, m6, m7) \ | ||
27 | { \ | ||
28 | .reg_offset = (OMAP2420_CONTROL_PADCONF_##M0##_OFFSET), \ | ||
29 | .gpio = (g), \ | ||
30 | } | ||
31 | |||
32 | #endif | ||
33 | |||
34 | #define _OMAP2420_BALLENTRY(M0, bb, bt) \ | ||
35 | { \ | ||
36 | .reg_offset = (OMAP2420_CONTROL_PADCONF_##M0##_OFFSET), \ | ||
37 | .balls = { bb, bt }, \ | ||
38 | } | ||
39 | |||
40 | /* | ||
41 | * Superset of all mux modes for omap2420 | ||
42 | */ | ||
43 | static struct omap_mux __initdata omap2420_muxmodes[] = { | ||
44 | _OMAP2420_MUXENTRY(CAM_D0, 54, | ||
45 | "cam_d0", "hw_dbg2", "sti_dout", "gpio_54", | ||
46 | NULL, NULL, "etk_d2", NULL), | ||
47 | _OMAP2420_MUXENTRY(CAM_D1, 53, | ||
48 | "cam_d1", "hw_dbg3", "sti_din", "gpio_53", | ||
49 | NULL, NULL, "etk_d3", NULL), | ||
50 | _OMAP2420_MUXENTRY(CAM_D2, 52, | ||
51 | "cam_d2", "hw_dbg4", "mcbsp1_clkx", "gpio_52", | ||
52 | NULL, NULL, "etk_d4", NULL), | ||
53 | _OMAP2420_MUXENTRY(CAM_D3, 51, | ||
54 | "cam_d3", "hw_dbg5", "mcbsp1_dr", "gpio_51", | ||
55 | NULL, NULL, "etk_d5", NULL), | ||
56 | _OMAP2420_MUXENTRY(CAM_D4, 50, | ||
57 | "cam_d4", "hw_dbg6", "mcbsp1_fsr", "gpio_50", | ||
58 | NULL, NULL, "etk_d6", NULL), | ||
59 | _OMAP2420_MUXENTRY(CAM_D5, 49, | ||
60 | "cam_d5", "hw_dbg7", "mcbsp1_clkr", "gpio_49", | ||
61 | NULL, NULL, "etk_d7", NULL), | ||
62 | _OMAP2420_MUXENTRY(CAM_D6, 0, | ||
63 | "cam_d6", "hw_dbg8", NULL, NULL, | ||
64 | NULL, NULL, "etk_d8", NULL), | ||
65 | _OMAP2420_MUXENTRY(CAM_D7, 0, | ||
66 | "cam_d7", "hw_dbg9", NULL, NULL, | ||
67 | NULL, NULL, "etk_d9", NULL), | ||
68 | _OMAP2420_MUXENTRY(CAM_D8, 54, | ||
69 | "cam_d8", "hw_dbg10", NULL, "gpio_54", | ||
70 | NULL, NULL, "etk_d10", NULL), | ||
71 | _OMAP2420_MUXENTRY(CAM_D9, 53, | ||
72 | "cam_d9", "hw_dbg11", NULL, "gpio_53", | ||
73 | NULL, NULL, "etk_d11", NULL), | ||
74 | _OMAP2420_MUXENTRY(CAM_HS, 55, | ||
75 | "cam_hs", "hw_dbg1", "mcbsp1_dx", "gpio_55", | ||
76 | NULL, NULL, "etk_d1", NULL), | ||
77 | _OMAP2420_MUXENTRY(CAM_LCLK, 57, | ||
78 | "cam_lclk", NULL, "mcbsp_clks", "gpio_57", | ||
79 | NULL, NULL, "etk_c1", NULL), | ||
80 | _OMAP2420_MUXENTRY(CAM_VS, 56, | ||
81 | "cam_vs", "hw_dbg0", "mcbsp1_fsx", "gpio_56", | ||
82 | NULL, NULL, "etk_d0", NULL), | ||
83 | _OMAP2420_MUXENTRY(CAM_XCLK, 0, | ||
84 | "cam_xclk", NULL, "sti_clk", NULL, | ||
85 | NULL, NULL, "etk_c2", NULL), | ||
86 | _OMAP2420_MUXENTRY(DSS_ACBIAS, 48, | ||
87 | "dss_acbias", NULL, "mcbsp2_fsx", "gpio_48", | ||
88 | NULL, NULL, NULL, NULL), | ||
89 | _OMAP2420_MUXENTRY(DSS_DATA10, 40, | ||
90 | "dss_data10", NULL, NULL, "gpio_40", | ||
91 | NULL, NULL, NULL, NULL), | ||
92 | _OMAP2420_MUXENTRY(DSS_DATA11, 41, | ||
93 | "dss_data11", NULL, NULL, "gpio_41", | ||
94 | NULL, NULL, NULL, NULL), | ||
95 | _OMAP2420_MUXENTRY(DSS_DATA12, 42, | ||
96 | "dss_data12", NULL, NULL, "gpio_42", | ||
97 | NULL, NULL, NULL, NULL), | ||
98 | _OMAP2420_MUXENTRY(DSS_DATA13, 43, | ||
99 | "dss_data13", NULL, NULL, "gpio_43", | ||
100 | NULL, NULL, NULL, NULL), | ||
101 | _OMAP2420_MUXENTRY(DSS_DATA14, 44, | ||
102 | "dss_data14", NULL, NULL, "gpio_44", | ||
103 | NULL, NULL, NULL, NULL), | ||
104 | _OMAP2420_MUXENTRY(DSS_DATA15, 45, | ||
105 | "dss_data15", NULL, NULL, "gpio_45", | ||
106 | NULL, NULL, NULL, NULL), | ||
107 | _OMAP2420_MUXENTRY(DSS_DATA16, 46, | ||
108 | "dss_data16", NULL, NULL, "gpio_46", | ||
109 | NULL, NULL, NULL, NULL), | ||
110 | _OMAP2420_MUXENTRY(DSS_DATA17, 47, | ||
111 | "dss_data17", NULL, NULL, "gpio_47", | ||
112 | NULL, NULL, NULL, NULL), | ||
113 | _OMAP2420_MUXENTRY(DSS_DATA8, 38, | ||
114 | "dss_data8", NULL, NULL, "gpio_38", | ||
115 | NULL, NULL, NULL, NULL), | ||
116 | _OMAP2420_MUXENTRY(DSS_DATA9, 39, | ||
117 | "dss_data9", NULL, NULL, "gpio_39", | ||
118 | NULL, NULL, NULL, NULL), | ||
119 | _OMAP2420_MUXENTRY(EAC_AC_DIN, 115, | ||
120 | "eac_ac_din", "mcbsp2_dr", NULL, "gpio_115", | ||
121 | NULL, NULL, NULL, NULL), | ||
122 | _OMAP2420_MUXENTRY(EAC_AC_DOUT, 116, | ||
123 | "eac_ac_dout", "mcbsp2_dx", NULL, "gpio_116", | ||
124 | NULL, NULL, NULL, NULL), | ||
125 | _OMAP2420_MUXENTRY(EAC_AC_FS, 114, | ||
126 | "eac_ac_fs", "mcbsp2_fsx", NULL, "gpio_114", | ||
127 | NULL, NULL, NULL, NULL), | ||
128 | _OMAP2420_MUXENTRY(EAC_AC_MCLK, 117, | ||
129 | "eac_ac_mclk", NULL, NULL, "gpio_117", | ||
130 | NULL, NULL, NULL, NULL), | ||
131 | _OMAP2420_MUXENTRY(EAC_AC_RST, 118, | ||
132 | "eac_ac_rst", "eac_bt_din", NULL, "gpio_118", | ||
133 | NULL, NULL, NULL, NULL), | ||
134 | _OMAP2420_MUXENTRY(EAC_AC_SCLK, 113, | ||
135 | "eac_ac_sclk", "mcbsp2_clkx", NULL, "gpio_113", | ||
136 | NULL, NULL, NULL, NULL), | ||
137 | _OMAP2420_MUXENTRY(EAC_BT_DIN, 73, | ||
138 | "eac_bt_din", NULL, NULL, "gpio_73", | ||
139 | NULL, NULL, "etk_d9", NULL), | ||
140 | _OMAP2420_MUXENTRY(EAC_BT_DOUT, 74, | ||
141 | "eac_bt_dout", NULL, "sti_clk", "gpio_74", | ||
142 | NULL, NULL, "etk_d8", NULL), | ||
143 | _OMAP2420_MUXENTRY(EAC_BT_FS, 72, | ||
144 | "eac_bt_fs", NULL, NULL, "gpio_72", | ||
145 | NULL, NULL, "etk_d10", NULL), | ||
146 | _OMAP2420_MUXENTRY(EAC_BT_SCLK, 71, | ||
147 | "eac_bt_sclk", NULL, NULL, "gpio_71", | ||
148 | NULL, NULL, "etk_d11", NULL), | ||
149 | _OMAP2420_MUXENTRY(GPIO_119, 119, | ||
150 | "gpio_119", NULL, "sti_din", "gpio_119", | ||
151 | NULL, "sys_boot0", "etk_d12", NULL), | ||
152 | _OMAP2420_MUXENTRY(GPIO_120, 120, | ||
153 | "gpio_120", NULL, "sti_dout", "gpio_120", | ||
154 | "cam_d9", "sys_boot1", "etk_d13", NULL), | ||
155 | _OMAP2420_MUXENTRY(GPIO_121, 121, | ||
156 | "gpio_121", NULL, NULL, "gpio_121", | ||
157 | "jtag_emu2", "sys_boot2", "etk_d14", NULL), | ||
158 | _OMAP2420_MUXENTRY(GPIO_122, 122, | ||
159 | "gpio_122", NULL, NULL, "gpio_122", | ||
160 | "jtag_emu3", "sys_boot3", "etk_d15", NULL), | ||
161 | _OMAP2420_MUXENTRY(GPIO_124, 124, | ||
162 | "gpio_124", NULL, NULL, "gpio_124", | ||
163 | NULL, "sys_boot5", NULL, NULL), | ||
164 | _OMAP2420_MUXENTRY(GPIO_125, 125, | ||
165 | "gpio_125", "sys_jtagsel1", "sys_jtagsel2", "gpio_125", | ||
166 | NULL, NULL, NULL, NULL), | ||
167 | _OMAP2420_MUXENTRY(GPIO_36, 36, | ||
168 | "gpio_36", NULL, NULL, "gpio_36", | ||
169 | NULL, "sys_boot4", NULL, NULL), | ||
170 | _OMAP2420_MUXENTRY(GPIO_62, 62, | ||
171 | "gpio_62", "uart1_rx", "usb1_dat", "gpio_62", | ||
172 | NULL, NULL, NULL, NULL), | ||
173 | _OMAP2420_MUXENTRY(GPIO_6, 6, | ||
174 | "gpio_6", "tv_detpulse", NULL, "gpio_6", | ||
175 | NULL, NULL, NULL, NULL), | ||
176 | _OMAP2420_MUXENTRY(GPMC_A10, 3, | ||
177 | "gpmc_a10", NULL, "sys_ndmareq5", "gpio_3", | ||
178 | NULL, NULL, NULL, NULL), | ||
179 | _OMAP2420_MUXENTRY(GPMC_A1, 12, | ||
180 | "gpmc_a1", "dss_data18", NULL, "gpio_12", | ||
181 | NULL, NULL, NULL, NULL), | ||
182 | _OMAP2420_MUXENTRY(GPMC_A2, 11, | ||
183 | "gpmc_a2", "dss_data19", NULL, "gpio_11", | ||
184 | NULL, NULL, NULL, NULL), | ||
185 | _OMAP2420_MUXENTRY(GPMC_A3, 10, | ||
186 | "gpmc_a3", "dss_data20", NULL, "gpio_10", | ||
187 | NULL, NULL, NULL, NULL), | ||
188 | _OMAP2420_MUXENTRY(GPMC_A4, 9, | ||
189 | "gpmc_a4", "dss_data21", NULL, "gpio_9", | ||
190 | NULL, NULL, NULL, NULL), | ||
191 | _OMAP2420_MUXENTRY(GPMC_A5, 8, | ||
192 | "gpmc_a5", "dss_data22", NULL, "gpio_8", | ||
193 | NULL, NULL, NULL, NULL), | ||
194 | _OMAP2420_MUXENTRY(GPMC_A6, 7, | ||
195 | "gpmc_a6", "dss_data23", NULL, "gpio_7", | ||
196 | NULL, NULL, NULL, NULL), | ||
197 | _OMAP2420_MUXENTRY(GPMC_A7, 6, | ||
198 | "gpmc_a7", NULL, "sys_ndmareq2", "gpio_6", | ||
199 | NULL, NULL, NULL, NULL), | ||
200 | _OMAP2420_MUXENTRY(GPMC_A8, 5, | ||
201 | "gpmc_a8", NULL, "sys_ndmareq3", "gpio_5", | ||
202 | NULL, NULL, NULL, NULL), | ||
203 | _OMAP2420_MUXENTRY(GPMC_A9, 4, | ||
204 | "gpmc_a9", NULL, "sys_ndmareq4", "gpio_4", | ||
205 | NULL, NULL, NULL, NULL), | ||
206 | _OMAP2420_MUXENTRY(GPMC_CLK, 21, | ||
207 | "gpmc_clk", NULL, NULL, "gpio_21", | ||
208 | NULL, NULL, NULL, NULL), | ||
209 | _OMAP2420_MUXENTRY(GPMC_D10, 18, | ||
210 | "gpmc_d10", "ssi2_rdy_rx", NULL, "gpio_18", | ||
211 | NULL, NULL, NULL, NULL), | ||
212 | _OMAP2420_MUXENTRY(GPMC_D11, 17, | ||
213 | "gpmc_d11", "ssi2_flag_rx", NULL, "gpio_17", | ||
214 | NULL, NULL, NULL, NULL), | ||
215 | _OMAP2420_MUXENTRY(GPMC_D12, 16, | ||
216 | "gpmc_d12", "ssi2_dat_rx", NULL, "gpio_16", | ||
217 | NULL, NULL, NULL, NULL), | ||
218 | _OMAP2420_MUXENTRY(GPMC_D13, 15, | ||
219 | "gpmc_d13", "ssi2_rdy_tx", NULL, "gpio_15", | ||
220 | NULL, NULL, NULL, NULL), | ||
221 | _OMAP2420_MUXENTRY(GPMC_D14, 14, | ||
222 | "gpmc_d14", "ssi2_flag_tx", NULL, "gpio_14", | ||
223 | NULL, NULL, NULL, NULL), | ||
224 | _OMAP2420_MUXENTRY(GPMC_D15, 13, | ||
225 | "gpmc_d15", "ssi2_dat_tx", NULL, "gpio_13", | ||
226 | NULL, NULL, NULL, NULL), | ||
227 | _OMAP2420_MUXENTRY(GPMC_D8, 20, | ||
228 | "gpmc_d8", NULL, NULL, "gpio_20", | ||
229 | NULL, NULL, NULL, NULL), | ||
230 | _OMAP2420_MUXENTRY(GPMC_D9, 19, | ||
231 | "gpmc_d9", "ssi2_wake", NULL, "gpio_19", | ||
232 | NULL, NULL, NULL, NULL), | ||
233 | _OMAP2420_MUXENTRY(GPMC_NBE0, 29, | ||
234 | "gpmc_nbe0", NULL, NULL, "gpio_29", | ||
235 | NULL, NULL, NULL, NULL), | ||
236 | _OMAP2420_MUXENTRY(GPMC_NBE1, 30, | ||
237 | "gpmc_nbe1", NULL, NULL, "gpio_30", | ||
238 | NULL, NULL, NULL, NULL), | ||
239 | _OMAP2420_MUXENTRY(GPMC_NCS1, 22, | ||
240 | "gpmc_ncs1", NULL, NULL, "gpio_22", | ||
241 | NULL, NULL, NULL, NULL), | ||
242 | _OMAP2420_MUXENTRY(GPMC_NCS2, 23, | ||
243 | "gpmc_ncs2", NULL, NULL, "gpio_23", | ||
244 | NULL, NULL, NULL, NULL), | ||
245 | _OMAP2420_MUXENTRY(GPMC_NCS3, 24, | ||
246 | "gpmc_ncs3", "gpmc_io_dir", NULL, "gpio_24", | ||
247 | NULL, NULL, NULL, NULL), | ||
248 | _OMAP2420_MUXENTRY(GPMC_NCS4, 25, | ||
249 | "gpmc_ncs4", NULL, NULL, "gpio_25", | ||
250 | NULL, NULL, NULL, NULL), | ||
251 | _OMAP2420_MUXENTRY(GPMC_NCS5, 26, | ||
252 | "gpmc_ncs5", NULL, NULL, "gpio_26", | ||
253 | NULL, NULL, NULL, NULL), | ||
254 | _OMAP2420_MUXENTRY(GPMC_NCS6, 27, | ||
255 | "gpmc_ncs6", NULL, NULL, "gpio_27", | ||
256 | NULL, NULL, NULL, NULL), | ||
257 | _OMAP2420_MUXENTRY(GPMC_NCS7, 28, | ||
258 | "gpmc_ncs7", "gpmc_io_dir", "gpio_28", NULL, | ||
259 | NULL, NULL, NULL, NULL), | ||
260 | _OMAP2420_MUXENTRY(GPMC_NWP, 31, | ||
261 | "gpmc_nwp", NULL, NULL, "gpio_31", | ||
262 | NULL, NULL, NULL, NULL), | ||
263 | _OMAP2420_MUXENTRY(GPMC_WAIT1, 33, | ||
264 | "gpmc_wait1", NULL, NULL, "gpio_33", | ||
265 | NULL, NULL, NULL, NULL), | ||
266 | _OMAP2420_MUXENTRY(GPMC_WAIT2, 34, | ||
267 | "gpmc_wait2", NULL, NULL, "gpio_34", | ||
268 | NULL, NULL, NULL, NULL), | ||
269 | _OMAP2420_MUXENTRY(GPMC_WAIT3, 35, | ||
270 | "gpmc_wait3", NULL, NULL, "gpio_35", | ||
271 | NULL, NULL, NULL, NULL), | ||
272 | _OMAP2420_MUXENTRY(HDQ_SIO, 101, | ||
273 | "hdq_sio", "usb2_tllse0", "sys_altclk", "gpio_101", | ||
274 | NULL, NULL, NULL, NULL), | ||
275 | _OMAP2420_MUXENTRY(I2C2_SCL, 99, | ||
276 | "i2c2_scl", NULL, "gpt9_pwm_evt", "gpio_99", | ||
277 | NULL, NULL, NULL, NULL), | ||
278 | _OMAP2420_MUXENTRY(I2C2_SDA, 100, | ||
279 | "i2c2_sda", NULL, "spi2_ncs1", "gpio_100", | ||
280 | NULL, NULL, NULL, NULL), | ||
281 | _OMAP2420_MUXENTRY(JTAG_EMU0, 127, | ||
282 | "jtag_emu0", NULL, NULL, "gpio_127", | ||
283 | NULL, NULL, NULL, NULL), | ||
284 | _OMAP2420_MUXENTRY(JTAG_EMU1, 126, | ||
285 | "jtag_emu1", NULL, NULL, "gpio_126", | ||
286 | NULL, NULL, NULL, NULL), | ||
287 | _OMAP2420_MUXENTRY(MCBSP1_CLKR, 92, | ||
288 | "mcbsp1_clkr", "ssi2_dat_tx", "vlynq_tx1", "gpio_92", | ||
289 | NULL, NULL, NULL, NULL), | ||
290 | _OMAP2420_MUXENTRY(MCBSP1_CLKX, 98, | ||
291 | "mcbsp1_clkx", "ssi2_wake", "vlynq_nla", "gpio_98", | ||
292 | NULL, NULL, NULL, NULL), | ||
293 | _OMAP2420_MUXENTRY(MCBSP1_DR, 95, | ||
294 | "mcbsp1_dr", "ssi2_dat_rx", "vlynq_rx1", "gpio_95", | ||
295 | NULL, NULL, NULL, NULL), | ||
296 | _OMAP2420_MUXENTRY(MCBSP1_DX, 94, | ||
297 | "mcbsp1_dx", "ssi2_rdy_tx", "vlynq_clk", "gpio_94", | ||
298 | NULL, NULL, NULL, NULL), | ||
299 | _OMAP2420_MUXENTRY(MCBSP1_FSR, 93, | ||
300 | "mcbsp1_fsr", "ssi2_flag_tx", "vlynq_tx0", "gpio_93", | ||
301 | "spi2_ncs1", NULL, NULL, NULL), | ||
302 | _OMAP2420_MUXENTRY(MCBSP1_FSX, 97, | ||
303 | "mcbsp1_fsx", "ssi2_rdy_rx", NULL, "gpio_97", | ||
304 | NULL, NULL, NULL, NULL), | ||
305 | _OMAP2420_MUXENTRY(MCBSP2_CLKX, 12, | ||
306 | "mcbsp2_clkx", NULL, "dss_data23", "gpio_12", | ||
307 | NULL, NULL, NULL, NULL), | ||
308 | _OMAP2420_MUXENTRY(MCBSP2_DR, 11, | ||
309 | "mcbsp2_dr", NULL, "dss_data22", "gpio_11", | ||
310 | NULL, NULL, NULL, NULL), | ||
311 | _OMAP2420_MUXENTRY(MCBSP_CLKS, 96, | ||
312 | "mcbsp_clks", "ssi2_flag_rx", "vlynq_rx0", "gpio_96", | ||
313 | NULL, NULL, NULL, NULL), | ||
314 | _OMAP2420_MUXENTRY(MMC_CLKI, 59, | ||
315 | "sdmmc_clki", "ms_clki", NULL, "gpio_59", | ||
316 | NULL, NULL, NULL, NULL), | ||
317 | _OMAP2420_MUXENTRY(MMC_CLKO, 0, | ||
318 | "sdmmc_clko", "ms_clko", NULL, NULL, | ||
319 | NULL, NULL, NULL, NULL), | ||
320 | _OMAP2420_MUXENTRY(MMC_CMD_DIR, 8, | ||
321 | "sdmmc_cmd_dir", NULL, NULL, "gpio_8", | ||
322 | NULL, NULL, NULL, NULL), | ||
323 | _OMAP2420_MUXENTRY(MMC_CMD, 0, | ||
324 | "sdmmc_cmd", "ms_bs", NULL, NULL, | ||
325 | NULL, NULL, NULL, NULL), | ||
326 | _OMAP2420_MUXENTRY(MMC_DAT_DIR0, 7, | ||
327 | "sdmmc_dat_dir0", "ms_dat0_dir", NULL, "gpio_7", | ||
328 | NULL, NULL, NULL, NULL), | ||
329 | _OMAP2420_MUXENTRY(MMC_DAT0, 0, | ||
330 | "sdmmc_dat0", "ms_dat0", NULL, NULL, | ||
331 | NULL, NULL, NULL, NULL), | ||
332 | _OMAP2420_MUXENTRY(MMC_DAT_DIR1, 78, | ||
333 | "sdmmc_dat_dir1", "ms_datu_dir", "uart2_rts", "gpio_78", | ||
334 | NULL, NULL, NULL, NULL), | ||
335 | _OMAP2420_MUXENTRY(MMC_DAT1, 75, | ||
336 | "sdmmc_dat1", "ms_dat1", NULL, "gpio_75", | ||
337 | NULL, NULL, NULL, NULL), | ||
338 | _OMAP2420_MUXENTRY(MMC_DAT_DIR2, 79, | ||
339 | "sdmmc_dat_dir2", "ms_datu_dir", "uart2_tx", "gpio_79", | ||
340 | NULL, NULL, NULL, NULL), | ||
341 | _OMAP2420_MUXENTRY(MMC_DAT2, 76, | ||
342 | "sdmmc_dat2", "ms_dat2", "uart2_cts", "gpio_76", | ||
343 | NULL, NULL, NULL, NULL), | ||
344 | _OMAP2420_MUXENTRY(MMC_DAT_DIR3, 80, | ||
345 | "sdmmc_dat_dir3", "ms_datu_dir", "uart2_rx", "gpio_80", | ||
346 | NULL, NULL, NULL, NULL), | ||
347 | _OMAP2420_MUXENTRY(MMC_DAT3, 77, | ||
348 | "sdmmc_dat3", "ms_dat3", NULL, "gpio_77", | ||
349 | NULL, NULL, NULL, NULL), | ||
350 | _OMAP2420_MUXENTRY(SDRC_A12, 2, | ||
351 | "sdrc_a12", NULL, NULL, "gpio_2", | ||
352 | NULL, NULL, NULL, NULL), | ||
353 | _OMAP2420_MUXENTRY(SDRC_A13, 1, | ||
354 | "sdrc_a13", NULL, NULL, "gpio_1", | ||
355 | NULL, NULL, NULL, NULL), | ||
356 | _OMAP2420_MUXENTRY(SDRC_A14, 0, | ||
357 | "sdrc_a14", NULL, NULL, "gpio_0", | ||
358 | NULL, NULL, NULL, NULL), | ||
359 | _OMAP2420_MUXENTRY(SDRC_CKE1, 38, | ||
360 | "sdrc_cke1", NULL, NULL, "gpio_38", | ||
361 | NULL, NULL, NULL, NULL), | ||
362 | _OMAP2420_MUXENTRY(SDRC_NCS1, 37, | ||
363 | "sdrc_ncs1", NULL, NULL, "gpio_37", | ||
364 | NULL, NULL, NULL, NULL), | ||
365 | _OMAP2420_MUXENTRY(SPI1_CLK, 81, | ||
366 | "spi1_clk", NULL, NULL, "gpio_81", | ||
367 | NULL, NULL, NULL, NULL), | ||
368 | _OMAP2420_MUXENTRY(SPI1_NCS0, 84, | ||
369 | "spi1_ncs0", NULL, NULL, "gpio_84", | ||
370 | NULL, NULL, NULL, NULL), | ||
371 | _OMAP2420_MUXENTRY(SPI1_NCS1, 85, | ||
372 | "spi1_ncs1", NULL, NULL, "gpio_85", | ||
373 | NULL, NULL, NULL, NULL), | ||
374 | _OMAP2420_MUXENTRY(SPI1_NCS2, 86, | ||
375 | "spi1_ncs2", NULL, NULL, "gpio_86", | ||
376 | NULL, NULL, NULL, NULL), | ||
377 | _OMAP2420_MUXENTRY(SPI1_NCS3, 87, | ||
378 | "spi1_ncs3", NULL, NULL, "gpio_87", | ||
379 | NULL, NULL, NULL, NULL), | ||
380 | _OMAP2420_MUXENTRY(SPI1_SIMO, 82, | ||
381 | "spi1_simo", NULL, NULL, "gpio_82", | ||
382 | NULL, NULL, NULL, NULL), | ||
383 | _OMAP2420_MUXENTRY(SPI1_SOMI, 83, | ||
384 | "spi1_somi", NULL, NULL, "gpio_83", | ||
385 | NULL, NULL, NULL, NULL), | ||
386 | _OMAP2420_MUXENTRY(SPI2_CLK, 88, | ||
387 | "spi2_clk", NULL, NULL, "gpio_88", | ||
388 | NULL, NULL, NULL, NULL), | ||
389 | _OMAP2420_MUXENTRY(SPI2_NCS0, 91, | ||
390 | "spi2_ncs0", "gpt12_pwm_evt", NULL, "gpio_91", | ||
391 | NULL, NULL, NULL, NULL), | ||
392 | _OMAP2420_MUXENTRY(SPI2_SIMO, 89, | ||
393 | "spi2_simo", "gpt10_pwm_evt", NULL, "gpio_89", | ||
394 | NULL, NULL, NULL, NULL), | ||
395 | _OMAP2420_MUXENTRY(SPI2_SOMI, 90, | ||
396 | "spi2_somi", "gpt11_pwm_evt", NULL, "gpio_90", | ||
397 | NULL, NULL, NULL, NULL), | ||
398 | _OMAP2420_MUXENTRY(SSI1_DAT_RX, 63, | ||
399 | "ssi1_dat_rx", "eac_md_sclk", NULL, "gpio_63", | ||
400 | NULL, NULL, NULL, NULL), | ||
401 | _OMAP2420_MUXENTRY(SSI1_DAT_TX, 59, | ||
402 | "ssi1_dat_tx", "uart1_tx", "usb1_se0", "gpio_59", | ||
403 | NULL, NULL, NULL, NULL), | ||
404 | _OMAP2420_MUXENTRY(SSI1_FLAG_RX, 64, | ||
405 | "ssi1_flag_rx", "eac_md_din", NULL, "gpio_64", | ||
406 | NULL, NULL, NULL, NULL), | ||
407 | _OMAP2420_MUXENTRY(SSI1_FLAG_TX, 25, | ||
408 | "ssi1_flag_tx", "uart1_rts", "usb1_rcv", "gpio_25", | ||
409 | NULL, NULL, NULL, NULL), | ||
410 | _OMAP2420_MUXENTRY(SSI1_RDY_RX, 65, | ||
411 | "ssi1_rdy_rx", "eac_md_dout", NULL, "gpio_65", | ||
412 | NULL, NULL, NULL, NULL), | ||
413 | _OMAP2420_MUXENTRY(SSI1_RDY_TX, 61, | ||
414 | "ssi1_rdy_tx", "uart1_cts", "usb1_txen", "gpio_61", | ||
415 | NULL, NULL, NULL, NULL), | ||
416 | _OMAP2420_MUXENTRY(SSI1_WAKE, 66, | ||
417 | "ssi1_wake", "eac_md_fs", NULL, "gpio_66", | ||
418 | NULL, NULL, NULL, NULL), | ||
419 | _OMAP2420_MUXENTRY(SYS_CLKOUT, 123, | ||
420 | "sys_clkout", NULL, NULL, "gpio_123", | ||
421 | NULL, NULL, NULL, NULL), | ||
422 | _OMAP2420_MUXENTRY(SYS_CLKREQ, 52, | ||
423 | "sys_clkreq", NULL, NULL, "gpio_52", | ||
424 | NULL, NULL, NULL, NULL), | ||
425 | _OMAP2420_MUXENTRY(SYS_NIRQ, 60, | ||
426 | "sys_nirq", NULL, NULL, "gpio_60", | ||
427 | NULL, NULL, NULL, NULL), | ||
428 | _OMAP2420_MUXENTRY(UART1_CTS, 32, | ||
429 | "uart1_cts", NULL, "dss_data18", "gpio_32", | ||
430 | NULL, NULL, NULL, NULL), | ||
431 | _OMAP2420_MUXENTRY(UART1_RTS, 8, | ||
432 | "uart1_rts", NULL, "dss_data19", "gpio_8", | ||
433 | NULL, NULL, NULL, NULL), | ||
434 | _OMAP2420_MUXENTRY(UART1_RX, 10, | ||
435 | "uart1_rx", NULL, "dss_data21", "gpio_10", | ||
436 | NULL, NULL, NULL, NULL), | ||
437 | _OMAP2420_MUXENTRY(UART1_TX, 9, | ||
438 | "uart1_tx", NULL, "dss_data20", "gpio_9", | ||
439 | NULL, NULL, NULL, NULL), | ||
440 | _OMAP2420_MUXENTRY(UART2_CTS, 67, | ||
441 | "uart2_cts", "usb1_rcv", "gpt9_pwm_evt", "gpio_67", | ||
442 | NULL, NULL, NULL, NULL), | ||
443 | _OMAP2420_MUXENTRY(UART2_RTS, 68, | ||
444 | "uart2_rts", "usb1_txen", "gpt10_pwm_evt", "gpio_68", | ||
445 | NULL, NULL, NULL, NULL), | ||
446 | _OMAP2420_MUXENTRY(UART2_RX, 70, | ||
447 | "uart2_rx", "usb1_dat", "gpt12_pwm_evt", "gpio_70", | ||
448 | NULL, NULL, NULL, NULL), | ||
449 | _OMAP2420_MUXENTRY(UART2_TX, 69, | ||
450 | "uart2_tx", "usb1_se0", "gpt11_pwm_evt", "gpio_69", | ||
451 | NULL, NULL, NULL, NULL), | ||
452 | _OMAP2420_MUXENTRY(UART3_CTS_RCTX, 102, | ||
453 | "uart3_cts_rctx", "uart3_rx_irrx", NULL, "gpio_102", | ||
454 | NULL, NULL, NULL, NULL), | ||
455 | _OMAP2420_MUXENTRY(UART3_RTS_SD, 103, | ||
456 | "uart3_rts_sd", "uart3_tx_irtx", NULL, "gpio_103", | ||
457 | NULL, NULL, NULL, NULL), | ||
458 | _OMAP2420_MUXENTRY(UART3_RX_IRRX, 105, | ||
459 | "uart3_rx_irrx", NULL, NULL, "gpio_105", | ||
460 | NULL, NULL, NULL, NULL), | ||
461 | _OMAP2420_MUXENTRY(UART3_TX_IRTX, 104, | ||
462 | "uart3_tx_irtx", "uart3_cts_rctx", NULL, "gpio_104", | ||
463 | NULL, NULL, NULL, NULL), | ||
464 | _OMAP2420_MUXENTRY(USB0_DAT, 112, | ||
465 | "usb0_dat", "uart3_rx_irrx", "uart2_rx", "gpio_112", | ||
466 | "uart2_tx", NULL, NULL, NULL), | ||
467 | _OMAP2420_MUXENTRY(USB0_PUEN, 106, | ||
468 | "usb0_puen", "mcbsp2_dx", NULL, "gpio_106", | ||
469 | NULL, NULL, NULL, NULL), | ||
470 | _OMAP2420_MUXENTRY(USB0_RCV, 109, | ||
471 | "usb0_rcv", "mcbsp2_fsx", NULL, "gpio_109", | ||
472 | "uart2_cts", NULL, NULL, NULL), | ||
473 | _OMAP2420_MUXENTRY(USB0_SE0, 111, | ||
474 | "usb0_se0", "uart3_tx_irtx", "uart2_tx", "gpio_111", | ||
475 | "uart2_rx", NULL, NULL, NULL), | ||
476 | _OMAP2420_MUXENTRY(USB0_TXEN, 110, | ||
477 | "usb0_txen", "uart3_cts_rctx", "uart2_cts", "gpio_110", | ||
478 | NULL, NULL, NULL, NULL), | ||
479 | _OMAP2420_MUXENTRY(USB0_VM, 108, | ||
480 | "usb0_vm", "mcbsp2_clkx", NULL, "gpio_108", | ||
481 | "uart2_rx", NULL, NULL, NULL), | ||
482 | _OMAP2420_MUXENTRY(USB0_VP, 107, | ||
483 | "usb0_vp", "mcbsp2_dr", NULL, "gpio_107", | ||
484 | NULL, NULL, NULL, NULL), | ||
485 | _OMAP2420_MUXENTRY(VLYNQ_CLK, 13, | ||
486 | "vlynq_clk", "usb2_se0", "sys_ndmareq0", "gpio_13", | ||
487 | NULL, NULL, NULL, NULL), | ||
488 | _OMAP2420_MUXENTRY(VLYNQ_NLA, 58, | ||
489 | "vlynq_nla", NULL, NULL, "gpio_58", | ||
490 | "cam_d6", NULL, NULL, NULL), | ||
491 | _OMAP2420_MUXENTRY(VLYNQ_RX0, 15, | ||
492 | "vlynq_rx0", "usb2_tllse0", NULL, "gpio_15", | ||
493 | "cam_d7", NULL, NULL, NULL), | ||
494 | _OMAP2420_MUXENTRY(VLYNQ_RX1, 14, | ||
495 | "vlynq_rx1", "usb2_rcv", "sys_ndmareq1", "gpio_14", | ||
496 | "cam_d8", NULL, NULL, NULL), | ||
497 | _OMAP2420_MUXENTRY(VLYNQ_TX0, 17, | ||
498 | "vlynq_tx0", "usb2_txen", NULL, "gpio_17", | ||
499 | NULL, NULL, NULL, NULL), | ||
500 | _OMAP2420_MUXENTRY(VLYNQ_TX1, 16, | ||
501 | "vlynq_tx1", "usb2_dat", "sys_clkout2", "gpio_16", | ||
502 | NULL, NULL, NULL, NULL), | ||
503 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
504 | }; | ||
505 | |||
506 | /* | ||
507 | * Balls for 447-pin POP package | ||
508 | */ | ||
509 | #ifdef CONFIG_DEBUG_FS | ||
510 | static struct omap_ball __initdata omap2420_pop_ball[] = { | ||
511 | _OMAP2420_BALLENTRY(CAM_D0, "y4", NULL), | ||
512 | _OMAP2420_BALLENTRY(CAM_D1, "y3", NULL), | ||
513 | _OMAP2420_BALLENTRY(CAM_D2, "u7", NULL), | ||
514 | _OMAP2420_BALLENTRY(CAM_D3, "ab3", NULL), | ||
515 | _OMAP2420_BALLENTRY(CAM_D4, "v2", NULL), | ||
516 | _OMAP2420_BALLENTRY(CAM_D5, "ad3", NULL), | ||
517 | _OMAP2420_BALLENTRY(CAM_D6, "aa4", NULL), | ||
518 | _OMAP2420_BALLENTRY(CAM_D7, "ab4", NULL), | ||
519 | _OMAP2420_BALLENTRY(CAM_D8, "ac6", NULL), | ||
520 | _OMAP2420_BALLENTRY(CAM_D9, "ac7", NULL), | ||
521 | _OMAP2420_BALLENTRY(CAM_HS, "v4", NULL), | ||
522 | _OMAP2420_BALLENTRY(CAM_LCLK, "ad6", NULL), | ||
523 | _OMAP2420_BALLENTRY(CAM_VS, "p7", NULL), | ||
524 | _OMAP2420_BALLENTRY(CAM_XCLK, "w4", NULL), | ||
525 | _OMAP2420_BALLENTRY(DSS_ACBIAS, "ae8", NULL), | ||
526 | _OMAP2420_BALLENTRY(DSS_DATA10, "ac12", NULL), | ||
527 | _OMAP2420_BALLENTRY(DSS_DATA11, "ae11", NULL), | ||
528 | _OMAP2420_BALLENTRY(DSS_DATA12, "ae13", NULL), | ||
529 | _OMAP2420_BALLENTRY(DSS_DATA13, "ad13", NULL), | ||
530 | _OMAP2420_BALLENTRY(DSS_DATA14, "ac13", NULL), | ||
531 | _OMAP2420_BALLENTRY(DSS_DATA15, "y12", NULL), | ||
532 | _OMAP2420_BALLENTRY(DSS_DATA16, "ad14", NULL), | ||
533 | _OMAP2420_BALLENTRY(DSS_DATA17, "y13", NULL), | ||
534 | _OMAP2420_BALLENTRY(DSS_DATA8, "ad11", NULL), | ||
535 | _OMAP2420_BALLENTRY(DSS_DATA9, "ad12", NULL), | ||
536 | _OMAP2420_BALLENTRY(EAC_AC_DIN, "ad19", NULL), | ||
537 | _OMAP2420_BALLENTRY(EAC_AC_DOUT, "af22", NULL), | ||
538 | _OMAP2420_BALLENTRY(EAC_AC_FS, "ad16", NULL), | ||
539 | _OMAP2420_BALLENTRY(EAC_AC_MCLK, "y17", NULL), | ||
540 | _OMAP2420_BALLENTRY(EAC_AC_RST, "ae22", NULL), | ||
541 | _OMAP2420_BALLENTRY(EAC_AC_SCLK, "ac18", NULL), | ||
542 | _OMAP2420_BALLENTRY(EAC_BT_DIN, "u8", NULL), | ||
543 | _OMAP2420_BALLENTRY(EAC_BT_DOUT, "ad5", NULL), | ||
544 | _OMAP2420_BALLENTRY(EAC_BT_FS, "w7", NULL), | ||
545 | _OMAP2420_BALLENTRY(EAC_BT_SCLK, "ad4", NULL), | ||
546 | _OMAP2420_BALLENTRY(GPIO_119, "af6", NULL), | ||
547 | _OMAP2420_BALLENTRY(GPIO_120, "af4", NULL), | ||
548 | _OMAP2420_BALLENTRY(GPIO_121, "ae6", NULL), | ||
549 | _OMAP2420_BALLENTRY(GPIO_122, "w3", NULL), | ||
550 | _OMAP2420_BALLENTRY(GPIO_124, "y19", NULL), | ||
551 | _OMAP2420_BALLENTRY(GPIO_125, "ae24", NULL), | ||
552 | _OMAP2420_BALLENTRY(GPIO_36, "y18", NULL), | ||
553 | _OMAP2420_BALLENTRY(GPIO_6, "d6", NULL), | ||
554 | _OMAP2420_BALLENTRY(GPIO_62, "ad18", NULL), | ||
555 | _OMAP2420_BALLENTRY(GPMC_A1, "m8", NULL), | ||
556 | _OMAP2420_BALLENTRY(GPMC_A10, "d5", NULL), | ||
557 | _OMAP2420_BALLENTRY(GPMC_A2, "w9", NULL), | ||
558 | _OMAP2420_BALLENTRY(GPMC_A3, "af10", NULL), | ||
559 | _OMAP2420_BALLENTRY(GPMC_A4, "w8", NULL), | ||
560 | _OMAP2420_BALLENTRY(GPMC_A5, "ae16", NULL), | ||
561 | _OMAP2420_BALLENTRY(GPMC_A6, "af9", NULL), | ||
562 | _OMAP2420_BALLENTRY(GPMC_A7, "e4", NULL), | ||
563 | _OMAP2420_BALLENTRY(GPMC_A8, "j7", NULL), | ||
564 | _OMAP2420_BALLENTRY(GPMC_A9, "ae18", NULL), | ||
565 | _OMAP2420_BALLENTRY(GPMC_CLK, "p1", "l1"), | ||
566 | _OMAP2420_BALLENTRY(GPMC_D10, "t1", "n1"), | ||
567 | _OMAP2420_BALLENTRY(GPMC_D11, "u2", "p2"), | ||
568 | _OMAP2420_BALLENTRY(GPMC_D12, "u1", "p1"), | ||
569 | _OMAP2420_BALLENTRY(GPMC_D13, "p2", "m1"), | ||
570 | _OMAP2420_BALLENTRY(GPMC_D14, "h2", "j2"), | ||
571 | _OMAP2420_BALLENTRY(GPMC_D15, "h1", "k2"), | ||
572 | _OMAP2420_BALLENTRY(GPMC_D8, "v1", "r1"), | ||
573 | _OMAP2420_BALLENTRY(GPMC_D9, "y1", "t1"), | ||
574 | _OMAP2420_BALLENTRY(GPMC_NBE0, "af12", "aa10"), | ||
575 | _OMAP2420_BALLENTRY(GPMC_NBE1, "u3", NULL), | ||
576 | _OMAP2420_BALLENTRY(GPMC_NCS1, "af14", "w1"), | ||
577 | _OMAP2420_BALLENTRY(GPMC_NCS2, "g4", NULL), | ||
578 | _OMAP2420_BALLENTRY(GPMC_NCS3, "t8", NULL), | ||
579 | _OMAP2420_BALLENTRY(GPMC_NCS4, "h8", NULL), | ||
580 | _OMAP2420_BALLENTRY(GPMC_NCS5, "k3", NULL), | ||
581 | _OMAP2420_BALLENTRY(GPMC_NCS6, "m7", NULL), | ||
582 | _OMAP2420_BALLENTRY(GPMC_NCS7, "p3", NULL), | ||
583 | _OMAP2420_BALLENTRY(GPMC_NWP, "ae15", "y5"), | ||
584 | _OMAP2420_BALLENTRY(GPMC_WAIT1, "ae20", "y8"), | ||
585 | _OMAP2420_BALLENTRY(GPMC_WAIT2, "n2", NULL), | ||
586 | _OMAP2420_BALLENTRY(GPMC_WAIT3, "t4", NULL), | ||
587 | _OMAP2420_BALLENTRY(HDQ_SIO, "t23", NULL), | ||
588 | _OMAP2420_BALLENTRY(I2C2_SCL, "l2", NULL), | ||
589 | _OMAP2420_BALLENTRY(I2C2_SDA, "k19", NULL), | ||
590 | _OMAP2420_BALLENTRY(JTAG_EMU0, "n24", NULL), | ||
591 | _OMAP2420_BALLENTRY(JTAG_EMU1, "ac22", NULL), | ||
592 | _OMAP2420_BALLENTRY(MCBSP1_CLKR, "y24", NULL), | ||
593 | _OMAP2420_BALLENTRY(MCBSP1_CLKX, "t19", NULL), | ||
594 | _OMAP2420_BALLENTRY(MCBSP1_DR, "u23", NULL), | ||
595 | _OMAP2420_BALLENTRY(MCBSP1_DX, "r24", NULL), | ||
596 | _OMAP2420_BALLENTRY(MCBSP1_FSR, "r20", NULL), | ||
597 | _OMAP2420_BALLENTRY(MCBSP1_FSX, "r23", NULL), | ||
598 | _OMAP2420_BALLENTRY(MCBSP2_CLKX, "t24", NULL), | ||
599 | _OMAP2420_BALLENTRY(MCBSP2_DR, "p20", NULL), | ||
600 | _OMAP2420_BALLENTRY(MCBSP_CLKS, "p23", NULL), | ||
601 | _OMAP2420_BALLENTRY(MMC_CLKI, "c23", NULL), | ||
602 | _OMAP2420_BALLENTRY(MMC_CLKO, "h23", NULL), | ||
603 | _OMAP2420_BALLENTRY(MMC_CMD, "j23", NULL), | ||
604 | _OMAP2420_BALLENTRY(MMC_CMD_DIR, "j24", NULL), | ||
605 | _OMAP2420_BALLENTRY(MMC_DAT0, "h17", NULL), | ||
606 | _OMAP2420_BALLENTRY(MMC_DAT_DIR0, "f23", NULL), | ||
607 | _OMAP2420_BALLENTRY(MMC_DAT1, "g19", NULL), | ||
608 | _OMAP2420_BALLENTRY(MMC_DAT_DIR1, "d23", NULL), | ||
609 | _OMAP2420_BALLENTRY(MMC_DAT2, "h20", NULL), | ||
610 | _OMAP2420_BALLENTRY(MMC_DAT_DIR2, "g23", NULL), | ||
611 | _OMAP2420_BALLENTRY(MMC_DAT3, "d24", NULL), | ||
612 | _OMAP2420_BALLENTRY(MMC_DAT_DIR3, "e23", NULL), | ||
613 | _OMAP2420_BALLENTRY(SDRC_A12, "w26", "r21"), | ||
614 | _OMAP2420_BALLENTRY(SDRC_A13, "w25", "aa15"), | ||
615 | _OMAP2420_BALLENTRY(SDRC_A14, "aa26", "y12"), | ||
616 | _OMAP2420_BALLENTRY(SDRC_CKE1, "ae25", "y13"), | ||
617 | _OMAP2420_BALLENTRY(SDRC_NCS1, "y25", "t20"), | ||
618 | _OMAP2420_BALLENTRY(SPI1_CLK, "y23", NULL), | ||
619 | _OMAP2420_BALLENTRY(SPI1_NCS0, "w24", NULL), | ||
620 | _OMAP2420_BALLENTRY(SPI1_NCS1, "w23", NULL), | ||
621 | _OMAP2420_BALLENTRY(SPI1_NCS2, "v23", NULL), | ||
622 | _OMAP2420_BALLENTRY(SPI1_NCS3, "u20", NULL), | ||
623 | _OMAP2420_BALLENTRY(SPI1_SIMO, "h10", NULL), | ||
624 | _OMAP2420_BALLENTRY(SPI1_SOMI, "v19", NULL), | ||
625 | _OMAP2420_BALLENTRY(SPI2_CLK, "v24", NULL), | ||
626 | _OMAP2420_BALLENTRY(SPI2_NCS0, "aa24", NULL), | ||
627 | _OMAP2420_BALLENTRY(SPI2_SIMO, "u24", NULL), | ||
628 | _OMAP2420_BALLENTRY(SPI2_SOMI, "v25", NULL), | ||
629 | _OMAP2420_BALLENTRY(SSI1_DAT_RX, "w15", NULL), | ||
630 | _OMAP2420_BALLENTRY(SSI1_DAT_TX, "w13", NULL), | ||
631 | _OMAP2420_BALLENTRY(SSI1_FLAG_RX, "af11", NULL), | ||
632 | _OMAP2420_BALLENTRY(SSI1_FLAG_TX, "ac15", NULL), | ||
633 | _OMAP2420_BALLENTRY(SSI1_RDY_RX, "ac16", NULL), | ||
634 | _OMAP2420_BALLENTRY(SSI1_RDY_TX, "af15", NULL), | ||
635 | _OMAP2420_BALLENTRY(SSI1_WAKE, "ad15", NULL), | ||
636 | _OMAP2420_BALLENTRY(SYS_CLKOUT, "ae19", NULL), | ||
637 | _OMAP2420_BALLENTRY(SYS_CLKREQ, "ad20", NULL), | ||
638 | _OMAP2420_BALLENTRY(SYS_NIRQ, "y20", NULL), | ||
639 | _OMAP2420_BALLENTRY(UART1_CTS, "g20", NULL), | ||
640 | _OMAP2420_BALLENTRY(UART1_RTS, "k20", NULL), | ||
641 | _OMAP2420_BALLENTRY(UART1_RX, "t20", NULL), | ||
642 | _OMAP2420_BALLENTRY(UART1_TX, "h12", NULL), | ||
643 | _OMAP2420_BALLENTRY(UART2_CTS, "ac24", NULL), | ||
644 | _OMAP2420_BALLENTRY(UART2_RTS, "w20", NULL), | ||
645 | _OMAP2420_BALLENTRY(UART2_RX, "ad24", NULL), | ||
646 | _OMAP2420_BALLENTRY(UART2_TX, "ab24", NULL), | ||
647 | _OMAP2420_BALLENTRY(UART3_CTS_RCTX, "k24", NULL), | ||
648 | _OMAP2420_BALLENTRY(UART3_RTS_SD, "m20", NULL), | ||
649 | _OMAP2420_BALLENTRY(UART3_RX_IRRX, "h24", NULL), | ||
650 | _OMAP2420_BALLENTRY(UART3_TX_IRTX, "g24", NULL), | ||
651 | _OMAP2420_BALLENTRY(USB0_DAT, "j25", NULL), | ||
652 | _OMAP2420_BALLENTRY(USB0_PUEN, "l23", NULL), | ||
653 | _OMAP2420_BALLENTRY(USB0_RCV, "k23", NULL), | ||
654 | _OMAP2420_BALLENTRY(USB0_SE0, "l24", NULL), | ||
655 | _OMAP2420_BALLENTRY(USB0_TXEN, "m24", NULL), | ||
656 | _OMAP2420_BALLENTRY(USB0_VM, "n23", NULL), | ||
657 | _OMAP2420_BALLENTRY(USB0_VP, "m23", NULL), | ||
658 | _OMAP2420_BALLENTRY(VLYNQ_CLK, "w12", NULL), | ||
659 | _OMAP2420_BALLENTRY(VLYNQ_NLA, "ae10", NULL), | ||
660 | _OMAP2420_BALLENTRY(VLYNQ_RX0, "ad7", NULL), | ||
661 | _OMAP2420_BALLENTRY(VLYNQ_RX1, "w10", NULL), | ||
662 | _OMAP2420_BALLENTRY(VLYNQ_TX0, "y15", NULL), | ||
663 | _OMAP2420_BALLENTRY(VLYNQ_TX1, "w14", NULL), | ||
664 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
665 | }; | ||
666 | #else | ||
667 | #define omap2420_pop_ball NULL | ||
668 | #endif | ||
669 | |||
670 | int __init omap2420_mux_init(struct omap_board_mux *board_subset, int flags) | ||
671 | { | ||
672 | struct omap_ball *package_balls = NULL; | ||
673 | |||
674 | switch (flags & OMAP_PACKAGE_MASK) { | ||
675 | case OMAP_PACKAGE_ZAC: | ||
676 | package_balls = omap2420_pop_ball; | ||
677 | break; | ||
678 | case OMAP_PACKAGE_ZAF: | ||
679 | /* REVISIT: Please add data */ | ||
680 | default: | ||
681 | pr_warning("%s: No ball data available for omap2420 package\n", | ||
682 | __func__); | ||
683 | } | ||
684 | |||
685 | return omap_mux_init("core", OMAP_MUX_REG_8BIT | OMAP_MUX_GPIO_IN_MODE3, | ||
686 | OMAP2420_CONTROL_PADCONF_MUX_PBASE, | ||
687 | OMAP2420_CONTROL_PADCONF_MUX_SIZE, | ||
688 | omap2420_muxmodes, NULL, board_subset, | ||
689 | package_balls); | ||
690 | } | ||
diff --git a/arch/arm/mach-omap2/mux2420.h b/arch/arm/mach-omap2/mux2420.h deleted file mode 100644 index 0f555aa847b5..000000000000 --- a/arch/arm/mach-omap2/mux2420.h +++ /dev/null | |||
@@ -1,282 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2009 Nokia | ||
3 | * Copyright (C) 2009 Texas Instruments | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #define OMAP2420_CONTROL_PADCONF_MUX_PBASE 0x48000030LU | ||
11 | |||
12 | #define OMAP2420_MUX(mode0, mux_value) \ | ||
13 | { \ | ||
14 | .reg_offset = (OMAP2420_CONTROL_PADCONF_##mode0##_OFFSET), \ | ||
15 | .value = (mux_value), \ | ||
16 | } | ||
17 | |||
18 | /* | ||
19 | * OMAP2420 CONTROL_PADCONF* register offsets for pin-muxing | ||
20 | * | ||
21 | * Extracted from the TRM. Add 0x48000030 to these values to get the | ||
22 | * absolute addresses. The name in the macro is the mode-0 name of | ||
23 | * the pin. NOTE: These registers are 8-bits wide. | ||
24 | */ | ||
25 | #define OMAP2420_CONTROL_PADCONF_SDRC_A14_OFFSET 0x000 | ||
26 | #define OMAP2420_CONTROL_PADCONF_SDRC_A13_OFFSET 0x001 | ||
27 | #define OMAP2420_CONTROL_PADCONF_SDRC_A12_OFFSET 0x002 | ||
28 | #define OMAP2420_CONTROL_PADCONF_SDRC_BA1_OFFSET 0x003 | ||
29 | #define OMAP2420_CONTROL_PADCONF_SDRC_BA0_OFFSET 0x004 | ||
30 | #define OMAP2420_CONTROL_PADCONF_SDRC_A11_OFFSET 0x005 | ||
31 | #define OMAP2420_CONTROL_PADCONF_SDRC_A10_OFFSET 0x006 | ||
32 | #define OMAP2420_CONTROL_PADCONF_SDRC_A9_OFFSET 0x007 | ||
33 | #define OMAP2420_CONTROL_PADCONF_SDRC_A8_OFFSET 0x008 | ||
34 | #define OMAP2420_CONTROL_PADCONF_SDRC_A7_OFFSET 0x009 | ||
35 | #define OMAP2420_CONTROL_PADCONF_SDRC_A6_OFFSET 0x00a | ||
36 | #define OMAP2420_CONTROL_PADCONF_SDRC_A5_OFFSET 0x00b | ||
37 | #define OMAP2420_CONTROL_PADCONF_SDRC_A4_OFFSET 0x00c | ||
38 | #define OMAP2420_CONTROL_PADCONF_SDRC_A3_OFFSET 0x00d | ||
39 | #define OMAP2420_CONTROL_PADCONF_SDRC_A2_OFFSET 0x00e | ||
40 | #define OMAP2420_CONTROL_PADCONF_SDRC_A1_OFFSET 0x00f | ||
41 | #define OMAP2420_CONTROL_PADCONF_SDRC_A0_OFFSET 0x010 | ||
42 | #define OMAP2420_CONTROL_PADCONF_SDRC_D31_OFFSET 0x021 | ||
43 | #define OMAP2420_CONTROL_PADCONF_SDRC_D30_OFFSET 0x022 | ||
44 | #define OMAP2420_CONTROL_PADCONF_SDRC_D29_OFFSET 0x023 | ||
45 | #define OMAP2420_CONTROL_PADCONF_SDRC_D28_OFFSET 0x024 | ||
46 | #define OMAP2420_CONTROL_PADCONF_SDRC_D27_OFFSET 0x025 | ||
47 | #define OMAP2420_CONTROL_PADCONF_SDRC_D26_OFFSET 0x026 | ||
48 | #define OMAP2420_CONTROL_PADCONF_SDRC_D25_OFFSET 0x027 | ||
49 | #define OMAP2420_CONTROL_PADCONF_SDRC_D24_OFFSET 0x028 | ||
50 | #define OMAP2420_CONTROL_PADCONF_SDRC_D23_OFFSET 0x029 | ||
51 | #define OMAP2420_CONTROL_PADCONF_SDRC_D22_OFFSET 0x02a | ||
52 | #define OMAP2420_CONTROL_PADCONF_SDRC_D21_OFFSET 0x02b | ||
53 | #define OMAP2420_CONTROL_PADCONF_SDRC_D20_OFFSET 0x02c | ||
54 | #define OMAP2420_CONTROL_PADCONF_SDRC_D19_OFFSET 0x02d | ||
55 | #define OMAP2420_CONTROL_PADCONF_SDRC_D18_OFFSET 0x02e | ||
56 | #define OMAP2420_CONTROL_PADCONF_SDRC_D17_OFFSET 0x02f | ||
57 | #define OMAP2420_CONTROL_PADCONF_SDRC_D16_OFFSET 0x030 | ||
58 | #define OMAP2420_CONTROL_PADCONF_SDRC_D15_OFFSET 0x031 | ||
59 | #define OMAP2420_CONTROL_PADCONF_SDRC_D14_OFFSET 0x032 | ||
60 | #define OMAP2420_CONTROL_PADCONF_SDRC_D13_OFFSET 0x033 | ||
61 | #define OMAP2420_CONTROL_PADCONF_SDRC_D12_OFFSET 0x034 | ||
62 | #define OMAP2420_CONTROL_PADCONF_SDRC_D11_OFFSET 0x035 | ||
63 | #define OMAP2420_CONTROL_PADCONF_SDRC_D10_OFFSET 0x036 | ||
64 | #define OMAP2420_CONTROL_PADCONF_SDRC_D9_OFFSET 0x037 | ||
65 | #define OMAP2420_CONTROL_PADCONF_SDRC_D8_OFFSET 0x038 | ||
66 | #define OMAP2420_CONTROL_PADCONF_SDRC_D7_OFFSET 0x039 | ||
67 | #define OMAP2420_CONTROL_PADCONF_SDRC_D6_OFFSET 0x03a | ||
68 | #define OMAP2420_CONTROL_PADCONF_SDRC_D5_OFFSET 0x03b | ||
69 | #define OMAP2420_CONTROL_PADCONF_SDRC_D4_OFFSET 0x03c | ||
70 | #define OMAP2420_CONTROL_PADCONF_SDRC_D3_OFFSET 0x03d | ||
71 | #define OMAP2420_CONTROL_PADCONF_SDRC_D2_OFFSET 0x03e | ||
72 | #define OMAP2420_CONTROL_PADCONF_SDRC_D1_OFFSET 0x03f | ||
73 | #define OMAP2420_CONTROL_PADCONF_SDRC_D0_OFFSET 0x040 | ||
74 | #define OMAP2420_CONTROL_PADCONF_GPMC_A10_OFFSET 0x041 | ||
75 | #define OMAP2420_CONTROL_PADCONF_GPMC_A9_OFFSET 0x042 | ||
76 | #define OMAP2420_CONTROL_PADCONF_GPMC_A8_OFFSET 0x043 | ||
77 | #define OMAP2420_CONTROL_PADCONF_GPMC_A7_OFFSET 0x044 | ||
78 | #define OMAP2420_CONTROL_PADCONF_GPMC_A6_OFFSET 0x045 | ||
79 | #define OMAP2420_CONTROL_PADCONF_GPMC_A5_OFFSET 0x046 | ||
80 | #define OMAP2420_CONTROL_PADCONF_GPMC_A4_OFFSET 0x047 | ||
81 | #define OMAP2420_CONTROL_PADCONF_GPMC_A3_OFFSET 0x048 | ||
82 | #define OMAP2420_CONTROL_PADCONF_GPMC_A2_OFFSET 0x049 | ||
83 | #define OMAP2420_CONTROL_PADCONF_GPMC_A1_OFFSET 0x04a | ||
84 | #define OMAP2420_CONTROL_PADCONF_GPMC_D15_OFFSET 0x04b | ||
85 | #define OMAP2420_CONTROL_PADCONF_GPMC_D14_OFFSET 0x04c | ||
86 | #define OMAP2420_CONTROL_PADCONF_GPMC_D13_OFFSET 0x04d | ||
87 | #define OMAP2420_CONTROL_PADCONF_GPMC_D12_OFFSET 0x04e | ||
88 | #define OMAP2420_CONTROL_PADCONF_GPMC_D11_OFFSET 0x04f | ||
89 | #define OMAP2420_CONTROL_PADCONF_GPMC_D10_OFFSET 0x050 | ||
90 | #define OMAP2420_CONTROL_PADCONF_GPMC_D9_OFFSET 0x051 | ||
91 | #define OMAP2420_CONTROL_PADCONF_GPMC_D8_OFFSET 0x052 | ||
92 | #define OMAP2420_CONTROL_PADCONF_GPMC_D7_OFFSET 0x053 | ||
93 | #define OMAP2420_CONTROL_PADCONF_GPMC_D6_OFFSET 0x054 | ||
94 | #define OMAP2420_CONTROL_PADCONF_GPMC_D5_OFFSET 0x055 | ||
95 | #define OMAP2420_CONTROL_PADCONF_GPMC_D4_OFFSET 0x056 | ||
96 | #define OMAP2420_CONTROL_PADCONF_GPMC_D3_OFFSET 0x057 | ||
97 | #define OMAP2420_CONTROL_PADCONF_GPMC_D2_OFFSET 0x058 | ||
98 | #define OMAP2420_CONTROL_PADCONF_GPMC_D1_OFFSET 0x059 | ||
99 | #define OMAP2420_CONTROL_PADCONF_GPMC_D0_OFFSET 0x05a | ||
100 | #define OMAP2420_CONTROL_PADCONF_GPMC_CLK_OFFSET 0x05b | ||
101 | #define OMAP2420_CONTROL_PADCONF_GPMC_NCS0_OFFSET 0x05c | ||
102 | #define OMAP2420_CONTROL_PADCONF_GPMC_NCS1_OFFSET 0x05d | ||
103 | #define OMAP2420_CONTROL_PADCONF_GPMC_NCS2_OFFSET 0x05e | ||
104 | #define OMAP2420_CONTROL_PADCONF_GPMC_NCS3_OFFSET 0x05f | ||
105 | #define OMAP2420_CONTROL_PADCONF_GPMC_NCS4_OFFSET 0x060 | ||
106 | #define OMAP2420_CONTROL_PADCONF_GPMC_NCS5_OFFSET 0x061 | ||
107 | #define OMAP2420_CONTROL_PADCONF_GPMC_NCS6_OFFSET 0x062 | ||
108 | #define OMAP2420_CONTROL_PADCONF_GPMC_NCS7_OFFSET 0x063 | ||
109 | #define OMAP2420_CONTROL_PADCONF_GPMC_NALE_ALE_OFFSET 0x064 | ||
110 | #define OMAP2420_CONTROL_PADCONF_GPMC_NOE_OFFSET 0x065 | ||
111 | #define OMAP2420_CONTROL_PADCONF_GPMC_NWE_OFFSET 0x066 | ||
112 | #define OMAP2420_CONTROL_PADCONF_GPMC_NBE0_OFFSET 0x067 | ||
113 | #define OMAP2420_CONTROL_PADCONF_GPMC_NBE1_OFFSET 0x068 | ||
114 | #define OMAP2420_CONTROL_PADCONF_GPMC_NWP_OFFSET 0x069 | ||
115 | #define OMAP2420_CONTROL_PADCONF_GPMC_WAIT0_OFFSET 0x06a | ||
116 | #define OMAP2420_CONTROL_PADCONF_GPMC_WAIT1_OFFSET 0x06b | ||
117 | #define OMAP2420_CONTROL_PADCONF_GPMC_WAIT2_OFFSET 0x06c | ||
118 | #define OMAP2420_CONTROL_PADCONF_GPMC_WAIT3_OFFSET 0x06d | ||
119 | #define OMAP2420_CONTROL_PADCONF_SDRC_CLK_OFFSET 0x06e | ||
120 | #define OMAP2420_CONTROL_PADCONF_SDRC_NCLK_OFFSET 0x06f | ||
121 | #define OMAP2420_CONTROL_PADCONF_SDRC_NCS0_OFFSET 0x070 | ||
122 | #define OMAP2420_CONTROL_PADCONF_SDRC_NCS1_OFFSET 0x071 | ||
123 | #define OMAP2420_CONTROL_PADCONF_SDRC_CKE0_OFFSET 0x072 | ||
124 | #define OMAP2420_CONTROL_PADCONF_SDRC_CKE1_OFFSET 0x073 | ||
125 | #define OMAP2420_CONTROL_PADCONF_SDRC_NRAS_OFFSET 0x074 | ||
126 | #define OMAP2420_CONTROL_PADCONF_SDRC_NCAS_OFFSET 0x075 | ||
127 | #define OMAP2420_CONTROL_PADCONF_SDRC_NWE_OFFSET 0x076 | ||
128 | #define OMAP2420_CONTROL_PADCONF_SDRC_DM0_OFFSET 0x077 | ||
129 | #define OMAP2420_CONTROL_PADCONF_SDRC_DM1_OFFSET 0x078 | ||
130 | #define OMAP2420_CONTROL_PADCONF_SDRC_DM2_OFFSET 0x079 | ||
131 | #define OMAP2420_CONTROL_PADCONF_SDRC_DM3_OFFSET 0x07a | ||
132 | #define OMAP2420_CONTROL_PADCONF_SDRC_DQS0_OFFSET 0x07f | ||
133 | #define OMAP2420_CONTROL_PADCONF_SDRC_DQS1_OFFSET 0x080 | ||
134 | #define OMAP2420_CONTROL_PADCONF_SDRC_DQS2_OFFSET 0x081 | ||
135 | #define OMAP2420_CONTROL_PADCONF_SDRC_DQS3_OFFSET 0x082 | ||
136 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA0_OFFSET 0x083 | ||
137 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA1_OFFSET 0x084 | ||
138 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA2_OFFSET 0x085 | ||
139 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA3_OFFSET 0x086 | ||
140 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA4_OFFSET 0x087 | ||
141 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA5_OFFSET 0x088 | ||
142 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA6_OFFSET 0x089 | ||
143 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA7_OFFSET 0x08a | ||
144 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA8_OFFSET 0x08b | ||
145 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA9_OFFSET 0x08c | ||
146 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA10_OFFSET 0x08d | ||
147 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA11_OFFSET 0x08e | ||
148 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA12_OFFSET 0x08f | ||
149 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA13_OFFSET 0x090 | ||
150 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA14_OFFSET 0x091 | ||
151 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA15_OFFSET 0x092 | ||
152 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA16_OFFSET 0x093 | ||
153 | #define OMAP2420_CONTROL_PADCONF_DSS_DATA17_OFFSET 0x094 | ||
154 | #define OMAP2420_CONTROL_PADCONF_UART1_CTS_OFFSET 0x095 | ||
155 | #define OMAP2420_CONTROL_PADCONF_UART1_RTS_OFFSET 0x096 | ||
156 | #define OMAP2420_CONTROL_PADCONF_UART1_TX_OFFSET 0x097 | ||
157 | #define OMAP2420_CONTROL_PADCONF_UART1_RX_OFFSET 0x098 | ||
158 | #define OMAP2420_CONTROL_PADCONF_MCBSP2_DR_OFFSET 0x099 | ||
159 | #define OMAP2420_CONTROL_PADCONF_MCBSP2_CLKX_OFFSET 0x09a | ||
160 | #define OMAP2420_CONTROL_PADCONF_DSS_PCL_OFFSET 0x09b | ||
161 | #define OMAP2420_CONTROL_PADCONF_DSS_VSYNC_OFFSET 0x09c | ||
162 | #define OMAP2420_CONTROL_PADCONF_DSS_HSYNC_OFFSET 0x09d | ||
163 | #define OMAP2420_CONTROL_PADCONF_DSS_ACBIAS_OFFSET 0x09e | ||
164 | #define OMAP2420_CONTROL_PADCONF_CAM_D9_OFFSET 0x09f | ||
165 | #define OMAP2420_CONTROL_PADCONF_CAM_D8_OFFSET 0x0a0 | ||
166 | #define OMAP2420_CONTROL_PADCONF_CAM_D7_OFFSET 0x0a1 | ||
167 | #define OMAP2420_CONTROL_PADCONF_CAM_D6_OFFSET 0x0a2 | ||
168 | #define OMAP2420_CONTROL_PADCONF_CAM_D5_OFFSET 0x0a3 | ||
169 | #define OMAP2420_CONTROL_PADCONF_CAM_D4_OFFSET 0x0a4 | ||
170 | #define OMAP2420_CONTROL_PADCONF_CAM_D3_OFFSET 0x0a5 | ||
171 | #define OMAP2420_CONTROL_PADCONF_CAM_D2_OFFSET 0x0a6 | ||
172 | #define OMAP2420_CONTROL_PADCONF_CAM_D1_OFFSET 0x0a7 | ||
173 | #define OMAP2420_CONTROL_PADCONF_CAM_D0_OFFSET 0x0a8 | ||
174 | #define OMAP2420_CONTROL_PADCONF_CAM_HS_OFFSET 0x0a9 | ||
175 | #define OMAP2420_CONTROL_PADCONF_CAM_VS_OFFSET 0x0aa | ||
176 | #define OMAP2420_CONTROL_PADCONF_CAM_LCLK_OFFSET 0x0ab | ||
177 | #define OMAP2420_CONTROL_PADCONF_CAM_XCLK_OFFSET 0x0ac | ||
178 | #define OMAP2420_CONTROL_PADCONF_SSI1_DAT_TX_OFFSET 0x0ad | ||
179 | #define OMAP2420_CONTROL_PADCONF_SSI1_FLAG_TX_OFFSET 0x0ae | ||
180 | #define OMAP2420_CONTROL_PADCONF_SSI1_RDY_TX_OFFSET 0x0af | ||
181 | #define OMAP2420_CONTROL_PADCONF_GPIO_62_OFFSET 0x0b0 | ||
182 | #define OMAP2420_CONTROL_PADCONF_SSI1_DAT_RX_OFFSET 0x0b1 | ||
183 | #define OMAP2420_CONTROL_PADCONF_SSI1_FLAG_RX_OFFSET 0x0b2 | ||
184 | #define OMAP2420_CONTROL_PADCONF_SSI1_RDY_RX_OFFSET 0x0b3 | ||
185 | #define OMAP2420_CONTROL_PADCONF_SSI1_WAKE_OFFSET 0x0b4 | ||
186 | #define OMAP2420_CONTROL_PADCONF_VLYNQ_CLK_OFFSET 0x0b5 | ||
187 | #define OMAP2420_CONTROL_PADCONF_VLYNQ_RX1_OFFSET 0x0b6 | ||
188 | #define OMAP2420_CONTROL_PADCONF_VLYNQ_RX0_OFFSET 0x0b7 | ||
189 | #define OMAP2420_CONTROL_PADCONF_VLYNQ_TX1_OFFSET 0x0b8 | ||
190 | #define OMAP2420_CONTROL_PADCONF_VLYNQ_TX0_OFFSET 0x0b9 | ||
191 | #define OMAP2420_CONTROL_PADCONF_VLYNQ_NLA_OFFSET 0x0ba | ||
192 | #define OMAP2420_CONTROL_PADCONF_UART2_CTS_OFFSET 0x0bb | ||
193 | #define OMAP2420_CONTROL_PADCONF_UART2_RTS_OFFSET 0x0bc | ||
194 | #define OMAP2420_CONTROL_PADCONF_UART2_TX_OFFSET 0x0bd | ||
195 | #define OMAP2420_CONTROL_PADCONF_UART2_RX_OFFSET 0x0be | ||
196 | #define OMAP2420_CONTROL_PADCONF_EAC_BT_SCLK_OFFSET 0x0bf | ||
197 | #define OMAP2420_CONTROL_PADCONF_EAC_BT_FS_OFFSET 0x0c0 | ||
198 | #define OMAP2420_CONTROL_PADCONF_EAC_BT_DIN_OFFSET 0x0c1 | ||
199 | #define OMAP2420_CONTROL_PADCONF_EAC_BT_DOUT_OFFSET 0x0c2 | ||
200 | #define OMAP2420_CONTROL_PADCONF_MMC_CLKO_OFFSET 0x0c3 | ||
201 | #define OMAP2420_CONTROL_PADCONF_MMC_CMD_OFFSET 0x0c4 | ||
202 | #define OMAP2420_CONTROL_PADCONF_MMC_DAT0_OFFSET 0x0c5 | ||
203 | #define OMAP2420_CONTROL_PADCONF_MMC_DAT1_OFFSET 0x0c6 | ||
204 | #define OMAP2420_CONTROL_PADCONF_MMC_DAT2_OFFSET 0x0c7 | ||
205 | #define OMAP2420_CONTROL_PADCONF_MMC_DAT3_OFFSET 0x0c8 | ||
206 | #define OMAP2420_CONTROL_PADCONF_MMC_DAT_DIR0_OFFSET 0x0c9 | ||
207 | #define OMAP2420_CONTROL_PADCONF_MMC_DAT_DIR1_OFFSET 0x0ca | ||
208 | #define OMAP2420_CONTROL_PADCONF_MMC_DAT_DIR2_OFFSET 0x0cb | ||
209 | #define OMAP2420_CONTROL_PADCONF_MMC_DAT_DIR3_OFFSET 0x0cc | ||
210 | #define OMAP2420_CONTROL_PADCONF_MMC_CMD_DIR_OFFSET 0x0cd | ||
211 | #define OMAP2420_CONTROL_PADCONF_MMC_CLKI_OFFSET 0x0ce | ||
212 | #define OMAP2420_CONTROL_PADCONF_SPI1_CLK_OFFSET 0x0cf | ||
213 | #define OMAP2420_CONTROL_PADCONF_SPI1_SIMO_OFFSET 0x0d0 | ||
214 | #define OMAP2420_CONTROL_PADCONF_SPI1_SOMI_OFFSET 0x0d1 | ||
215 | #define OMAP2420_CONTROL_PADCONF_SPI1_NCS0_OFFSET 0x0d2 | ||
216 | #define OMAP2420_CONTROL_PADCONF_SPI1_NCS1_OFFSET 0x0d3 | ||
217 | #define OMAP2420_CONTROL_PADCONF_SPI1_NCS2_OFFSET 0x0d4 | ||
218 | #define OMAP2420_CONTROL_PADCONF_SPI1_NCS3_OFFSET 0x0d5 | ||
219 | #define OMAP2420_CONTROL_PADCONF_SPI2_CLK_OFFSET 0x0d6 | ||
220 | #define OMAP2420_CONTROL_PADCONF_SPI2_SIMO_OFFSET 0x0d7 | ||
221 | #define OMAP2420_CONTROL_PADCONF_SPI2_SOMI_OFFSET 0x0d8 | ||
222 | #define OMAP2420_CONTROL_PADCONF_SPI2_NCS0_OFFSET 0x0d9 | ||
223 | #define OMAP2420_CONTROL_PADCONF_MCBSP1_CLKR_OFFSET 0x0da | ||
224 | #define OMAP2420_CONTROL_PADCONF_MCBSP1_FSR_OFFSET 0x0db | ||
225 | #define OMAP2420_CONTROL_PADCONF_MCBSP1_DX_OFFSET 0x0dc | ||
226 | #define OMAP2420_CONTROL_PADCONF_MCBSP1_DR_OFFSET 0x0dd | ||
227 | #define OMAP2420_CONTROL_PADCONF_MCBSP_CLKS_OFFSET 0x0de | ||
228 | #define OMAP2420_CONTROL_PADCONF_MCBSP1_FSX_OFFSET 0x0df | ||
229 | #define OMAP2420_CONTROL_PADCONF_MCBSP1_CLKX_OFFSET 0x0e0 | ||
230 | #define OMAP2420_CONTROL_PADCONF_I2C1_SCL_OFFSET 0x0e1 | ||
231 | #define OMAP2420_CONTROL_PADCONF_I2C1_SDA_OFFSET 0x0e2 | ||
232 | #define OMAP2420_CONTROL_PADCONF_I2C2_SCL_OFFSET 0x0e3 | ||
233 | #define OMAP2420_CONTROL_PADCONF_I2C2_SDA_OFFSET 0x0e4 | ||
234 | #define OMAP2420_CONTROL_PADCONF_HDQ_SIO_OFFSET 0x0e5 | ||
235 | #define OMAP2420_CONTROL_PADCONF_UART3_CTS_RCTX_OFFSET 0x0e6 | ||
236 | #define OMAP2420_CONTROL_PADCONF_UART3_RTS_SD_OFFSET 0x0e7 | ||
237 | #define OMAP2420_CONTROL_PADCONF_UART3_TX_IRTX_OFFSET 0x0e8 | ||
238 | #define OMAP2420_CONTROL_PADCONF_UART3_RX_IRRX_OFFSET 0x0e9 | ||
239 | #define OMAP2420_CONTROL_PADCONF_TV_CVBS_OFFSET 0x0ea | ||
240 | #define OMAP2420_CONTROL_PADCONF_TV_VREF_OFFSET 0x0eb | ||
241 | #define OMAP2420_CONTROL_PADCONF_TV_RREF_OFFSET 0x0ec | ||
242 | #define OMAP2420_CONTROL_PADCONF_USB0_PUEN_OFFSET 0x0ed | ||
243 | #define OMAP2420_CONTROL_PADCONF_USB0_VP_OFFSET 0x0ee | ||
244 | #define OMAP2420_CONTROL_PADCONF_USB0_VM_OFFSET 0x0ef | ||
245 | #define OMAP2420_CONTROL_PADCONF_USB0_RCV_OFFSET 0x0f0 | ||
246 | #define OMAP2420_CONTROL_PADCONF_USB0_TXEN_OFFSET 0x0f1 | ||
247 | #define OMAP2420_CONTROL_PADCONF_USB0_SE0_OFFSET 0x0f2 | ||
248 | #define OMAP2420_CONTROL_PADCONF_USB0_DAT_OFFSET 0x0f3 | ||
249 | #define OMAP2420_CONTROL_PADCONF_EAC_AC_SCLK_OFFSET 0x0f4 | ||
250 | #define OMAP2420_CONTROL_PADCONF_EAC_AC_FS_OFFSET 0x0f5 | ||
251 | #define OMAP2420_CONTROL_PADCONF_EAC_AC_DIN_OFFSET 0x0f6 | ||
252 | #define OMAP2420_CONTROL_PADCONF_EAC_AC_DOUT_OFFSET 0x0f7 | ||
253 | #define OMAP2420_CONTROL_PADCONF_EAC_AC_MCLK_OFFSET 0x0f8 | ||
254 | #define OMAP2420_CONTROL_PADCONF_EAC_AC_RST_OFFSET 0x0f9 | ||
255 | #define OMAP2420_CONTROL_PADCONF_SYS_NRESPWRON_OFFSET 0x0fa | ||
256 | #define OMAP2420_CONTROL_PADCONF_SYS_NRESWARM_OFFSET 0x0fb | ||
257 | #define OMAP2420_CONTROL_PADCONF_SYS_NIRQ_OFFSET 0x0fc | ||
258 | #define OMAP2420_CONTROL_PADCONF_SYS_NV_OFFSET 0x0fd | ||
259 | #define OMAP2420_CONTROL_PADCONF_GPIO_119_OFFSET 0x0fe | ||
260 | #define OMAP2420_CONTROL_PADCONF_GPIO_120_OFFSET 0x0ff | ||
261 | #define OMAP2420_CONTROL_PADCONF_GPIO_121_OFFSET 0x100 | ||
262 | #define OMAP2420_CONTROL_PADCONF_GPIO_122_OFFSET 0x101 | ||
263 | #define OMAP2420_CONTROL_PADCONF_SYS_32K_OFFSET 0x102 | ||
264 | #define OMAP2420_CONTROL_PADCONF_SYS_XTALIN_OFFSET 0x103 | ||
265 | #define OMAP2420_CONTROL_PADCONF_SYS_XTALOUT_OFFSET 0x104 | ||
266 | #define OMAP2420_CONTROL_PADCONF_GPIO_36_OFFSET 0x105 | ||
267 | #define OMAP2420_CONTROL_PADCONF_SYS_CLKREQ_OFFSET 0x106 | ||
268 | #define OMAP2420_CONTROL_PADCONF_SYS_CLKOUT_OFFSET 0x107 | ||
269 | #define OMAP2420_CONTROL_PADCONF_GPIO_6_OFFSET 0x108 | ||
270 | #define OMAP2420_CONTROL_PADCONF_GPIO_124_OFFSET 0x109 | ||
271 | #define OMAP2420_CONTROL_PADCONF_GPIO_125_OFFSET 0x10a | ||
272 | #define OMAP2420_CONTROL_PADCONF_JTAG_EMU1_OFFSET 0x10b | ||
273 | #define OMAP2420_CONTROL_PADCONF_JTAG_EMU0_OFFSET 0x10c | ||
274 | #define OMAP2420_CONTROL_PADCONF_JTAG_NTRST_OFFSET 0x10d | ||
275 | #define OMAP2420_CONTROL_PADCONF_JTAG_TCK_OFFSET 0x10e | ||
276 | #define OMAP2420_CONTROL_PADCONF_JTAG_RTCK_OFFSET 0x10f | ||
277 | #define OMAP2420_CONTROL_PADCONF_JTAG_TMS_OFFSET 0x110 | ||
278 | #define OMAP2420_CONTROL_PADCONF_JTAG_TDI_OFFSET 0x111 | ||
279 | #define OMAP2420_CONTROL_PADCONF_JTAG_TDO_OFFSET 0x112 | ||
280 | |||
281 | #define OMAP2420_CONTROL_PADCONF_MUX_SIZE \ | ||
282 | (OMAP2420_CONTROL_PADCONF_JTAG_TDO_OFFSET + 0x1) | ||
diff --git a/arch/arm/mach-omap2/mux2430.c b/arch/arm/mach-omap2/mux2430.c deleted file mode 100644 index 4185f92553db..000000000000 --- a/arch/arm/mach-omap2/mux2430.c +++ /dev/null | |||
@@ -1,793 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010 Nokia | ||
3 | * Copyright (C) 2010 Texas Instruments | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #include <linux/module.h> | ||
11 | #include <linux/init.h> | ||
12 | |||
13 | #include "mux.h" | ||
14 | |||
15 | #ifdef CONFIG_OMAP_MUX | ||
16 | |||
17 | #define _OMAP2430_MUXENTRY(M0, g, m0, m1, m2, m3, m4, m5, m6, m7) \ | ||
18 | { \ | ||
19 | .reg_offset = (OMAP2430_CONTROL_PADCONF_##M0##_OFFSET), \ | ||
20 | .gpio = (g), \ | ||
21 | .muxnames = { m0, m1, m2, m3, m4, m5, m6, m7 }, \ | ||
22 | } | ||
23 | |||
24 | #else | ||
25 | |||
26 | #define _OMAP2430_MUXENTRY(M0, g, m0, m1, m2, m3, m4, m5, m6, m7) \ | ||
27 | { \ | ||
28 | .reg_offset = (OMAP2430_CONTROL_PADCONF_##M0##_OFFSET), \ | ||
29 | .gpio = (g), \ | ||
30 | } | ||
31 | |||
32 | #endif | ||
33 | |||
34 | #define _OMAP2430_BALLENTRY(M0, bb, bt) \ | ||
35 | { \ | ||
36 | .reg_offset = (OMAP2430_CONTROL_PADCONF_##M0##_OFFSET), \ | ||
37 | .balls = { bb, bt }, \ | ||
38 | } | ||
39 | |||
40 | /* | ||
41 | * Superset of all mux modes for omap2430 | ||
42 | */ | ||
43 | static struct omap_mux __initdata omap2430_muxmodes[] = { | ||
44 | _OMAP2430_MUXENTRY(CAM_D0, 133, | ||
45 | "cam_d0", "hw_dbg0", "sti_dout", "gpio_133", | ||
46 | NULL, NULL, "etk_d2", "safe_mode"), | ||
47 | _OMAP2430_MUXENTRY(CAM_D10, 146, | ||
48 | "cam_d10", NULL, NULL, "gpio_146", | ||
49 | NULL, NULL, "etk_d12", "safe_mode"), | ||
50 | _OMAP2430_MUXENTRY(CAM_D11, 145, | ||
51 | "cam_d11", NULL, NULL, "gpio_145", | ||
52 | NULL, NULL, "etk_d13", "safe_mode"), | ||
53 | _OMAP2430_MUXENTRY(CAM_D1, 132, | ||
54 | "cam_d1", "hw_dbg1", "sti_din", "gpio_132", | ||
55 | NULL, NULL, "etk_d3", "safe_mode"), | ||
56 | _OMAP2430_MUXENTRY(CAM_D2, 129, | ||
57 | "cam_d2", "hw_dbg2", "mcbsp1_clkx", "gpio_129", | ||
58 | NULL, NULL, "etk_d4", "safe_mode"), | ||
59 | _OMAP2430_MUXENTRY(CAM_D3, 128, | ||
60 | "cam_d3", "hw_dbg3", "mcbsp1_dr", "gpio_128", | ||
61 | NULL, NULL, "etk_d5", "safe_mode"), | ||
62 | _OMAP2430_MUXENTRY(CAM_D4, 143, | ||
63 | "cam_d4", "hw_dbg4", "mcbsp1_fsr", "gpio_143", | ||
64 | NULL, NULL, "etk_d6", "safe_mode"), | ||
65 | _OMAP2430_MUXENTRY(CAM_D5, 112, | ||
66 | "cam_d5", "hw_dbg5", "mcbsp1_clkr", "gpio_112", | ||
67 | NULL, NULL, "etk_d7", "safe_mode"), | ||
68 | _OMAP2430_MUXENTRY(CAM_D6, 137, | ||
69 | "cam_d6", "hw_dbg6", NULL, "gpio_137", | ||
70 | NULL, NULL, "etk_d8", "safe_mode"), | ||
71 | _OMAP2430_MUXENTRY(CAM_D7, 136, | ||
72 | "cam_d7", "hw_dbg7", NULL, "gpio_136", | ||
73 | NULL, NULL, "etk_d9", "safe_mode"), | ||
74 | _OMAP2430_MUXENTRY(CAM_D8, 135, | ||
75 | "cam_d8", "hw_dbg8", NULL, "gpio_135", | ||
76 | NULL, NULL, "etk_d10", "safe_mode"), | ||
77 | _OMAP2430_MUXENTRY(CAM_D9, 134, | ||
78 | "cam_d9", "hw_dbg9", NULL, "gpio_134", | ||
79 | NULL, NULL, "etk_d11", "safe_mode"), | ||
80 | _OMAP2430_MUXENTRY(CAM_HS, 11, | ||
81 | "cam_hs", "hw_dbg10", "mcbsp1_dx", "gpio_11", | ||
82 | NULL, NULL, "etk_d1", "safe_mode"), | ||
83 | _OMAP2430_MUXENTRY(CAM_LCLK, 0, | ||
84 | "cam_lclk", NULL, "mcbsp_clks", NULL, | ||
85 | NULL, NULL, "etk_c1", "safe_mode"), | ||
86 | _OMAP2430_MUXENTRY(CAM_VS, 12, | ||
87 | "cam_vs", "hw_dbg11", "mcbsp1_fsx", "gpio_12", | ||
88 | NULL, NULL, "etk_d0", "safe_mode"), | ||
89 | _OMAP2430_MUXENTRY(CAM_XCLK, 0, | ||
90 | "cam_xclk", NULL, "sti_clk", NULL, | ||
91 | NULL, NULL, "etk_c2", NULL), | ||
92 | _OMAP2430_MUXENTRY(DSS_ACBIAS, 48, | ||
93 | "dss_acbias", NULL, "mcbsp2_fsx", "gpio_48", | ||
94 | NULL, NULL, NULL, "safe_mode"), | ||
95 | _OMAP2430_MUXENTRY(DSS_DATA0, 40, | ||
96 | "dss_data0", "uart1_cts", NULL, "gpio_40", | ||
97 | NULL, NULL, NULL, "safe_mode"), | ||
98 | _OMAP2430_MUXENTRY(DSS_DATA10, 128, | ||
99 | "dss_data10", "sdi_data1n", NULL, "gpio_128", | ||
100 | NULL, NULL, NULL, "safe_mode"), | ||
101 | _OMAP2430_MUXENTRY(DSS_DATA11, 129, | ||
102 | "dss_data11", "sdi_data1p", NULL, "gpio_129", | ||
103 | NULL, NULL, NULL, "safe_mode"), | ||
104 | _OMAP2430_MUXENTRY(DSS_DATA12, 130, | ||
105 | "dss_data12", "sdi_data2n", NULL, "gpio_130", | ||
106 | NULL, NULL, NULL, "safe_mode"), | ||
107 | _OMAP2430_MUXENTRY(DSS_DATA13, 131, | ||
108 | "dss_data13", "sdi_data2p", NULL, "gpio_131", | ||
109 | NULL, NULL, NULL, "safe_mode"), | ||
110 | _OMAP2430_MUXENTRY(DSS_DATA14, 132, | ||
111 | "dss_data14", "sdi_data3n", NULL, "gpio_132", | ||
112 | NULL, NULL, NULL, "safe_mode"), | ||
113 | _OMAP2430_MUXENTRY(DSS_DATA15, 133, | ||
114 | "dss_data15", "sdi_data3p", NULL, "gpio_133", | ||
115 | NULL, NULL, NULL, "safe_mode"), | ||
116 | _OMAP2430_MUXENTRY(DSS_DATA16, 46, | ||
117 | "dss_data16", NULL, NULL, "gpio_46", | ||
118 | NULL, NULL, NULL, "safe_mode"), | ||
119 | _OMAP2430_MUXENTRY(DSS_DATA17, 47, | ||
120 | "dss_data17", NULL, NULL, "gpio_47", | ||
121 | NULL, NULL, NULL, "safe_mode"), | ||
122 | _OMAP2430_MUXENTRY(DSS_DATA1, 41, | ||
123 | "dss_data1", "uart1_rts", NULL, "gpio_41", | ||
124 | NULL, NULL, NULL, "safe_mode"), | ||
125 | _OMAP2430_MUXENTRY(DSS_DATA2, 42, | ||
126 | "dss_data2", "uart1_tx", NULL, "gpio_42", | ||
127 | NULL, NULL, NULL, "safe_mode"), | ||
128 | _OMAP2430_MUXENTRY(DSS_DATA3, 43, | ||
129 | "dss_data3", "uart1_rx", NULL, "gpio_43", | ||
130 | NULL, NULL, NULL, "safe_mode"), | ||
131 | _OMAP2430_MUXENTRY(DSS_DATA4, 44, | ||
132 | "dss_data4", "uart3_rx_irrx", NULL, "gpio_44", | ||
133 | NULL, NULL, NULL, "safe_mode"), | ||
134 | _OMAP2430_MUXENTRY(DSS_DATA5, 45, | ||
135 | "dss_data5", "uart3_tx_irtx", NULL, "gpio_45", | ||
136 | NULL, NULL, NULL, "safe_mode"), | ||
137 | _OMAP2430_MUXENTRY(DSS_DATA6, 144, | ||
138 | "dss_data6", NULL, NULL, "gpio_144", | ||
139 | NULL, NULL, NULL, "safe_mode"), | ||
140 | _OMAP2430_MUXENTRY(DSS_DATA7, 147, | ||
141 | "dss_data7", NULL, NULL, "gpio_147", | ||
142 | NULL, NULL, NULL, "safe_mode"), | ||
143 | _OMAP2430_MUXENTRY(DSS_DATA8, 38, | ||
144 | "dss_data8", NULL, NULL, "gpio_38", | ||
145 | NULL, NULL, NULL, "safe_mode"), | ||
146 | _OMAP2430_MUXENTRY(DSS_DATA9, 39, | ||
147 | "dss_data9", NULL, NULL, "gpio_39", | ||
148 | NULL, NULL, NULL, "safe_mode"), | ||
149 | _OMAP2430_MUXENTRY(DSS_HSYNC, 110, | ||
150 | "dss_hsync", NULL, NULL, "gpio_110", | ||
151 | NULL, NULL, NULL, "safe_mode"), | ||
152 | _OMAP2430_MUXENTRY(GPIO_113, 113, | ||
153 | "gpio_113", "mcbsp2_clkx", NULL, "gpio_113", | ||
154 | NULL, NULL, NULL, "safe_mode"), | ||
155 | _OMAP2430_MUXENTRY(GPIO_114, 114, | ||
156 | "gpio_114", "mcbsp2_fsx", NULL, "gpio_114", | ||
157 | NULL, NULL, NULL, "safe_mode"), | ||
158 | _OMAP2430_MUXENTRY(GPIO_115, 115, | ||
159 | "gpio_115", "mcbsp2_dr", NULL, "gpio_115", | ||
160 | NULL, NULL, NULL, "safe_mode"), | ||
161 | _OMAP2430_MUXENTRY(GPIO_116, 116, | ||
162 | "gpio_116", "mcbsp2_dx", NULL, "gpio_116", | ||
163 | NULL, NULL, NULL, "safe_mode"), | ||
164 | _OMAP2430_MUXENTRY(GPIO_128, 128, | ||
165 | "gpio_128", NULL, "sti_din", "gpio_128", | ||
166 | NULL, "sys_boot0", NULL, "safe_mode"), | ||
167 | _OMAP2430_MUXENTRY(GPIO_129, 129, | ||
168 | "gpio_129", NULL, "sti_dout", "gpio_129", | ||
169 | NULL, "sys_boot1", NULL, "safe_mode"), | ||
170 | _OMAP2430_MUXENTRY(GPIO_130, 130, | ||
171 | "gpio_130", NULL, NULL, "gpio_130", | ||
172 | "jtag_emu2", "sys_boot2", NULL, "safe_mode"), | ||
173 | _OMAP2430_MUXENTRY(GPIO_131, 131, | ||
174 | "gpio_131", NULL, NULL, "gpio_131", | ||
175 | "jtag_emu3", "sys_boot3", NULL, "safe_mode"), | ||
176 | _OMAP2430_MUXENTRY(GPIO_132, 132, | ||
177 | "gpio_132", NULL, NULL, "gpio_132", | ||
178 | NULL, "sys_boot4", NULL, "safe_mode"), | ||
179 | _OMAP2430_MUXENTRY(GPIO_133, 133, | ||
180 | "gpio_133", NULL, NULL, "gpio_133", | ||
181 | NULL, "sys_boot5", NULL, "safe_mode"), | ||
182 | _OMAP2430_MUXENTRY(GPIO_134, 134, | ||
183 | "gpio_134", "ccp_datn", NULL, "gpio_134", | ||
184 | NULL, NULL, NULL, "safe_mode"), | ||
185 | _OMAP2430_MUXENTRY(GPIO_135, 135, | ||
186 | "gpio_135", "ccp_datp", NULL, "gpio_135", | ||
187 | NULL, NULL, NULL, "safe_mode"), | ||
188 | _OMAP2430_MUXENTRY(GPIO_136, 136, | ||
189 | "gpio_136", "ccp_clkn", NULL, "gpio_136", | ||
190 | NULL, NULL, NULL, "safe_mode"), | ||
191 | _OMAP2430_MUXENTRY(GPIO_137, 137, | ||
192 | "gpio_137", "ccp_clkp", NULL, "gpio_137", | ||
193 | NULL, NULL, NULL, "safe_mode"), | ||
194 | _OMAP2430_MUXENTRY(GPIO_138, 138, | ||
195 | "gpio_138", "spi3_clk", NULL, "gpio_138", | ||
196 | NULL, NULL, NULL, "safe_mode"), | ||
197 | _OMAP2430_MUXENTRY(GPIO_139, 139, | ||
198 | "gpio_139", "spi3_cs0", "sys_ndmareq3", "gpio_139", | ||
199 | NULL, NULL, NULL, "safe_mode"), | ||
200 | _OMAP2430_MUXENTRY(GPIO_140, 140, | ||
201 | "gpio_140", "spi3_simo", "sys_ndmareq4", "gpio_140", | ||
202 | NULL, NULL, "etk_d14", "safe_mode"), | ||
203 | _OMAP2430_MUXENTRY(GPIO_141, 141, | ||
204 | "gpio_141", "spi3_somi", NULL, "gpio_141", | ||
205 | NULL, NULL, NULL, "safe_mode"), | ||
206 | _OMAP2430_MUXENTRY(GPIO_142, 142, | ||
207 | "gpio_142", "spi3_cs1", "sys_ndmareq2", "gpio_142", | ||
208 | NULL, NULL, "etk_d15", "safe_mode"), | ||
209 | _OMAP2430_MUXENTRY(GPIO_148, 148, | ||
210 | "gpio_148", "mcbsp5_fsx", NULL, "gpio_148", | ||
211 | NULL, NULL, NULL, "safe_mode"), | ||
212 | _OMAP2430_MUXENTRY(GPIO_149, 149, | ||
213 | "gpio_149", "mcbsp5_dx", NULL, "gpio_149", | ||
214 | NULL, NULL, NULL, "safe_mode"), | ||
215 | _OMAP2430_MUXENTRY(GPIO_150, 150, | ||
216 | "gpio_150", "mcbsp5_dr", NULL, "gpio_150", | ||
217 | NULL, NULL, NULL, "safe_mode"), | ||
218 | _OMAP2430_MUXENTRY(GPIO_151, 151, | ||
219 | "gpio_151", "sys_pwrok", NULL, "gpio_151", | ||
220 | NULL, NULL, NULL, "safe_mode"), | ||
221 | _OMAP2430_MUXENTRY(GPIO_152, 152, | ||
222 | "gpio_152", "uart1_cts", "sys_ndmareq1", "gpio_152", | ||
223 | NULL, NULL, NULL, "safe_mode"), | ||
224 | _OMAP2430_MUXENTRY(GPIO_153, 153, | ||
225 | "gpio_153", "uart1_rx", "sys_ndmareq0", "gpio_153", | ||
226 | NULL, NULL, NULL, "safe_mode"), | ||
227 | _OMAP2430_MUXENTRY(GPIO_154, 154, | ||
228 | "gpio_154", "mcbsp5_clkx", NULL, "gpio_154", | ||
229 | NULL, NULL, NULL, "safe_mode"), | ||
230 | _OMAP2430_MUXENTRY(GPIO_63, 63, | ||
231 | "gpio_63", "mcbsp4_clkx", NULL, "gpio_63", | ||
232 | NULL, NULL, NULL, "safe_mode"), | ||
233 | _OMAP2430_MUXENTRY(GPIO_78, 78, | ||
234 | "gpio_78", NULL, "uart2_rts", "gpio_78", | ||
235 | "uart3_rts_sd", NULL, NULL, "safe_mode"), | ||
236 | _OMAP2430_MUXENTRY(GPIO_79, 79, | ||
237 | "gpio_79", "secure_indicator", "uart2_tx", "gpio_79", | ||
238 | "uart3_tx_irtx", NULL, NULL, "safe_mode"), | ||
239 | _OMAP2430_MUXENTRY(GPIO_7, 7, | ||
240 | "gpio_7", NULL, "uart2_cts", "gpio_7", | ||
241 | "uart3_cts_rctx", NULL, NULL, "safe_mode"), | ||
242 | _OMAP2430_MUXENTRY(GPIO_80, 80, | ||
243 | "gpio_80", NULL, "uart2_rx", "gpio_80", | ||
244 | "uart3_rx_irrx", NULL, NULL, "safe_mode"), | ||
245 | _OMAP2430_MUXENTRY(GPMC_A10, 3, | ||
246 | "gpmc_a10", NULL, "sys_ndmareq0", "gpio_3", | ||
247 | NULL, NULL, NULL, "safe_mode"), | ||
248 | _OMAP2430_MUXENTRY(GPMC_A1, 31, | ||
249 | "gpmc_a1", NULL, NULL, "gpio_31", | ||
250 | NULL, NULL, NULL, "safe_mode"), | ||
251 | _OMAP2430_MUXENTRY(GPMC_A2, 30, | ||
252 | "gpmc_a2", NULL, NULL, "gpio_30", | ||
253 | NULL, NULL, NULL, "safe_mode"), | ||
254 | _OMAP2430_MUXENTRY(GPMC_A3, 29, | ||
255 | "gpmc_a3", NULL, NULL, "gpio_29", | ||
256 | NULL, NULL, NULL, "safe_mode"), | ||
257 | _OMAP2430_MUXENTRY(GPMC_A4, 49, | ||
258 | "gpmc_a4", NULL, NULL, "gpio_49", | ||
259 | NULL, NULL, NULL, "safe_mode"), | ||
260 | _OMAP2430_MUXENTRY(GPMC_A5, 53, | ||
261 | "gpmc_a5", NULL, NULL, "gpio_53", | ||
262 | NULL, NULL, NULL, "safe_mode"), | ||
263 | _OMAP2430_MUXENTRY(GPMC_A6, 52, | ||
264 | "gpmc_a6", NULL, NULL, "gpio_52", | ||
265 | NULL, NULL, NULL, "safe_mode"), | ||
266 | _OMAP2430_MUXENTRY(GPMC_A7, 6, | ||
267 | "gpmc_a7", NULL, NULL, "gpio_6", | ||
268 | NULL, NULL, NULL, "safe_mode"), | ||
269 | _OMAP2430_MUXENTRY(GPMC_A8, 5, | ||
270 | "gpmc_a8", NULL, NULL, "gpio_5", | ||
271 | NULL, NULL, NULL, "safe_mode"), | ||
272 | _OMAP2430_MUXENTRY(GPMC_A9, 4, | ||
273 | "gpmc_a9", NULL, "sys_ndmareq1", "gpio_4", | ||
274 | NULL, NULL, NULL, "safe_mode"), | ||
275 | _OMAP2430_MUXENTRY(GPMC_CLK, 21, | ||
276 | "gpmc_clk", NULL, NULL, "gpio_21", | ||
277 | NULL, NULL, NULL, "safe_mode"), | ||
278 | _OMAP2430_MUXENTRY(GPMC_D10, 18, | ||
279 | "gpmc_d10", NULL, NULL, "gpio_18", | ||
280 | NULL, NULL, NULL, "safe_mode"), | ||
281 | _OMAP2430_MUXENTRY(GPMC_D11, 57, | ||
282 | "gpmc_d11", NULL, NULL, "gpio_57", | ||
283 | NULL, NULL, NULL, "safe_mode"), | ||
284 | _OMAP2430_MUXENTRY(GPMC_D12, 77, | ||
285 | "gpmc_d12", NULL, NULL, "gpio_77", | ||
286 | NULL, NULL, NULL, "safe_mode"), | ||
287 | _OMAP2430_MUXENTRY(GPMC_D13, 76, | ||
288 | "gpmc_d13", NULL, NULL, "gpio_76", | ||
289 | NULL, NULL, NULL, "safe_mode"), | ||
290 | _OMAP2430_MUXENTRY(GPMC_D14, 55, | ||
291 | "gpmc_d14", NULL, NULL, "gpio_55", | ||
292 | NULL, NULL, NULL, "safe_mode"), | ||
293 | _OMAP2430_MUXENTRY(GPMC_D15, 54, | ||
294 | "gpmc_d15", NULL, NULL, "gpio_54", | ||
295 | NULL, NULL, NULL, "safe_mode"), | ||
296 | _OMAP2430_MUXENTRY(GPMC_D8, 20, | ||
297 | "gpmc_d8", NULL, NULL, "gpio_20", | ||
298 | NULL, NULL, NULL, "safe_mode"), | ||
299 | _OMAP2430_MUXENTRY(GPMC_D9, 19, | ||
300 | "gpmc_d9", NULL, NULL, "gpio_19", | ||
301 | NULL, NULL, NULL, "safe_mode"), | ||
302 | _OMAP2430_MUXENTRY(GPMC_NCS1, 22, | ||
303 | "gpmc_ncs1", NULL, NULL, "gpio_22", | ||
304 | NULL, NULL, NULL, "safe_mode"), | ||
305 | _OMAP2430_MUXENTRY(GPMC_NCS2, 23, | ||
306 | "gpmc_ncs2", NULL, NULL, "gpio_23", | ||
307 | NULL, NULL, NULL, "safe_mode"), | ||
308 | _OMAP2430_MUXENTRY(GPMC_NCS3, 24, | ||
309 | "gpmc_ncs3", "gpmc_io_dir", NULL, "gpio_24", | ||
310 | NULL, NULL, NULL, "safe_mode"), | ||
311 | _OMAP2430_MUXENTRY(GPMC_NCS4, 25, | ||
312 | "gpmc_ncs4", NULL, NULL, "gpio_25", | ||
313 | NULL, NULL, NULL, "safe_mode"), | ||
314 | _OMAP2430_MUXENTRY(GPMC_NCS5, 26, | ||
315 | "gpmc_ncs5", NULL, NULL, "gpio_26", | ||
316 | NULL, NULL, NULL, "safe_mode"), | ||
317 | _OMAP2430_MUXENTRY(GPMC_NCS6, 27, | ||
318 | "gpmc_ncs6", NULL, NULL, "gpio_27", | ||
319 | NULL, NULL, NULL, "safe_mode"), | ||
320 | _OMAP2430_MUXENTRY(GPMC_NCS7, 28, | ||
321 | "gpmc_ncs7", "gpmc_io_dir", NULL, "gpio_28", | ||
322 | NULL, NULL, NULL, "safe_mode"), | ||
323 | _OMAP2430_MUXENTRY(GPMC_WAIT1, 33, | ||
324 | "gpmc_wait1", NULL, NULL, "gpio_33", | ||
325 | NULL, NULL, NULL, "safe_mode"), | ||
326 | _OMAP2430_MUXENTRY(GPMC_WAIT2, 34, | ||
327 | "gpmc_wait2", NULL, NULL, "gpio_34", | ||
328 | NULL, NULL, NULL, "safe_mode"), | ||
329 | _OMAP2430_MUXENTRY(GPMC_WAIT3, 35, | ||
330 | "gpmc_wait3", NULL, NULL, "gpio_35", | ||
331 | NULL, NULL, NULL, "safe_mode"), | ||
332 | _OMAP2430_MUXENTRY(HDQ_SIO, 101, | ||
333 | "hdq_sio", "usb2_tllse0", "sys_altclk", "gpio_101", | ||
334 | "uart3_rx_irrx", NULL, NULL, "safe_mode"), | ||
335 | _OMAP2430_MUXENTRY(I2C1_SCL, 50, | ||
336 | "i2c1_scl", NULL, NULL, "gpio_50", | ||
337 | NULL, NULL, NULL, "safe_mode"), | ||
338 | _OMAP2430_MUXENTRY(I2C1_SDA, 51, | ||
339 | "i2c1_sda", NULL, NULL, "gpio_51", | ||
340 | NULL, NULL, NULL, "safe_mode"), | ||
341 | _OMAP2430_MUXENTRY(I2C2_SCL, 99, | ||
342 | "i2c2_scl", NULL, NULL, "gpio_99", | ||
343 | NULL, NULL, NULL, "safe_mode"), | ||
344 | _OMAP2430_MUXENTRY(I2C2_SDA, 100, | ||
345 | "i2c2_sda", NULL, NULL, "gpio_100", | ||
346 | NULL, NULL, NULL, "safe_mode"), | ||
347 | _OMAP2430_MUXENTRY(JTAG_EMU0, 127, | ||
348 | "jtag_emu0", "secure_indicator", NULL, "gpio_127", | ||
349 | NULL, NULL, NULL, "safe_mode"), | ||
350 | _OMAP2430_MUXENTRY(JTAG_EMU1, 126, | ||
351 | "jtag_emu1", NULL, NULL, "gpio_126", | ||
352 | NULL, NULL, NULL, "safe_mode"), | ||
353 | _OMAP2430_MUXENTRY(MCBSP1_CLKR, 92, | ||
354 | "mcbsp1_clkr", "ssi2_dat_tx", NULL, "gpio_92", | ||
355 | NULL, NULL, NULL, "safe_mode"), | ||
356 | _OMAP2430_MUXENTRY(MCBSP1_CLKX, 98, | ||
357 | "mcbsp1_clkx", "ssi2_wake", NULL, "gpio_98", | ||
358 | NULL, NULL, NULL, "safe_mode"), | ||
359 | _OMAP2430_MUXENTRY(MCBSP1_DR, 95, | ||
360 | "mcbsp1_dr", "ssi2_dat_rx", NULL, "gpio_95", | ||
361 | NULL, NULL, NULL, "safe_mode"), | ||
362 | _OMAP2430_MUXENTRY(MCBSP1_DX, 94, | ||
363 | "mcbsp1_dx", "ssi2_rdy_tx", NULL, "gpio_94", | ||
364 | NULL, NULL, NULL, "safe_mode"), | ||
365 | _OMAP2430_MUXENTRY(MCBSP1_FSR, 93, | ||
366 | "mcbsp1_fsr", "ssi2_flag_tx", NULL, "gpio_93", | ||
367 | "spi2_cs1", NULL, NULL, "safe_mode"), | ||
368 | _OMAP2430_MUXENTRY(MCBSP1_FSX, 97, | ||
369 | "mcbsp1_fsx", "ssi2_rdy_rx", NULL, "gpio_97", | ||
370 | NULL, NULL, NULL, "safe_mode"), | ||
371 | _OMAP2430_MUXENTRY(MCBSP2_CLKX, 147, | ||
372 | "mcbsp2_clkx", "sdi_clkp", "dss_data23", "gpio_147", | ||
373 | NULL, NULL, NULL, "safe_mode"), | ||
374 | _OMAP2430_MUXENTRY(MCBSP2_DR, 144, | ||
375 | "mcbsp2_dr", "sdi_clkn", "dss_data22", "gpio_144", | ||
376 | NULL, NULL, NULL, "safe_mode"), | ||
377 | _OMAP2430_MUXENTRY(MCBSP3_CLKX, 71, | ||
378 | "mcbsp3_clkx", NULL, NULL, "gpio_71", | ||
379 | NULL, NULL, NULL, "safe_mode"), | ||
380 | _OMAP2430_MUXENTRY(MCBSP3_DR, 73, | ||
381 | "mcbsp3_dr", NULL, NULL, "gpio_73", | ||
382 | NULL, NULL, NULL, "safe_mode"), | ||
383 | _OMAP2430_MUXENTRY(MCBSP3_DX, 74, | ||
384 | "mcbsp3_dx", NULL, "sti_clk", "gpio_74", | ||
385 | NULL, NULL, NULL, "safe_mode"), | ||
386 | _OMAP2430_MUXENTRY(MCBSP3_FSX, 72, | ||
387 | "mcbsp3_fsx", NULL, NULL, "gpio_72", | ||
388 | NULL, NULL, NULL, "safe_mode"), | ||
389 | _OMAP2430_MUXENTRY(MCBSP_CLKS, 96, | ||
390 | "mcbsp_clks", "ssi2_flag_rx", NULL, "gpio_96", | ||
391 | NULL, NULL, NULL, "safe_mode"), | ||
392 | _OMAP2430_MUXENTRY(SDMMC1_CLKO, 0, | ||
393 | "sdmmc1_clko", "ms_clko", NULL, NULL, | ||
394 | NULL, "hw_dbg9", "hw_dbg3", "safe_mode"), | ||
395 | _OMAP2430_MUXENTRY(SDMMC1_CMD, 0, | ||
396 | "sdmmc1_cmd", "ms_bs", NULL, NULL, | ||
397 | NULL, "hw_dbg8", "hw_dbg2", "safe_mode"), | ||
398 | _OMAP2430_MUXENTRY(SDMMC1_DAT0, 0, | ||
399 | "sdmmc1_dat0", "ms_dat0", NULL, NULL, | ||
400 | NULL, "hw_dbg7", "hw_dbg1", "safe_mode"), | ||
401 | _OMAP2430_MUXENTRY(SDMMC1_DAT1, 75, | ||
402 | "sdmmc1_dat1", "ms_dat1", NULL, "gpio_75", | ||
403 | NULL, "hw_dbg6", "hw_dbg0", "safe_mode"), | ||
404 | _OMAP2430_MUXENTRY(SDMMC1_DAT2, 0, | ||
405 | "sdmmc1_dat2", "ms_dat2", NULL, NULL, | ||
406 | NULL, "hw_dbg5", "hw_dbg10", "safe_mode"), | ||
407 | _OMAP2430_MUXENTRY(SDMMC1_DAT3, 0, | ||
408 | "sdmmc1_dat3", "ms_dat3", NULL, NULL, | ||
409 | NULL, "hw_dbg4", "hw_dbg11", "safe_mode"), | ||
410 | _OMAP2430_MUXENTRY(SDMMC2_CLKO, 13, | ||
411 | "sdmmc2_clko", NULL, NULL, "gpio_13", | ||
412 | NULL, "spi3_clk", NULL, "safe_mode"), | ||
413 | _OMAP2430_MUXENTRY(SDMMC2_CMD, 15, | ||
414 | "sdmmc2_cmd", "usb2_rcv", NULL, "gpio_15", | ||
415 | NULL, "spi3_simo", NULL, "safe_mode"), | ||
416 | _OMAP2430_MUXENTRY(SDMMC2_DAT0, 16, | ||
417 | "sdmmc2_dat0", "usb2_tllse0", NULL, "gpio_16", | ||
418 | NULL, "spi3_somi", NULL, "safe_mode"), | ||
419 | _OMAP2430_MUXENTRY(SDMMC2_DAT1, 58, | ||
420 | "sdmmc2_dat1", "usb2_txen", NULL, "gpio_58", | ||
421 | NULL, NULL, NULL, "safe_mode"), | ||
422 | _OMAP2430_MUXENTRY(SDMMC2_DAT2, 17, | ||
423 | "sdmmc2_dat2", "usb2_dat", NULL, "gpio_17", | ||
424 | NULL, "spi3_cs1", NULL, "safe_mode"), | ||
425 | _OMAP2430_MUXENTRY(SDMMC2_DAT3, 14, | ||
426 | "sdmmc2_dat3", "usb2_se0", NULL, "gpio_14", | ||
427 | NULL, "spi3_cs0", NULL, "safe_mode"), | ||
428 | _OMAP2430_MUXENTRY(SDRC_A12, 2, | ||
429 | "sdrc_a12", NULL, NULL, "gpio_2", | ||
430 | NULL, NULL, NULL, "safe_mode"), | ||
431 | _OMAP2430_MUXENTRY(SDRC_A13, 1, | ||
432 | "sdrc_a13", NULL, NULL, "gpio_1", | ||
433 | NULL, NULL, NULL, "safe_mode"), | ||
434 | _OMAP2430_MUXENTRY(SDRC_A14, 0, | ||
435 | "sdrc_a14", NULL, NULL, "gpio_0", | ||
436 | NULL, NULL, NULL, "safe_mode"), | ||
437 | _OMAP2430_MUXENTRY(SDRC_CKE1, 36, | ||
438 | "sdrc_cke1", NULL, NULL, "gpio_36", | ||
439 | NULL, NULL, NULL, "safe_mode"), | ||
440 | _OMAP2430_MUXENTRY(SDRC_NCS1, 37, | ||
441 | "sdrc_ncs1", NULL, NULL, "gpio_37", | ||
442 | NULL, NULL, NULL, "safe_mode"), | ||
443 | _OMAP2430_MUXENTRY(SPI1_CLK, 81, | ||
444 | "spi1_clk", NULL, NULL, "gpio_81", | ||
445 | NULL, NULL, NULL, "safe_mode"), | ||
446 | _OMAP2430_MUXENTRY(SPI1_CS0, 84, | ||
447 | "spi1_cs0", NULL, NULL, "gpio_84", | ||
448 | NULL, NULL, NULL, "safe_mode"), | ||
449 | _OMAP2430_MUXENTRY(SPI1_CS1, 85, | ||
450 | "spi1_cs1", NULL, NULL, "gpio_85", | ||
451 | NULL, NULL, NULL, "safe_mode"), | ||
452 | _OMAP2430_MUXENTRY(SPI1_CS2, 86, | ||
453 | "spi1_cs2", NULL, NULL, "gpio_86", | ||
454 | NULL, NULL, NULL, "safe_mode"), | ||
455 | _OMAP2430_MUXENTRY(SPI1_CS3, 87, | ||
456 | "spi1_cs3", "spi2_cs1", NULL, "gpio_87", | ||
457 | NULL, NULL, NULL, "safe_mode"), | ||
458 | _OMAP2430_MUXENTRY(SPI1_SIMO, 82, | ||
459 | "spi1_simo", NULL, NULL, "gpio_82", | ||
460 | NULL, NULL, NULL, "safe_mode"), | ||
461 | _OMAP2430_MUXENTRY(SPI1_SOMI, 83, | ||
462 | "spi1_somi", NULL, NULL, "gpio_83", | ||
463 | NULL, NULL, NULL, "safe_mode"), | ||
464 | _OMAP2430_MUXENTRY(SPI2_CLK, 88, | ||
465 | "spi2_clk", "gpt9_pwm_evt", NULL, "gpio_88", | ||
466 | NULL, NULL, NULL, "safe_mode"), | ||
467 | _OMAP2430_MUXENTRY(SPI2_CS0, 91, | ||
468 | "spi2_cs0", "gpt12_pwm_evt", NULL, "gpio_91", | ||
469 | NULL, NULL, NULL, "safe_mode"), | ||
470 | _OMAP2430_MUXENTRY(SPI2_SIMO, 89, | ||
471 | "spi2_simo", "gpt10_pwm_evt", NULL, "gpio_89", | ||
472 | NULL, NULL, NULL, "safe_mode"), | ||
473 | _OMAP2430_MUXENTRY(SPI2_SOMI, 90, | ||
474 | "spi2_somi", "gpt11_pwm_evt", NULL, "gpio_90", | ||
475 | NULL, NULL, NULL, "safe_mode"), | ||
476 | _OMAP2430_MUXENTRY(SSI1_DAT_RX, 62, | ||
477 | "ssi1_dat_rx", "uart1_rx", "usb1_dat", "gpio_62", | ||
478 | NULL, NULL, NULL, "safe_mode"), | ||
479 | _OMAP2430_MUXENTRY(SSI1_DAT_TX, 59, | ||
480 | "ssi1_dat_tx", "uart1_tx", "usb1_se0", "gpio_59", | ||
481 | NULL, NULL, NULL, "safe_mode"), | ||
482 | _OMAP2430_MUXENTRY(SSI1_FLAG_RX, 64, | ||
483 | "ssi1_flag_rx", "mcbsp4_dr", NULL, "gpio_64", | ||
484 | NULL, NULL, NULL, "safe_mode"), | ||
485 | _OMAP2430_MUXENTRY(SSI1_FLAG_TX, 60, | ||
486 | "ssi1_flag_tx", "uart1_rts", "usb1_rcv", "gpio_60", | ||
487 | NULL, NULL, NULL, "safe_mode"), | ||
488 | _OMAP2430_MUXENTRY(SSI1_RDY_RX, 65, | ||
489 | "ssi1_rdy_rx", "mcbsp4_dx", NULL, "gpio_65", | ||
490 | NULL, NULL, NULL, "safe_mode"), | ||
491 | _OMAP2430_MUXENTRY(SSI1_RDY_TX, 61, | ||
492 | "ssi1_rdy_tx", "uart1_cts", "usb1_txen", "gpio_61", | ||
493 | NULL, NULL, NULL, "safe_mode"), | ||
494 | _OMAP2430_MUXENTRY(SSI1_WAKE, 66, | ||
495 | "ssi1_wake", "mcbsp4_fsx", NULL, "gpio_66", | ||
496 | NULL, NULL, NULL, "safe_mode"), | ||
497 | _OMAP2430_MUXENTRY(SYS_CLKOUT, 111, | ||
498 | "sys_clkout", NULL, NULL, "gpio_111", | ||
499 | NULL, NULL, NULL, "safe_mode"), | ||
500 | _OMAP2430_MUXENTRY(SYS_DRM_MSECURE, 118, | ||
501 | "sys_drm_msecure", NULL, "sys_ndmareq6", "gpio_118", | ||
502 | NULL, NULL, NULL, "safe_mode"), | ||
503 | _OMAP2430_MUXENTRY(SYS_NIRQ0, 56, | ||
504 | "sys_nirq0", NULL, NULL, "gpio_56", | ||
505 | NULL, NULL, NULL, "safe_mode"), | ||
506 | _OMAP2430_MUXENTRY(SYS_NIRQ1, 125, | ||
507 | "sys_nirq1", NULL, "sys_ndmareq5", "gpio_125", | ||
508 | NULL, NULL, NULL, "safe_mode"), | ||
509 | _OMAP2430_MUXENTRY(UART1_CTS, 32, | ||
510 | "uart1_cts", "sdi_vsync", "dss_data18", "gpio_32", | ||
511 | "mcbsp5_clkx", NULL, NULL, "safe_mode"), | ||
512 | _OMAP2430_MUXENTRY(UART1_RTS, 8, | ||
513 | "uart1_rts", "sdi_hsync", "dss_data19", "gpio_8", | ||
514 | "mcbsp5_fsx", NULL, NULL, "safe_mode"), | ||
515 | _OMAP2430_MUXENTRY(UART1_RX, 10, | ||
516 | "uart1_rx", "sdi_stp", "dss_data21", "gpio_10", | ||
517 | "mcbsp5_dr", NULL, NULL, "safe_mode"), | ||
518 | _OMAP2430_MUXENTRY(UART1_TX, 9, | ||
519 | "uart1_tx", "sdi_den", "dss_data20", "gpio_9", | ||
520 | "mcbsp5_dx", NULL, NULL, "safe_mode"), | ||
521 | _OMAP2430_MUXENTRY(UART2_CTS, 67, | ||
522 | "uart2_cts", "usb1_rcv", "gpt9_pwm_evt", "gpio_67", | ||
523 | NULL, NULL, NULL, "safe_mode"), | ||
524 | _OMAP2430_MUXENTRY(UART2_RTS, 68, | ||
525 | "uart2_rts", "usb1_txen", "gpt10_pwm_evt", "gpio_68", | ||
526 | NULL, NULL, NULL, "safe_mode"), | ||
527 | _OMAP2430_MUXENTRY(UART2_RX, 70, | ||
528 | "uart2_rx", "usb1_dat", "gpt12_pwm_evt", "gpio_70", | ||
529 | NULL, NULL, NULL, "safe_mode"), | ||
530 | _OMAP2430_MUXENTRY(UART2_TX, 69, | ||
531 | "uart2_tx", "usb1_se0", "gpt11_pwm_evt", "gpio_69", | ||
532 | NULL, NULL, NULL, "safe_mode"), | ||
533 | _OMAP2430_MUXENTRY(UART3_CTS_RCTX, 102, | ||
534 | "uart3_cts_rctx", "uart3_rx_irrx", NULL, "gpio_102", | ||
535 | NULL, NULL, NULL, "safe_mode"), | ||
536 | _OMAP2430_MUXENTRY(UART3_RTS_SD, 103, | ||
537 | "uart3_rts_sd", "uart3_tx_irtx", NULL, "gpio_103", | ||
538 | NULL, NULL, NULL, "safe_mode"), | ||
539 | _OMAP2430_MUXENTRY(UART3_RX_IRRX, 105, | ||
540 | "uart3_rx_irrx", NULL, NULL, "gpio_105", | ||
541 | NULL, NULL, NULL, "safe_mode"), | ||
542 | _OMAP2430_MUXENTRY(UART3_TX_IRTX, 104, | ||
543 | "uart3_tx_irtx", "uart3_cts_rctx", NULL, "gpio_104", | ||
544 | NULL, NULL, NULL, "safe_mode"), | ||
545 | _OMAP2430_MUXENTRY(USB0HS_CLK, 120, | ||
546 | "usb0hs_clk", NULL, NULL, "gpio_120", | ||
547 | NULL, NULL, NULL, "safe_mode"), | ||
548 | _OMAP2430_MUXENTRY(USB0HS_DATA0, 0, | ||
549 | "usb0hs_data0", "uart3_tx_irtx", NULL, NULL, | ||
550 | "usb0_txen", NULL, NULL, "safe_mode"), | ||
551 | _OMAP2430_MUXENTRY(USB0HS_DATA1, 0, | ||
552 | "usb0hs_data1", "uart3_rx_irrx", NULL, NULL, | ||
553 | "usb0_dat", NULL, NULL, "safe_mode"), | ||
554 | _OMAP2430_MUXENTRY(USB0HS_DATA2, 0, | ||
555 | "usb0hs_data2", "uart3_rts_sd", NULL, NULL, | ||
556 | "usb0_se0", NULL, NULL, "safe_mode"), | ||
557 | _OMAP2430_MUXENTRY(USB0HS_DATA3, 106, | ||
558 | "usb0hs_data3", NULL, "uart3_cts_rctx", "gpio_106", | ||
559 | "usb0_puen", NULL, NULL, "safe_mode"), | ||
560 | _OMAP2430_MUXENTRY(USB0HS_DATA4, 107, | ||
561 | "usb0hs_data4", "mcbsp2_dr", NULL, "gpio_107", | ||
562 | "usb0_vp", NULL, NULL, "safe_mode"), | ||
563 | _OMAP2430_MUXENTRY(USB0HS_DATA5, 108, | ||
564 | "usb0hs_data5", "mcbsp2_dx", NULL, "gpio_108", | ||
565 | "usb0_vm", NULL, NULL, "safe_mode"), | ||
566 | _OMAP2430_MUXENTRY(USB0HS_DATA6, 109, | ||
567 | "usb0hs_data6", "mcbsp2_fsx", NULL, "gpio_109", | ||
568 | "usb0_rcv", NULL, NULL, "safe_mode"), | ||
569 | _OMAP2430_MUXENTRY(USB0HS_DATA7, 124, | ||
570 | "usb0hs_data7", "mcbsp2_clkx", NULL, "gpio_124", | ||
571 | NULL, NULL, NULL, "safe_mode"), | ||
572 | _OMAP2430_MUXENTRY(USB0HS_DIR, 121, | ||
573 | "usb0hs_dir", NULL, NULL, "gpio_121", | ||
574 | NULL, NULL, NULL, "safe_mode"), | ||
575 | _OMAP2430_MUXENTRY(USB0HS_NXT, 123, | ||
576 | "usb0hs_nxt", NULL, NULL, "gpio_123", | ||
577 | NULL, NULL, NULL, "safe_mode"), | ||
578 | _OMAP2430_MUXENTRY(USB0HS_STP, 122, | ||
579 | "usb0hs_stp", NULL, NULL, "gpio_122", | ||
580 | NULL, NULL, NULL, "safe_mode"), | ||
581 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
582 | }; | ||
583 | |||
584 | /* | ||
585 | * Balls for POP package | ||
586 | * 447-pin s-PBGA Package, 0.00mm Ball Pitch (Bottom) | ||
587 | */ | ||
588 | #ifdef CONFIG_DEBUG_FS | ||
589 | static struct omap_ball __initdata omap2430_pop_ball[] = { | ||
590 | _OMAP2430_BALLENTRY(CAM_D0, "t8", NULL), | ||
591 | _OMAP2430_BALLENTRY(CAM_D1, "t4", NULL), | ||
592 | _OMAP2430_BALLENTRY(CAM_D10, "r4", NULL), | ||
593 | _OMAP2430_BALLENTRY(CAM_D11, "w3", NULL), | ||
594 | _OMAP2430_BALLENTRY(CAM_D2, "r2", NULL), | ||
595 | _OMAP2430_BALLENTRY(CAM_D3, "u3", NULL), | ||
596 | _OMAP2430_BALLENTRY(CAM_D4, "u2", NULL), | ||
597 | _OMAP2430_BALLENTRY(CAM_D5, "v1", NULL), | ||
598 | _OMAP2430_BALLENTRY(CAM_D6, "t3", NULL), | ||
599 | _OMAP2430_BALLENTRY(CAM_D7, "r3", NULL), | ||
600 | _OMAP2430_BALLENTRY(CAM_D8, "u7", NULL), | ||
601 | _OMAP2430_BALLENTRY(CAM_D9, "t7", NULL), | ||
602 | _OMAP2430_BALLENTRY(CAM_HS, "p2", NULL), | ||
603 | _OMAP2430_BALLENTRY(CAM_LCLK, "r7", NULL), | ||
604 | _OMAP2430_BALLENTRY(CAM_VS, "n2", NULL), | ||
605 | _OMAP2430_BALLENTRY(CAM_XCLK, "p3", NULL), | ||
606 | _OMAP2430_BALLENTRY(DSS_ACBIAS, "y3", NULL), | ||
607 | _OMAP2430_BALLENTRY(DSS_DATA0, "v8", NULL), | ||
608 | _OMAP2430_BALLENTRY(DSS_DATA1, "w1", NULL), | ||
609 | _OMAP2430_BALLENTRY(DSS_DATA10, "k25", NULL), | ||
610 | _OMAP2430_BALLENTRY(DSS_DATA11, "j25", NULL), | ||
611 | _OMAP2430_BALLENTRY(DSS_DATA12, "k24", NULL), | ||
612 | _OMAP2430_BALLENTRY(DSS_DATA13, "j24", NULL), | ||
613 | _OMAP2430_BALLENTRY(DSS_DATA14, "h25", NULL), | ||
614 | _OMAP2430_BALLENTRY(DSS_DATA15, "g25", NULL), | ||
615 | _OMAP2430_BALLENTRY(DSS_DATA16, "ac3", NULL), | ||
616 | _OMAP2430_BALLENTRY(DSS_DATA17, "y7", NULL), | ||
617 | _OMAP2430_BALLENTRY(DSS_DATA2, "u8", NULL), | ||
618 | _OMAP2430_BALLENTRY(DSS_DATA3, "u4", NULL), | ||
619 | _OMAP2430_BALLENTRY(DSS_DATA4, "v3", NULL), | ||
620 | _OMAP2430_BALLENTRY(DSS_DATA5, "aa4", NULL), | ||
621 | _OMAP2430_BALLENTRY(DSS_DATA6, "w8", NULL), | ||
622 | _OMAP2430_BALLENTRY(DSS_DATA7, "y1", NULL), | ||
623 | _OMAP2430_BALLENTRY(DSS_DATA8, "aa2", NULL), | ||
624 | _OMAP2430_BALLENTRY(DSS_DATA9, "ab4", NULL), | ||
625 | _OMAP2430_BALLENTRY(DSS_HSYNC, "v2", NULL), | ||
626 | _OMAP2430_BALLENTRY(GPIO_113, "ad16", NULL), | ||
627 | _OMAP2430_BALLENTRY(GPIO_114, "ac10", NULL), | ||
628 | _OMAP2430_BALLENTRY(GPIO_115, "ad13", NULL), | ||
629 | _OMAP2430_BALLENTRY(GPIO_116, "ae15", NULL), | ||
630 | _OMAP2430_BALLENTRY(GPIO_128, "p1", NULL), | ||
631 | _OMAP2430_BALLENTRY(GPIO_129, "r1", NULL), | ||
632 | _OMAP2430_BALLENTRY(GPIO_130, "p7", NULL), | ||
633 | _OMAP2430_BALLENTRY(GPIO_131, "l8", NULL), | ||
634 | _OMAP2430_BALLENTRY(GPIO_132, "w24", NULL), | ||
635 | _OMAP2430_BALLENTRY(GPIO_133, "aa24", NULL), | ||
636 | _OMAP2430_BALLENTRY(GPIO_134, "ae12", NULL), | ||
637 | _OMAP2430_BALLENTRY(GPIO_135, "ae11", NULL), | ||
638 | _OMAP2430_BALLENTRY(GPIO_136, "ad12", NULL), | ||
639 | _OMAP2430_BALLENTRY(GPIO_137, "ad11", NULL), | ||
640 | _OMAP2430_BALLENTRY(GPIO_138, "y12", NULL), | ||
641 | _OMAP2430_BALLENTRY(GPIO_139, "ad17", NULL), | ||
642 | _OMAP2430_BALLENTRY(GPIO_140, "l7", NULL), | ||
643 | _OMAP2430_BALLENTRY(GPIO_141, "ac24", NULL), | ||
644 | _OMAP2430_BALLENTRY(GPIO_142, "m3", NULL), | ||
645 | _OMAP2430_BALLENTRY(GPIO_148, "af12", NULL), | ||
646 | _OMAP2430_BALLENTRY(GPIO_149, "k7", NULL), | ||
647 | _OMAP2430_BALLENTRY(GPIO_150, "m1", NULL), | ||
648 | _OMAP2430_BALLENTRY(GPIO_151, "ad14", NULL), | ||
649 | _OMAP2430_BALLENTRY(GPIO_152, "ad18", NULL), | ||
650 | _OMAP2430_BALLENTRY(GPIO_153, "u24", NULL), | ||
651 | _OMAP2430_BALLENTRY(GPIO_154, "ae16", NULL), | ||
652 | _OMAP2430_BALLENTRY(GPIO_63, "n3", NULL), | ||
653 | _OMAP2430_BALLENTRY(GPIO_7, "ac23", NULL), | ||
654 | _OMAP2430_BALLENTRY(GPIO_78, "ad10", NULL), | ||
655 | _OMAP2430_BALLENTRY(GPIO_79, "ae10", NULL), | ||
656 | _OMAP2430_BALLENTRY(GPIO_80, "ae13", NULL), | ||
657 | _OMAP2430_BALLENTRY(GPMC_A1, "a9", NULL), | ||
658 | _OMAP2430_BALLENTRY(GPMC_A10, "g12", NULL), | ||
659 | _OMAP2430_BALLENTRY(GPMC_A2, "b8", NULL), | ||
660 | _OMAP2430_BALLENTRY(GPMC_A3, "g10", NULL), | ||
661 | _OMAP2430_BALLENTRY(GPMC_A4, "g11", NULL), | ||
662 | _OMAP2430_BALLENTRY(GPMC_A5, "a10", NULL), | ||
663 | _OMAP2430_BALLENTRY(GPMC_A6, "g13", NULL), | ||
664 | _OMAP2430_BALLENTRY(GPMC_A7, "a6", NULL), | ||
665 | _OMAP2430_BALLENTRY(GPMC_A8, "h1", NULL), | ||
666 | _OMAP2430_BALLENTRY(GPMC_A9, "c8", NULL), | ||
667 | _OMAP2430_BALLENTRY(GPMC_CLK, "n1", "l1"), | ||
668 | _OMAP2430_BALLENTRY(GPMC_D10, "d1", "n1"), | ||
669 | _OMAP2430_BALLENTRY(GPMC_D11, "d2", "p2"), | ||
670 | _OMAP2430_BALLENTRY(GPMC_D12, "e1", "p1"), | ||
671 | _OMAP2430_BALLENTRY(GPMC_D13, "e3", "m1"), | ||
672 | _OMAP2430_BALLENTRY(GPMC_D14, "c7", "j2"), | ||
673 | _OMAP2430_BALLENTRY(GPMC_D15, "f3", "k2"), | ||
674 | _OMAP2430_BALLENTRY(GPMC_D8, "e2", "r1"), | ||
675 | _OMAP2430_BALLENTRY(GPMC_D9, "ab1", "t1"), | ||
676 | _OMAP2430_BALLENTRY(GPMC_NCS1, "ac1", "w1"), | ||
677 | _OMAP2430_BALLENTRY(GPMC_NCS2, "c6", NULL), | ||
678 | _OMAP2430_BALLENTRY(GPMC_NCS3, "b9", NULL), | ||
679 | _OMAP2430_BALLENTRY(GPMC_NCS4, "b4", NULL), | ||
680 | _OMAP2430_BALLENTRY(GPMC_NCS5, "a4", NULL), | ||
681 | _OMAP2430_BALLENTRY(GPMC_NCS6, "f1", NULL), | ||
682 | _OMAP2430_BALLENTRY(GPMC_NCS7, "a7", NULL), | ||
683 | _OMAP2430_BALLENTRY(GPMC_WAIT1, "j1", "y8"), | ||
684 | _OMAP2430_BALLENTRY(GPMC_WAIT2, "b7", NULL), | ||
685 | _OMAP2430_BALLENTRY(GPMC_WAIT3, "g14", NULL), | ||
686 | _OMAP2430_BALLENTRY(HDQ_SIO, "h20", NULL), | ||
687 | _OMAP2430_BALLENTRY(I2C1_SCL, "y17", NULL), | ||
688 | _OMAP2430_BALLENTRY(I2C1_SDA, "ac19", NULL), | ||
689 | _OMAP2430_BALLENTRY(I2C2_SCL, "n7", NULL), | ||
690 | _OMAP2430_BALLENTRY(I2C2_SDA, "m4", NULL), | ||
691 | _OMAP2430_BALLENTRY(JTAG_EMU0, "e25", NULL), | ||
692 | _OMAP2430_BALLENTRY(JTAG_EMU1, "e24", NULL), | ||
693 | _OMAP2430_BALLENTRY(MCBSP1_CLKR, "ab2", NULL), | ||
694 | _OMAP2430_BALLENTRY(MCBSP1_CLKX, "y9", NULL), | ||
695 | _OMAP2430_BALLENTRY(MCBSP1_DR, "af3", NULL), | ||
696 | _OMAP2430_BALLENTRY(MCBSP1_DX, "aa1", NULL), | ||
697 | _OMAP2430_BALLENTRY(MCBSP1_FSR, "ad5", NULL), | ||
698 | _OMAP2430_BALLENTRY(MCBSP1_FSX, "ab3", NULL), | ||
699 | _OMAP2430_BALLENTRY(MCBSP2_CLKX, "j26", NULL), | ||
700 | _OMAP2430_BALLENTRY(MCBSP2_DR, "k26", NULL), | ||
701 | _OMAP2430_BALLENTRY(MCBSP3_CLKX, "ac9", NULL), | ||
702 | _OMAP2430_BALLENTRY(MCBSP3_DR, "ae2", NULL), | ||
703 | _OMAP2430_BALLENTRY(MCBSP3_DX, "af4", NULL), | ||
704 | _OMAP2430_BALLENTRY(MCBSP3_FSX, "ae4", NULL), | ||
705 | _OMAP2430_BALLENTRY(MCBSP_CLKS, "ad6", NULL), | ||
706 | _OMAP2430_BALLENTRY(SDMMC1_CLKO, "n23", NULL), | ||
707 | _OMAP2430_BALLENTRY(SDMMC1_CMD, "l23", NULL), | ||
708 | _OMAP2430_BALLENTRY(SDMMC1_DAT0, "m24", NULL), | ||
709 | _OMAP2430_BALLENTRY(SDMMC1_DAT1, "p23", NULL), | ||
710 | _OMAP2430_BALLENTRY(SDMMC1_DAT2, "t20", NULL), | ||
711 | _OMAP2430_BALLENTRY(SDMMC1_DAT3, "r20", NULL), | ||
712 | _OMAP2430_BALLENTRY(SDMMC2_CLKO, "v26", NULL), | ||
713 | _OMAP2430_BALLENTRY(SDMMC2_CMD, "w20", NULL), | ||
714 | _OMAP2430_BALLENTRY(SDMMC2_DAT0, "v23", NULL), | ||
715 | _OMAP2430_BALLENTRY(SDMMC2_DAT1, "y24", NULL), | ||
716 | _OMAP2430_BALLENTRY(SDMMC2_DAT2, "v25", NULL), | ||
717 | _OMAP2430_BALLENTRY(SDMMC2_DAT3, "v24", NULL), | ||
718 | _OMAP2430_BALLENTRY(SDRC_A12, "w26", "r21"), | ||
719 | _OMAP2430_BALLENTRY(SDRC_A13, "af20", "aa15"), | ||
720 | _OMAP2430_BALLENTRY(SDRC_A14, "af16", "y12"), | ||
721 | _OMAP2430_BALLENTRY(SDRC_CKE1, "af15", "y13"), | ||
722 | _OMAP2430_BALLENTRY(SDRC_NCS1, "aa25", "t20"), | ||
723 | _OMAP2430_BALLENTRY(SPI1_CLK, "y18", NULL), | ||
724 | _OMAP2430_BALLENTRY(SPI1_CS0, "u1", NULL), | ||
725 | _OMAP2430_BALLENTRY(SPI1_CS1, "af19", NULL), | ||
726 | _OMAP2430_BALLENTRY(SPI1_CS2, "ae19", NULL), | ||
727 | _OMAP2430_BALLENTRY(SPI1_CS3, "h24", NULL), | ||
728 | _OMAP2430_BALLENTRY(SPI1_SIMO, "ad15", NULL), | ||
729 | _OMAP2430_BALLENTRY(SPI1_SOMI, "ae17", NULL), | ||
730 | _OMAP2430_BALLENTRY(SPI2_CLK, "y20", NULL), | ||
731 | _OMAP2430_BALLENTRY(SPI2_CS0, "y19", NULL), | ||
732 | _OMAP2430_BALLENTRY(SPI2_SIMO, "ac20", NULL), | ||
733 | _OMAP2430_BALLENTRY(SPI2_SOMI, "ad19", NULL), | ||
734 | _OMAP2430_BALLENTRY(SSI1_DAT_RX, "aa26", NULL), | ||
735 | _OMAP2430_BALLENTRY(SSI1_DAT_TX, "ad24", NULL), | ||
736 | _OMAP2430_BALLENTRY(SSI1_FLAG_RX, "ad23", NULL), | ||
737 | _OMAP2430_BALLENTRY(SSI1_FLAG_TX, "ab24", NULL), | ||
738 | _OMAP2430_BALLENTRY(SSI1_RDY_RX, "ab25", NULL), | ||
739 | _OMAP2430_BALLENTRY(SSI1_RDY_TX, "y25", NULL), | ||
740 | _OMAP2430_BALLENTRY(SSI1_WAKE, "ac25", NULL), | ||
741 | _OMAP2430_BALLENTRY(SYS_CLKOUT, "r25", NULL), | ||
742 | _OMAP2430_BALLENTRY(SYS_DRM_MSECURE, "ae3", NULL), | ||
743 | _OMAP2430_BALLENTRY(SYS_NIRQ0, "w25", NULL), | ||
744 | _OMAP2430_BALLENTRY(SYS_NIRQ1, "ad21", NULL), | ||
745 | _OMAP2430_BALLENTRY(UART1_CTS, "p24", NULL), | ||
746 | _OMAP2430_BALLENTRY(UART1_RTS, "p25", NULL), | ||
747 | _OMAP2430_BALLENTRY(UART1_RX, "n24", NULL), | ||
748 | _OMAP2430_BALLENTRY(UART1_TX, "r24", NULL), | ||
749 | _OMAP2430_BALLENTRY(UART2_CTS, "u25", NULL), | ||
750 | _OMAP2430_BALLENTRY(UART2_RTS, "t23", NULL), | ||
751 | _OMAP2430_BALLENTRY(UART2_RX, "t24", NULL), | ||
752 | _OMAP2430_BALLENTRY(UART2_TX, "u20", NULL), | ||
753 | _OMAP2430_BALLENTRY(UART3_CTS_RCTX, "m2", NULL), | ||
754 | _OMAP2430_BALLENTRY(UART3_RTS_SD, "k2", NULL), | ||
755 | _OMAP2430_BALLENTRY(UART3_RX_IRRX, "l3", NULL), | ||
756 | _OMAP2430_BALLENTRY(UART3_TX_IRTX, "l2", NULL), | ||
757 | _OMAP2430_BALLENTRY(USB0HS_CLK, "ae8", NULL), | ||
758 | _OMAP2430_BALLENTRY(USB0HS_DATA0, "ad4", NULL), | ||
759 | _OMAP2430_BALLENTRY(USB0HS_DATA1, "ae6", NULL), | ||
760 | _OMAP2430_BALLENTRY(USB0HS_DATA2, "af9", NULL), | ||
761 | _OMAP2430_BALLENTRY(USB0HS_DATA3, "ad9", NULL), | ||
762 | _OMAP2430_BALLENTRY(USB0HS_DATA4, "y11", NULL), | ||
763 | _OMAP2430_BALLENTRY(USB0HS_DATA5, "ad7", NULL), | ||
764 | _OMAP2430_BALLENTRY(USB0HS_DATA6, "ae7", NULL), | ||
765 | _OMAP2430_BALLENTRY(USB0HS_DATA7, "ac7", NULL), | ||
766 | _OMAP2430_BALLENTRY(USB0HS_DIR, "ad8", NULL), | ||
767 | _OMAP2430_BALLENTRY(USB0HS_NXT, "ae9", NULL), | ||
768 | _OMAP2430_BALLENTRY(USB0HS_STP, "ae5", NULL), | ||
769 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
770 | }; | ||
771 | #else | ||
772 | #define omap2430_pop_ball NULL | ||
773 | #endif | ||
774 | |||
775 | int __init omap2430_mux_init(struct omap_board_mux *board_subset, int flags) | ||
776 | { | ||
777 | struct omap_ball *package_balls = NULL; | ||
778 | |||
779 | switch (flags & OMAP_PACKAGE_MASK) { | ||
780 | case OMAP_PACKAGE_ZAC: | ||
781 | package_balls = omap2430_pop_ball; | ||
782 | break; | ||
783 | default: | ||
784 | pr_warning("%s: No ball data available for omap2420 package\n", | ||
785 | __func__); | ||
786 | } | ||
787 | |||
788 | return omap_mux_init("core", OMAP_MUX_REG_8BIT | OMAP_MUX_GPIO_IN_MODE3, | ||
789 | OMAP2430_CONTROL_PADCONF_MUX_PBASE, | ||
790 | OMAP2430_CONTROL_PADCONF_MUX_SIZE, | ||
791 | omap2430_muxmodes, NULL, board_subset, | ||
792 | package_balls); | ||
793 | } | ||
diff --git a/arch/arm/mach-omap2/mux2430.h b/arch/arm/mach-omap2/mux2430.h deleted file mode 100644 index 9fd93149ebd9..000000000000 --- a/arch/arm/mach-omap2/mux2430.h +++ /dev/null | |||
@@ -1,370 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2009 Nokia | ||
3 | * Copyright (C) 2009 Texas Instruments | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #define OMAP2430_CONTROL_PADCONF_MUX_PBASE 0x49002030LU | ||
11 | |||
12 | #define OMAP2430_MUX(mode0, mux_value) \ | ||
13 | { \ | ||
14 | .reg_offset = (OMAP2430_CONTROL_PADCONF_##mode0##_OFFSET), \ | ||
15 | .value = (mux_value), \ | ||
16 | } | ||
17 | |||
18 | /* | ||
19 | * OMAP2430 CONTROL_PADCONF* register offsets for pin-muxing | ||
20 | * | ||
21 | * Extracted from the TRM. Add 0x49002030 to these values to get the | ||
22 | * absolute addresses. The name in the macro is the mode-0 name of | ||
23 | * the pin. NOTE: These registers are 8-bits wide. | ||
24 | * | ||
25 | * Note that these defines use SDMMC instead of MMC for compatibility | ||
26 | * with signal names used in 3630. | ||
27 | */ | ||
28 | #define OMAP2430_CONTROL_PADCONF_GPMC_CLK_OFFSET 0x000 | ||
29 | #define OMAP2430_CONTROL_PADCONF_GPMC_NCS0_OFFSET 0x001 | ||
30 | #define OMAP2430_CONTROL_PADCONF_GPMC_NCS1_OFFSET 0x002 | ||
31 | #define OMAP2430_CONTROL_PADCONF_GPMC_NCS2_OFFSET 0x003 | ||
32 | #define OMAP2430_CONTROL_PADCONF_GPMC_NCS3_OFFSET 0x004 | ||
33 | #define OMAP2430_CONTROL_PADCONF_GPMC_NCS4_OFFSET 0x005 | ||
34 | #define OMAP2430_CONTROL_PADCONF_GPMC_NCS5_OFFSET 0x006 | ||
35 | #define OMAP2430_CONTROL_PADCONF_GPMC_NCS6_OFFSET 0x007 | ||
36 | #define OMAP2430_CONTROL_PADCONF_GPMC_NCS7_OFFSET 0x008 | ||
37 | #define OMAP2430_CONTROL_PADCONF_GPMC_NADV_ALE_OFFSET 0x009 | ||
38 | #define OMAP2430_CONTROL_PADCONF_GPMC_NOE_NRE_OFFSET 0x00a | ||
39 | #define OMAP2430_CONTROL_PADCONF_GPMC_NWE_OFFSET 0x00b | ||
40 | #define OMAP2430_CONTROL_PADCONF_GPMC_NBE0_CLE_OFFSET 0x00c | ||
41 | #define OMAP2430_CONTROL_PADCONF_GPMC_NBE1_OFFSET 0x00d | ||
42 | #define OMAP2430_CONTROL_PADCONF_GPMC_NWP_OFFSET 0x00e | ||
43 | #define OMAP2430_CONTROL_PADCONF_GPMC_WAIT0_OFFSET 0x00f | ||
44 | #define OMAP2430_CONTROL_PADCONF_GPMC_WAIT1_OFFSET 0x010 | ||
45 | #define OMAP2430_CONTROL_PADCONF_GPMC_WAIT2_OFFSET 0x011 | ||
46 | #define OMAP2430_CONTROL_PADCONF_GPMC_WAIT3_OFFSET 0x012 | ||
47 | #define OMAP2430_CONTROL_PADCONF_SDRC_CLK_OFFSET 0x013 | ||
48 | #define OMAP2430_CONTROL_PADCONF_SDRC_NCLK_OFFSET 0x014 | ||
49 | #define OMAP2430_CONTROL_PADCONF_SDRC_NCS0_OFFSET 0x015 | ||
50 | #define OMAP2430_CONTROL_PADCONF_SDRC_NCS1_OFFSET 0x016 | ||
51 | #define OMAP2430_CONTROL_PADCONF_SDRC_CKE0_OFFSET 0x017 | ||
52 | #define OMAP2430_CONTROL_PADCONF_SDRC_CKE1_OFFSET 0x018 | ||
53 | #define OMAP2430_CONTROL_PADCONF_SDRC_NRAS_OFFSET 0x019 | ||
54 | #define OMAP2430_CONTROL_PADCONF_SDRC_NCAS_OFFSET 0x01a | ||
55 | #define OMAP2430_CONTROL_PADCONF_SDRC_NWE_OFFSET 0x01b | ||
56 | #define OMAP2430_CONTROL_PADCONF_SDRC_DM0_OFFSET 0x01c | ||
57 | #define OMAP2430_CONTROL_PADCONF_SDRC_DM1_OFFSET 0x01d | ||
58 | #define OMAP2430_CONTROL_PADCONF_SDRC_DM2_OFFSET 0x01e | ||
59 | #define OMAP2430_CONTROL_PADCONF_SDRC_DM3_OFFSET 0x01f | ||
60 | #define OMAP2430_CONTROL_PADCONF_SDRC_DQS0_OFFSET 0x020 | ||
61 | #define OMAP2430_CONTROL_PADCONF_SDRC_DQS1_OFFSET 0x021 | ||
62 | #define OMAP2430_CONTROL_PADCONF_SDRC_DQS2_OFFSET 0x022 | ||
63 | #define OMAP2430_CONTROL_PADCONF_SDRC_DQS3_OFFSET 0x023 | ||
64 | #define OMAP2430_CONTROL_PADCONF_SDRC_A14_OFFSET 0x024 | ||
65 | #define OMAP2430_CONTROL_PADCONF_SDRC_A13_OFFSET 0x025 | ||
66 | #define OMAP2430_CONTROL_PADCONF_SDRC_A12_OFFSET 0x026 | ||
67 | #define OMAP2430_CONTROL_PADCONF_SDRC_BA1_OFFSET 0x027 | ||
68 | #define OMAP2430_CONTROL_PADCONF_SDRC_BA0_OFFSET 0x028 | ||
69 | #define OMAP2430_CONTROL_PADCONF_SDRC_A11_OFFSET 0x029 | ||
70 | #define OMAP2430_CONTROL_PADCONF_SDRC_A10_OFFSET 0x02a | ||
71 | #define OMAP2430_CONTROL_PADCONF_SDRC_A9_OFFSET 0x02b | ||
72 | #define OMAP2430_CONTROL_PADCONF_SDRC_A8_OFFSET 0x02c | ||
73 | #define OMAP2430_CONTROL_PADCONF_SDRC_A7_OFFSET 0x02d | ||
74 | #define OMAP2430_CONTROL_PADCONF_SDRC_A6_OFFSET 0x02e | ||
75 | #define OMAP2430_CONTROL_PADCONF_SDRC_A5_OFFSET 0x02f | ||
76 | #define OMAP2430_CONTROL_PADCONF_SDRC_A4_OFFSET 0x030 | ||
77 | #define OMAP2430_CONTROL_PADCONF_SDRC_A3_OFFSET 0x031 | ||
78 | #define OMAP2430_CONTROL_PADCONF_SDRC_A2_OFFSET 0x032 | ||
79 | #define OMAP2430_CONTROL_PADCONF_SDRC_A1_OFFSET 0x033 | ||
80 | #define OMAP2430_CONTROL_PADCONF_SDRC_A0_OFFSET 0x034 | ||
81 | #define OMAP2430_CONTROL_PADCONF_SDRC_D31_OFFSET 0x035 | ||
82 | #define OMAP2430_CONTROL_PADCONF_SDRC_D30_OFFSET 0x036 | ||
83 | #define OMAP2430_CONTROL_PADCONF_SDRC_D29_OFFSET 0x037 | ||
84 | #define OMAP2430_CONTROL_PADCONF_SDRC_D28_OFFSET 0x038 | ||
85 | #define OMAP2430_CONTROL_PADCONF_SDRC_D27_OFFSET 0x039 | ||
86 | #define OMAP2430_CONTROL_PADCONF_SDRC_D26_OFFSET 0x03a | ||
87 | #define OMAP2430_CONTROL_PADCONF_SDRC_D25_OFFSET 0x03b | ||
88 | #define OMAP2430_CONTROL_PADCONF_SDRC_D24_OFFSET 0x03c | ||
89 | #define OMAP2430_CONTROL_PADCONF_SDRC_D23_OFFSET 0x03d | ||
90 | #define OMAP2430_CONTROL_PADCONF_SDRC_D22_OFFSET 0x03e | ||
91 | #define OMAP2430_CONTROL_PADCONF_SDRC_D21_OFFSET 0x03f | ||
92 | #define OMAP2430_CONTROL_PADCONF_SDRC_D20_OFFSET 0x040 | ||
93 | #define OMAP2430_CONTROL_PADCONF_SDRC_D19_OFFSET 0x041 | ||
94 | #define OMAP2430_CONTROL_PADCONF_SDRC_D18_OFFSET 0x042 | ||
95 | #define OMAP2430_CONTROL_PADCONF_SDRC_D17_OFFSET 0x043 | ||
96 | #define OMAP2430_CONTROL_PADCONF_SDRC_D16_OFFSET 0x044 | ||
97 | #define OMAP2430_CONTROL_PADCONF_SDRC_D15_OFFSET 0x045 | ||
98 | #define OMAP2430_CONTROL_PADCONF_SDRC_D14_OFFSET 0x046 | ||
99 | #define OMAP2430_CONTROL_PADCONF_SDRC_D13_OFFSET 0x047 | ||
100 | #define OMAP2430_CONTROL_PADCONF_SDRC_D12_OFFSET 0x048 | ||
101 | #define OMAP2430_CONTROL_PADCONF_SDRC_D11_OFFSET 0x049 | ||
102 | #define OMAP2430_CONTROL_PADCONF_SDRC_D10_OFFSET 0x04a | ||
103 | #define OMAP2430_CONTROL_PADCONF_SDRC_D9_OFFSET 0x04b | ||
104 | #define OMAP2430_CONTROL_PADCONF_SDRC_D8_OFFSET 0x04c | ||
105 | #define OMAP2430_CONTROL_PADCONF_SDRC_D7_OFFSET 0x04d | ||
106 | #define OMAP2430_CONTROL_PADCONF_SDRC_D6_OFFSET 0x04e | ||
107 | #define OMAP2430_CONTROL_PADCONF_SDRC_D5_OFFSET 0x04f | ||
108 | #define OMAP2430_CONTROL_PADCONF_SDRC_D4_OFFSET 0x050 | ||
109 | #define OMAP2430_CONTROL_PADCONF_SDRC_D3_OFFSET 0x051 | ||
110 | #define OMAP2430_CONTROL_PADCONF_SDRC_D2_OFFSET 0x052 | ||
111 | #define OMAP2430_CONTROL_PADCONF_SDRC_D1_OFFSET 0x053 | ||
112 | #define OMAP2430_CONTROL_PADCONF_SDRC_D0_OFFSET 0x054 | ||
113 | #define OMAP2430_CONTROL_PADCONF_GPMC_A10_OFFSET 0x055 | ||
114 | #define OMAP2430_CONTROL_PADCONF_GPMC_A9_OFFSET 0x056 | ||
115 | #define OMAP2430_CONTROL_PADCONF_GPMC_A8_OFFSET 0x057 | ||
116 | #define OMAP2430_CONTROL_PADCONF_GPMC_A7_OFFSET 0x058 | ||
117 | #define OMAP2430_CONTROL_PADCONF_GPMC_A6_OFFSET 0x059 | ||
118 | #define OMAP2430_CONTROL_PADCONF_GPMC_A5_OFFSET 0x05a | ||
119 | #define OMAP2430_CONTROL_PADCONF_GPMC_A4_OFFSET 0x05b | ||
120 | #define OMAP2430_CONTROL_PADCONF_GPMC_A3_OFFSET 0x05c | ||
121 | #define OMAP2430_CONTROL_PADCONF_GPMC_A2_OFFSET 0x05d | ||
122 | #define OMAP2430_CONTROL_PADCONF_GPMC_A1_OFFSET 0x05e | ||
123 | #define OMAP2430_CONTROL_PADCONF_GPMC_D15_OFFSET 0x05f | ||
124 | #define OMAP2430_CONTROL_PADCONF_GPMC_D14_OFFSET 0x060 | ||
125 | #define OMAP2430_CONTROL_PADCONF_GPMC_D13_OFFSET 0x061 | ||
126 | #define OMAP2430_CONTROL_PADCONF_GPMC_D12_OFFSET 0x062 | ||
127 | #define OMAP2430_CONTROL_PADCONF_GPMC_D11_OFFSET 0x063 | ||
128 | #define OMAP2430_CONTROL_PADCONF_GPMC_D10_OFFSET 0x064 | ||
129 | #define OMAP2430_CONTROL_PADCONF_GPMC_D9_OFFSET 0x065 | ||
130 | #define OMAP2430_CONTROL_PADCONF_GPMC_D8_OFFSET 0x066 | ||
131 | #define OMAP2430_CONTROL_PADCONF_GPMC_D7_OFFSET 0x067 | ||
132 | #define OMAP2430_CONTROL_PADCONF_GPMC_D6_OFFSET 0x068 | ||
133 | #define OMAP2430_CONTROL_PADCONF_GPMC_D5_OFFSET 0x069 | ||
134 | #define OMAP2430_CONTROL_PADCONF_GPMC_D4_OFFSET 0x06a | ||
135 | #define OMAP2430_CONTROL_PADCONF_GPMC_D3_OFFSET 0x06b | ||
136 | #define OMAP2430_CONTROL_PADCONF_GPMC_D2_OFFSET 0x06c | ||
137 | #define OMAP2430_CONTROL_PADCONF_GPMC_D1_OFFSET 0x06d | ||
138 | #define OMAP2430_CONTROL_PADCONF_GPMC_D0_OFFSET 0x06e | ||
139 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA0_OFFSET 0x06f | ||
140 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA1_OFFSET 0x070 | ||
141 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA2_OFFSET 0x071 | ||
142 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA3_OFFSET 0x072 | ||
143 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA4_OFFSET 0x073 | ||
144 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA5_OFFSET 0x074 | ||
145 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA6_OFFSET 0x075 | ||
146 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA7_OFFSET 0x076 | ||
147 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA8_OFFSET 0x077 | ||
148 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA9_OFFSET 0x078 | ||
149 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA10_OFFSET 0x079 | ||
150 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA11_OFFSET 0x07a | ||
151 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA12_OFFSET 0x07b | ||
152 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA13_OFFSET 0x07c | ||
153 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA14_OFFSET 0x07d | ||
154 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA15_OFFSET 0x07e | ||
155 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA16_OFFSET 0x07f | ||
156 | #define OMAP2430_CONTROL_PADCONF_DSS_DATA17_OFFSET 0x080 | ||
157 | #define OMAP2430_CONTROL_PADCONF_UART1_CTS_OFFSET 0x081 | ||
158 | #define OMAP2430_CONTROL_PADCONF_UART1_RTS_OFFSET 0x082 | ||
159 | #define OMAP2430_CONTROL_PADCONF_UART1_TX_OFFSET 0x083 | ||
160 | #define OMAP2430_CONTROL_PADCONF_UART1_RX_OFFSET 0x084 | ||
161 | #define OMAP2430_CONTROL_PADCONF_MCBSP2_DR_OFFSET 0x085 | ||
162 | #define OMAP2430_CONTROL_PADCONF_MCBSP2_CLKX_OFFSET 0x086 | ||
163 | #define OMAP2430_CONTROL_PADCONF_DSS_PCLK_OFFSET 0x087 | ||
164 | #define OMAP2430_CONTROL_PADCONF_DSS_VSYNC_OFFSET 0x088 | ||
165 | #define OMAP2430_CONTROL_PADCONF_DSS_HSYNC_OFFSET 0x089 | ||
166 | #define OMAP2430_CONTROL_PADCONF_DSS_ACBIAS_OFFSET 0x08a | ||
167 | #define OMAP2430_CONTROL_PADCONF_SYS_NRESPWRON_OFFSET 0x08b | ||
168 | #define OMAP2430_CONTROL_PADCONF_SYS_NRESWARM_OFFSET 0x08c | ||
169 | #define OMAP2430_CONTROL_PADCONF_SYS_NIRQ0_OFFSET 0x08d | ||
170 | #define OMAP2430_CONTROL_PADCONF_SYS_NIRQ1_OFFSET 0x08e | ||
171 | #define OMAP2430_CONTROL_PADCONF_SYS_VMODE_OFFSET 0x08f | ||
172 | #define OMAP2430_CONTROL_PADCONF_GPIO_128_OFFSET 0x090 | ||
173 | #define OMAP2430_CONTROL_PADCONF_GPIO_129_OFFSET 0x091 | ||
174 | #define OMAP2430_CONTROL_PADCONF_GPIO_130_OFFSET 0x092 | ||
175 | #define OMAP2430_CONTROL_PADCONF_GPIO_131_OFFSET 0x093 | ||
176 | #define OMAP2430_CONTROL_PADCONF_SYS_32K_OFFSET 0x094 | ||
177 | #define OMAP2430_CONTROL_PADCONF_SYS_XTALIN_OFFSET 0x095 | ||
178 | #define OMAP2430_CONTROL_PADCONF_SYS_XTALOUT_OFFSET 0x096 | ||
179 | #define OMAP2430_CONTROL_PADCONF_GPIO_132_OFFSET 0x097 | ||
180 | #define OMAP2430_CONTROL_PADCONF_SYS_CLKREQ_OFFSET 0x098 | ||
181 | #define OMAP2430_CONTROL_PADCONF_SYS_CLKOUT_OFFSET 0x099 | ||
182 | #define OMAP2430_CONTROL_PADCONF_GPIO_151_OFFSET 0x09a | ||
183 | #define OMAP2430_CONTROL_PADCONF_GPIO_133_OFFSET 0x09b | ||
184 | #define OMAP2430_CONTROL_PADCONF_JTAG_EMU1_OFFSET 0x09c | ||
185 | #define OMAP2430_CONTROL_PADCONF_JTAG_EMU0_OFFSET 0x09d | ||
186 | #define OMAP2430_CONTROL_PADCONF_JTAG_NTRST_OFFSET 0x09e | ||
187 | #define OMAP2430_CONTROL_PADCONF_JTAG_TCK_OFFSET 0x09f | ||
188 | #define OMAP2430_CONTROL_PADCONF_JTAG_RTCK_OFFSET 0x0a0 | ||
189 | #define OMAP2430_CONTROL_PADCONF_JTAG_TMS_OFFSET 0x0a1 | ||
190 | #define OMAP2430_CONTROL_PADCONF_JTAG_TDI_OFFSET 0x0a2 | ||
191 | #define OMAP2430_CONTROL_PADCONF_JTAG_TDO_OFFSET 0x0a3 | ||
192 | #define OMAP2430_CONTROL_PADCONF_CAM_D9_OFFSET 0x0a4 | ||
193 | #define OMAP2430_CONTROL_PADCONF_CAM_D8_OFFSET 0x0a5 | ||
194 | #define OMAP2430_CONTROL_PADCONF_CAM_D7_OFFSET 0x0a6 | ||
195 | #define OMAP2430_CONTROL_PADCONF_CAM_D6_OFFSET 0x0a7 | ||
196 | #define OMAP2430_CONTROL_PADCONF_CAM_D5_OFFSET 0x0a8 | ||
197 | #define OMAP2430_CONTROL_PADCONF_CAM_D4_OFFSET 0x0a9 | ||
198 | #define OMAP2430_CONTROL_PADCONF_CAM_D3_OFFSET 0x0aa | ||
199 | #define OMAP2430_CONTROL_PADCONF_CAM_D2_OFFSET 0x0ab | ||
200 | #define OMAP2430_CONTROL_PADCONF_CAM_D1_OFFSET 0x0ac | ||
201 | #define OMAP2430_CONTROL_PADCONF_CAM_D0_OFFSET 0x0ad | ||
202 | #define OMAP2430_CONTROL_PADCONF_CAM_HS_OFFSET 0x0ae | ||
203 | #define OMAP2430_CONTROL_PADCONF_CAM_VS_OFFSET 0x0af | ||
204 | #define OMAP2430_CONTROL_PADCONF_CAM_LCLK_OFFSET 0x0b0 | ||
205 | #define OMAP2430_CONTROL_PADCONF_CAM_XCLK_OFFSET 0x0b1 | ||
206 | #define OMAP2430_CONTROL_PADCONF_CAM_D11_OFFSET 0x0b2 | ||
207 | #define OMAP2430_CONTROL_PADCONF_CAM_D10_OFFSET 0x0b3 | ||
208 | #define OMAP2430_CONTROL_PADCONF_GPIO_134_OFFSET 0x0b4 | ||
209 | #define OMAP2430_CONTROL_PADCONF_GPIO_135_OFFSET 0x0b5 | ||
210 | #define OMAP2430_CONTROL_PADCONF_GPIO_136_OFFSET 0x0b6 | ||
211 | #define OMAP2430_CONTROL_PADCONF_GPIO_137_OFFSET 0x0b7 | ||
212 | #define OMAP2430_CONTROL_PADCONF_GPIO_138_OFFSET 0x0b8 | ||
213 | #define OMAP2430_CONTROL_PADCONF_GPIO_139_OFFSET 0x0b9 | ||
214 | #define OMAP2430_CONTROL_PADCONF_GPIO_140_OFFSET 0x0ba | ||
215 | #define OMAP2430_CONTROL_PADCONF_GPIO_141_OFFSET 0x0bb | ||
216 | #define OMAP2430_CONTROL_PADCONF_GPIO_142_OFFSET 0x0bc | ||
217 | #define OMAP2430_CONTROL_PADCONF_GPIO_154_OFFSET 0x0bd | ||
218 | #define OMAP2430_CONTROL_PADCONF_GPIO_148_OFFSET 0x0be | ||
219 | #define OMAP2430_CONTROL_PADCONF_GPIO_149_OFFSET 0x0bf | ||
220 | #define OMAP2430_CONTROL_PADCONF_GPIO_150_OFFSET 0x0c0 | ||
221 | #define OMAP2430_CONTROL_PADCONF_GPIO_152_OFFSET 0x0c1 | ||
222 | #define OMAP2430_CONTROL_PADCONF_GPIO_153_OFFSET 0x0c2 | ||
223 | #define OMAP2430_CONTROL_PADCONF_SDMMC1_CLKO_OFFSET 0x0c3 | ||
224 | #define OMAP2430_CONTROL_PADCONF_SDMMC1_CMD_OFFSET 0x0c4 | ||
225 | #define OMAP2430_CONTROL_PADCONF_SDMMC1_DAT0_OFFSET 0x0c5 | ||
226 | #define OMAP2430_CONTROL_PADCONF_SDMMC1_DAT1_OFFSET 0x0c6 | ||
227 | #define OMAP2430_CONTROL_PADCONF_SDMMC1_DAT2_OFFSET 0x0c7 | ||
228 | #define OMAP2430_CONTROL_PADCONF_SDMMC1_DAT3_OFFSET 0x0c8 | ||
229 | #define OMAP2430_CONTROL_PADCONF_SDMMC2_CLKO_OFFSET 0x0c9 | ||
230 | #define OMAP2430_CONTROL_PADCONF_SDMMC2_DAT3_OFFSET 0x0ca | ||
231 | #define OMAP2430_CONTROL_PADCONF_SDMMC2_CMD_OFFSET 0x0cb | ||
232 | #define OMAP2430_CONTROL_PADCONF_SDMMC2_DAT0_OFFSET 0x0cc | ||
233 | #define OMAP2430_CONTROL_PADCONF_SDMMC2_DAT2_OFFSET 0x0cd | ||
234 | #define OMAP2430_CONTROL_PADCONF_SDMMC2_DAT1_OFFSET 0x0ce | ||
235 | #define OMAP2430_CONTROL_PADCONF_UART2_CTS_OFFSET 0x0cf | ||
236 | #define OMAP2430_CONTROL_PADCONF_UART2_RTS_OFFSET 0x0d0 | ||
237 | #define OMAP2430_CONTROL_PADCONF_UART2_TX_OFFSET 0x0d1 | ||
238 | #define OMAP2430_CONTROL_PADCONF_UART2_RX_OFFSET 0x0d2 | ||
239 | #define OMAP2430_CONTROL_PADCONF_MCBSP3_CLKX_OFFSET 0x0d3 | ||
240 | #define OMAP2430_CONTROL_PADCONF_MCBSP3_FSX_OFFSET 0x0d4 | ||
241 | #define OMAP2430_CONTROL_PADCONF_MCBSP3_DR_OFFSET 0x0d5 | ||
242 | #define OMAP2430_CONTROL_PADCONF_MCBSP3_DX_OFFSET 0x0d6 | ||
243 | #define OMAP2430_CONTROL_PADCONF_SSI1_DAT_TX_OFFSET 0x0d7 | ||
244 | #define OMAP2430_CONTROL_PADCONF_SSI1_FLAG_TX_OFFSET 0x0d8 | ||
245 | #define OMAP2430_CONTROL_PADCONF_SSI1_RDY_TX_OFFSET 0x0d9 | ||
246 | #define OMAP2430_CONTROL_PADCONF_SSI1_DAT_RX_OFFSET 0x0da | ||
247 | #define OMAP2430_CONTROL_PADCONF_GPIO_63_OFFSET 0x0db | ||
248 | #define OMAP2430_CONTROL_PADCONF_SSI1_FLAG_RX_OFFSET 0x0dc | ||
249 | #define OMAP2430_CONTROL_PADCONF_SSI1_RDY_RX_OFFSET 0x0dd | ||
250 | #define OMAP2430_CONTROL_PADCONF_SSI1_WAKE_OFFSET 0x0de | ||
251 | #define OMAP2430_CONTROL_PADCONF_SPI1_CLK_OFFSET 0x0df | ||
252 | #define OMAP2430_CONTROL_PADCONF_SPI1_SIMO_OFFSET 0x0e0 | ||
253 | #define OMAP2430_CONTROL_PADCONF_SPI1_SOMI_OFFSET 0x0e1 | ||
254 | #define OMAP2430_CONTROL_PADCONF_SPI1_CS0_OFFSET 0x0e2 | ||
255 | #define OMAP2430_CONTROL_PADCONF_SPI1_CS1_OFFSET 0x0e3 | ||
256 | #define OMAP2430_CONTROL_PADCONF_SPI1_CS2_OFFSET 0x0e4 | ||
257 | #define OMAP2430_CONTROL_PADCONF_SPI1_CS3_OFFSET 0x0e5 | ||
258 | #define OMAP2430_CONTROL_PADCONF_SPI2_CLK_OFFSET 0x0e6 | ||
259 | #define OMAP2430_CONTROL_PADCONF_SPI2_SIMO_OFFSET 0x0e7 | ||
260 | #define OMAP2430_CONTROL_PADCONF_SPI2_SOMI_OFFSET 0x0e8 | ||
261 | #define OMAP2430_CONTROL_PADCONF_SPI2_CS0_OFFSET 0x0e9 | ||
262 | #define OMAP2430_CONTROL_PADCONF_MCBSP1_CLKR_OFFSET 0x0ea | ||
263 | #define OMAP2430_CONTROL_PADCONF_MCBSP1_FSR_OFFSET 0x0eb | ||
264 | #define OMAP2430_CONTROL_PADCONF_MCBSP1_DX_OFFSET 0x0ec | ||
265 | #define OMAP2430_CONTROL_PADCONF_MCBSP1_DR_OFFSET 0x0ed | ||
266 | #define OMAP2430_CONTROL_PADCONF_MCBSP_CLKS_OFFSET 0x0ee | ||
267 | #define OMAP2430_CONTROL_PADCONF_MCBSP1_FSX_OFFSET 0x0ef | ||
268 | #define OMAP2430_CONTROL_PADCONF_MCBSP1_CLKX_OFFSET 0x0f0 | ||
269 | #define OMAP2430_CONTROL_PADCONF_I2C1_SCL_OFFSET 0x0f1 | ||
270 | #define OMAP2430_CONTROL_PADCONF_I2C1_SDA_OFFSET 0x0f2 | ||
271 | #define OMAP2430_CONTROL_PADCONF_I2C2_SCL_OFFSET 0x0f3 | ||
272 | #define OMAP2430_CONTROL_PADCONF_I2C2_SDA_OFFSET 0x0f4 | ||
273 | #define OMAP2430_CONTROL_PADCONF_HDQ_SIO_OFFSET 0x0f5 | ||
274 | #define OMAP2430_CONTROL_PADCONF_UART3_CTS_RCTX_OFFSET 0x0f6 | ||
275 | #define OMAP2430_CONTROL_PADCONF_UART3_RTS_SD_OFFSET 0x0f7 | ||
276 | #define OMAP2430_CONTROL_PADCONF_UART3_TX_IRTX_OFFSET 0x0f8 | ||
277 | #define OMAP2430_CONTROL_PADCONF_UART3_RX_IRRX_OFFSET 0x0f9 | ||
278 | #define OMAP2430_CONTROL_PADCONF_GPIO_7_OFFSET 0x0fa | ||
279 | #define OMAP2430_CONTROL_PADCONF_GPIO_78_OFFSET 0x0fb | ||
280 | #define OMAP2430_CONTROL_PADCONF_GPIO_79_OFFSET 0x0fc | ||
281 | #define OMAP2430_CONTROL_PADCONF_GPIO_80_OFFSET 0x0fd | ||
282 | #define OMAP2430_CONTROL_PADCONF_GPIO_113_OFFSET 0x0fe | ||
283 | #define OMAP2430_CONTROL_PADCONF_GPIO_114_OFFSET 0x0ff | ||
284 | #define OMAP2430_CONTROL_PADCONF_GPIO_115_OFFSET 0x100 | ||
285 | #define OMAP2430_CONTROL_PADCONF_GPIO_116_OFFSET 0x101 | ||
286 | #define OMAP2430_CONTROL_PADCONF_SYS_DRM_MSECURE_OFFSET 0x102 | ||
287 | #define OMAP2430_CONTROL_PADCONF_USB0HS_DATA3_OFFSET 0x103 | ||
288 | #define OMAP2430_CONTROL_PADCONF_USB0HS_DATA4_OFFSET 0x104 | ||
289 | #define OMAP2430_CONTROL_PADCONF_USB0HS_DATA5_OFFSET 0x105 | ||
290 | #define OMAP2430_CONTROL_PADCONF_USB0HS_DATA6_OFFSET 0x106 | ||
291 | #define OMAP2430_CONTROL_PADCONF_USB0HS_DATA2_OFFSET 0x107 | ||
292 | #define OMAP2430_CONTROL_PADCONF_USB0HS_DATA0_OFFSET 0x108 | ||
293 | #define OMAP2430_CONTROL_PADCONF_USB0HS_DATA1_OFFSET 0x109 | ||
294 | #define OMAP2430_CONTROL_PADCONF_USB0HS_CLK_OFFSET 0x10a | ||
295 | #define OMAP2430_CONTROL_PADCONF_USB0HS_DIR_OFFSET 0x10b | ||
296 | #define OMAP2430_CONTROL_PADCONF_USB0HS_STP_OFFSET 0x10c | ||
297 | #define OMAP2430_CONTROL_PADCONF_USB0HS_NXT_OFFSET 0x10d | ||
298 | #define OMAP2430_CONTROL_PADCONF_USB0HS_DATA7_OFFSET 0x10e | ||
299 | #define OMAP2430_CONTROL_PADCONF_TV_OUT_OFFSET 0x10f | ||
300 | #define OMAP2430_CONTROL_PADCONF_TV_VREF_OFFSET 0x110 | ||
301 | #define OMAP2430_CONTROL_PADCONF_TV_RSET_OFFSET 0x111 | ||
302 | #define OMAP2430_CONTROL_PADCONF_TV_VFB_OFFSET 0x112 | ||
303 | #define OMAP2430_CONTROL_PADCONF_TV_DACOUT_OFFSET 0x113 | ||
304 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD0_OFFSET 0x114 | ||
305 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD1_OFFSET 0x115 | ||
306 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD2_OFFSET 0x116 | ||
307 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD3_OFFSET 0x117 | ||
308 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD4_OFFSET 0x118 | ||
309 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD5_OFFSET 0x119 | ||
310 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD6_OFFSET 0x11a | ||
311 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD7_OFFSET 0x11b | ||
312 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD8_OFFSET 0x11c | ||
313 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD9_OFFSET 0x11d | ||
314 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD10_OFFSET 0x11e | ||
315 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD11_OFFSET 0x11f | ||
316 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD12_OFFSET 0x120 | ||
317 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD13_OFFSET 0x121 | ||
318 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD14_OFFSET 0x122 | ||
319 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD15_OFFSET 0x123 | ||
320 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD16_OFFSET 0x124 | ||
321 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD17_OFFSET 0x125 | ||
322 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD18_OFFSET 0x126 | ||
323 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD19_OFFSET 0x127 | ||
324 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD20_OFFSET 0x128 | ||
325 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD21_OFFSET 0x129 | ||
326 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD22_OFFSET 0x12a | ||
327 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD23_OFFSET 0x12b | ||
328 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD24_OFFSET 0x12c | ||
329 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD25_OFFSET 0x12d | ||
330 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD26_OFFSET 0x12e | ||
331 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD27_OFFSET 0x12f | ||
332 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD28_OFFSET 0x130 | ||
333 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD29_OFFSET 0x131 | ||
334 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD30_OFFSET 0x132 | ||
335 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD31_OFFSET 0x133 | ||
336 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD32_OFFSET 0x134 | ||
337 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD33_OFFSET 0x135 | ||
338 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD34_OFFSET 0x136 | ||
339 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD35_OFFSET 0x137 | ||
340 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD36_OFFSET 0x138 | ||
341 | #define OMAP2430_CONTROL_PADCONF_AD2DMCAD37_OFFSET 0x139 | ||
342 | #define OMAP2430_CONTROL_PADCONF_AD2DMWRITE_OFFSET 0x13a | ||
343 | #define OMAP2430_CONTROL_PADCONF_D2DCLK26MI_OFFSET 0x13b | ||
344 | #define OMAP2430_CONTROL_PADCONF_D2DNRESPWRON1_OFFSET 0x13c | ||
345 | #define OMAP2430_CONTROL_PADCONF_D2DNRESWARM_OFFSET 0x13d | ||
346 | #define OMAP2430_CONTROL_PADCONF_D2DARM9NIRQ_OFFSET 0x13e | ||
347 | #define OMAP2430_CONTROL_PADCONF_D2DUMA2P6FIQ_OFFSET 0x13f | ||
348 | #define OMAP2430_CONTROL_PADCONF_D2DSPINT_OFFSET 0x140 | ||
349 | #define OMAP2430_CONTROL_PADCONF_D2DFRINT_OFFSET 0x141 | ||
350 | #define OMAP2430_CONTROL_PADCONF_D2DDMAREQ0_OFFSET 0x142 | ||
351 | #define OMAP2430_CONTROL_PADCONF_D2DDMAREQ1_OFFSET 0x143 | ||
352 | #define OMAP2430_CONTROL_PADCONF_D2DDMAREQ2_OFFSET 0x144 | ||
353 | #define OMAP2430_CONTROL_PADCONF_D2DDMAREQ3_OFFSET 0x145 | ||
354 | #define OMAP2430_CONTROL_PADCONF_D2DN3GTRST_OFFSET 0x146 | ||
355 | #define OMAP2430_CONTROL_PADCONF_D2DN3GTDI_OFFSET 0x147 | ||
356 | #define OMAP2430_CONTROL_PADCONF_D2DN3GTDO_OFFSET 0x148 | ||
357 | #define OMAP2430_CONTROL_PADCONF_D2DN3GTMS_OFFSET 0x149 | ||
358 | #define OMAP2430_CONTROL_PADCONF_D2DN3GTCK_OFFSET 0x14a | ||
359 | #define OMAP2430_CONTROL_PADCONF_D2DN3GRTCK_OFFSET 0x14b | ||
360 | #define OMAP2430_CONTROL_PADCONF_D2DMSTDBY_OFFSET 0x14c | ||
361 | #define OMAP2430_CONTROL_PADCONF_AD2DSREAD_OFFSET 0x14d | ||
362 | #define OMAP2430_CONTROL_PADCONF_D2DSWAKEUP_OFFSET 0x14e | ||
363 | #define OMAP2430_CONTROL_PADCONF_D2DIDLEREQ_OFFSET 0x14f | ||
364 | #define OMAP2430_CONTROL_PADCONF_D2DIDLEACK_OFFSET 0x150 | ||
365 | #define OMAP2430_CONTROL_PADCONF_D2DSPARE0_OFFSET 0x151 | ||
366 | #define OMAP2430_CONTROL_PADCONF_AD2DSWRITE_OFFSET 0x152 | ||
367 | #define OMAP2430_CONTROL_PADCONF_AD2DMREAD_OFFSET 0x153 | ||
368 | |||
369 | #define OMAP2430_CONTROL_PADCONF_MUX_SIZE \ | ||
370 | (OMAP2430_CONTROL_PADCONF_AD2DMREAD_OFFSET + 0x1) | ||
diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index e0a398cf28d8..01ef59def44b 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/of.h> | 36 | #include <linux/of.h> |
37 | #include <linux/notifier.h> | 37 | #include <linux/notifier.h> |
38 | 38 | ||
39 | #include "common.h" | ||
39 | #include "soc.h" | 40 | #include "soc.h" |
40 | #include "omap_device.h" | 41 | #include "omap_device.h" |
41 | #include "omap_hwmod.h" | 42 | #include "omap_hwmod.h" |
@@ -204,6 +205,7 @@ static int _omap_device_notifier_call(struct notifier_block *nb, | |||
204 | case BUS_NOTIFY_ADD_DEVICE: | 205 | case BUS_NOTIFY_ADD_DEVICE: |
205 | if (pdev->dev.of_node) | 206 | if (pdev->dev.of_node) |
206 | omap_device_build_from_dt(pdev); | 207 | omap_device_build_from_dt(pdev); |
208 | omap_auxdata_legacy_init(dev); | ||
207 | /* fall through */ | 209 | /* fall through */ |
208 | default: | 210 | default: |
209 | od = to_omap_device(pdev); | 211 | od = to_omap_device(pdev); |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm/mach-omap2/omap_hwmod_2420_data.c index d8b9d60f854f..2f15979c2e9c 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2420_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2420_data.c | |||
@@ -108,8 +108,6 @@ static struct omap_i2c_dev_attr i2c_dev_attr = { | |||
108 | /* I2C1 */ | 108 | /* I2C1 */ |
109 | static struct omap_hwmod omap2420_i2c1_hwmod = { | 109 | static struct omap_hwmod omap2420_i2c1_hwmod = { |
110 | .name = "i2c1", | 110 | .name = "i2c1", |
111 | .mpu_irqs = omap2_i2c1_mpu_irqs, | ||
112 | .sdma_reqs = omap2_i2c1_sdma_reqs, | ||
113 | .main_clk = "i2c1_fck", | 111 | .main_clk = "i2c1_fck", |
114 | .prcm = { | 112 | .prcm = { |
115 | .omap2 = { | 113 | .omap2 = { |
@@ -133,8 +131,6 @@ static struct omap_hwmod omap2420_i2c1_hwmod = { | |||
133 | /* I2C2 */ | 131 | /* I2C2 */ |
134 | static struct omap_hwmod omap2420_i2c2_hwmod = { | 132 | static struct omap_hwmod omap2420_i2c2_hwmod = { |
135 | .name = "i2c2", | 133 | .name = "i2c2", |
136 | .mpu_irqs = omap2_i2c2_mpu_irqs, | ||
137 | .sdma_reqs = omap2_i2c2_sdma_reqs, | ||
138 | .main_clk = "i2c2_fck", | 134 | .main_clk = "i2c2_fck", |
139 | .prcm = { | 135 | .prcm = { |
140 | .omap2 = { | 136 | .omap2 = { |
@@ -179,16 +175,9 @@ static struct omap_mbox_pdata omap2420_mailbox_attrs = { | |||
179 | .info = omap2420_mailbox_info, | 175 | .info = omap2420_mailbox_info, |
180 | }; | 176 | }; |
181 | 177 | ||
182 | static struct omap_hwmod_irq_info omap2420_mailbox_irqs[] = { | ||
183 | { .name = "dsp", .irq = 26 + OMAP_INTC_START, }, | ||
184 | { .name = "iva", .irq = 34 + OMAP_INTC_START, }, | ||
185 | { .irq = -1 }, | ||
186 | }; | ||
187 | |||
188 | static struct omap_hwmod omap2420_mailbox_hwmod = { | 178 | static struct omap_hwmod omap2420_mailbox_hwmod = { |
189 | .name = "mailbox", | 179 | .name = "mailbox", |
190 | .class = &omap2xxx_mailbox_hwmod_class, | 180 | .class = &omap2xxx_mailbox_hwmod_class, |
191 | .mpu_irqs = omap2420_mailbox_irqs, | ||
192 | .main_clk = "mailboxes_ick", | 181 | .main_clk = "mailboxes_ick", |
193 | .prcm = { | 182 | .prcm = { |
194 | .omap2 = { | 183 | .omap2 = { |
@@ -217,17 +206,9 @@ static struct omap_hwmod_opt_clk mcbsp_opt_clks[] = { | |||
217 | }; | 206 | }; |
218 | 207 | ||
219 | /* mcbsp1 */ | 208 | /* mcbsp1 */ |
220 | static struct omap_hwmod_irq_info omap2420_mcbsp1_irqs[] = { | ||
221 | { .name = "tx", .irq = 59 + OMAP_INTC_START, }, | ||
222 | { .name = "rx", .irq = 60 + OMAP_INTC_START, }, | ||
223 | { .irq = -1 }, | ||
224 | }; | ||
225 | |||
226 | static struct omap_hwmod omap2420_mcbsp1_hwmod = { | 209 | static struct omap_hwmod omap2420_mcbsp1_hwmod = { |
227 | .name = "mcbsp1", | 210 | .name = "mcbsp1", |
228 | .class = &omap2420_mcbsp_hwmod_class, | 211 | .class = &omap2420_mcbsp_hwmod_class, |
229 | .mpu_irqs = omap2420_mcbsp1_irqs, | ||
230 | .sdma_reqs = omap2_mcbsp1_sdma_reqs, | ||
231 | .main_clk = "mcbsp1_fck", | 212 | .main_clk = "mcbsp1_fck", |
232 | .prcm = { | 213 | .prcm = { |
233 | .omap2 = { | 214 | .omap2 = { |
@@ -243,17 +224,9 @@ static struct omap_hwmod omap2420_mcbsp1_hwmod = { | |||
243 | }; | 224 | }; |
244 | 225 | ||
245 | /* mcbsp2 */ | 226 | /* mcbsp2 */ |
246 | static struct omap_hwmod_irq_info omap2420_mcbsp2_irqs[] = { | ||
247 | { .name = "tx", .irq = 62 + OMAP_INTC_START, }, | ||
248 | { .name = "rx", .irq = 63 + OMAP_INTC_START, }, | ||
249 | { .irq = -1 }, | ||
250 | }; | ||
251 | |||
252 | static struct omap_hwmod omap2420_mcbsp2_hwmod = { | 227 | static struct omap_hwmod omap2420_mcbsp2_hwmod = { |
253 | .name = "mcbsp2", | 228 | .name = "mcbsp2", |
254 | .class = &omap2420_mcbsp_hwmod_class, | 229 | .class = &omap2420_mcbsp_hwmod_class, |
255 | .mpu_irqs = omap2420_mcbsp2_irqs, | ||
256 | .sdma_reqs = omap2_mcbsp2_sdma_reqs, | ||
257 | .main_clk = "mcbsp2_fck", | 230 | .main_clk = "mcbsp2_fck", |
258 | .prcm = { | 231 | .prcm = { |
259 | .omap2 = { | 232 | .omap2 = { |
@@ -283,22 +256,9 @@ static struct omap_hwmod_class omap2420_msdi_hwmod_class = { | |||
283 | }; | 256 | }; |
284 | 257 | ||
285 | /* msdi1 */ | 258 | /* msdi1 */ |
286 | static struct omap_hwmod_irq_info omap2420_msdi1_irqs[] = { | ||
287 | { .irq = 83 + OMAP_INTC_START, }, | ||
288 | { .irq = -1 }, | ||
289 | }; | ||
290 | |||
291 | static struct omap_hwmod_dma_info omap2420_msdi1_sdma_reqs[] = { | ||
292 | { .name = "tx", .dma_req = 61 }, /* OMAP24XX_DMA_MMC1_TX */ | ||
293 | { .name = "rx", .dma_req = 62 }, /* OMAP24XX_DMA_MMC1_RX */ | ||
294 | { .dma_req = -1 } | ||
295 | }; | ||
296 | |||
297 | static struct omap_hwmod omap2420_msdi1_hwmod = { | 259 | static struct omap_hwmod omap2420_msdi1_hwmod = { |
298 | .name = "msdi1", | 260 | .name = "msdi1", |
299 | .class = &omap2420_msdi_hwmod_class, | 261 | .class = &omap2420_msdi_hwmod_class, |
300 | .mpu_irqs = omap2420_msdi1_irqs, | ||
301 | .sdma_reqs = omap2420_msdi1_sdma_reqs, | ||
302 | .main_clk = "mmc_fck", | 262 | .main_clk = "mmc_fck", |
303 | .prcm = { | 263 | .prcm = { |
304 | .omap2 = { | 264 | .omap2 = { |
@@ -315,7 +275,6 @@ static struct omap_hwmod omap2420_msdi1_hwmod = { | |||
315 | /* HDQ1W/1-wire */ | 275 | /* HDQ1W/1-wire */ |
316 | static struct omap_hwmod omap2420_hdq1w_hwmod = { | 276 | static struct omap_hwmod omap2420_hdq1w_hwmod = { |
317 | .name = "hdq1w", | 277 | .name = "hdq1w", |
318 | .mpu_irqs = omap2_hdq1w_mpu_irqs, | ||
319 | .main_clk = "hdq_fck", | 278 | .main_clk = "hdq_fck", |
320 | .prcm = { | 279 | .prcm = { |
321 | .omap2 = { | 280 | .omap2 = { |
@@ -338,7 +297,6 @@ static struct omap_hwmod_ocp_if omap2420_l4_core__i2c1 = { | |||
338 | .master = &omap2xxx_l4_core_hwmod, | 297 | .master = &omap2xxx_l4_core_hwmod, |
339 | .slave = &omap2420_i2c1_hwmod, | 298 | .slave = &omap2420_i2c1_hwmod, |
340 | .clk = "i2c1_ick", | 299 | .clk = "i2c1_ick", |
341 | .addr = omap2_i2c1_addr_space, | ||
342 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 300 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
343 | }; | 301 | }; |
344 | 302 | ||
@@ -347,7 +305,6 @@ static struct omap_hwmod_ocp_if omap2420_l4_core__i2c2 = { | |||
347 | .master = &omap2xxx_l4_core_hwmod, | 305 | .master = &omap2xxx_l4_core_hwmod, |
348 | .slave = &omap2420_i2c2_hwmod, | 306 | .slave = &omap2420_i2c2_hwmod, |
349 | .clk = "i2c2_ick", | 307 | .clk = "i2c2_ick", |
350 | .addr = omap2_i2c2_addr_space, | ||
351 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 308 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
352 | }; | 309 | }; |
353 | 310 | ||
@@ -367,111 +324,51 @@ static struct omap_hwmod_ocp_if omap2420_l3__dsp = { | |||
367 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 324 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
368 | }; | 325 | }; |
369 | 326 | ||
370 | static struct omap_hwmod_addr_space omap2420_timer1_addrs[] = { | ||
371 | { | ||
372 | .pa_start = 0x48028000, | ||
373 | .pa_end = 0x48028000 + SZ_1K - 1, | ||
374 | .flags = ADDR_TYPE_RT | ||
375 | }, | ||
376 | { } | ||
377 | }; | ||
378 | |||
379 | /* l4_wkup -> timer1 */ | 327 | /* l4_wkup -> timer1 */ |
380 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__timer1 = { | 328 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__timer1 = { |
381 | .master = &omap2xxx_l4_wkup_hwmod, | 329 | .master = &omap2xxx_l4_wkup_hwmod, |
382 | .slave = &omap2xxx_timer1_hwmod, | 330 | .slave = &omap2xxx_timer1_hwmod, |
383 | .clk = "gpt1_ick", | 331 | .clk = "gpt1_ick", |
384 | .addr = omap2420_timer1_addrs, | ||
385 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 332 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
386 | }; | 333 | }; |
387 | 334 | ||
388 | /* l4_wkup -> wd_timer2 */ | 335 | /* l4_wkup -> wd_timer2 */ |
389 | static struct omap_hwmod_addr_space omap2420_wd_timer2_addrs[] = { | ||
390 | { | ||
391 | .pa_start = 0x48022000, | ||
392 | .pa_end = 0x4802207f, | ||
393 | .flags = ADDR_TYPE_RT | ||
394 | }, | ||
395 | { } | ||
396 | }; | ||
397 | |||
398 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__wd_timer2 = { | 336 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__wd_timer2 = { |
399 | .master = &omap2xxx_l4_wkup_hwmod, | 337 | .master = &omap2xxx_l4_wkup_hwmod, |
400 | .slave = &omap2xxx_wd_timer2_hwmod, | 338 | .slave = &omap2xxx_wd_timer2_hwmod, |
401 | .clk = "mpu_wdt_ick", | 339 | .clk = "mpu_wdt_ick", |
402 | .addr = omap2420_wd_timer2_addrs, | ||
403 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 340 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
404 | }; | 341 | }; |
405 | 342 | ||
406 | /* l4_wkup -> gpio1 */ | 343 | /* l4_wkup -> gpio1 */ |
407 | static struct omap_hwmod_addr_space omap2420_gpio1_addr_space[] = { | ||
408 | { | ||
409 | .pa_start = 0x48018000, | ||
410 | .pa_end = 0x480181ff, | ||
411 | .flags = ADDR_TYPE_RT | ||
412 | }, | ||
413 | { } | ||
414 | }; | ||
415 | |||
416 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio1 = { | 344 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio1 = { |
417 | .master = &omap2xxx_l4_wkup_hwmod, | 345 | .master = &omap2xxx_l4_wkup_hwmod, |
418 | .slave = &omap2xxx_gpio1_hwmod, | 346 | .slave = &omap2xxx_gpio1_hwmod, |
419 | .clk = "gpios_ick", | 347 | .clk = "gpios_ick", |
420 | .addr = omap2420_gpio1_addr_space, | ||
421 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 348 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
422 | }; | 349 | }; |
423 | 350 | ||
424 | /* l4_wkup -> gpio2 */ | 351 | /* l4_wkup -> gpio2 */ |
425 | static struct omap_hwmod_addr_space omap2420_gpio2_addr_space[] = { | ||
426 | { | ||
427 | .pa_start = 0x4801a000, | ||
428 | .pa_end = 0x4801a1ff, | ||
429 | .flags = ADDR_TYPE_RT | ||
430 | }, | ||
431 | { } | ||
432 | }; | ||
433 | |||
434 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio2 = { | 352 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio2 = { |
435 | .master = &omap2xxx_l4_wkup_hwmod, | 353 | .master = &omap2xxx_l4_wkup_hwmod, |
436 | .slave = &omap2xxx_gpio2_hwmod, | 354 | .slave = &omap2xxx_gpio2_hwmod, |
437 | .clk = "gpios_ick", | 355 | .clk = "gpios_ick", |
438 | .addr = omap2420_gpio2_addr_space, | ||
439 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 356 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
440 | }; | 357 | }; |
441 | 358 | ||
442 | /* l4_wkup -> gpio3 */ | 359 | /* l4_wkup -> gpio3 */ |
443 | static struct omap_hwmod_addr_space omap2420_gpio3_addr_space[] = { | ||
444 | { | ||
445 | .pa_start = 0x4801c000, | ||
446 | .pa_end = 0x4801c1ff, | ||
447 | .flags = ADDR_TYPE_RT | ||
448 | }, | ||
449 | { } | ||
450 | }; | ||
451 | |||
452 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio3 = { | 360 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio3 = { |
453 | .master = &omap2xxx_l4_wkup_hwmod, | 361 | .master = &omap2xxx_l4_wkup_hwmod, |
454 | .slave = &omap2xxx_gpio3_hwmod, | 362 | .slave = &omap2xxx_gpio3_hwmod, |
455 | .clk = "gpios_ick", | 363 | .clk = "gpios_ick", |
456 | .addr = omap2420_gpio3_addr_space, | ||
457 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 364 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
458 | }; | 365 | }; |
459 | 366 | ||
460 | /* l4_wkup -> gpio4 */ | 367 | /* l4_wkup -> gpio4 */ |
461 | static struct omap_hwmod_addr_space omap2420_gpio4_addr_space[] = { | ||
462 | { | ||
463 | .pa_start = 0x4801e000, | ||
464 | .pa_end = 0x4801e1ff, | ||
465 | .flags = ADDR_TYPE_RT | ||
466 | }, | ||
467 | { } | ||
468 | }; | ||
469 | |||
470 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio4 = { | 368 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio4 = { |
471 | .master = &omap2xxx_l4_wkup_hwmod, | 369 | .master = &omap2xxx_l4_wkup_hwmod, |
472 | .slave = &omap2xxx_gpio4_hwmod, | 370 | .slave = &omap2xxx_gpio4_hwmod, |
473 | .clk = "gpios_ick", | 371 | .clk = "gpios_ick", |
474 | .addr = omap2420_gpio4_addr_space, | ||
475 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 372 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
476 | }; | 373 | }; |
477 | 374 | ||
@@ -496,7 +393,6 @@ static struct omap_hwmod_ocp_if omap2420_l4_core__dma_system = { | |||
496 | static struct omap_hwmod_ocp_if omap2420_l4_core__mailbox = { | 393 | static struct omap_hwmod_ocp_if omap2420_l4_core__mailbox = { |
497 | .master = &omap2xxx_l4_core_hwmod, | 394 | .master = &omap2xxx_l4_core_hwmod, |
498 | .slave = &omap2420_mailbox_hwmod, | 395 | .slave = &omap2420_mailbox_hwmod, |
499 | .addr = omap2_mailbox_addrs, | ||
500 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 396 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
501 | }; | 397 | }; |
502 | 398 | ||
@@ -505,7 +401,6 @@ static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp1 = { | |||
505 | .master = &omap2xxx_l4_core_hwmod, | 401 | .master = &omap2xxx_l4_core_hwmod, |
506 | .slave = &omap2420_mcbsp1_hwmod, | 402 | .slave = &omap2420_mcbsp1_hwmod, |
507 | .clk = "mcbsp1_ick", | 403 | .clk = "mcbsp1_ick", |
508 | .addr = omap2_mcbsp1_addrs, | ||
509 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 404 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
510 | }; | 405 | }; |
511 | 406 | ||
@@ -514,25 +409,14 @@ static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp2 = { | |||
514 | .master = &omap2xxx_l4_core_hwmod, | 409 | .master = &omap2xxx_l4_core_hwmod, |
515 | .slave = &omap2420_mcbsp2_hwmod, | 410 | .slave = &omap2420_mcbsp2_hwmod, |
516 | .clk = "mcbsp2_ick", | 411 | .clk = "mcbsp2_ick", |
517 | .addr = omap2xxx_mcbsp2_addrs, | ||
518 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 412 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
519 | }; | 413 | }; |
520 | 414 | ||
521 | static struct omap_hwmod_addr_space omap2420_msdi1_addrs[] = { | ||
522 | { | ||
523 | .pa_start = 0x4809c000, | ||
524 | .pa_end = 0x4809c000 + SZ_128 - 1, | ||
525 | .flags = ADDR_TYPE_RT, | ||
526 | }, | ||
527 | { } | ||
528 | }; | ||
529 | |||
530 | /* l4_core -> msdi1 */ | 415 | /* l4_core -> msdi1 */ |
531 | static struct omap_hwmod_ocp_if omap2420_l4_core__msdi1 = { | 416 | static struct omap_hwmod_ocp_if omap2420_l4_core__msdi1 = { |
532 | .master = &omap2xxx_l4_core_hwmod, | 417 | .master = &omap2xxx_l4_core_hwmod, |
533 | .slave = &omap2420_msdi1_hwmod, | 418 | .slave = &omap2420_msdi1_hwmod, |
534 | .clk = "mmc_ick", | 419 | .clk = "mmc_ick", |
535 | .addr = omap2420_msdi1_addrs, | ||
536 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 420 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
537 | }; | 421 | }; |
538 | 422 | ||
@@ -541,36 +425,16 @@ static struct omap_hwmod_ocp_if omap2420_l4_core__hdq1w = { | |||
541 | .master = &omap2xxx_l4_core_hwmod, | 425 | .master = &omap2xxx_l4_core_hwmod, |
542 | .slave = &omap2420_hdq1w_hwmod, | 426 | .slave = &omap2420_hdq1w_hwmod, |
543 | .clk = "hdq_ick", | 427 | .clk = "hdq_ick", |
544 | .addr = omap2_hdq1w_addr_space, | ||
545 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 428 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
546 | .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE, | 429 | .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE, |
547 | }; | 430 | }; |
548 | 431 | ||
549 | 432 | ||
550 | /* l4_wkup -> 32ksync_counter */ | 433 | /* l4_wkup -> 32ksync_counter */ |
551 | static struct omap_hwmod_addr_space omap2420_counter_32k_addrs[] = { | ||
552 | { | ||
553 | .pa_start = 0x48004000, | ||
554 | .pa_end = 0x4800401f, | ||
555 | .flags = ADDR_TYPE_RT | ||
556 | }, | ||
557 | { } | ||
558 | }; | ||
559 | |||
560 | static struct omap_hwmod_addr_space omap2420_gpmc_addrs[] = { | ||
561 | { | ||
562 | .pa_start = 0x6800a000, | ||
563 | .pa_end = 0x6800afff, | ||
564 | .flags = ADDR_TYPE_RT | ||
565 | }, | ||
566 | { } | ||
567 | }; | ||
568 | |||
569 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__counter_32k = { | 434 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__counter_32k = { |
570 | .master = &omap2xxx_l4_wkup_hwmod, | 435 | .master = &omap2xxx_l4_wkup_hwmod, |
571 | .slave = &omap2xxx_counter_32k_hwmod, | 436 | .slave = &omap2xxx_counter_32k_hwmod, |
572 | .clk = "sync_32k_ick", | 437 | .clk = "sync_32k_ick", |
573 | .addr = omap2420_counter_32k_addrs, | ||
574 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 438 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
575 | }; | 439 | }; |
576 | 440 | ||
@@ -578,7 +442,6 @@ static struct omap_hwmod_ocp_if omap2420_l3__gpmc = { | |||
578 | .master = &omap2xxx_l3_main_hwmod, | 442 | .master = &omap2xxx_l3_main_hwmod, |
579 | .slave = &omap2xxx_gpmc_hwmod, | 443 | .slave = &omap2xxx_gpmc_hwmod, |
580 | .clk = "core_l3_ck", | 444 | .clk = "core_l3_ck", |
581 | .addr = omap2420_gpmc_addrs, | ||
582 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 445 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
583 | }; | 446 | }; |
584 | 447 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c index 5b9083461dc5..6d1b60902179 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c | |||
@@ -86,8 +86,6 @@ static struct omap_i2c_dev_attr i2c_dev_attr = { | |||
86 | static struct omap_hwmod omap2430_i2c1_hwmod = { | 86 | static struct omap_hwmod omap2430_i2c1_hwmod = { |
87 | .name = "i2c1", | 87 | .name = "i2c1", |
88 | .flags = HWMOD_16BIT_REG, | 88 | .flags = HWMOD_16BIT_REG, |
89 | .mpu_irqs = omap2_i2c1_mpu_irqs, | ||
90 | .sdma_reqs = omap2_i2c1_sdma_reqs, | ||
91 | .main_clk = "i2chs1_fck", | 89 | .main_clk = "i2chs1_fck", |
92 | .prcm = { | 90 | .prcm = { |
93 | .omap2 = { | 91 | .omap2 = { |
@@ -114,8 +112,6 @@ static struct omap_hwmod omap2430_i2c1_hwmod = { | |||
114 | static struct omap_hwmod omap2430_i2c2_hwmod = { | 112 | static struct omap_hwmod omap2430_i2c2_hwmod = { |
115 | .name = "i2c2", | 113 | .name = "i2c2", |
116 | .flags = HWMOD_16BIT_REG, | 114 | .flags = HWMOD_16BIT_REG, |
117 | .mpu_irqs = omap2_i2c2_mpu_irqs, | ||
118 | .sdma_reqs = omap2_i2c2_sdma_reqs, | ||
119 | .main_clk = "i2chs2_fck", | 115 | .main_clk = "i2chs2_fck", |
120 | .prcm = { | 116 | .prcm = { |
121 | .omap2 = { | 117 | .omap2 = { |
@@ -131,15 +127,9 @@ static struct omap_hwmod omap2430_i2c2_hwmod = { | |||
131 | }; | 127 | }; |
132 | 128 | ||
133 | /* gpio5 */ | 129 | /* gpio5 */ |
134 | static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = { | ||
135 | { .irq = 33 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK5 */ | ||
136 | { .irq = -1 }, | ||
137 | }; | ||
138 | |||
139 | static struct omap_hwmod omap2430_gpio5_hwmod = { | 130 | static struct omap_hwmod omap2430_gpio5_hwmod = { |
140 | .name = "gpio5", | 131 | .name = "gpio5", |
141 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, | 132 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
142 | .mpu_irqs = omap243x_gpio5_irqs, | ||
143 | .main_clk = "gpio5_fck", | 133 | .main_clk = "gpio5_fck", |
144 | .prcm = { | 134 | .prcm = { |
145 | .omap2 = { | 135 | .omap2 = { |
@@ -182,15 +172,9 @@ static struct omap_mbox_pdata omap2430_mailbox_attrs = { | |||
182 | .info = omap2430_mailbox_info, | 172 | .info = omap2430_mailbox_info, |
183 | }; | 173 | }; |
184 | 174 | ||
185 | static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = { | ||
186 | { .irq = 26 + OMAP_INTC_START, }, | ||
187 | { .irq = -1 }, | ||
188 | }; | ||
189 | |||
190 | static struct omap_hwmod omap2430_mailbox_hwmod = { | 175 | static struct omap_hwmod omap2430_mailbox_hwmod = { |
191 | .name = "mailbox", | 176 | .name = "mailbox", |
192 | .class = &omap2xxx_mailbox_hwmod_class, | 177 | .class = &omap2xxx_mailbox_hwmod_class, |
193 | .mpu_irqs = omap2430_mailbox_irqs, | ||
194 | .main_clk = "mailboxes_ick", | 178 | .main_clk = "mailboxes_ick", |
195 | .prcm = { | 179 | .prcm = { |
196 | .omap2 = { | 180 | .omap2 = { |
@@ -205,27 +189,12 @@ static struct omap_hwmod omap2430_mailbox_hwmod = { | |||
205 | }; | 189 | }; |
206 | 190 | ||
207 | /* mcspi3 */ | 191 | /* mcspi3 */ |
208 | static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = { | ||
209 | { .irq = 91 + OMAP_INTC_START, }, | ||
210 | { .irq = -1 }, | ||
211 | }; | ||
212 | |||
213 | static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = { | ||
214 | { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */ | ||
215 | { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */ | ||
216 | { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */ | ||
217 | { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */ | ||
218 | { .dma_req = -1 } | ||
219 | }; | ||
220 | |||
221 | static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = { | 192 | static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = { |
222 | .num_chipselect = 2, | 193 | .num_chipselect = 2, |
223 | }; | 194 | }; |
224 | 195 | ||
225 | static struct omap_hwmod omap2430_mcspi3_hwmod = { | 196 | static struct omap_hwmod omap2430_mcspi3_hwmod = { |
226 | .name = "mcspi3", | 197 | .name = "mcspi3", |
227 | .mpu_irqs = omap2430_mcspi3_mpu_irqs, | ||
228 | .sdma_reqs = omap2430_mcspi3_sdma_reqs, | ||
229 | .main_clk = "mcspi3_fck", | 198 | .main_clk = "mcspi3_fck", |
230 | .prcm = { | 199 | .prcm = { |
231 | .omap2 = { | 200 | .omap2 = { |
@@ -259,16 +228,8 @@ static struct omap_hwmod_class usbotg_class = { | |||
259 | }; | 228 | }; |
260 | 229 | ||
261 | /* usb_otg_hs */ | 230 | /* usb_otg_hs */ |
262 | static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = { | ||
263 | |||
264 | { .name = "mc", .irq = 92 + OMAP_INTC_START, }, | ||
265 | { .name = "dma", .irq = 93 + OMAP_INTC_START, }, | ||
266 | { .irq = -1 }, | ||
267 | }; | ||
268 | |||
269 | static struct omap_hwmod omap2430_usbhsotg_hwmod = { | 231 | static struct omap_hwmod omap2430_usbhsotg_hwmod = { |
270 | .name = "usb_otg_hs", | 232 | .name = "usb_otg_hs", |
271 | .mpu_irqs = omap2430_usbhsotg_mpu_irqs, | ||
272 | .main_clk = "usbhs_ick", | 233 | .main_clk = "usbhs_ick", |
273 | .prcm = { | 234 | .prcm = { |
274 | .omap2 = { | 235 | .omap2 = { |
@@ -313,19 +274,9 @@ static struct omap_hwmod_opt_clk mcbsp_opt_clks[] = { | |||
313 | }; | 274 | }; |
314 | 275 | ||
315 | /* mcbsp1 */ | 276 | /* mcbsp1 */ |
316 | static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = { | ||
317 | { .name = "tx", .irq = 59 + OMAP_INTC_START, }, | ||
318 | { .name = "rx", .irq = 60 + OMAP_INTC_START, }, | ||
319 | { .name = "ovr", .irq = 61 + OMAP_INTC_START, }, | ||
320 | { .name = "common", .irq = 64 + OMAP_INTC_START, }, | ||
321 | { .irq = -1 }, | ||
322 | }; | ||
323 | |||
324 | static struct omap_hwmod omap2430_mcbsp1_hwmod = { | 277 | static struct omap_hwmod omap2430_mcbsp1_hwmod = { |
325 | .name = "mcbsp1", | 278 | .name = "mcbsp1", |
326 | .class = &omap2430_mcbsp_hwmod_class, | 279 | .class = &omap2430_mcbsp_hwmod_class, |
327 | .mpu_irqs = omap2430_mcbsp1_irqs, | ||
328 | .sdma_reqs = omap2_mcbsp1_sdma_reqs, | ||
329 | .main_clk = "mcbsp1_fck", | 280 | .main_clk = "mcbsp1_fck", |
330 | .prcm = { | 281 | .prcm = { |
331 | .omap2 = { | 282 | .omap2 = { |
@@ -341,18 +292,9 @@ static struct omap_hwmod omap2430_mcbsp1_hwmod = { | |||
341 | }; | 292 | }; |
342 | 293 | ||
343 | /* mcbsp2 */ | 294 | /* mcbsp2 */ |
344 | static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = { | ||
345 | { .name = "tx", .irq = 62 + OMAP_INTC_START, }, | ||
346 | { .name = "rx", .irq = 63 + OMAP_INTC_START, }, | ||
347 | { .name = "common", .irq = 16 + OMAP_INTC_START, }, | ||
348 | { .irq = -1 }, | ||
349 | }; | ||
350 | |||
351 | static struct omap_hwmod omap2430_mcbsp2_hwmod = { | 295 | static struct omap_hwmod omap2430_mcbsp2_hwmod = { |
352 | .name = "mcbsp2", | 296 | .name = "mcbsp2", |
353 | .class = &omap2430_mcbsp_hwmod_class, | 297 | .class = &omap2430_mcbsp_hwmod_class, |
354 | .mpu_irqs = omap2430_mcbsp2_irqs, | ||
355 | .sdma_reqs = omap2_mcbsp2_sdma_reqs, | ||
356 | .main_clk = "mcbsp2_fck", | 298 | .main_clk = "mcbsp2_fck", |
357 | .prcm = { | 299 | .prcm = { |
358 | .omap2 = { | 300 | .omap2 = { |
@@ -368,18 +310,9 @@ static struct omap_hwmod omap2430_mcbsp2_hwmod = { | |||
368 | }; | 310 | }; |
369 | 311 | ||
370 | /* mcbsp3 */ | 312 | /* mcbsp3 */ |
371 | static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = { | ||
372 | { .name = "tx", .irq = 89 + OMAP_INTC_START, }, | ||
373 | { .name = "rx", .irq = 90 + OMAP_INTC_START, }, | ||
374 | { .name = "common", .irq = 17 + OMAP_INTC_START, }, | ||
375 | { .irq = -1 }, | ||
376 | }; | ||
377 | |||
378 | static struct omap_hwmod omap2430_mcbsp3_hwmod = { | 313 | static struct omap_hwmod omap2430_mcbsp3_hwmod = { |
379 | .name = "mcbsp3", | 314 | .name = "mcbsp3", |
380 | .class = &omap2430_mcbsp_hwmod_class, | 315 | .class = &omap2430_mcbsp_hwmod_class, |
381 | .mpu_irqs = omap2430_mcbsp3_irqs, | ||
382 | .sdma_reqs = omap2_mcbsp3_sdma_reqs, | ||
383 | .main_clk = "mcbsp3_fck", | 316 | .main_clk = "mcbsp3_fck", |
384 | .prcm = { | 317 | .prcm = { |
385 | .omap2 = { | 318 | .omap2 = { |
@@ -395,24 +328,9 @@ static struct omap_hwmod omap2430_mcbsp3_hwmod = { | |||
395 | }; | 328 | }; |
396 | 329 | ||
397 | /* mcbsp4 */ | 330 | /* mcbsp4 */ |
398 | static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = { | ||
399 | { .name = "tx", .irq = 54 + OMAP_INTC_START, }, | ||
400 | { .name = "rx", .irq = 55 + OMAP_INTC_START, }, | ||
401 | { .name = "common", .irq = 18 + OMAP_INTC_START, }, | ||
402 | { .irq = -1 }, | ||
403 | }; | ||
404 | |||
405 | static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = { | ||
406 | { .name = "rx", .dma_req = 20 }, | ||
407 | { .name = "tx", .dma_req = 19 }, | ||
408 | { .dma_req = -1 } | ||
409 | }; | ||
410 | |||
411 | static struct omap_hwmod omap2430_mcbsp4_hwmod = { | 331 | static struct omap_hwmod omap2430_mcbsp4_hwmod = { |
412 | .name = "mcbsp4", | 332 | .name = "mcbsp4", |
413 | .class = &omap2430_mcbsp_hwmod_class, | 333 | .class = &omap2430_mcbsp_hwmod_class, |
414 | .mpu_irqs = omap2430_mcbsp4_irqs, | ||
415 | .sdma_reqs = omap2430_mcbsp4_sdma_chs, | ||
416 | .main_clk = "mcbsp4_fck", | 334 | .main_clk = "mcbsp4_fck", |
417 | .prcm = { | 335 | .prcm = { |
418 | .omap2 = { | 336 | .omap2 = { |
@@ -428,24 +346,9 @@ static struct omap_hwmod omap2430_mcbsp4_hwmod = { | |||
428 | }; | 346 | }; |
429 | 347 | ||
430 | /* mcbsp5 */ | 348 | /* mcbsp5 */ |
431 | static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = { | ||
432 | { .name = "tx", .irq = 81 + OMAP_INTC_START, }, | ||
433 | { .name = "rx", .irq = 82 + OMAP_INTC_START, }, | ||
434 | { .name = "common", .irq = 19 + OMAP_INTC_START, }, | ||
435 | { .irq = -1 }, | ||
436 | }; | ||
437 | |||
438 | static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = { | ||
439 | { .name = "rx", .dma_req = 22 }, | ||
440 | { .name = "tx", .dma_req = 21 }, | ||
441 | { .dma_req = -1 } | ||
442 | }; | ||
443 | |||
444 | static struct omap_hwmod omap2430_mcbsp5_hwmod = { | 349 | static struct omap_hwmod omap2430_mcbsp5_hwmod = { |
445 | .name = "mcbsp5", | 350 | .name = "mcbsp5", |
446 | .class = &omap2430_mcbsp_hwmod_class, | 351 | .class = &omap2430_mcbsp_hwmod_class, |
447 | .mpu_irqs = omap2430_mcbsp5_irqs, | ||
448 | .sdma_reqs = omap2430_mcbsp5_sdma_chs, | ||
449 | .main_clk = "mcbsp5_fck", | 352 | .main_clk = "mcbsp5_fck", |
450 | .prcm = { | 353 | .prcm = { |
451 | .omap2 = { | 354 | .omap2 = { |
@@ -478,17 +381,6 @@ static struct omap_hwmod_class omap2430_mmc_class = { | |||
478 | }; | 381 | }; |
479 | 382 | ||
480 | /* MMC/SD/SDIO1 */ | 383 | /* MMC/SD/SDIO1 */ |
481 | static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = { | ||
482 | { .irq = 83 + OMAP_INTC_START, }, | ||
483 | { .irq = -1 }, | ||
484 | }; | ||
485 | |||
486 | static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = { | ||
487 | { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */ | ||
488 | { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */ | ||
489 | { .dma_req = -1 } | ||
490 | }; | ||
491 | |||
492 | static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = { | 384 | static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = { |
493 | { .role = "dbck", .clk = "mmchsdb1_fck" }, | 385 | { .role = "dbck", .clk = "mmchsdb1_fck" }, |
494 | }; | 386 | }; |
@@ -500,8 +392,6 @@ static struct omap_mmc_dev_attr mmc1_dev_attr = { | |||
500 | static struct omap_hwmod omap2430_mmc1_hwmod = { | 392 | static struct omap_hwmod omap2430_mmc1_hwmod = { |
501 | .name = "mmc1", | 393 | .name = "mmc1", |
502 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, | 394 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
503 | .mpu_irqs = omap2430_mmc1_mpu_irqs, | ||
504 | .sdma_reqs = omap2430_mmc1_sdma_reqs, | ||
505 | .opt_clks = omap2430_mmc1_opt_clks, | 395 | .opt_clks = omap2430_mmc1_opt_clks, |
506 | .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks), | 396 | .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks), |
507 | .main_clk = "mmchs1_fck", | 397 | .main_clk = "mmchs1_fck", |
@@ -519,17 +409,6 @@ static struct omap_hwmod omap2430_mmc1_hwmod = { | |||
519 | }; | 409 | }; |
520 | 410 | ||
521 | /* MMC/SD/SDIO2 */ | 411 | /* MMC/SD/SDIO2 */ |
522 | static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = { | ||
523 | { .irq = 86 + OMAP_INTC_START, }, | ||
524 | { .irq = -1 }, | ||
525 | }; | ||
526 | |||
527 | static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = { | ||
528 | { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */ | ||
529 | { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */ | ||
530 | { .dma_req = -1 } | ||
531 | }; | ||
532 | |||
533 | static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = { | 412 | static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = { |
534 | { .role = "dbck", .clk = "mmchsdb2_fck" }, | 413 | { .role = "dbck", .clk = "mmchsdb2_fck" }, |
535 | }; | 414 | }; |
@@ -537,8 +416,6 @@ static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = { | |||
537 | static struct omap_hwmod omap2430_mmc2_hwmod = { | 416 | static struct omap_hwmod omap2430_mmc2_hwmod = { |
538 | .name = "mmc2", | 417 | .name = "mmc2", |
539 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, | 418 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
540 | .mpu_irqs = omap2430_mmc2_mpu_irqs, | ||
541 | .sdma_reqs = omap2430_mmc2_sdma_reqs, | ||
542 | .opt_clks = omap2430_mmc2_opt_clks, | 419 | .opt_clks = omap2430_mmc2_opt_clks, |
543 | .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks), | 420 | .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks), |
544 | .main_clk = "mmchs2_fck", | 421 | .main_clk = "mmchs2_fck", |
@@ -557,7 +434,6 @@ static struct omap_hwmod omap2430_mmc2_hwmod = { | |||
557 | /* HDQ1W/1-wire */ | 434 | /* HDQ1W/1-wire */ |
558 | static struct omap_hwmod omap2430_hdq1w_hwmod = { | 435 | static struct omap_hwmod omap2430_hdq1w_hwmod = { |
559 | .name = "hdq1w", | 436 | .name = "hdq1w", |
560 | .mpu_irqs = omap2_hdq1w_mpu_irqs, | ||
561 | .main_clk = "hdq_fck", | 437 | .main_clk = "hdq_fck", |
562 | .prcm = { | 438 | .prcm = { |
563 | .omap2 = { | 439 | .omap2 = { |
@@ -589,7 +465,6 @@ static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = { | |||
589 | .master = &omap2xxx_l4_core_hwmod, | 465 | .master = &omap2xxx_l4_core_hwmod, |
590 | .slave = &omap2430_i2c1_hwmod, | 466 | .slave = &omap2430_i2c1_hwmod, |
591 | .clk = "i2c1_ick", | 467 | .clk = "i2c1_ick", |
592 | .addr = omap2_i2c1_addr_space, | ||
593 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 468 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
594 | }; | 469 | }; |
595 | 470 | ||
@@ -598,25 +473,14 @@ static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = { | |||
598 | .master = &omap2xxx_l4_core_hwmod, | 473 | .master = &omap2xxx_l4_core_hwmod, |
599 | .slave = &omap2430_i2c2_hwmod, | 474 | .slave = &omap2430_i2c2_hwmod, |
600 | .clk = "i2c2_ick", | 475 | .clk = "i2c2_ick", |
601 | .addr = omap2_i2c2_addr_space, | ||
602 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 476 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
603 | }; | 477 | }; |
604 | 478 | ||
605 | static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = { | ||
606 | { | ||
607 | .pa_start = OMAP243X_HS_BASE, | ||
608 | .pa_end = OMAP243X_HS_BASE + SZ_4K - 1, | ||
609 | .flags = ADDR_TYPE_RT | ||
610 | }, | ||
611 | { } | ||
612 | }; | ||
613 | |||
614 | /* l4_core ->usbhsotg interface */ | 479 | /* l4_core ->usbhsotg interface */ |
615 | static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = { | 480 | static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = { |
616 | .master = &omap2xxx_l4_core_hwmod, | 481 | .master = &omap2xxx_l4_core_hwmod, |
617 | .slave = &omap2430_usbhsotg_hwmod, | 482 | .slave = &omap2430_usbhsotg_hwmod, |
618 | .clk = "usb_l4_ick", | 483 | .clk = "usb_l4_ick", |
619 | .addr = omap2430_usbhsotg_addrs, | ||
620 | .user = OCP_USER_MPU, | 484 | .user = OCP_USER_MPU, |
621 | }; | 485 | }; |
622 | 486 | ||
@@ -625,7 +489,6 @@ static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = { | |||
625 | .master = &omap2xxx_l4_core_hwmod, | 489 | .master = &omap2xxx_l4_core_hwmod, |
626 | .slave = &omap2430_mmc1_hwmod, | 490 | .slave = &omap2430_mmc1_hwmod, |
627 | .clk = "mmchs1_ick", | 491 | .clk = "mmchs1_ick", |
628 | .addr = omap2430_mmc1_addr_space, | ||
629 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 492 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
630 | }; | 493 | }; |
631 | 494 | ||
@@ -634,7 +497,6 @@ static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = { | |||
634 | .master = &omap2xxx_l4_core_hwmod, | 497 | .master = &omap2xxx_l4_core_hwmod, |
635 | .slave = &omap2430_mmc2_hwmod, | 498 | .slave = &omap2430_mmc2_hwmod, |
636 | .clk = "mmchs2_ick", | 499 | .clk = "mmchs2_ick", |
637 | .addr = omap2430_mmc2_addr_space, | ||
638 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 500 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
639 | }; | 501 | }; |
640 | 502 | ||
@@ -643,7 +505,6 @@ static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = { | |||
643 | .master = &omap2xxx_l4_core_hwmod, | 505 | .master = &omap2xxx_l4_core_hwmod, |
644 | .slave = &omap2430_mcspi3_hwmod, | 506 | .slave = &omap2430_mcspi3_hwmod, |
645 | .clk = "mcspi3_ick", | 507 | .clk = "mcspi3_ick", |
646 | .addr = omap2430_mcspi3_addr_space, | ||
647 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 508 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
648 | }; | 509 | }; |
649 | 510 | ||
@@ -655,129 +516,59 @@ static struct omap_hwmod_ocp_if omap2430_l3__iva = { | |||
655 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 516 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
656 | }; | 517 | }; |
657 | 518 | ||
658 | static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = { | ||
659 | { | ||
660 | .pa_start = 0x49018000, | ||
661 | .pa_end = 0x49018000 + SZ_1K - 1, | ||
662 | .flags = ADDR_TYPE_RT | ||
663 | }, | ||
664 | { } | ||
665 | }; | ||
666 | |||
667 | /* l4_wkup -> timer1 */ | 519 | /* l4_wkup -> timer1 */ |
668 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = { | 520 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = { |
669 | .master = &omap2xxx_l4_wkup_hwmod, | 521 | .master = &omap2xxx_l4_wkup_hwmod, |
670 | .slave = &omap2xxx_timer1_hwmod, | 522 | .slave = &omap2xxx_timer1_hwmod, |
671 | .clk = "gpt1_ick", | 523 | .clk = "gpt1_ick", |
672 | .addr = omap2430_timer1_addrs, | ||
673 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 524 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
674 | }; | 525 | }; |
675 | 526 | ||
676 | /* l4_wkup -> wd_timer2 */ | 527 | /* l4_wkup -> wd_timer2 */ |
677 | static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = { | ||
678 | { | ||
679 | .pa_start = 0x49016000, | ||
680 | .pa_end = 0x4901607f, | ||
681 | .flags = ADDR_TYPE_RT | ||
682 | }, | ||
683 | { } | ||
684 | }; | ||
685 | |||
686 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = { | 528 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = { |
687 | .master = &omap2xxx_l4_wkup_hwmod, | 529 | .master = &omap2xxx_l4_wkup_hwmod, |
688 | .slave = &omap2xxx_wd_timer2_hwmod, | 530 | .slave = &omap2xxx_wd_timer2_hwmod, |
689 | .clk = "mpu_wdt_ick", | 531 | .clk = "mpu_wdt_ick", |
690 | .addr = omap2430_wd_timer2_addrs, | ||
691 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 532 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
692 | }; | 533 | }; |
693 | 534 | ||
694 | /* l4_wkup -> gpio1 */ | 535 | /* l4_wkup -> gpio1 */ |
695 | static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = { | ||
696 | { | ||
697 | .pa_start = 0x4900C000, | ||
698 | .pa_end = 0x4900C1ff, | ||
699 | .flags = ADDR_TYPE_RT | ||
700 | }, | ||
701 | { } | ||
702 | }; | ||
703 | |||
704 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = { | 536 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = { |
705 | .master = &omap2xxx_l4_wkup_hwmod, | 537 | .master = &omap2xxx_l4_wkup_hwmod, |
706 | .slave = &omap2xxx_gpio1_hwmod, | 538 | .slave = &omap2xxx_gpio1_hwmod, |
707 | .clk = "gpios_ick", | 539 | .clk = "gpios_ick", |
708 | .addr = omap2430_gpio1_addr_space, | ||
709 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 540 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
710 | }; | 541 | }; |
711 | 542 | ||
712 | /* l4_wkup -> gpio2 */ | 543 | /* l4_wkup -> gpio2 */ |
713 | static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = { | ||
714 | { | ||
715 | .pa_start = 0x4900E000, | ||
716 | .pa_end = 0x4900E1ff, | ||
717 | .flags = ADDR_TYPE_RT | ||
718 | }, | ||
719 | { } | ||
720 | }; | ||
721 | |||
722 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = { | 544 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = { |
723 | .master = &omap2xxx_l4_wkup_hwmod, | 545 | .master = &omap2xxx_l4_wkup_hwmod, |
724 | .slave = &omap2xxx_gpio2_hwmod, | 546 | .slave = &omap2xxx_gpio2_hwmod, |
725 | .clk = "gpios_ick", | 547 | .clk = "gpios_ick", |
726 | .addr = omap2430_gpio2_addr_space, | ||
727 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 548 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
728 | }; | 549 | }; |
729 | 550 | ||
730 | /* l4_wkup -> gpio3 */ | 551 | /* l4_wkup -> gpio3 */ |
731 | static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = { | ||
732 | { | ||
733 | .pa_start = 0x49010000, | ||
734 | .pa_end = 0x490101ff, | ||
735 | .flags = ADDR_TYPE_RT | ||
736 | }, | ||
737 | { } | ||
738 | }; | ||
739 | |||
740 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = { | 552 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = { |
741 | .master = &omap2xxx_l4_wkup_hwmod, | 553 | .master = &omap2xxx_l4_wkup_hwmod, |
742 | .slave = &omap2xxx_gpio3_hwmod, | 554 | .slave = &omap2xxx_gpio3_hwmod, |
743 | .clk = "gpios_ick", | 555 | .clk = "gpios_ick", |
744 | .addr = omap2430_gpio3_addr_space, | ||
745 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 556 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
746 | }; | 557 | }; |
747 | 558 | ||
748 | /* l4_wkup -> gpio4 */ | 559 | /* l4_wkup -> gpio4 */ |
749 | static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = { | ||
750 | { | ||
751 | .pa_start = 0x49012000, | ||
752 | .pa_end = 0x490121ff, | ||
753 | .flags = ADDR_TYPE_RT | ||
754 | }, | ||
755 | { } | ||
756 | }; | ||
757 | |||
758 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = { | 560 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = { |
759 | .master = &omap2xxx_l4_wkup_hwmod, | 561 | .master = &omap2xxx_l4_wkup_hwmod, |
760 | .slave = &omap2xxx_gpio4_hwmod, | 562 | .slave = &omap2xxx_gpio4_hwmod, |
761 | .clk = "gpios_ick", | 563 | .clk = "gpios_ick", |
762 | .addr = omap2430_gpio4_addr_space, | ||
763 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 564 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
764 | }; | 565 | }; |
765 | 566 | ||
766 | /* l4_core -> gpio5 */ | 567 | /* l4_core -> gpio5 */ |
767 | static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = { | ||
768 | { | ||
769 | .pa_start = 0x480B6000, | ||
770 | .pa_end = 0x480B61ff, | ||
771 | .flags = ADDR_TYPE_RT | ||
772 | }, | ||
773 | { } | ||
774 | }; | ||
775 | |||
776 | static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = { | 568 | static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = { |
777 | .master = &omap2xxx_l4_core_hwmod, | 569 | .master = &omap2xxx_l4_core_hwmod, |
778 | .slave = &omap2430_gpio5_hwmod, | 570 | .slave = &omap2430_gpio5_hwmod, |
779 | .clk = "gpio5_ick", | 571 | .clk = "gpio5_ick", |
780 | .addr = omap2430_gpio5_addr_space, | ||
781 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 572 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
782 | }; | 573 | }; |
783 | 574 | ||
@@ -802,7 +593,6 @@ static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = { | |||
802 | static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = { | 593 | static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = { |
803 | .master = &omap2xxx_l4_core_hwmod, | 594 | .master = &omap2xxx_l4_core_hwmod, |
804 | .slave = &omap2430_mailbox_hwmod, | 595 | .slave = &omap2430_mailbox_hwmod, |
805 | .addr = omap2_mailbox_addrs, | ||
806 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 596 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
807 | }; | 597 | }; |
808 | 598 | ||
@@ -811,7 +601,6 @@ static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = { | |||
811 | .master = &omap2xxx_l4_core_hwmod, | 601 | .master = &omap2xxx_l4_core_hwmod, |
812 | .slave = &omap2430_mcbsp1_hwmod, | 602 | .slave = &omap2430_mcbsp1_hwmod, |
813 | .clk = "mcbsp1_ick", | 603 | .clk = "mcbsp1_ick", |
814 | .addr = omap2_mcbsp1_addrs, | ||
815 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 604 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
816 | }; | 605 | }; |
817 | 606 | ||
@@ -820,64 +609,30 @@ static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = { | |||
820 | .master = &omap2xxx_l4_core_hwmod, | 609 | .master = &omap2xxx_l4_core_hwmod, |
821 | .slave = &omap2430_mcbsp2_hwmod, | 610 | .slave = &omap2430_mcbsp2_hwmod, |
822 | .clk = "mcbsp2_ick", | 611 | .clk = "mcbsp2_ick", |
823 | .addr = omap2xxx_mcbsp2_addrs, | ||
824 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 612 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
825 | }; | 613 | }; |
826 | 614 | ||
827 | static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = { | ||
828 | { | ||
829 | .name = "mpu", | ||
830 | .pa_start = 0x4808C000, | ||
831 | .pa_end = 0x4808C0ff, | ||
832 | .flags = ADDR_TYPE_RT | ||
833 | }, | ||
834 | { } | ||
835 | }; | ||
836 | |||
837 | /* l4_core -> mcbsp3 */ | 615 | /* l4_core -> mcbsp3 */ |
838 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = { | 616 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = { |
839 | .master = &omap2xxx_l4_core_hwmod, | 617 | .master = &omap2xxx_l4_core_hwmod, |
840 | .slave = &omap2430_mcbsp3_hwmod, | 618 | .slave = &omap2430_mcbsp3_hwmod, |
841 | .clk = "mcbsp3_ick", | 619 | .clk = "mcbsp3_ick", |
842 | .addr = omap2430_mcbsp3_addrs, | ||
843 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 620 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
844 | }; | 621 | }; |
845 | 622 | ||
846 | static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = { | ||
847 | { | ||
848 | .name = "mpu", | ||
849 | .pa_start = 0x4808E000, | ||
850 | .pa_end = 0x4808E0ff, | ||
851 | .flags = ADDR_TYPE_RT | ||
852 | }, | ||
853 | { } | ||
854 | }; | ||
855 | |||
856 | /* l4_core -> mcbsp4 */ | 623 | /* l4_core -> mcbsp4 */ |
857 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = { | 624 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = { |
858 | .master = &omap2xxx_l4_core_hwmod, | 625 | .master = &omap2xxx_l4_core_hwmod, |
859 | .slave = &omap2430_mcbsp4_hwmod, | 626 | .slave = &omap2430_mcbsp4_hwmod, |
860 | .clk = "mcbsp4_ick", | 627 | .clk = "mcbsp4_ick", |
861 | .addr = omap2430_mcbsp4_addrs, | ||
862 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 628 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
863 | }; | 629 | }; |
864 | 630 | ||
865 | static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = { | ||
866 | { | ||
867 | .name = "mpu", | ||
868 | .pa_start = 0x48096000, | ||
869 | .pa_end = 0x480960ff, | ||
870 | .flags = ADDR_TYPE_RT | ||
871 | }, | ||
872 | { } | ||
873 | }; | ||
874 | |||
875 | /* l4_core -> mcbsp5 */ | 631 | /* l4_core -> mcbsp5 */ |
876 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = { | 632 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = { |
877 | .master = &omap2xxx_l4_core_hwmod, | 633 | .master = &omap2xxx_l4_core_hwmod, |
878 | .slave = &omap2430_mcbsp5_hwmod, | 634 | .slave = &omap2430_mcbsp5_hwmod, |
879 | .clk = "mcbsp5_ick", | 635 | .clk = "mcbsp5_ick", |
880 | .addr = omap2430_mcbsp5_addrs, | ||
881 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 636 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
882 | }; | 637 | }; |
883 | 638 | ||
@@ -886,35 +641,15 @@ static struct omap_hwmod_ocp_if omap2430_l4_core__hdq1w = { | |||
886 | .master = &omap2xxx_l4_core_hwmod, | 641 | .master = &omap2xxx_l4_core_hwmod, |
887 | .slave = &omap2430_hdq1w_hwmod, | 642 | .slave = &omap2430_hdq1w_hwmod, |
888 | .clk = "hdq_ick", | 643 | .clk = "hdq_ick", |
889 | .addr = omap2_hdq1w_addr_space, | ||
890 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 644 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
891 | .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE, | 645 | .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE, |
892 | }; | 646 | }; |
893 | 647 | ||
894 | /* l4_wkup -> 32ksync_counter */ | 648 | /* l4_wkup -> 32ksync_counter */ |
895 | static struct omap_hwmod_addr_space omap2430_counter_32k_addrs[] = { | ||
896 | { | ||
897 | .pa_start = 0x49020000, | ||
898 | .pa_end = 0x4902001f, | ||
899 | .flags = ADDR_TYPE_RT | ||
900 | }, | ||
901 | { } | ||
902 | }; | ||
903 | |||
904 | static struct omap_hwmod_addr_space omap2430_gpmc_addrs[] = { | ||
905 | { | ||
906 | .pa_start = 0x6e000000, | ||
907 | .pa_end = 0x6e000fff, | ||
908 | .flags = ADDR_TYPE_RT | ||
909 | }, | ||
910 | { } | ||
911 | }; | ||
912 | |||
913 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__counter_32k = { | 649 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__counter_32k = { |
914 | .master = &omap2xxx_l4_wkup_hwmod, | 650 | .master = &omap2xxx_l4_wkup_hwmod, |
915 | .slave = &omap2xxx_counter_32k_hwmod, | 651 | .slave = &omap2xxx_counter_32k_hwmod, |
916 | .clk = "sync_32k_ick", | 652 | .clk = "sync_32k_ick", |
917 | .addr = omap2430_counter_32k_addrs, | ||
918 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 653 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
919 | }; | 654 | }; |
920 | 655 | ||
@@ -922,7 +657,6 @@ static struct omap_hwmod_ocp_if omap2430_l3__gpmc = { | |||
922 | .master = &omap2xxx_l3_main_hwmod, | 657 | .master = &omap2xxx_l3_main_hwmod, |
923 | .slave = &omap2xxx_gpmc_hwmod, | 658 | .slave = &omap2xxx_gpmc_hwmod, |
924 | .clk = "core_l3_ck", | 659 | .clk = "core_l3_ck", |
925 | .addr = omap2430_gpmc_addrs, | ||
926 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 660 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
927 | }; | 661 | }; |
928 | 662 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c index 5fd40d4a989e..656861c29d5c 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c | |||
@@ -20,142 +20,6 @@ | |||
20 | 20 | ||
21 | #include "omap_hwmod_common_data.h" | 21 | #include "omap_hwmod_common_data.h" |
22 | 22 | ||
23 | static struct omap_hwmod_addr_space omap2xxx_uart1_addr_space[] = { | ||
24 | { | ||
25 | .pa_start = OMAP2_UART1_BASE, | ||
26 | .pa_end = OMAP2_UART1_BASE + SZ_8K - 1, | ||
27 | .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT, | ||
28 | }, | ||
29 | { } | ||
30 | }; | ||
31 | |||
32 | static struct omap_hwmod_addr_space omap2xxx_uart2_addr_space[] = { | ||
33 | { | ||
34 | .pa_start = OMAP2_UART2_BASE, | ||
35 | .pa_end = OMAP2_UART2_BASE + SZ_1K - 1, | ||
36 | .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT, | ||
37 | }, | ||
38 | { } | ||
39 | }; | ||
40 | |||
41 | static struct omap_hwmod_addr_space omap2xxx_uart3_addr_space[] = { | ||
42 | { | ||
43 | .pa_start = OMAP2_UART3_BASE, | ||
44 | .pa_end = OMAP2_UART3_BASE + SZ_1K - 1, | ||
45 | .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT, | ||
46 | }, | ||
47 | { } | ||
48 | }; | ||
49 | |||
50 | static struct omap_hwmod_addr_space omap2xxx_timer2_addrs[] = { | ||
51 | { | ||
52 | .pa_start = 0x4802a000, | ||
53 | .pa_end = 0x4802a000 + SZ_1K - 1, | ||
54 | .flags = ADDR_TYPE_RT | ||
55 | }, | ||
56 | { } | ||
57 | }; | ||
58 | |||
59 | static struct omap_hwmod_addr_space omap2xxx_timer3_addrs[] = { | ||
60 | { | ||
61 | .pa_start = 0x48078000, | ||
62 | .pa_end = 0x48078000 + SZ_1K - 1, | ||
63 | .flags = ADDR_TYPE_RT | ||
64 | }, | ||
65 | { } | ||
66 | }; | ||
67 | |||
68 | static struct omap_hwmod_addr_space omap2xxx_timer4_addrs[] = { | ||
69 | { | ||
70 | .pa_start = 0x4807a000, | ||
71 | .pa_end = 0x4807a000 + SZ_1K - 1, | ||
72 | .flags = ADDR_TYPE_RT | ||
73 | }, | ||
74 | { } | ||
75 | }; | ||
76 | |||
77 | static struct omap_hwmod_addr_space omap2xxx_timer5_addrs[] = { | ||
78 | { | ||
79 | .pa_start = 0x4807c000, | ||
80 | .pa_end = 0x4807c000 + SZ_1K - 1, | ||
81 | .flags = ADDR_TYPE_RT | ||
82 | }, | ||
83 | { } | ||
84 | }; | ||
85 | |||
86 | static struct omap_hwmod_addr_space omap2xxx_timer6_addrs[] = { | ||
87 | { | ||
88 | .pa_start = 0x4807e000, | ||
89 | .pa_end = 0x4807e000 + SZ_1K - 1, | ||
90 | .flags = ADDR_TYPE_RT | ||
91 | }, | ||
92 | { } | ||
93 | }; | ||
94 | |||
95 | static struct omap_hwmod_addr_space omap2xxx_timer7_addrs[] = { | ||
96 | { | ||
97 | .pa_start = 0x48080000, | ||
98 | .pa_end = 0x48080000 + SZ_1K - 1, | ||
99 | .flags = ADDR_TYPE_RT | ||
100 | }, | ||
101 | { } | ||
102 | }; | ||
103 | |||
104 | static struct omap_hwmod_addr_space omap2xxx_timer8_addrs[] = { | ||
105 | { | ||
106 | .pa_start = 0x48082000, | ||
107 | .pa_end = 0x48082000 + SZ_1K - 1, | ||
108 | .flags = ADDR_TYPE_RT | ||
109 | }, | ||
110 | { } | ||
111 | }; | ||
112 | |||
113 | static struct omap_hwmod_addr_space omap2xxx_timer9_addrs[] = { | ||
114 | { | ||
115 | .pa_start = 0x48084000, | ||
116 | .pa_end = 0x48084000 + SZ_1K - 1, | ||
117 | .flags = ADDR_TYPE_RT | ||
118 | }, | ||
119 | { } | ||
120 | }; | ||
121 | |||
122 | struct omap_hwmod_addr_space omap2xxx_mcbsp2_addrs[] = { | ||
123 | { | ||
124 | .name = "mpu", | ||
125 | .pa_start = 0x48076000, | ||
126 | .pa_end = 0x480760ff, | ||
127 | .flags = ADDR_TYPE_RT | ||
128 | }, | ||
129 | { } | ||
130 | }; | ||
131 | |||
132 | static struct omap_hwmod_addr_space omap2_rng_addr_space[] = { | ||
133 | { | ||
134 | .pa_start = 0x480a0000, | ||
135 | .pa_end = 0x480a004f, | ||
136 | .flags = ADDR_TYPE_RT | ||
137 | }, | ||
138 | { } | ||
139 | }; | ||
140 | |||
141 | static struct omap_hwmod_addr_space omap2xxx_sham_addrs[] = { | ||
142 | { | ||
143 | .pa_start = 0x480a4000, | ||
144 | .pa_end = 0x480a4000 + 0x64 - 1, | ||
145 | .flags = ADDR_TYPE_RT | ||
146 | }, | ||
147 | { } | ||
148 | }; | ||
149 | |||
150 | static struct omap_hwmod_addr_space omap2xxx_aes_addrs[] = { | ||
151 | { | ||
152 | .pa_start = 0x480a6000, | ||
153 | .pa_end = 0x480a6000 + 0x50 - 1, | ||
154 | .flags = ADDR_TYPE_RT | ||
155 | }, | ||
156 | { } | ||
157 | }; | ||
158 | |||
159 | /* | 23 | /* |
160 | * Common interconnect data | 24 | * Common interconnect data |
161 | */ | 25 | */ |
@@ -182,7 +46,7 @@ struct omap_hwmod_ocp_if omap2xxx_dss__l3 = { | |||
182 | .omap2 = { | 46 | .omap2 = { |
183 | .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS, | 47 | .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS, |
184 | .flags = OMAP_FIREWALL_L3, | 48 | .flags = OMAP_FIREWALL_L3, |
185 | } | 49 | }, |
186 | }, | 50 | }, |
187 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 51 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
188 | }; | 52 | }; |
@@ -199,7 +63,6 @@ struct omap_hwmod_ocp_if omap2_l4_core__uart1 = { | |||
199 | .master = &omap2xxx_l4_core_hwmod, | 63 | .master = &omap2xxx_l4_core_hwmod, |
200 | .slave = &omap2xxx_uart1_hwmod, | 64 | .slave = &omap2xxx_uart1_hwmod, |
201 | .clk = "uart1_ick", | 65 | .clk = "uart1_ick", |
202 | .addr = omap2xxx_uart1_addr_space, | ||
203 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 66 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
204 | }; | 67 | }; |
205 | 68 | ||
@@ -208,7 +71,6 @@ struct omap_hwmod_ocp_if omap2_l4_core__uart2 = { | |||
208 | .master = &omap2xxx_l4_core_hwmod, | 71 | .master = &omap2xxx_l4_core_hwmod, |
209 | .slave = &omap2xxx_uart2_hwmod, | 72 | .slave = &omap2xxx_uart2_hwmod, |
210 | .clk = "uart2_ick", | 73 | .clk = "uart2_ick", |
211 | .addr = omap2xxx_uart2_addr_space, | ||
212 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 74 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
213 | }; | 75 | }; |
214 | 76 | ||
@@ -217,7 +79,6 @@ struct omap_hwmod_ocp_if omap2_l4_core__uart3 = { | |||
217 | .master = &omap2xxx_l4_core_hwmod, | 79 | .master = &omap2xxx_l4_core_hwmod, |
218 | .slave = &omap2xxx_uart3_hwmod, | 80 | .slave = &omap2xxx_uart3_hwmod, |
219 | .clk = "uart3_ick", | 81 | .clk = "uart3_ick", |
220 | .addr = omap2xxx_uart3_addr_space, | ||
221 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 82 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
222 | }; | 83 | }; |
223 | 84 | ||
@@ -226,7 +87,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi1 = { | |||
226 | .master = &omap2xxx_l4_core_hwmod, | 87 | .master = &omap2xxx_l4_core_hwmod, |
227 | .slave = &omap2xxx_mcspi1_hwmod, | 88 | .slave = &omap2xxx_mcspi1_hwmod, |
228 | .clk = "mcspi1_ick", | 89 | .clk = "mcspi1_ick", |
229 | .addr = omap2_mcspi1_addr_space, | ||
230 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 90 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
231 | }; | 91 | }; |
232 | 92 | ||
@@ -235,7 +95,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi2 = { | |||
235 | .master = &omap2xxx_l4_core_hwmod, | 95 | .master = &omap2xxx_l4_core_hwmod, |
236 | .slave = &omap2xxx_mcspi2_hwmod, | 96 | .slave = &omap2xxx_mcspi2_hwmod, |
237 | .clk = "mcspi2_ick", | 97 | .clk = "mcspi2_ick", |
238 | .addr = omap2_mcspi2_addr_space, | ||
239 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 98 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
240 | }; | 99 | }; |
241 | 100 | ||
@@ -244,7 +103,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer2 = { | |||
244 | .master = &omap2xxx_l4_core_hwmod, | 103 | .master = &omap2xxx_l4_core_hwmod, |
245 | .slave = &omap2xxx_timer2_hwmod, | 104 | .slave = &omap2xxx_timer2_hwmod, |
246 | .clk = "gpt2_ick", | 105 | .clk = "gpt2_ick", |
247 | .addr = omap2xxx_timer2_addrs, | ||
248 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 106 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
249 | }; | 107 | }; |
250 | 108 | ||
@@ -253,7 +111,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer3 = { | |||
253 | .master = &omap2xxx_l4_core_hwmod, | 111 | .master = &omap2xxx_l4_core_hwmod, |
254 | .slave = &omap2xxx_timer3_hwmod, | 112 | .slave = &omap2xxx_timer3_hwmod, |
255 | .clk = "gpt3_ick", | 113 | .clk = "gpt3_ick", |
256 | .addr = omap2xxx_timer3_addrs, | ||
257 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 114 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
258 | }; | 115 | }; |
259 | 116 | ||
@@ -262,7 +119,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer4 = { | |||
262 | .master = &omap2xxx_l4_core_hwmod, | 119 | .master = &omap2xxx_l4_core_hwmod, |
263 | .slave = &omap2xxx_timer4_hwmod, | 120 | .slave = &omap2xxx_timer4_hwmod, |
264 | .clk = "gpt4_ick", | 121 | .clk = "gpt4_ick", |
265 | .addr = omap2xxx_timer4_addrs, | ||
266 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 122 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
267 | }; | 123 | }; |
268 | 124 | ||
@@ -271,7 +127,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer5 = { | |||
271 | .master = &omap2xxx_l4_core_hwmod, | 127 | .master = &omap2xxx_l4_core_hwmod, |
272 | .slave = &omap2xxx_timer5_hwmod, | 128 | .slave = &omap2xxx_timer5_hwmod, |
273 | .clk = "gpt5_ick", | 129 | .clk = "gpt5_ick", |
274 | .addr = omap2xxx_timer5_addrs, | ||
275 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 130 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
276 | }; | 131 | }; |
277 | 132 | ||
@@ -280,7 +135,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer6 = { | |||
280 | .master = &omap2xxx_l4_core_hwmod, | 135 | .master = &omap2xxx_l4_core_hwmod, |
281 | .slave = &omap2xxx_timer6_hwmod, | 136 | .slave = &omap2xxx_timer6_hwmod, |
282 | .clk = "gpt6_ick", | 137 | .clk = "gpt6_ick", |
283 | .addr = omap2xxx_timer6_addrs, | ||
284 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 138 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
285 | }; | 139 | }; |
286 | 140 | ||
@@ -289,7 +143,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer7 = { | |||
289 | .master = &omap2xxx_l4_core_hwmod, | 143 | .master = &omap2xxx_l4_core_hwmod, |
290 | .slave = &omap2xxx_timer7_hwmod, | 144 | .slave = &omap2xxx_timer7_hwmod, |
291 | .clk = "gpt7_ick", | 145 | .clk = "gpt7_ick", |
292 | .addr = omap2xxx_timer7_addrs, | ||
293 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 146 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
294 | }; | 147 | }; |
295 | 148 | ||
@@ -298,7 +151,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer8 = { | |||
298 | .master = &omap2xxx_l4_core_hwmod, | 151 | .master = &omap2xxx_l4_core_hwmod, |
299 | .slave = &omap2xxx_timer8_hwmod, | 152 | .slave = &omap2xxx_timer8_hwmod, |
300 | .clk = "gpt8_ick", | 153 | .clk = "gpt8_ick", |
301 | .addr = omap2xxx_timer8_addrs, | ||
302 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 154 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
303 | }; | 155 | }; |
304 | 156 | ||
@@ -307,7 +159,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer9 = { | |||
307 | .master = &omap2xxx_l4_core_hwmod, | 159 | .master = &omap2xxx_l4_core_hwmod, |
308 | .slave = &omap2xxx_timer9_hwmod, | 160 | .slave = &omap2xxx_timer9_hwmod, |
309 | .clk = "gpt9_ick", | 161 | .clk = "gpt9_ick", |
310 | .addr = omap2xxx_timer9_addrs, | ||
311 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 162 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
312 | }; | 163 | }; |
313 | 164 | ||
@@ -316,7 +167,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer10 = { | |||
316 | .master = &omap2xxx_l4_core_hwmod, | 167 | .master = &omap2xxx_l4_core_hwmod, |
317 | .slave = &omap2xxx_timer10_hwmod, | 168 | .slave = &omap2xxx_timer10_hwmod, |
318 | .clk = "gpt10_ick", | 169 | .clk = "gpt10_ick", |
319 | .addr = omap2_timer10_addrs, | ||
320 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 170 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
321 | }; | 171 | }; |
322 | 172 | ||
@@ -325,7 +175,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer11 = { | |||
325 | .master = &omap2xxx_l4_core_hwmod, | 175 | .master = &omap2xxx_l4_core_hwmod, |
326 | .slave = &omap2xxx_timer11_hwmod, | 176 | .slave = &omap2xxx_timer11_hwmod, |
327 | .clk = "gpt11_ick", | 177 | .clk = "gpt11_ick", |
328 | .addr = omap2_timer11_addrs, | ||
329 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 178 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
330 | }; | 179 | }; |
331 | 180 | ||
@@ -334,7 +183,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__timer12 = { | |||
334 | .master = &omap2xxx_l4_core_hwmod, | 183 | .master = &omap2xxx_l4_core_hwmod, |
335 | .slave = &omap2xxx_timer12_hwmod, | 184 | .slave = &omap2xxx_timer12_hwmod, |
336 | .clk = "gpt12_ick", | 185 | .clk = "gpt12_ick", |
337 | .addr = omap2xxx_timer12_addrs, | ||
338 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 186 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
339 | }; | 187 | }; |
340 | 188 | ||
@@ -348,7 +196,7 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__dss = { | |||
348 | .omap2 = { | 196 | .omap2 = { |
349 | .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION, | 197 | .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION, |
350 | .flags = OMAP_FIREWALL_L4, | 198 | .flags = OMAP_FIREWALL_L4, |
351 | } | 199 | }, |
352 | }, | 200 | }, |
353 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 201 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
354 | }; | 202 | }; |
@@ -363,7 +211,7 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_dispc = { | |||
363 | .omap2 = { | 211 | .omap2 = { |
364 | .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_DISPC_REGION, | 212 | .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_DISPC_REGION, |
365 | .flags = OMAP_FIREWALL_L4, | 213 | .flags = OMAP_FIREWALL_L4, |
366 | } | 214 | }, |
367 | }, | 215 | }, |
368 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 216 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
369 | }; | 217 | }; |
@@ -378,7 +226,7 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_rfbi = { | |||
378 | .omap2 = { | 226 | .omap2 = { |
379 | .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION, | 227 | .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION, |
380 | .flags = OMAP_FIREWALL_L4, | 228 | .flags = OMAP_FIREWALL_L4, |
381 | } | 229 | }, |
382 | }, | 230 | }, |
383 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 231 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
384 | }; | 232 | }; |
@@ -393,7 +241,7 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_venc = { | |||
393 | .omap2 = { | 241 | .omap2 = { |
394 | .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_VENC_REGION, | 242 | .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_VENC_REGION, |
395 | .flags = OMAP_FIREWALL_L4, | 243 | .flags = OMAP_FIREWALL_L4, |
396 | } | 244 | }, |
397 | }, | 245 | }, |
398 | .flags = OCPIF_SWSUP_IDLE, | 246 | .flags = OCPIF_SWSUP_IDLE, |
399 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 247 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
@@ -404,7 +252,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__rng = { | |||
404 | .master = &omap2xxx_l4_core_hwmod, | 252 | .master = &omap2xxx_l4_core_hwmod, |
405 | .slave = &omap2xxx_rng_hwmod, | 253 | .slave = &omap2xxx_rng_hwmod, |
406 | .clk = "rng_ick", | 254 | .clk = "rng_ick", |
407 | .addr = omap2_rng_addr_space, | ||
408 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 255 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
409 | }; | 256 | }; |
410 | 257 | ||
@@ -413,7 +260,6 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__sham = { | |||
413 | .master = &omap2xxx_l4_core_hwmod, | 260 | .master = &omap2xxx_l4_core_hwmod, |
414 | .slave = &omap2xxx_sham_hwmod, | 261 | .slave = &omap2xxx_sham_hwmod, |
415 | .clk = "sha_ick", | 262 | .clk = "sha_ick", |
416 | .addr = omap2xxx_sham_addrs, | ||
417 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 263 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
418 | }; | 264 | }; |
419 | 265 | ||
@@ -422,6 +268,5 @@ struct omap_hwmod_ocp_if omap2xxx_l4_core__aes = { | |||
422 | .master = &omap2xxx_l4_core_hwmod, | 268 | .master = &omap2xxx_l4_core_hwmod, |
423 | .slave = &omap2xxx_aes_hwmod, | 269 | .slave = &omap2xxx_aes_hwmod, |
424 | .clk = "aes_ick", | 270 | .clk = "aes_ick", |
425 | .addr = omap2xxx_aes_addrs, | ||
426 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 271 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
427 | }; | 272 | }; |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c index d23c77fadb31..8821b9d6bae4 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | |||
@@ -20,14 +20,9 @@ | |||
20 | #include "prm-regbits-24xx.h" | 20 | #include "prm-regbits-24xx.h" |
21 | #include "wd_timer.h" | 21 | #include "wd_timer.h" |
22 | 22 | ||
23 | struct omap_hwmod_irq_info omap2xxx_timer12_mpu_irqs[] = { | ||
24 | { .irq = 48 + OMAP_INTC_START, }, | ||
25 | { .irq = -1 }, | ||
26 | }; | ||
27 | |||
28 | struct omap_hwmod_dma_info omap2xxx_dss_sdma_chs[] = { | 23 | struct omap_hwmod_dma_info omap2xxx_dss_sdma_chs[] = { |
29 | { .name = "dispc", .dma_req = 5 }, | 24 | { .name = "dispc", .dma_req = 5 }, |
30 | { .dma_req = -1 } | 25 | { .dma_req = -1, }, |
31 | }; | 26 | }; |
32 | 27 | ||
33 | /* | 28 | /* |
@@ -219,14 +214,8 @@ struct omap_hwmod omap2xxx_l4_wkup_hwmod = { | |||
219 | }; | 214 | }; |
220 | 215 | ||
221 | /* MPU */ | 216 | /* MPU */ |
222 | static struct omap_hwmod_irq_info omap2xxx_mpu_irqs[] = { | ||
223 | { .name = "pmu", .irq = 3 + OMAP_INTC_START }, | ||
224 | { .irq = -1 } | ||
225 | }; | ||
226 | |||
227 | struct omap_hwmod omap2xxx_mpu_hwmod = { | 217 | struct omap_hwmod omap2xxx_mpu_hwmod = { |
228 | .name = "mpu", | 218 | .name = "mpu", |
229 | .mpu_irqs = omap2xxx_mpu_irqs, | ||
230 | .class = &mpu_hwmod_class, | 219 | .class = &mpu_hwmod_class, |
231 | .main_clk = "mpu_ck", | 220 | .main_clk = "mpu_ck", |
232 | }; | 221 | }; |
@@ -256,7 +245,6 @@ static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = { | |||
256 | 245 | ||
257 | struct omap_hwmod omap2xxx_timer1_hwmod = { | 246 | struct omap_hwmod omap2xxx_timer1_hwmod = { |
258 | .name = "timer1", | 247 | .name = "timer1", |
259 | .mpu_irqs = omap2_timer1_mpu_irqs, | ||
260 | .main_clk = "gpt1_fck", | 248 | .main_clk = "gpt1_fck", |
261 | .prcm = { | 249 | .prcm = { |
262 | .omap2 = { | 250 | .omap2 = { |
@@ -276,7 +264,6 @@ struct omap_hwmod omap2xxx_timer1_hwmod = { | |||
276 | 264 | ||
277 | struct omap_hwmod omap2xxx_timer2_hwmod = { | 265 | struct omap_hwmod omap2xxx_timer2_hwmod = { |
278 | .name = "timer2", | 266 | .name = "timer2", |
279 | .mpu_irqs = omap2_timer2_mpu_irqs, | ||
280 | .main_clk = "gpt2_fck", | 267 | .main_clk = "gpt2_fck", |
281 | .prcm = { | 268 | .prcm = { |
282 | .omap2 = { | 269 | .omap2 = { |
@@ -295,7 +282,6 @@ struct omap_hwmod omap2xxx_timer2_hwmod = { | |||
295 | 282 | ||
296 | struct omap_hwmod omap2xxx_timer3_hwmod = { | 283 | struct omap_hwmod omap2xxx_timer3_hwmod = { |
297 | .name = "timer3", | 284 | .name = "timer3", |
298 | .mpu_irqs = omap2_timer3_mpu_irqs, | ||
299 | .main_clk = "gpt3_fck", | 285 | .main_clk = "gpt3_fck", |
300 | .prcm = { | 286 | .prcm = { |
301 | .omap2 = { | 287 | .omap2 = { |
@@ -314,7 +300,6 @@ struct omap_hwmod omap2xxx_timer3_hwmod = { | |||
314 | 300 | ||
315 | struct omap_hwmod omap2xxx_timer4_hwmod = { | 301 | struct omap_hwmod omap2xxx_timer4_hwmod = { |
316 | .name = "timer4", | 302 | .name = "timer4", |
317 | .mpu_irqs = omap2_timer4_mpu_irqs, | ||
318 | .main_clk = "gpt4_fck", | 303 | .main_clk = "gpt4_fck", |
319 | .prcm = { | 304 | .prcm = { |
320 | .omap2 = { | 305 | .omap2 = { |
@@ -333,7 +318,6 @@ struct omap_hwmod omap2xxx_timer4_hwmod = { | |||
333 | 318 | ||
334 | struct omap_hwmod omap2xxx_timer5_hwmod = { | 319 | struct omap_hwmod omap2xxx_timer5_hwmod = { |
335 | .name = "timer5", | 320 | .name = "timer5", |
336 | .mpu_irqs = omap2_timer5_mpu_irqs, | ||
337 | .main_clk = "gpt5_fck", | 321 | .main_clk = "gpt5_fck", |
338 | .prcm = { | 322 | .prcm = { |
339 | .omap2 = { | 323 | .omap2 = { |
@@ -353,7 +337,6 @@ struct omap_hwmod omap2xxx_timer5_hwmod = { | |||
353 | 337 | ||
354 | struct omap_hwmod omap2xxx_timer6_hwmod = { | 338 | struct omap_hwmod omap2xxx_timer6_hwmod = { |
355 | .name = "timer6", | 339 | .name = "timer6", |
356 | .mpu_irqs = omap2_timer6_mpu_irqs, | ||
357 | .main_clk = "gpt6_fck", | 340 | .main_clk = "gpt6_fck", |
358 | .prcm = { | 341 | .prcm = { |
359 | .omap2 = { | 342 | .omap2 = { |
@@ -373,7 +356,6 @@ struct omap_hwmod omap2xxx_timer6_hwmod = { | |||
373 | 356 | ||
374 | struct omap_hwmod omap2xxx_timer7_hwmod = { | 357 | struct omap_hwmod omap2xxx_timer7_hwmod = { |
375 | .name = "timer7", | 358 | .name = "timer7", |
376 | .mpu_irqs = omap2_timer7_mpu_irqs, | ||
377 | .main_clk = "gpt7_fck", | 359 | .main_clk = "gpt7_fck", |
378 | .prcm = { | 360 | .prcm = { |
379 | .omap2 = { | 361 | .omap2 = { |
@@ -393,7 +375,6 @@ struct omap_hwmod omap2xxx_timer7_hwmod = { | |||
393 | 375 | ||
394 | struct omap_hwmod omap2xxx_timer8_hwmod = { | 376 | struct omap_hwmod omap2xxx_timer8_hwmod = { |
395 | .name = "timer8", | 377 | .name = "timer8", |
396 | .mpu_irqs = omap2_timer8_mpu_irqs, | ||
397 | .main_clk = "gpt8_fck", | 378 | .main_clk = "gpt8_fck", |
398 | .prcm = { | 379 | .prcm = { |
399 | .omap2 = { | 380 | .omap2 = { |
@@ -413,7 +394,6 @@ struct omap_hwmod omap2xxx_timer8_hwmod = { | |||
413 | 394 | ||
414 | struct omap_hwmod omap2xxx_timer9_hwmod = { | 395 | struct omap_hwmod omap2xxx_timer9_hwmod = { |
415 | .name = "timer9", | 396 | .name = "timer9", |
416 | .mpu_irqs = omap2_timer9_mpu_irqs, | ||
417 | .main_clk = "gpt9_fck", | 397 | .main_clk = "gpt9_fck", |
418 | .prcm = { | 398 | .prcm = { |
419 | .omap2 = { | 399 | .omap2 = { |
@@ -433,7 +413,6 @@ struct omap_hwmod omap2xxx_timer9_hwmod = { | |||
433 | 413 | ||
434 | struct omap_hwmod omap2xxx_timer10_hwmod = { | 414 | struct omap_hwmod omap2xxx_timer10_hwmod = { |
435 | .name = "timer10", | 415 | .name = "timer10", |
436 | .mpu_irqs = omap2_timer10_mpu_irqs, | ||
437 | .main_clk = "gpt10_fck", | 416 | .main_clk = "gpt10_fck", |
438 | .prcm = { | 417 | .prcm = { |
439 | .omap2 = { | 418 | .omap2 = { |
@@ -453,7 +432,6 @@ struct omap_hwmod omap2xxx_timer10_hwmod = { | |||
453 | 432 | ||
454 | struct omap_hwmod omap2xxx_timer11_hwmod = { | 433 | struct omap_hwmod omap2xxx_timer11_hwmod = { |
455 | .name = "timer11", | 434 | .name = "timer11", |
456 | .mpu_irqs = omap2_timer11_mpu_irqs, | ||
457 | .main_clk = "gpt11_fck", | 435 | .main_clk = "gpt11_fck", |
458 | .prcm = { | 436 | .prcm = { |
459 | .omap2 = { | 437 | .omap2 = { |
@@ -473,7 +451,6 @@ struct omap_hwmod omap2xxx_timer11_hwmod = { | |||
473 | 451 | ||
474 | struct omap_hwmod omap2xxx_timer12_hwmod = { | 452 | struct omap_hwmod omap2xxx_timer12_hwmod = { |
475 | .name = "timer12", | 453 | .name = "timer12", |
476 | .mpu_irqs = omap2xxx_timer12_mpu_irqs, | ||
477 | .main_clk = "gpt12_fck", | 454 | .main_clk = "gpt12_fck", |
478 | .prcm = { | 455 | .prcm = { |
479 | .omap2 = { | 456 | .omap2 = { |
@@ -509,8 +486,6 @@ struct omap_hwmod omap2xxx_wd_timer2_hwmod = { | |||
509 | 486 | ||
510 | struct omap_hwmod omap2xxx_uart1_hwmod = { | 487 | struct omap_hwmod omap2xxx_uart1_hwmod = { |
511 | .name = "uart1", | 488 | .name = "uart1", |
512 | .mpu_irqs = omap2_uart1_mpu_irqs, | ||
513 | .sdma_reqs = omap2_uart1_sdma_reqs, | ||
514 | .main_clk = "uart1_fck", | 489 | .main_clk = "uart1_fck", |
515 | .flags = DEBUG_OMAP2UART1_FLAGS | HWMOD_SWSUP_SIDLE_ACT, | 490 | .flags = DEBUG_OMAP2UART1_FLAGS | HWMOD_SWSUP_SIDLE_ACT, |
516 | .prcm = { | 491 | .prcm = { |
@@ -529,8 +504,6 @@ struct omap_hwmod omap2xxx_uart1_hwmod = { | |||
529 | 504 | ||
530 | struct omap_hwmod omap2xxx_uart2_hwmod = { | 505 | struct omap_hwmod omap2xxx_uart2_hwmod = { |
531 | .name = "uart2", | 506 | .name = "uart2", |
532 | .mpu_irqs = omap2_uart2_mpu_irqs, | ||
533 | .sdma_reqs = omap2_uart2_sdma_reqs, | ||
534 | .main_clk = "uart2_fck", | 507 | .main_clk = "uart2_fck", |
535 | .flags = DEBUG_OMAP2UART2_FLAGS | HWMOD_SWSUP_SIDLE_ACT, | 508 | .flags = DEBUG_OMAP2UART2_FLAGS | HWMOD_SWSUP_SIDLE_ACT, |
536 | .prcm = { | 509 | .prcm = { |
@@ -549,8 +522,6 @@ struct omap_hwmod omap2xxx_uart2_hwmod = { | |||
549 | 522 | ||
550 | struct omap_hwmod omap2xxx_uart3_hwmod = { | 523 | struct omap_hwmod omap2xxx_uart3_hwmod = { |
551 | .name = "uart3", | 524 | .name = "uart3", |
552 | .mpu_irqs = omap2_uart3_mpu_irqs, | ||
553 | .sdma_reqs = omap2_uart3_sdma_reqs, | ||
554 | .main_clk = "uart3_fck", | 525 | .main_clk = "uart3_fck", |
555 | .flags = DEBUG_OMAP2UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT, | 526 | .flags = DEBUG_OMAP2UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT, |
556 | .prcm = { | 527 | .prcm = { |
@@ -610,7 +581,7 @@ struct omap_hwmod omap2xxx_dss_dispc_hwmod = { | |||
610 | }, | 581 | }, |
611 | }, | 582 | }, |
612 | .flags = HWMOD_NO_IDLEST, | 583 | .flags = HWMOD_NO_IDLEST, |
613 | .dev_attr = &omap2_3_dss_dispc_dev_attr | 584 | .dev_attr = &omap2_3_dss_dispc_dev_attr, |
614 | }; | 585 | }; |
615 | 586 | ||
616 | static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = { | 587 | static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = { |
@@ -657,7 +628,6 @@ struct omap_gpio_dev_attr omap2xxx_gpio_dev_attr = { | |||
657 | struct omap_hwmod omap2xxx_gpio1_hwmod = { | 628 | struct omap_hwmod omap2xxx_gpio1_hwmod = { |
658 | .name = "gpio1", | 629 | .name = "gpio1", |
659 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, | 630 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
660 | .mpu_irqs = omap2_gpio1_irqs, | ||
661 | .main_clk = "gpios_fck", | 631 | .main_clk = "gpios_fck", |
662 | .prcm = { | 632 | .prcm = { |
663 | .omap2 = { | 633 | .omap2 = { |
@@ -676,7 +646,6 @@ struct omap_hwmod omap2xxx_gpio1_hwmod = { | |||
676 | struct omap_hwmod omap2xxx_gpio2_hwmod = { | 646 | struct omap_hwmod omap2xxx_gpio2_hwmod = { |
677 | .name = "gpio2", | 647 | .name = "gpio2", |
678 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, | 648 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
679 | .mpu_irqs = omap2_gpio2_irqs, | ||
680 | .main_clk = "gpios_fck", | 649 | .main_clk = "gpios_fck", |
681 | .prcm = { | 650 | .prcm = { |
682 | .omap2 = { | 651 | .omap2 = { |
@@ -695,7 +664,6 @@ struct omap_hwmod omap2xxx_gpio2_hwmod = { | |||
695 | struct omap_hwmod omap2xxx_gpio3_hwmod = { | 664 | struct omap_hwmod omap2xxx_gpio3_hwmod = { |
696 | .name = "gpio3", | 665 | .name = "gpio3", |
697 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, | 666 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
698 | .mpu_irqs = omap2_gpio3_irqs, | ||
699 | .main_clk = "gpios_fck", | 667 | .main_clk = "gpios_fck", |
700 | .prcm = { | 668 | .prcm = { |
701 | .omap2 = { | 669 | .omap2 = { |
@@ -714,7 +682,6 @@ struct omap_hwmod omap2xxx_gpio3_hwmod = { | |||
714 | struct omap_hwmod omap2xxx_gpio4_hwmod = { | 682 | struct omap_hwmod omap2xxx_gpio4_hwmod = { |
715 | .name = "gpio4", | 683 | .name = "gpio4", |
716 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, | 684 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
717 | .mpu_irqs = omap2_gpio4_irqs, | ||
718 | .main_clk = "gpios_fck", | 685 | .main_clk = "gpios_fck", |
719 | .prcm = { | 686 | .prcm = { |
720 | .omap2 = { | 687 | .omap2 = { |
@@ -736,8 +703,6 @@ static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = { | |||
736 | 703 | ||
737 | struct omap_hwmod omap2xxx_mcspi1_hwmod = { | 704 | struct omap_hwmod omap2xxx_mcspi1_hwmod = { |
738 | .name = "mcspi1", | 705 | .name = "mcspi1", |
739 | .mpu_irqs = omap2_mcspi1_mpu_irqs, | ||
740 | .sdma_reqs = omap2_mcspi1_sdma_reqs, | ||
741 | .main_clk = "mcspi1_fck", | 706 | .main_clk = "mcspi1_fck", |
742 | .prcm = { | 707 | .prcm = { |
743 | .omap2 = { | 708 | .omap2 = { |
@@ -759,8 +724,6 @@ static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = { | |||
759 | 724 | ||
760 | struct omap_hwmod omap2xxx_mcspi2_hwmod = { | 725 | struct omap_hwmod omap2xxx_mcspi2_hwmod = { |
761 | .name = "mcspi2", | 726 | .name = "mcspi2", |
762 | .mpu_irqs = omap2_mcspi2_mpu_irqs, | ||
763 | .sdma_reqs = omap2_mcspi2_sdma_reqs, | ||
764 | .main_clk = "mcspi2_fck", | 727 | .main_clk = "mcspi2_fck", |
765 | .prcm = { | 728 | .prcm = { |
766 | .omap2 = { | 729 | .omap2 = { |
@@ -795,15 +758,9 @@ struct omap_hwmod omap2xxx_counter_32k_hwmod = { | |||
795 | }; | 758 | }; |
796 | 759 | ||
797 | /* gpmc */ | 760 | /* gpmc */ |
798 | static struct omap_hwmod_irq_info omap2xxx_gpmc_irqs[] = { | ||
799 | { .irq = 20 + OMAP_INTC_START, }, | ||
800 | { .irq = -1 } | ||
801 | }; | ||
802 | |||
803 | struct omap_hwmod omap2xxx_gpmc_hwmod = { | 761 | struct omap_hwmod omap2xxx_gpmc_hwmod = { |
804 | .name = "gpmc", | 762 | .name = "gpmc", |
805 | .class = &omap2xxx_gpmc_hwmod_class, | 763 | .class = &omap2xxx_gpmc_hwmod_class, |
806 | .mpu_irqs = omap2xxx_gpmc_irqs, | ||
807 | .main_clk = "gpmc_fck", | 764 | .main_clk = "gpmc_fck", |
808 | /* | 765 | /* |
809 | * XXX HWMOD_INIT_NO_RESET should not be needed for this IP | 766 | * XXX HWMOD_INIT_NO_RESET should not be needed for this IP |
@@ -840,14 +797,8 @@ static struct omap_hwmod_class omap2_rng_hwmod_class = { | |||
840 | .sysc = &omap2_rng_sysc, | 797 | .sysc = &omap2_rng_sysc, |
841 | }; | 798 | }; |
842 | 799 | ||
843 | static struct omap_hwmod_irq_info omap2_rng_mpu_irqs[] = { | ||
844 | { .irq = 52 + OMAP_INTC_START, }, | ||
845 | { .irq = -1 } | ||
846 | }; | ||
847 | |||
848 | struct omap_hwmod omap2xxx_rng_hwmod = { | 800 | struct omap_hwmod omap2xxx_rng_hwmod = { |
849 | .name = "rng", | 801 | .name = "rng", |
850 | .mpu_irqs = omap2_rng_mpu_irqs, | ||
851 | .main_clk = "l4_ck", | 802 | .main_clk = "l4_ck", |
852 | .prcm = { | 803 | .prcm = { |
853 | .omap2 = { | 804 | .omap2 = { |
@@ -884,20 +835,8 @@ static struct omap_hwmod_class omap2xxx_sham_class = { | |||
884 | .sysc = &omap2_sham_sysc, | 835 | .sysc = &omap2_sham_sysc, |
885 | }; | 836 | }; |
886 | 837 | ||
887 | static struct omap_hwmod_irq_info omap2_sham_mpu_irqs[] = { | ||
888 | { .irq = 51 + OMAP_INTC_START, }, | ||
889 | { .irq = -1 } | ||
890 | }; | ||
891 | |||
892 | static struct omap_hwmod_dma_info omap2_sham_sdma_chs[] = { | ||
893 | { .name = "rx", .dma_req = 13 }, | ||
894 | { .dma_req = -1 } | ||
895 | }; | ||
896 | |||
897 | struct omap_hwmod omap2xxx_sham_hwmod = { | 838 | struct omap_hwmod omap2xxx_sham_hwmod = { |
898 | .name = "sham", | 839 | .name = "sham", |
899 | .mpu_irqs = omap2_sham_mpu_irqs, | ||
900 | .sdma_reqs = omap2_sham_sdma_chs, | ||
901 | .main_clk = "l4_ck", | 840 | .main_clk = "l4_ck", |
902 | .prcm = { | 841 | .prcm = { |
903 | .omap2 = { | 842 | .omap2 = { |
@@ -927,15 +866,8 @@ static struct omap_hwmod_class omap2xxx_aes_class = { | |||
927 | .sysc = &omap2_aes_sysc, | 866 | .sysc = &omap2_aes_sysc, |
928 | }; | 867 | }; |
929 | 868 | ||
930 | static struct omap_hwmod_dma_info omap2_aes_sdma_chs[] = { | ||
931 | { .name = "tx", .dma_req = 9 }, | ||
932 | { .name = "rx", .dma_req = 10 }, | ||
933 | { .dma_req = -1 } | ||
934 | }; | ||
935 | |||
936 | struct omap_hwmod omap2xxx_aes_hwmod = { | 869 | struct omap_hwmod omap2xxx_aes_hwmod = { |
937 | .name = "aes", | 870 | .name = "aes", |
938 | .sdma_reqs = omap2_aes_sdma_chs, | ||
939 | .main_clk = "l4_ck", | 871 | .main_clk = "l4_ck", |
940 | .prcm = { | 872 | .prcm = { |
941 | .omap2 = { | 873 | .omap2 = { |
diff --git a/arch/arm/mach-omap2/omap_hwmod_common_data.h b/arch/arm/mach-omap2/omap_hwmod_common_data.h index 6e04ff7065e1..2c38c6b0ee03 100644 --- a/arch/arm/mach-omap2/omap_hwmod_common_data.h +++ b/arch/arm/mach-omap2/omap_hwmod_common_data.h | |||
@@ -18,9 +18,6 @@ | |||
18 | #include "common.h" | 18 | #include "common.h" |
19 | #include "display.h" | 19 | #include "display.h" |
20 | 20 | ||
21 | /* Common address space across OMAP2xxx */ | ||
22 | extern struct omap_hwmod_addr_space omap2xxx_mcbsp2_addrs[]; | ||
23 | |||
24 | /* Common address space across OMAP2xxx/3xxx */ | 21 | /* Common address space across OMAP2xxx/3xxx */ |
25 | extern struct omap_hwmod_addr_space omap2_i2c1_addr_space[]; | 22 | extern struct omap_hwmod_addr_space omap2_i2c1_addr_space[]; |
26 | extern struct omap_hwmod_addr_space omap2_i2c2_addr_space[]; | 23 | extern struct omap_hwmod_addr_space omap2_i2c2_addr_space[]; |
@@ -41,8 +38,6 @@ extern struct omap_hwmod_addr_space omap2_mcbsp1_addrs[]; | |||
41 | extern struct omap_hwmod_addr_space omap2_hdq1w_addr_space[]; | 38 | extern struct omap_hwmod_addr_space omap2_hdq1w_addr_space[]; |
42 | 39 | ||
43 | /* Common IP block data across OMAP2xxx */ | 40 | /* Common IP block data across OMAP2xxx */ |
44 | extern struct omap_hwmod_irq_info omap2xxx_timer12_mpu_irqs[]; | ||
45 | extern struct omap_hwmod_dma_info omap2xxx_dss_sdma_chs[]; | ||
46 | extern struct omap_gpio_dev_attr omap2xxx_gpio_dev_attr; | 41 | extern struct omap_gpio_dev_attr omap2xxx_gpio_dev_attr; |
47 | extern struct omap_hwmod omap2xxx_l3_main_hwmod; | 42 | extern struct omap_hwmod omap2xxx_l3_main_hwmod; |
48 | extern struct omap_hwmod omap2xxx_l4_core_hwmod; | 43 | extern struct omap_hwmod omap2xxx_l4_core_hwmod; |
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 39f020c982e8..3d5b24dcd9a4 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c | |||
@@ -8,6 +8,7 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | #include <linux/clk.h> | 10 | #include <linux/clk.h> |
11 | #include <linux/davinci_emac.h> | ||
11 | #include <linux/gpio.h> | 12 | #include <linux/gpio.h> |
12 | #include <linux/init.h> | 13 | #include <linux/init.h> |
13 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
@@ -16,6 +17,7 @@ | |||
16 | 17 | ||
17 | #include <linux/platform_data/pinctrl-single.h> | 18 | #include <linux/platform_data/pinctrl-single.h> |
18 | 19 | ||
20 | #include "am35xx.h" | ||
19 | #include "common.h" | 21 | #include "common.h" |
20 | #include "common-board-devices.h" | 22 | #include "common-board-devices.h" |
21 | #include "dss-common.h" | 23 | #include "dss-common.h" |
@@ -26,6 +28,9 @@ struct pdata_init { | |||
26 | void (*fn)(void); | 28 | void (*fn)(void); |
27 | }; | 29 | }; |
28 | 30 | ||
31 | struct of_dev_auxdata omap_auxdata_lookup[]; | ||
32 | static struct twl4030_gpio_platform_data twl_gpio_auxdata; | ||
33 | |||
29 | /* | 34 | /* |
30 | * Create alias for USB host PHY clock. | 35 | * Create alias for USB host PHY clock. |
31 | * Remove this when clock phandle can be provided via DT | 36 | * Remove this when clock phandle can be provided via DT |
@@ -68,6 +73,15 @@ static inline void legacy_init_wl12xx(unsigned ref_clock, | |||
68 | } | 73 | } |
69 | #endif | 74 | #endif |
70 | 75 | ||
76 | #ifdef CONFIG_MACH_NOKIA_N8X0 | ||
77 | static void __init omap2420_n8x0_legacy_init(void) | ||
78 | { | ||
79 | omap_auxdata_lookup[0].platform_data = n8x0_legacy_init(); | ||
80 | } | ||
81 | #else | ||
82 | #define omap2420_n8x0_legacy_init NULL | ||
83 | #endif | ||
84 | |||
71 | #ifdef CONFIG_ARCH_OMAP3 | 85 | #ifdef CONFIG_ARCH_OMAP3 |
72 | static void __init hsmmc2_internal_input_clk(void) | 86 | static void __init hsmmc2_internal_input_clk(void) |
73 | { | 87 | { |
@@ -78,6 +92,33 @@ static void __init hsmmc2_internal_input_clk(void) | |||
78 | omap_ctrl_writel(reg, OMAP343X_CONTROL_DEVCONF1); | 92 | omap_ctrl_writel(reg, OMAP343X_CONTROL_DEVCONF1); |
79 | } | 93 | } |
80 | 94 | ||
95 | static int omap3_sbc_t3730_twl_callback(struct device *dev, | ||
96 | unsigned gpio, | ||
97 | unsigned ngpio) | ||
98 | { | ||
99 | int res; | ||
100 | |||
101 | res = gpio_request_one(gpio + 2, GPIOF_OUT_INIT_HIGH, | ||
102 | "wlan rst"); | ||
103 | if (res) | ||
104 | return res; | ||
105 | |||
106 | gpio_export(gpio, 0); | ||
107 | |||
108 | return 0; | ||
109 | } | ||
110 | |||
111 | static void __init omap3_sbc_t3730_twl_init(void) | ||
112 | { | ||
113 | twl_gpio_auxdata.setup = omap3_sbc_t3730_twl_callback; | ||
114 | } | ||
115 | |||
116 | static void __init omap3_sbc_t3730_legacy_init(void) | ||
117 | { | ||
118 | legacy_init_wl12xx(WL12XX_REFCLOCK_38, 0, 136); | ||
119 | omap_ads7846_init(1, 57, 0, NULL); | ||
120 | } | ||
121 | |||
81 | static void __init omap3_igep0020_legacy_init(void) | 122 | static void __init omap3_igep0020_legacy_init(void) |
82 | { | 123 | { |
83 | omap3_igep2_display_init_of(); | 124 | omap3_igep2_display_init_of(); |
@@ -92,6 +133,42 @@ static void __init omap3_zoom_legacy_init(void) | |||
92 | { | 133 | { |
93 | legacy_init_wl12xx(WL12XX_REFCLOCK_26, 0, 162); | 134 | legacy_init_wl12xx(WL12XX_REFCLOCK_26, 0, 162); |
94 | } | 135 | } |
136 | |||
137 | static void am35xx_enable_emac_int(void) | ||
138 | { | ||
139 | u32 v; | ||
140 | |||
141 | v = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); | ||
142 | v |= (AM35XX_CPGMAC_C0_RX_PULSE_CLR | AM35XX_CPGMAC_C0_TX_PULSE_CLR | | ||
143 | AM35XX_CPGMAC_C0_MISC_PULSE_CLR | AM35XX_CPGMAC_C0_RX_THRESH_CLR); | ||
144 | omap_ctrl_writel(v, AM35XX_CONTROL_LVL_INTR_CLEAR); | ||
145 | omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); /* OCP barrier */ | ||
146 | } | ||
147 | |||
148 | static void am35xx_disable_emac_int(void) | ||
149 | { | ||
150 | u32 v; | ||
151 | |||
152 | v = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); | ||
153 | v |= (AM35XX_CPGMAC_C0_RX_PULSE_CLR | AM35XX_CPGMAC_C0_TX_PULSE_CLR); | ||
154 | omap_ctrl_writel(v, AM35XX_CONTROL_LVL_INTR_CLEAR); | ||
155 | omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); /* OCP barrier */ | ||
156 | } | ||
157 | |||
158 | static struct emac_platform_data am35xx_emac_pdata = { | ||
159 | .interrupt_enable = am35xx_enable_emac_int, | ||
160 | .interrupt_disable = am35xx_disable_emac_int, | ||
161 | }; | ||
162 | |||
163 | static void __init am3517_evm_legacy_init(void) | ||
164 | { | ||
165 | u32 v; | ||
166 | |||
167 | v = omap_ctrl_readl(AM35XX_CONTROL_IP_SW_RESET); | ||
168 | v &= ~AM35XX_CPGMACSS_SW_RST; | ||
169 | omap_ctrl_writel(v, AM35XX_CONTROL_IP_SW_RESET); | ||
170 | omap_ctrl_readl(AM35XX_CONTROL_IP_SW_RESET); /* OCP barrier */ | ||
171 | } | ||
95 | #endif /* CONFIG_ARCH_OMAP3 */ | 172 | #endif /* CONFIG_ARCH_OMAP3 */ |
96 | 173 | ||
97 | #ifdef CONFIG_ARCH_OMAP4 | 174 | #ifdef CONFIG_ARCH_OMAP4 |
@@ -125,10 +202,48 @@ void omap_pcs_legacy_init(int irq, void (*rearm)(void)) | |||
125 | pcs_pdata.rearm = rearm; | 202 | pcs_pdata.rearm = rearm; |
126 | } | 203 | } |
127 | 204 | ||
205 | /* | ||
206 | * GPIOs for TWL are initialized by the I2C bus and need custom | ||
207 | * handing until DSS has device tree bindings. | ||
208 | */ | ||
209 | void omap_auxdata_legacy_init(struct device *dev) | ||
210 | { | ||
211 | if (dev->platform_data) | ||
212 | return; | ||
213 | |||
214 | if (strcmp("twl4030-gpio", dev_name(dev))) | ||
215 | return; | ||
216 | |||
217 | dev->platform_data = &twl_gpio_auxdata; | ||
218 | } | ||
219 | |||
220 | /* | ||
221 | * Few boards still need auxdata populated before we populate | ||
222 | * the dev entries in of_platform_populate(). | ||
223 | */ | ||
224 | static struct pdata_init auxdata_quirks[] __initdata = { | ||
225 | #ifdef CONFIG_SOC_OMAP2420 | ||
226 | { "nokia,n800", omap2420_n8x0_legacy_init, }, | ||
227 | { "nokia,n810", omap2420_n8x0_legacy_init, }, | ||
228 | { "nokia,n810-wimax", omap2420_n8x0_legacy_init, }, | ||
229 | #endif | ||
230 | #ifdef CONFIG_ARCH_OMAP3 | ||
231 | { "compulab,omap3-sbc-t3730", omap3_sbc_t3730_twl_init, }, | ||
232 | #endif | ||
233 | { /* sentinel */ }, | ||
234 | }; | ||
235 | |||
128 | struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { | 236 | struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { |
237 | #ifdef CONFIG_MACH_NOKIA_N8X0 | ||
238 | OF_DEV_AUXDATA("ti,omap2420-mmc", 0x4809c000, "mmci-omap.0", NULL), | ||
239 | #endif | ||
129 | #ifdef CONFIG_ARCH_OMAP3 | 240 | #ifdef CONFIG_ARCH_OMAP3 |
130 | OF_DEV_AUXDATA("ti,omap3-padconf", 0x48002030, "48002030.pinmux", &pcs_pdata), | 241 | OF_DEV_AUXDATA("ti,omap3-padconf", 0x48002030, "48002030.pinmux", &pcs_pdata), |
131 | OF_DEV_AUXDATA("ti,omap3-padconf", 0x48002a00, "48002a00.pinmux", &pcs_pdata), | 242 | OF_DEV_AUXDATA("ti,omap3-padconf", 0x48002a00, "48002a00.pinmux", &pcs_pdata), |
243 | /* Only on am3517 */ | ||
244 | OF_DEV_AUXDATA("ti,davinci_mdio", 0x5c030000, "davinci_mdio.0", NULL), | ||
245 | OF_DEV_AUXDATA("ti,am3517-emac", 0x5c000000, "davinci_emac.0", | ||
246 | &am35xx_emac_pdata), | ||
132 | #endif | 247 | #endif |
133 | #ifdef CONFIG_ARCH_OMAP4 | 248 | #ifdef CONFIG_ARCH_OMAP4 |
134 | OF_DEV_AUXDATA("ti,omap4-padconf", 0x4a100040, "4a100040.pinmux", &pcs_pdata), | 249 | OF_DEV_AUXDATA("ti,omap4-padconf", 0x4a100040, "4a100040.pinmux", &pcs_pdata), |
@@ -137,14 +252,20 @@ struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { | |||
137 | { /* sentinel */ }, | 252 | { /* sentinel */ }, |
138 | }; | 253 | }; |
139 | 254 | ||
255 | /* | ||
256 | * Few boards still need to initialize some legacy devices with | ||
257 | * platform data until the drivers support device tree. | ||
258 | */ | ||
140 | static struct pdata_init pdata_quirks[] __initdata = { | 259 | static struct pdata_init pdata_quirks[] __initdata = { |
141 | #ifdef CONFIG_ARCH_OMAP3 | 260 | #ifdef CONFIG_ARCH_OMAP3 |
261 | { "compulab,omap3-sbc-t3730", omap3_sbc_t3730_legacy_init, }, | ||
142 | { "nokia,omap3-n900", hsmmc2_internal_input_clk, }, | 262 | { "nokia,omap3-n900", hsmmc2_internal_input_clk, }, |
143 | { "nokia,omap3-n9", hsmmc2_internal_input_clk, }, | 263 | { "nokia,omap3-n9", hsmmc2_internal_input_clk, }, |
144 | { "nokia,omap3-n950", hsmmc2_internal_input_clk, }, | 264 | { "nokia,omap3-n950", hsmmc2_internal_input_clk, }, |
145 | { "isee,omap3-igep0020", omap3_igep0020_legacy_init, }, | 265 | { "isee,omap3-igep0020", omap3_igep0020_legacy_init, }, |
146 | { "ti,omap3-evm-37xx", omap3_evm_legacy_init, }, | 266 | { "ti,omap3-evm-37xx", omap3_evm_legacy_init, }, |
147 | { "ti,omap3-zoom3", omap3_zoom_legacy_init, }, | 267 | { "ti,omap3-zoom3", omap3_zoom_legacy_init, }, |
268 | { "ti,am3517-evm", am3517_evm_legacy_init, }, | ||
148 | #endif | 269 | #endif |
149 | #ifdef CONFIG_ARCH_OMAP4 | 270 | #ifdef CONFIG_ARCH_OMAP4 |
150 | { "ti,omap4-sdp", omap4_sdp_legacy_init, }, | 271 | { "ti,omap4-sdp", omap4_sdp_legacy_init, }, |
@@ -156,14 +277,8 @@ static struct pdata_init pdata_quirks[] __initdata = { | |||
156 | { /* sentinel */ }, | 277 | { /* sentinel */ }, |
157 | }; | 278 | }; |
158 | 279 | ||
159 | void __init pdata_quirks_init(struct of_device_id *omap_dt_match_table) | 280 | static void pdata_quirks_check(struct pdata_init *quirks) |
160 | { | 281 | { |
161 | struct pdata_init *quirks = pdata_quirks; | ||
162 | |||
163 | omap_sdrc_init(NULL, NULL); | ||
164 | of_platform_populate(NULL, omap_dt_match_table, | ||
165 | omap_auxdata_lookup, NULL); | ||
166 | |||
167 | while (quirks->compatible) { | 282 | while (quirks->compatible) { |
168 | if (of_machine_is_compatible(quirks->compatible)) { | 283 | if (of_machine_is_compatible(quirks->compatible)) { |
169 | if (quirks->fn) | 284 | if (quirks->fn) |
@@ -173,3 +288,12 @@ void __init pdata_quirks_init(struct of_device_id *omap_dt_match_table) | |||
173 | quirks++; | 288 | quirks++; |
174 | } | 289 | } |
175 | } | 290 | } |
291 | |||
292 | void __init pdata_quirks_init(struct of_device_id *omap_dt_match_table) | ||
293 | { | ||
294 | omap_sdrc_init(NULL, NULL); | ||
295 | pdata_quirks_check(auxdata_quirks); | ||
296 | of_platform_populate(NULL, omap_dt_match_table, | ||
297 | omap_auxdata_lookup, NULL); | ||
298 | pdata_quirks_check(pdata_quirks); | ||
299 | } | ||
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 8c8889211f6d..338640631e08 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig | |||
@@ -2,7 +2,7 @@ config ARCH_SHMOBILE | |||
2 | bool | 2 | bool |
3 | 3 | ||
4 | config ARCH_SHMOBILE_MULTI | 4 | config ARCH_SHMOBILE_MULTI |
5 | bool "SH-Mobile Series" if ARCH_MULTI_V7 | 5 | bool "Renesas ARM SoCs" if ARCH_MULTI_V7 |
6 | depends on MMU | 6 | depends on MMU |
7 | select ARCH_SHMOBILE | 7 | select ARCH_SHMOBILE |
8 | select CPU_V7 | 8 | select CPU_V7 |
@@ -20,24 +20,47 @@ config ARCH_SHMOBILE_MULTI | |||
20 | 20 | ||
21 | if ARCH_SHMOBILE_MULTI | 21 | if ARCH_SHMOBILE_MULTI |
22 | 22 | ||
23 | comment "SH-Mobile System Type" | 23 | comment "Renesas ARM SoCs System Type" |
24 | 24 | ||
25 | config ARCH_EMEV2 | 25 | config ARCH_EMEV2 |
26 | bool "Emma Mobile EV2" | 26 | bool "Emma Mobile EV2" |
27 | 27 | ||
28 | comment "SH-Mobile Board Type" | 28 | config ARCH_R7S72100 |
29 | bool "RZ/A1H (R7S72100)" | ||
30 | |||
31 | config ARCH_R8A7790 | ||
32 | bool "R-Car H2 (R8A77900)" | ||
33 | select RENESAS_IRQC | ||
34 | |||
35 | config ARCH_R8A7791 | ||
36 | bool "R-Car M2 (R8A77910)" | ||
37 | select RENESAS_IRQC | ||
38 | |||
39 | comment "Renesas ARM SoCs Board Type" | ||
40 | |||
41 | config MACH_GENMAI | ||
42 | bool "Genmai board" | ||
43 | depends on ARCH_R7S72100 | ||
44 | |||
45 | config MACH_KOELSCH | ||
46 | bool "Koelsch board" | ||
47 | depends on ARCH_R8A7791 | ||
29 | 48 | ||
30 | config MACH_KZM9D | 49 | config MACH_KZM9D |
31 | bool "KZM9D board" | 50 | bool "KZM9D board" |
32 | depends on ARCH_EMEV2 | 51 | depends on ARCH_EMEV2 |
33 | select REGULATOR_FIXED_VOLTAGE if REGULATOR | 52 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
34 | 53 | ||
35 | comment "SH-Mobile System Configuration" | 54 | config MACH_LAGER |
55 | bool "Lager board" | ||
56 | depends on ARCH_R8A7790 | ||
57 | |||
58 | comment "Renesas ARM SoCs System Configuration" | ||
36 | endif | 59 | endif |
37 | 60 | ||
38 | if ARCH_SHMOBILE_LEGACY | 61 | if ARCH_SHMOBILE_LEGACY |
39 | 62 | ||
40 | comment "SH-Mobile System Type" | 63 | comment "Renesas ARM SoCs System Type" |
41 | 64 | ||
42 | config ARCH_SH7372 | 65 | config ARCH_SH7372 |
43 | bool "SH-Mobile AP4 (SH7372)" | 66 | bool "SH-Mobile AP4 (SH7372)" |
@@ -126,7 +149,7 @@ config ARCH_R7S72100 | |||
126 | select CPU_V7 | 149 | select CPU_V7 |
127 | select SH_CLK_CPG | 150 | select SH_CLK_CPG |
128 | 151 | ||
129 | comment "SH-Mobile Board Type" | 152 | comment "Renesas ARM SoCs Board Type" |
130 | 153 | ||
131 | config MACH_APE6EVM | 154 | config MACH_APE6EVM |
132 | bool "APE6EVM board" | 155 | bool "APE6EVM board" |
@@ -203,6 +226,17 @@ config MACH_GENMAI | |||
203 | depends on ARCH_R7S72100 | 226 | depends on ARCH_R7S72100 |
204 | select USE_OF | 227 | select USE_OF |
205 | 228 | ||
229 | config MACH_GENMAI_REFERENCE | ||
230 | bool "Genmai board - Reference Device Tree Implementation" | ||
231 | depends on ARCH_R7S72100 | ||
232 | select USE_OF | ||
233 | ---help--- | ||
234 | Use reference implementation of Genmai board support | ||
235 | which makes use of device tree at the expense | ||
236 | of not supporting a number of devices. | ||
237 | |||
238 | This is intended to aid developers | ||
239 | |||
206 | config MACH_MARZEN | 240 | config MACH_MARZEN |
207 | bool "MARZEN board" | 241 | bool "MARZEN board" |
208 | depends on ARCH_R8A7779 | 242 | depends on ARCH_R8A7779 |
@@ -228,17 +262,6 @@ config MACH_LAGER | |||
228 | depends on ARCH_R8A7790 | 262 | depends on ARCH_R8A7790 |
229 | select USE_OF | 263 | select USE_OF |
230 | 264 | ||
231 | config MACH_LAGER_REFERENCE | ||
232 | bool "Lager board - Reference Device Tree Implementation" | ||
233 | depends on ARCH_R8A7790 | ||
234 | select USE_OF | ||
235 | ---help--- | ||
236 | Use reference implementation of Lager board support | ||
237 | which makes use of device tree at the expense | ||
238 | of not supporting a number of devices. | ||
239 | |||
240 | This is intended to aid developers | ||
241 | |||
242 | config MACH_KOELSCH | 265 | config MACH_KOELSCH |
243 | bool "Koelsch board" | 266 | bool "Koelsch board" |
244 | depends on ARCH_R8A7791 | 267 | depends on ARCH_R8A7791 |
@@ -269,7 +292,7 @@ config MACH_KZM9G_REFERENCE | |||
269 | 292 | ||
270 | This is intended to aid developers | 293 | This is intended to aid developers |
271 | 294 | ||
272 | comment "SH-Mobile System Configuration" | 295 | comment "Renesas ARM SoCs System Configuration" |
273 | 296 | ||
274 | config CPU_HAS_INTEVT | 297 | config CPU_HAS_INTEVT |
275 | bool | 298 | bool |
@@ -294,8 +317,8 @@ config SHMOBILE_TIMER_HZ | |||
294 | Allows the configuration of the timer frequency. It is customary | 317 | Allows the configuration of the timer frequency. It is customary |
295 | to have the timer interrupt run at 1000 Hz or 100 Hz, but in the | 318 | to have the timer interrupt run at 1000 Hz or 100 Hz, but in the |
296 | case of low timer frequencies other values may be more suitable. | 319 | case of low timer frequencies other values may be more suitable. |
297 | SH-Mobile systems using a 32768 Hz RCLK for clock events may want | 320 | Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may |
298 | to select a HZ value such as 128 that can evenly divide RCLK. | 321 | want to select a HZ value such as 128 that can evenly divide RCLK. |
299 | A HZ value that does not divide evenly may cause timer drift. | 322 | A HZ value that does not divide evenly may cause timer drift. |
300 | 323 | ||
301 | config SH_TIMER_CMT | 324 | config SH_TIMER_CMT |
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index c7e877499dc2..fe7d4ff706e4 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile | |||
@@ -56,7 +56,10 @@ obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o | |||
56 | 56 | ||
57 | # Board objects | 57 | # Board objects |
58 | ifdef CONFIG_ARCH_SHMOBILE_MULTI | 58 | ifdef CONFIG_ARCH_SHMOBILE_MULTI |
59 | obj-$(CONFIG_MACH_GENMAI) += board-genmai-reference.o | ||
60 | obj-$(CONFIG_MACH_KOELSCH) += board-koelsch-reference.o | ||
59 | obj-$(CONFIG_MACH_KZM9D) += board-kzm9d-reference.o | 61 | obj-$(CONFIG_MACH_KZM9D) += board-kzm9d-reference.o |
62 | obj-$(CONFIG_MACH_LAGER) += board-lager-reference.o | ||
60 | else | 63 | else |
61 | obj-$(CONFIG_MACH_APE6EVM) += board-ape6evm.o | 64 | obj-$(CONFIG_MACH_APE6EVM) += board-ape6evm.o |
62 | obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o | 65 | obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o |
@@ -64,10 +67,10 @@ obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o | |||
64 | obj-$(CONFIG_MACH_BOCKW) += board-bockw.o | 67 | obj-$(CONFIG_MACH_BOCKW) += board-bockw.o |
65 | obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o | 68 | obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o |
66 | obj-$(CONFIG_MACH_GENMAI) += board-genmai.o | 69 | obj-$(CONFIG_MACH_GENMAI) += board-genmai.o |
70 | obj-$(CONFIG_MACH_GENMAI_REFERENCE) += board-genmai-reference.o | ||
67 | obj-$(CONFIG_MACH_MARZEN) += board-marzen.o | 71 | obj-$(CONFIG_MACH_MARZEN) += board-marzen.o |
68 | obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o | 72 | obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o |
69 | obj-$(CONFIG_MACH_LAGER) += board-lager.o | 73 | obj-$(CONFIG_MACH_LAGER) += board-lager.o |
70 | obj-$(CONFIG_MACH_LAGER_REFERENCE) += board-lager-reference.o | ||
71 | obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o | 74 | obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o |
72 | obj-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += board-armadillo800eva-reference.o | 75 | obj-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += board-armadillo800eva-reference.o |
73 | obj-$(CONFIG_MACH_KOELSCH) += board-koelsch.o | 76 | obj-$(CONFIG_MACH_KOELSCH) += board-koelsch.o |
diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot index 4f30e3dc0919..99455ecafa05 100644 --- a/arch/arm/mach-shmobile/Makefile.boot +++ b/arch/arm/mach-shmobile/Makefile.boot | |||
@@ -6,12 +6,12 @@ loadaddr-$(CONFIG_MACH_ARMADILLO800EVA) += 0x40008000 | |||
6 | loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000 | 6 | loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000 |
7 | loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 | 7 | loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 |
8 | loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 | 8 | loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 |
9 | loadaddr-$(CONFIG_MACH_GENMAI) += 0x8008000 | 9 | loadaddr-$(CONFIG_MACH_GENMAI) += 0x08008000 |
10 | loadaddr-$(CONFIG_MACH_GENMAI_REFERENCE) += 0x08008000 | ||
10 | loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 | 11 | loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 |
11 | loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 | 12 | loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 |
12 | loadaddr-$(CONFIG_MACH_KZM9G_REFERENCE) += 0x41008000 | 13 | loadaddr-$(CONFIG_MACH_KZM9G_REFERENCE) += 0x41008000 |
13 | loadaddr-$(CONFIG_MACH_LAGER) += 0x40008000 | 14 | loadaddr-$(CONFIG_MACH_LAGER) += 0x40008000 |
14 | loadaddr-$(CONFIG_MACH_LAGER_REFERENCE) += 0x40008000 | ||
15 | loadaddr-$(CONFIG_MACH_MACKEREL) += 0x40008000 | 15 | loadaddr-$(CONFIG_MACH_MACKEREL) += 0x40008000 |
16 | loadaddr-$(CONFIG_MACH_MARZEN) += 0x60008000 | 16 | loadaddr-$(CONFIG_MACH_MARZEN) += 0x60008000 |
17 | loadaddr-$(CONFIG_MACH_MARZEN_REFERENCE) += 0x60008000 | 17 | loadaddr-$(CONFIG_MACH_MARZEN_REFERENCE) += 0x60008000 |
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 8ea87bd45c33..93533e2710a8 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c | |||
@@ -423,7 +423,7 @@ static struct platform_pwm_backlight_data pwm_backlight_data = { | |||
423 | .max_brightness = 255, | 423 | .max_brightness = 255, |
424 | .dft_brightness = 255, | 424 | .dft_brightness = 255, |
425 | .pwm_period_ns = 33333, /* 30kHz */ | 425 | .pwm_period_ns = 33333, /* 30kHz */ |
426 | .enable_gpio = -1, | 426 | .enable_gpio = 61, |
427 | }; | 427 | }; |
428 | 428 | ||
429 | static struct platform_device pwm_backlight_device = { | 429 | static struct platform_device pwm_backlight_device = { |
@@ -963,7 +963,7 @@ static struct resource fsi_resources[] = { | |||
963 | [0] = { | 963 | [0] = { |
964 | .name = "FSI", | 964 | .name = "FSI", |
965 | .start = 0xfe1f0000, | 965 | .start = 0xfe1f0000, |
966 | .end = 0xfe1f8400 - 1, | 966 | .end = 0xfe1f0400 - 1, |
967 | .flags = IORESOURCE_MEM, | 967 | .flags = IORESOURCE_MEM, |
968 | }, | 968 | }, |
969 | [1] = { | 969 | [1] = { |
@@ -1210,9 +1210,6 @@ static void __init eva_init(void) | |||
1210 | r8a7740_pinmux_init(); | 1210 | r8a7740_pinmux_init(); |
1211 | r8a7740_meram_workaround(); | 1211 | r8a7740_meram_workaround(); |
1212 | 1212 | ||
1213 | /* LCDC0 */ | ||
1214 | gpio_request_one(61, GPIOF_OUT_INIT_HIGH, NULL); /* LCDDON */ | ||
1215 | |||
1216 | /* GETHER */ | 1213 | /* GETHER */ |
1217 | gpio_request_one(18, GPIOF_OUT_INIT_HIGH, NULL); /* PHY_RST */ | 1214 | gpio_request_one(18, GPIOF_OUT_INIT_HIGH, NULL); /* PHY_RST */ |
1218 | 1215 | ||
diff --git a/arch/arm/mach-shmobile/board-bockw-reference.c b/arch/arm/mach-shmobile/board-bockw-reference.c index 875cf3f3f503..027373f8de82 100644 --- a/arch/arm/mach-shmobile/board-bockw-reference.c +++ b/arch/arm/mach-shmobile/board-bockw-reference.c | |||
@@ -30,9 +30,13 @@ | |||
30 | #define FPGA 0x18200000 | 30 | #define FPGA 0x18200000 |
31 | #define IRQ0MR 0x30 | 31 | #define IRQ0MR 0x30 |
32 | #define COMCTLR 0x101c | 32 | #define COMCTLR 0x101c |
33 | |||
34 | #define PFC 0xfffc0000 | ||
35 | #define PUPR4 0x110 | ||
33 | static void __init bockw_init(void) | 36 | static void __init bockw_init(void) |
34 | { | 37 | { |
35 | static void __iomem *fpga; | 38 | void __iomem *fpga; |
39 | void __iomem *pfc; | ||
36 | 40 | ||
37 | r8a7778_clock_init(); | 41 | r8a7778_clock_init(); |
38 | r8a7778_init_irq_extpin_dt(1); | 42 | r8a7778_init_irq_extpin_dt(1); |
@@ -50,6 +54,19 @@ static void __init bockw_init(void) | |||
50 | u16 val = ioread16(fpga + IRQ0MR); | 54 | u16 val = ioread16(fpga + IRQ0MR); |
51 | val &= ~(1 << 4); /* enable SMSC911x */ | 55 | val &= ~(1 << 4); /* enable SMSC911x */ |
52 | iowrite16(val, fpga + IRQ0MR); | 56 | iowrite16(val, fpga + IRQ0MR); |
57 | |||
58 | iounmap(fpga); | ||
59 | } | ||
60 | |||
61 | pfc = ioremap_nocache(PFC, 0x200); | ||
62 | if (pfc) { | ||
63 | /* | ||
64 | * FIXME | ||
65 | * | ||
66 | * SDHI CD/WP pin needs pull-up | ||
67 | */ | ||
68 | iowrite32(ioread32(pfc + PUPR4) | (3 << 26), pfc + PUPR4); | ||
69 | iounmap(pfc); | ||
53 | } | 70 | } |
54 | 71 | ||
55 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 72 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 37c42dc7f1a8..c475220545f2 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c | |||
@@ -117,6 +117,11 @@ static struct regulator_consumer_supply dummy_supplies[] = { | |||
117 | REGULATOR_SUPPLY("vdd33a", "smsc911x"), | 117 | REGULATOR_SUPPLY("vdd33a", "smsc911x"), |
118 | }; | 118 | }; |
119 | 119 | ||
120 | static struct regulator_consumer_supply fixed3v3_power_consumers[] = { | ||
121 | REGULATOR_SUPPLY("vmmc", "sh_mmcif"), | ||
122 | REGULATOR_SUPPLY("vqmmc", "sh_mmcif"), | ||
123 | }; | ||
124 | |||
120 | static struct smsc911x_platform_config smsc911x_data __initdata = { | 125 | static struct smsc911x_platform_config smsc911x_data __initdata = { |
121 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | 126 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, |
122 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, | 127 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, |
@@ -272,7 +277,6 @@ static struct resource mmc_resources[] __initdata = { | |||
272 | 277 | ||
273 | static struct sh_mmcif_plat_data sh_mmcif_plat __initdata = { | 278 | static struct sh_mmcif_plat_data sh_mmcif_plat __initdata = { |
274 | .sup_pclk = 0, | 279 | .sup_pclk = 0, |
275 | .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, | ||
276 | .caps = MMC_CAP_4_BIT_DATA | | 280 | .caps = MMC_CAP_4_BIT_DATA | |
277 | MMC_CAP_8_BIT_DATA | | 281 | MMC_CAP_8_BIT_DATA | |
278 | MMC_CAP_NEEDS_POLL, | 282 | MMC_CAP_NEEDS_POLL, |
@@ -329,11 +333,11 @@ static struct rsnd_ssi_platform_info rsnd_ssi[] = { | |||
329 | RSND_SSI_UNUSED, /* SSI 1 */ | 333 | RSND_SSI_UNUSED, /* SSI 1 */ |
330 | RSND_SSI_UNUSED, /* SSI 2 */ | 334 | RSND_SSI_UNUSED, /* SSI 2 */ |
331 | RSND_SSI_SET(1, 0, gic_iid(0x85), RSND_SSI_PLAY), | 335 | RSND_SSI_SET(1, 0, gic_iid(0x85), RSND_SSI_PLAY), |
332 | RSND_SSI_SET(2, 0, gic_iid(0x85), RSND_SSI_CLK_PIN_SHARE | RSND_SSI_CLK_FROM_ADG), | 336 | RSND_SSI_SET(2, 0, gic_iid(0x85), RSND_SSI_CLK_PIN_SHARE), |
333 | RSND_SSI_SET(0, 0, gic_iid(0x86), RSND_SSI_PLAY), | 337 | RSND_SSI_SET(0, 0, gic_iid(0x86), RSND_SSI_PLAY), |
334 | RSND_SSI_SET(0, 0, gic_iid(0x86), 0), | 338 | RSND_SSI_SET(0, 0, gic_iid(0x86), 0), |
335 | RSND_SSI_SET(3, 0, gic_iid(0x86), RSND_SSI_PLAY), | 339 | RSND_SSI_SET(3, 0, gic_iid(0x86), RSND_SSI_PLAY), |
336 | RSND_SSI_SET(4, 0, gic_iid(0x86), RSND_SSI_CLK_PIN_SHARE | RSND_SSI_CLK_FROM_ADG), | 340 | RSND_SSI_SET(4, 0, gic_iid(0x86), RSND_SSI_CLK_PIN_SHARE), |
337 | }; | 341 | }; |
338 | 342 | ||
339 | static struct rsnd_scu_platform_info rsnd_scu[9] = { | 343 | static struct rsnd_scu_platform_info rsnd_scu[9] = { |
@@ -615,6 +619,10 @@ static void __init bockw_init(void) | |||
615 | &usb_phy_platform_data, | 619 | &usb_phy_platform_data, |
616 | sizeof(struct rcar_phy_platform_data)); | 620 | sizeof(struct rcar_phy_platform_data)); |
617 | 621 | ||
622 | regulator_register_fixed(0, dummy_supplies, | ||
623 | ARRAY_SIZE(dummy_supplies)); | ||
624 | regulator_register_always_on(1, "fixed-3.3V", fixed3v3_power_consumers, | ||
625 | ARRAY_SIZE(fixed3v3_power_consumers), 3300000); | ||
618 | 626 | ||
619 | /* for SMSC */ | 627 | /* for SMSC */ |
620 | fpga = ioremap_nocache(FPGA, SZ_1M); | 628 | fpga = ioremap_nocache(FPGA, SZ_1M); |
@@ -630,9 +638,6 @@ static void __init bockw_init(void) | |||
630 | val &= ~(1 << 4); /* enable SMSC911x */ | 638 | val &= ~(1 << 4); /* enable SMSC911x */ |
631 | iowrite16(val, fpga + IRQ0MR); | 639 | iowrite16(val, fpga + IRQ0MR); |
632 | 640 | ||
633 | regulator_register_fixed(0, dummy_supplies, | ||
634 | ARRAY_SIZE(dummy_supplies)); | ||
635 | |||
636 | platform_device_register_resndata( | 641 | platform_device_register_resndata( |
637 | &platform_bus, "smsc911x", -1, | 642 | &platform_bus, "smsc911x", -1, |
638 | smsc911x_resources, ARRAY_SIZE(smsc911x_resources), | 643 | smsc911x_resources, ARRAY_SIZE(smsc911x_resources), |
diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c new file mode 100644 index 000000000000..7630c1053e32 --- /dev/null +++ b/arch/arm/mach-shmobile/board-genmai-reference.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Genmai board support | ||
3 | * | ||
4 | * Copyright (C) 2013 Renesas Solutions Corp. | ||
5 | * Copyright (C) 2013 Magnus Damm | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; version 2 of the License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | |||
21 | #include <linux/clk-provider.h> | ||
22 | #include <linux/kernel.h> | ||
23 | #include <linux/of_platform.h> | ||
24 | #include <mach/common.h> | ||
25 | #include <mach/r7s72100.h> | ||
26 | #include <asm/mach-types.h> | ||
27 | #include <asm/mach/arch.h> | ||
28 | |||
29 | static void __init genmai_add_standard_devices(void) | ||
30 | { | ||
31 | #ifdef CONFIG_COMMON_CLK | ||
32 | of_clk_init(NULL); | ||
33 | #else | ||
34 | r7s72100_clock_init(); | ||
35 | #endif | ||
36 | r7s72100_add_dt_devices(); | ||
37 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
38 | } | ||
39 | |||
40 | static const char * const genmai_boards_compat_dt[] __initconst = { | ||
41 | "renesas,genmai-reference", | ||
42 | NULL, | ||
43 | }; | ||
44 | |||
45 | DT_MACHINE_START(GENMAI_DT, "genmai") | ||
46 | .init_early = r7s72100_init_early, | ||
47 | .init_machine = genmai_add_standard_devices, | ||
48 | .dt_compat = genmai_boards_compat_dt, | ||
49 | MACHINE_END | ||
diff --git a/arch/arm/mach-shmobile/board-koelsch-reference.c b/arch/arm/mach-shmobile/board-koelsch-reference.c new file mode 100644 index 000000000000..652b59268416 --- /dev/null +++ b/arch/arm/mach-shmobile/board-koelsch-reference.c | |||
@@ -0,0 +1,79 @@ | |||
1 | /* | ||
2 | * Koelsch board support - Reference DT implementation | ||
3 | * | ||
4 | * Copyright (C) 2013 Renesas Electronics Corporation | ||
5 | * Copyright (C) 2013 Renesas Solutions Corp. | ||
6 | * Copyright (C) 2013 Magnus Damm | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; version 2 of the License. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/clk.h> | ||
23 | #include <linux/clkdev.h> | ||
24 | #include <linux/kernel.h> | ||
25 | #include <linux/of_platform.h> | ||
26 | #include <mach/common.h> | ||
27 | #include <mach/rcar-gen2.h> | ||
28 | #include <mach/r8a7791.h> | ||
29 | #include <asm/mach/arch.h> | ||
30 | |||
31 | static void __init koelsch_add_standard_devices(void) | ||
32 | { | ||
33 | #ifdef CONFIG_COMMON_CLK | ||
34 | /* | ||
35 | * This is a really crude hack to provide clkdev support to the SCIF | ||
36 | * and CMT devices until they get moved to DT. | ||
37 | */ | ||
38 | static const char * const scif_names[] = { | ||
39 | "scifa0", "scifa1", "scifb0", "scifb1", "scifb2", "scifa2", | ||
40 | "scif0", "scif1", "scif2", "scif3", "scif4", "scif5", "scifa3", | ||
41 | "scifa4", "scifa5", | ||
42 | }; | ||
43 | struct clk *clk; | ||
44 | unsigned int i; | ||
45 | |||
46 | for (i = 0; i < ARRAY_SIZE(scif_names); ++i) { | ||
47 | clk = clk_get(NULL, scif_names[i]); | ||
48 | if (clk) { | ||
49 | clk_register_clkdev(clk, NULL, "sh-sci.%u", i); | ||
50 | clk_put(clk); | ||
51 | } | ||
52 | } | ||
53 | |||
54 | clk = clk_get(NULL, "cmt0"); | ||
55 | if (clk) { | ||
56 | clk_register_clkdev(clk, NULL, "sh_cmt.0"); | ||
57 | clk_put(clk); | ||
58 | } | ||
59 | #else | ||
60 | r8a7791_clock_init(); | ||
61 | #endif | ||
62 | r8a7791_add_dt_devices(); | ||
63 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
64 | } | ||
65 | |||
66 | static const char * const koelsch_boards_compat_dt[] __initconst = { | ||
67 | "renesas,koelsch", | ||
68 | "renesas,koelsch-reference", | ||
69 | NULL, | ||
70 | }; | ||
71 | |||
72 | DT_MACHINE_START(KOELSCH_DT, "koelsch") | ||
73 | .smp = smp_ops(r8a7791_smp_ops), | ||
74 | .init_early = r8a7791_init_early, | ||
75 | .init_time = rcar_gen2_timer_init, | ||
76 | .init_machine = koelsch_add_standard_devices, | ||
77 | .init_late = shmobile_init_late, | ||
78 | .dt_compat = koelsch_boards_compat_dt, | ||
79 | MACHINE_END | ||
diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index ace1711a6cd8..de7cc64b1f37 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c | |||
@@ -19,18 +19,205 @@ | |||
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/dma-mapping.h> | ||
23 | #include <linux/gpio.h> | ||
24 | #include <linux/gpio_keys.h> | ||
25 | #include <linux/input.h> | ||
22 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
27 | #include <linux/leds.h> | ||
28 | #include <linux/phy.h> | ||
29 | #include <linux/pinctrl/machine.h> | ||
30 | #include <linux/platform_data/gpio-rcar.h> | ||
31 | #include <linux/platform_data/rcar-du.h> | ||
23 | #include <linux/platform_device.h> | 32 | #include <linux/platform_device.h> |
33 | #include <linux/sh_eth.h> | ||
24 | #include <mach/common.h> | 34 | #include <mach/common.h> |
35 | #include <mach/irqs.h> | ||
25 | #include <mach/r8a7791.h> | 36 | #include <mach/r8a7791.h> |
26 | #include <mach/rcar-gen2.h> | 37 | #include <mach/rcar-gen2.h> |
27 | #include <asm/mach-types.h> | 38 | #include <asm/mach-types.h> |
28 | #include <asm/mach/arch.h> | 39 | #include <asm/mach/arch.h> |
29 | 40 | ||
41 | /* DU */ | ||
42 | static struct rcar_du_encoder_data koelsch_du_encoders[] = { | ||
43 | { | ||
44 | .type = RCAR_DU_ENCODER_NONE, | ||
45 | .output = RCAR_DU_OUTPUT_LVDS0, | ||
46 | .connector.lvds.panel = { | ||
47 | .width_mm = 210, | ||
48 | .height_mm = 158, | ||
49 | .mode = { | ||
50 | .clock = 65000, | ||
51 | .hdisplay = 1024, | ||
52 | .hsync_start = 1048, | ||
53 | .hsync_end = 1184, | ||
54 | .htotal = 1344, | ||
55 | .vdisplay = 768, | ||
56 | .vsync_start = 771, | ||
57 | .vsync_end = 777, | ||
58 | .vtotal = 806, | ||
59 | .flags = 0, | ||
60 | }, | ||
61 | }, | ||
62 | }, | ||
63 | }; | ||
64 | |||
65 | static const struct rcar_du_platform_data koelsch_du_pdata __initconst = { | ||
66 | .encoders = koelsch_du_encoders, | ||
67 | .num_encoders = ARRAY_SIZE(koelsch_du_encoders), | ||
68 | }; | ||
69 | |||
70 | static const struct resource du_resources[] __initconst = { | ||
71 | DEFINE_RES_MEM(0xfeb00000, 0x40000), | ||
72 | DEFINE_RES_MEM_NAMED(0xfeb90000, 0x1c, "lvds.0"), | ||
73 | DEFINE_RES_IRQ(gic_spi(256)), | ||
74 | DEFINE_RES_IRQ(gic_spi(268)), | ||
75 | }; | ||
76 | |||
77 | static void __init koelsch_add_du_device(void) | ||
78 | { | ||
79 | struct platform_device_info info = { | ||
80 | .name = "rcar-du-r8a7791", | ||
81 | .id = -1, | ||
82 | .res = du_resources, | ||
83 | .num_res = ARRAY_SIZE(du_resources), | ||
84 | .data = &koelsch_du_pdata, | ||
85 | .size_data = sizeof(koelsch_du_pdata), | ||
86 | .dma_mask = DMA_BIT_MASK(32), | ||
87 | }; | ||
88 | |||
89 | platform_device_register_full(&info); | ||
90 | } | ||
91 | |||
92 | /* Ether */ | ||
93 | static const struct sh_eth_plat_data ether_pdata __initconst = { | ||
94 | .phy = 0x1, | ||
95 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | ||
96 | .phy_interface = PHY_INTERFACE_MODE_RMII, | ||
97 | .ether_link_active_low = 1, | ||
98 | }; | ||
99 | |||
100 | static const struct resource ether_resources[] __initconst = { | ||
101 | DEFINE_RES_MEM(0xee700000, 0x400), | ||
102 | DEFINE_RES_IRQ(gic_spi(162)), | ||
103 | }; | ||
104 | |||
105 | /* LEDS */ | ||
106 | static struct gpio_led koelsch_leds[] = { | ||
107 | { | ||
108 | .name = "led8", | ||
109 | .gpio = RCAR_GP_PIN(2, 21), | ||
110 | .default_state = LEDS_GPIO_DEFSTATE_ON, | ||
111 | }, { | ||
112 | .name = "led7", | ||
113 | .gpio = RCAR_GP_PIN(2, 20), | ||
114 | .default_state = LEDS_GPIO_DEFSTATE_ON, | ||
115 | }, { | ||
116 | .name = "led6", | ||
117 | .gpio = RCAR_GP_PIN(2, 19), | ||
118 | .default_state = LEDS_GPIO_DEFSTATE_ON, | ||
119 | }, | ||
120 | }; | ||
121 | |||
122 | static const struct gpio_led_platform_data koelsch_leds_pdata __initconst = { | ||
123 | .leds = koelsch_leds, | ||
124 | .num_leds = ARRAY_SIZE(koelsch_leds), | ||
125 | }; | ||
126 | |||
127 | /* GPIO KEY */ | ||
128 | #define GPIO_KEY(c, g, d, ...) \ | ||
129 | { .code = c, .gpio = g, .desc = d, .active_low = 1, \ | ||
130 | .wakeup = 1, .debounce_interval = 20 } | ||
131 | |||
132 | static struct gpio_keys_button gpio_buttons[] = { | ||
133 | GPIO_KEY(KEY_4, RCAR_GP_PIN(5, 3), "SW2-pin4"), | ||
134 | GPIO_KEY(KEY_3, RCAR_GP_PIN(5, 2), "SW2-pin3"), | ||
135 | GPIO_KEY(KEY_2, RCAR_GP_PIN(5, 1), "SW2-pin2"), | ||
136 | GPIO_KEY(KEY_1, RCAR_GP_PIN(5, 0), "SW2-pin1"), | ||
137 | GPIO_KEY(KEY_G, RCAR_GP_PIN(7, 6), "SW36"), | ||
138 | GPIO_KEY(KEY_F, RCAR_GP_PIN(7, 5), "SW35"), | ||
139 | GPIO_KEY(KEY_E, RCAR_GP_PIN(7, 4), "SW34"), | ||
140 | GPIO_KEY(KEY_D, RCAR_GP_PIN(7, 3), "SW33"), | ||
141 | GPIO_KEY(KEY_C, RCAR_GP_PIN(7, 2), "SW32"), | ||
142 | GPIO_KEY(KEY_B, RCAR_GP_PIN(7, 1), "SW31"), | ||
143 | GPIO_KEY(KEY_A, RCAR_GP_PIN(7, 0), "SW30"), | ||
144 | }; | ||
145 | |||
146 | static const struct gpio_keys_platform_data koelsch_keys_pdata __initconst = { | ||
147 | .buttons = gpio_buttons, | ||
148 | .nbuttons = ARRAY_SIZE(gpio_buttons), | ||
149 | }; | ||
150 | |||
151 | static const struct pinctrl_map koelsch_pinctrl_map[] = { | ||
152 | /* DU */ | ||
153 | PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7791", "pfc-r8a7791", | ||
154 | "du_rgb666", "du"), | ||
155 | PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7791", "pfc-r8a7791", | ||
156 | "du_sync", "du"), | ||
157 | PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7791", "pfc-r8a7791", | ||
158 | "du_clk_out_0", "du"), | ||
159 | /* Ether */ | ||
160 | PIN_MAP_MUX_GROUP_DEFAULT("r8a7791-ether", "pfc-r8a7791", | ||
161 | "eth_link", "eth"), | ||
162 | PIN_MAP_MUX_GROUP_DEFAULT("r8a7791-ether", "pfc-r8a7791", | ||
163 | "eth_mdio", "eth"), | ||
164 | PIN_MAP_MUX_GROUP_DEFAULT("r8a7791-ether", "pfc-r8a7791", | ||
165 | "eth_rmii", "eth"), | ||
166 | PIN_MAP_MUX_GROUP_DEFAULT("r8a7791-ether", "pfc-r8a7791", | ||
167 | "intc_irq0", "intc"), | ||
168 | /* SCIF0 (CN19: DEBUG SERIAL0) */ | ||
169 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.6", "pfc-r8a7791", | ||
170 | "scif0_data_d", "scif0"), | ||
171 | /* SCIF1 (CN20: DEBUG SERIAL1) */ | ||
172 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.7", "pfc-r8a7791", | ||
173 | "scif1_data_d", "scif1"), | ||
174 | }; | ||
175 | |||
30 | static void __init koelsch_add_standard_devices(void) | 176 | static void __init koelsch_add_standard_devices(void) |
31 | { | 177 | { |
32 | r8a7791_clock_init(); | 178 | r8a7791_clock_init(); |
179 | pinctrl_register_mappings(koelsch_pinctrl_map, | ||
180 | ARRAY_SIZE(koelsch_pinctrl_map)); | ||
181 | r8a7791_pinmux_init(); | ||
33 | r8a7791_add_standard_devices(); | 182 | r8a7791_add_standard_devices(); |
183 | platform_device_register_resndata(&platform_bus, "r8a7791-ether", -1, | ||
184 | ether_resources, | ||
185 | ARRAY_SIZE(ether_resources), | ||
186 | ðer_pdata, sizeof(ether_pdata)); | ||
187 | platform_device_register_data(&platform_bus, "leds-gpio", -1, | ||
188 | &koelsch_leds_pdata, | ||
189 | sizeof(koelsch_leds_pdata)); | ||
190 | platform_device_register_data(&platform_bus, "gpio-keys", -1, | ||
191 | &koelsch_keys_pdata, | ||
192 | sizeof(koelsch_keys_pdata)); | ||
193 | |||
194 | koelsch_add_du_device(); | ||
195 | } | ||
196 | |||
197 | /* | ||
198 | * Ether LEDs on the Koelsch board are named LINK and ACTIVE which corresponds | ||
199 | * to non-default 01 setting of the Micrel KSZ8041 PHY control register 1 bits | ||
200 | * 14-15. We have to set them back to 01 from the default 00 value each time | ||
201 | * the PHY is reset. It's also important because the PHY's LED0 signal is | ||
202 | * connected to SoC's ETH_LINK signal and in the PHY's default mode it will | ||
203 | * bounce on and off after each packet, which we apparently want to avoid. | ||
204 | */ | ||
205 | static int koelsch_ksz8041_fixup(struct phy_device *phydev) | ||
206 | { | ||
207 | u16 phyctrl1 = phy_read(phydev, 0x1e); | ||
208 | |||
209 | phyctrl1 &= ~0xc000; | ||
210 | phyctrl1 |= 0x4000; | ||
211 | return phy_write(phydev, 0x1e, phyctrl1); | ||
212 | } | ||
213 | |||
214 | static void __init koelsch_init(void) | ||
215 | { | ||
216 | koelsch_add_standard_devices(); | ||
217 | |||
218 | if (IS_ENABLED(CONFIG_PHYLIB)) | ||
219 | phy_register_fixup_for_id("r8a7791-ether-ff:01", | ||
220 | koelsch_ksz8041_fixup); | ||
34 | } | 221 | } |
35 | 222 | ||
36 | static const char * const koelsch_boards_compat_dt[] __initconst = { | 223 | static const char * const koelsch_boards_compat_dt[] __initconst = { |
@@ -41,7 +228,8 @@ static const char * const koelsch_boards_compat_dt[] __initconst = { | |||
41 | DT_MACHINE_START(KOELSCH_DT, "koelsch") | 228 | DT_MACHINE_START(KOELSCH_DT, "koelsch") |
42 | .smp = smp_ops(r8a7791_smp_ops), | 229 | .smp = smp_ops(r8a7791_smp_ops), |
43 | .init_early = r8a7791_init_early, | 230 | .init_early = r8a7791_init_early, |
44 | .init_machine = koelsch_add_standard_devices, | ||
45 | .init_time = rcar_gen2_timer_init, | 231 | .init_time = rcar_gen2_timer_init, |
232 | .init_machine = koelsch_init, | ||
233 | .init_late = shmobile_init_late, | ||
46 | .dt_compat = koelsch_boards_compat_dt, | 234 | .dt_compat = koelsch_boards_compat_dt, |
47 | MACHINE_END | 235 | MACHINE_END |
diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c index 7df9ea0839db..a6e271d92af0 100644 --- a/arch/arm/mach-shmobile/board-lager-reference.c +++ b/arch/arm/mach-shmobile/board-lager-reference.c | |||
@@ -18,20 +18,53 @@ | |||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <linux/clk.h> | ||
22 | #include <linux/clkdev.h> | ||
21 | #include <linux/init.h> | 23 | #include <linux/init.h> |
22 | #include <linux/of_platform.h> | 24 | #include <linux/of_platform.h> |
25 | #include <mach/common.h> | ||
23 | #include <mach/rcar-gen2.h> | 26 | #include <mach/rcar-gen2.h> |
24 | #include <mach/r8a7790.h> | 27 | #include <mach/r8a7790.h> |
25 | #include <asm/mach/arch.h> | 28 | #include <asm/mach/arch.h> |
26 | 29 | ||
27 | static void __init lager_add_standard_devices(void) | 30 | static void __init lager_add_standard_devices(void) |
28 | { | 31 | { |
32 | #ifdef CONFIG_COMMON_CLK | ||
33 | /* | ||
34 | * This is a really crude hack to provide clkdev support to the SCIF | ||
35 | * and CMT devices until they get moved to DT. | ||
36 | */ | ||
37 | static const char * const scif_names[] = { | ||
38 | "scifa0", "scifa1", "scifb0", "scifb1", | ||
39 | "scifb2", "scifa2", "scif0", "scif1", | ||
40 | "hscif0", "hscif1", | ||
41 | }; | ||
42 | struct clk *clk; | ||
43 | unsigned int i; | ||
44 | |||
45 | for (i = 0; i < ARRAY_SIZE(scif_names); ++i) { | ||
46 | clk = clk_get(NULL, scif_names[i]); | ||
47 | if (clk) { | ||
48 | clk_register_clkdev(clk, NULL, "sh-sci.%u", i); | ||
49 | clk_put(clk); | ||
50 | } | ||
51 | } | ||
52 | |||
53 | clk = clk_get(NULL, "cmt0"); | ||
54 | if (clk) { | ||
55 | clk_register_clkdev(clk, NULL, "sh_cmt.0"); | ||
56 | clk_put(clk); | ||
57 | } | ||
58 | #else | ||
29 | r8a7790_clock_init(); | 59 | r8a7790_clock_init(); |
60 | #endif | ||
61 | |||
30 | r8a7790_add_dt_devices(); | 62 | r8a7790_add_dt_devices(); |
31 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 63 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
32 | } | 64 | } |
33 | 65 | ||
34 | static const char *lager_boards_compat_dt[] __initdata = { | 66 | static const char *lager_boards_compat_dt[] __initdata = { |
67 | "renesas,lager", | ||
35 | "renesas,lager-reference", | 68 | "renesas,lager-reference", |
36 | NULL, | 69 | NULL, |
37 | }; | 70 | }; |
@@ -41,5 +74,6 @@ DT_MACHINE_START(LAGER_DT, "lager") | |||
41 | .init_early = r8a7790_init_early, | 74 | .init_early = r8a7790_init_early, |
42 | .init_time = rcar_gen2_timer_init, | 75 | .init_time = rcar_gen2_timer_init, |
43 | .init_machine = lager_add_standard_devices, | 76 | .init_machine = lager_add_standard_devices, |
77 | .init_late = shmobile_init_late, | ||
44 | .dt_compat = lager_boards_compat_dt, | 78 | .dt_compat = lager_boards_compat_dt, |
45 | MACHINE_END | 79 | MACHINE_END |
diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index d1a8dddecfc8..f20c10a18543 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c | |||
@@ -31,7 +31,9 @@ | |||
31 | #include <linux/platform_data/rcar-du.h> | 31 | #include <linux/platform_data/rcar-du.h> |
32 | #include <linux/platform_device.h> | 32 | #include <linux/platform_device.h> |
33 | #include <linux/phy.h> | 33 | #include <linux/phy.h> |
34 | #include <linux/regulator/driver.h> | ||
34 | #include <linux/regulator/fixed.h> | 35 | #include <linux/regulator/fixed.h> |
36 | #include <linux/regulator/gpio-regulator.h> | ||
35 | #include <linux/regulator/machine.h> | 37 | #include <linux/regulator/machine.h> |
36 | #include <linux/sh_eth.h> | 38 | #include <linux/sh_eth.h> |
37 | #include <mach/common.h> | 39 | #include <mach/common.h> |
@@ -39,6 +41,11 @@ | |||
39 | #include <mach/r8a7790.h> | 41 | #include <mach/r8a7790.h> |
40 | #include <asm/mach-types.h> | 42 | #include <asm/mach-types.h> |
41 | #include <asm/mach/arch.h> | 43 | #include <asm/mach/arch.h> |
44 | #include <linux/mtd/partitions.h> | ||
45 | #include <linux/mtd/mtd.h> | ||
46 | #include <linux/spi/flash.h> | ||
47 | #include <linux/spi/rspi.h> | ||
48 | #include <linux/spi/spi.h> | ||
42 | 49 | ||
43 | /* DU */ | 50 | /* DU */ |
44 | static struct rcar_du_encoder_data lager_du_encoders[] = { | 51 | static struct rcar_du_encoder_data lager_du_encoders[] = { |
@@ -120,7 +127,8 @@ static const struct gpio_led_platform_data lager_leds_pdata __initconst = { | |||
120 | 127 | ||
121 | /* GPIO KEY */ | 128 | /* GPIO KEY */ |
122 | #define GPIO_KEY(c, g, d, ...) \ | 129 | #define GPIO_KEY(c, g, d, ...) \ |
123 | { .code = c, .gpio = g, .desc = d, .active_low = 1 } | 130 | { .code = c, .gpio = g, .desc = d, .active_low = 1, \ |
131 | .wakeup = 1, .debounce_interval = 20 } | ||
124 | 132 | ||
125 | static struct gpio_keys_button gpio_buttons[] = { | 133 | static struct gpio_keys_button gpio_buttons[] = { |
126 | GPIO_KEY(KEY_4, RCAR_GP_PIN(1, 28), "SW2-pin4"), | 134 | GPIO_KEY(KEY_4, RCAR_GP_PIN(1, 28), "SW2-pin4"), |
@@ -140,6 +148,71 @@ static struct regulator_consumer_supply fixed3v3_power_consumers[] = | |||
140 | REGULATOR_SUPPLY("vmmc", "sh_mmcif.1"), | 148 | REGULATOR_SUPPLY("vmmc", "sh_mmcif.1"), |
141 | }; | 149 | }; |
142 | 150 | ||
151 | /* | ||
152 | * SDHI regulator macro | ||
153 | * | ||
154 | ** FIXME** | ||
155 | * Lager board vqmmc is provided via DA9063 PMIC chip, | ||
156 | * and we should use ${LINK}/drivers/mfd/da9063-* driver for it. | ||
157 | * but, it doesn't have regulator support at this point. | ||
158 | * It uses gpio-regulator for vqmmc as quick-hack. | ||
159 | */ | ||
160 | #define SDHI_REGULATOR(idx, vdd_pin, vccq_pin) \ | ||
161 | static struct regulator_consumer_supply vcc_sdhi##idx##_consumer = \ | ||
162 | REGULATOR_SUPPLY("vmmc", "sh_mobile_sdhi." #idx); \ | ||
163 | \ | ||
164 | static struct regulator_init_data vcc_sdhi##idx##_init_data = { \ | ||
165 | .constraints = { \ | ||
166 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, \ | ||
167 | }, \ | ||
168 | .consumer_supplies = &vcc_sdhi##idx##_consumer, \ | ||
169 | .num_consumer_supplies = 1, \ | ||
170 | }; \ | ||
171 | \ | ||
172 | static const struct fixed_voltage_config vcc_sdhi##idx##_info __initconst = {\ | ||
173 | .supply_name = "SDHI" #idx "Vcc", \ | ||
174 | .microvolts = 3300000, \ | ||
175 | .gpio = vdd_pin, \ | ||
176 | .enable_high = 1, \ | ||
177 | .init_data = &vcc_sdhi##idx##_init_data, \ | ||
178 | }; \ | ||
179 | \ | ||
180 | static struct regulator_consumer_supply vccq_sdhi##idx##_consumer = \ | ||
181 | REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi." #idx); \ | ||
182 | \ | ||
183 | static struct regulator_init_data vccq_sdhi##idx##_init_data = { \ | ||
184 | .constraints = { \ | ||
185 | .input_uV = 3300000, \ | ||
186 | .min_uV = 1800000, \ | ||
187 | .max_uV = 3300000, \ | ||
188 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | \ | ||
189 | REGULATOR_CHANGE_STATUS, \ | ||
190 | }, \ | ||
191 | .consumer_supplies = &vccq_sdhi##idx##_consumer, \ | ||
192 | .num_consumer_supplies = 1, \ | ||
193 | }; \ | ||
194 | \ | ||
195 | static struct gpio vccq_sdhi##idx##_gpio = \ | ||
196 | { vccq_pin, GPIOF_OUT_INIT_HIGH, "vccq-sdhi" #idx }; \ | ||
197 | \ | ||
198 | static struct gpio_regulator_state vccq_sdhi##idx##_states[] = { \ | ||
199 | { .value = 1800000, .gpios = 0 }, \ | ||
200 | { .value = 3300000, .gpios = 1 }, \ | ||
201 | }; \ | ||
202 | \ | ||
203 | static const struct gpio_regulator_config vccq_sdhi##idx##_info __initconst = {\ | ||
204 | .supply_name = "vqmmc", \ | ||
205 | .gpios = &vccq_sdhi##idx##_gpio, \ | ||
206 | .nr_gpios = 1, \ | ||
207 | .states = vccq_sdhi##idx##_states, \ | ||
208 | .nr_states = ARRAY_SIZE(vccq_sdhi##idx##_states), \ | ||
209 | .type = REGULATOR_VOLTAGE, \ | ||
210 | .init_data = &vccq_sdhi##idx##_init_data, \ | ||
211 | }; | ||
212 | |||
213 | SDHI_REGULATOR(0, RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 29)); | ||
214 | SDHI_REGULATOR(2, RCAR_GP_PIN(5, 25), RCAR_GP_PIN(5, 30)); | ||
215 | |||
143 | /* MMCIF */ | 216 | /* MMCIF */ |
144 | static const struct sh_mmcif_plat_data mmcif1_pdata __initconst = { | 217 | static const struct sh_mmcif_plat_data mmcif1_pdata __initconst = { |
145 | .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, | 218 | .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, |
@@ -165,6 +238,59 @@ static const struct resource ether_resources[] __initconst = { | |||
165 | DEFINE_RES_IRQ(gic_spi(162)), | 238 | DEFINE_RES_IRQ(gic_spi(162)), |
166 | }; | 239 | }; |
167 | 240 | ||
241 | /* SPI Flash memory (Spansion S25FL512SAGMFIG11 64Mb) */ | ||
242 | static struct mtd_partition spi_flash_part[] = { | ||
243 | /* Reserved for user loader program, read-only */ | ||
244 | { | ||
245 | .name = "loader", | ||
246 | .offset = 0, | ||
247 | .size = SZ_256K, | ||
248 | .mask_flags = MTD_WRITEABLE, | ||
249 | }, | ||
250 | /* Reserved for user program, read-only */ | ||
251 | { | ||
252 | .name = "user", | ||
253 | .offset = MTDPART_OFS_APPEND, | ||
254 | .size = SZ_4M, | ||
255 | .mask_flags = MTD_WRITEABLE, | ||
256 | }, | ||
257 | /* All else is writable (e.g. JFFS2) */ | ||
258 | { | ||
259 | .name = "flash", | ||
260 | .offset = MTDPART_OFS_APPEND, | ||
261 | .size = MTDPART_SIZ_FULL, | ||
262 | .mask_flags = 0, | ||
263 | }, | ||
264 | }; | ||
265 | |||
266 | static struct flash_platform_data spi_flash_data = { | ||
267 | .name = "m25p80", | ||
268 | .parts = spi_flash_part, | ||
269 | .nr_parts = ARRAY_SIZE(spi_flash_part), | ||
270 | .type = "s25fl512s", | ||
271 | }; | ||
272 | |||
273 | static const struct rspi_plat_data qspi_pdata __initconst = { | ||
274 | .num_chipselect = 1, | ||
275 | }; | ||
276 | |||
277 | static const struct spi_board_info spi_info[] __initconst = { | ||
278 | { | ||
279 | .modalias = "m25p80", | ||
280 | .platform_data = &spi_flash_data, | ||
281 | .mode = SPI_MODE_0, | ||
282 | .max_speed_hz = 30000000, | ||
283 | .bus_num = 0, | ||
284 | .chip_select = 0, | ||
285 | }, | ||
286 | }; | ||
287 | |||
288 | /* QSPI resource */ | ||
289 | static const struct resource qspi_resources[] __initconst = { | ||
290 | DEFINE_RES_MEM(0xe6b10000, 0x1000), | ||
291 | DEFINE_RES_IRQ(gic_spi(184)), | ||
292 | }; | ||
293 | |||
168 | static const struct pinctrl_map lager_pinctrl_map[] = { | 294 | static const struct pinctrl_map lager_pinctrl_map[] = { |
169 | /* DU (CN10: ARGB0, CN13: LVDS) */ | 295 | /* DU (CN10: ARGB0, CN13: LVDS) */ |
170 | PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7790", "pfc-r8a7790", | 296 | PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7790", "pfc-r8a7790", |
@@ -197,6 +323,9 @@ static const struct pinctrl_map lager_pinctrl_map[] = { | |||
197 | 323 | ||
198 | static void __init lager_add_standard_devices(void) | 324 | static void __init lager_add_standard_devices(void) |
199 | { | 325 | { |
326 | int fixed_regulator_idx = 0; | ||
327 | int gpio_regulator_idx = 0; | ||
328 | |||
200 | r8a7790_clock_init(); | 329 | r8a7790_clock_init(); |
201 | 330 | ||
202 | pinctrl_register_mappings(lager_pinctrl_map, | 331 | pinctrl_register_mappings(lager_pinctrl_map, |
@@ -210,7 +339,8 @@ static void __init lager_add_standard_devices(void) | |||
210 | platform_device_register_data(&platform_bus, "gpio-keys", -1, | 339 | platform_device_register_data(&platform_bus, "gpio-keys", -1, |
211 | &lager_keys_pdata, | 340 | &lager_keys_pdata, |
212 | sizeof(lager_keys_pdata)); | 341 | sizeof(lager_keys_pdata)); |
213 | regulator_register_always_on(0, "fixed-3.3V", fixed3v3_power_consumers, | 342 | regulator_register_always_on(fixed_regulator_idx++, |
343 | "fixed-3.3V", fixed3v3_power_consumers, | ||
214 | ARRAY_SIZE(fixed3v3_power_consumers), 3300000); | 344 | ARRAY_SIZE(fixed3v3_power_consumers), 3300000); |
215 | platform_device_register_resndata(&platform_bus, "sh_mmcif", 1, | 345 | platform_device_register_resndata(&platform_bus, "sh_mmcif", 1, |
216 | mmcif1_resources, ARRAY_SIZE(mmcif1_resources), | 346 | mmcif1_resources, ARRAY_SIZE(mmcif1_resources), |
@@ -222,6 +352,22 @@ static void __init lager_add_standard_devices(void) | |||
222 | ðer_pdata, sizeof(ether_pdata)); | 352 | ðer_pdata, sizeof(ether_pdata)); |
223 | 353 | ||
224 | lager_add_du_device(); | 354 | lager_add_du_device(); |
355 | |||
356 | platform_device_register_resndata(&platform_bus, "qspi", 0, | ||
357 | qspi_resources, | ||
358 | ARRAY_SIZE(qspi_resources), | ||
359 | &qspi_pdata, sizeof(qspi_pdata)); | ||
360 | spi_register_board_info(spi_info, ARRAY_SIZE(spi_info)); | ||
361 | |||
362 | platform_device_register_data(&platform_bus, "reg-fixed-voltage", fixed_regulator_idx++, | ||
363 | &vcc_sdhi0_info, sizeof(struct fixed_voltage_config)); | ||
364 | platform_device_register_data(&platform_bus, "reg-fixed-voltage", fixed_regulator_idx++, | ||
365 | &vcc_sdhi2_info, sizeof(struct fixed_voltage_config)); | ||
366 | |||
367 | platform_device_register_data(&platform_bus, "gpio-regulator", gpio_regulator_idx++, | ||
368 | &vccq_sdhi0_info, sizeof(struct gpio_regulator_config)); | ||
369 | platform_device_register_data(&platform_bus, "gpio-regulator", gpio_regulator_idx++, | ||
370 | &vccq_sdhi2_info, sizeof(struct gpio_regulator_config)); | ||
225 | } | 371 | } |
226 | 372 | ||
227 | /* | 373 | /* |
@@ -260,5 +406,6 @@ DT_MACHINE_START(LAGER_DT, "lager") | |||
260 | .init_early = r8a7790_init_early, | 406 | .init_early = r8a7790_init_early, |
261 | .init_time = rcar_gen2_timer_init, | 407 | .init_time = rcar_gen2_timer_init, |
262 | .init_machine = lager_init, | 408 | .init_machine = lager_init, |
409 | .init_late = shmobile_init_late, | ||
263 | .dt_compat = lager_boards_compat_dt, | 410 | .dt_compat = lager_boards_compat_dt, |
264 | MACHINE_END | 411 | MACHINE_END |
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index e721d2ccceae..3aba0372f630 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <linux/mtd/physmap.h> | 41 | #include <linux/mtd/physmap.h> |
42 | #include <linux/mtd/sh_flctl.h> | 42 | #include <linux/mtd/sh_flctl.h> |
43 | #include <linux/pinctrl/machine.h> | 43 | #include <linux/pinctrl/machine.h> |
44 | #include <linux/pinctrl/pinconf-generic.h> | ||
44 | #include <linux/platform_data/gpio_backlight.h> | 45 | #include <linux/platform_data/gpio_backlight.h> |
45 | #include <linux/pm_clock.h> | 46 | #include <linux/pm_clock.h> |
46 | #include <linux/regulator/fixed.h> | 47 | #include <linux/regulator/fixed.h> |
@@ -548,9 +549,9 @@ static void __init hdmi_init_pm_clock(void) | |||
548 | clk_get_rate(&sh7372_pllc2_clk)); | 549 | clk_get_rate(&sh7372_pllc2_clk)); |
549 | 550 | ||
550 | rate = clk_round_rate(&sh7372_pllc2_clk, 594000000); | 551 | rate = clk_round_rate(&sh7372_pllc2_clk, 594000000); |
551 | if (rate < 0) { | 552 | if (rate <= 0) { |
552 | pr_err("Cannot get suitable rate: %ld\n", rate); | 553 | pr_err("Cannot get suitable rate: %ld\n", rate); |
553 | ret = rate; | 554 | ret = -EINVAL; |
554 | goto out; | 555 | goto out; |
555 | } | 556 | } |
556 | 557 | ||
@@ -1311,6 +1312,10 @@ static struct i2c_board_info i2c1_devices[] = { | |||
1311 | }, | 1312 | }, |
1312 | }; | 1313 | }; |
1313 | 1314 | ||
1315 | static unsigned long pin_pulldown_conf[] = { | ||
1316 | PIN_CONF_PACKED(PIN_CONFIG_BIAS_PULL_DOWN, 0), | ||
1317 | }; | ||
1318 | |||
1314 | static const struct pinctrl_map mackerel_pinctrl_map[] = { | 1319 | static const struct pinctrl_map mackerel_pinctrl_map[] = { |
1315 | /* ADXL34X */ | 1320 | /* ADXL34X */ |
1316 | PIN_MAP_MUX_GROUP_DEFAULT("1-0053", "pfc-sh7372", | 1321 | PIN_MAP_MUX_GROUP_DEFAULT("1-0053", "pfc-sh7372", |
@@ -1396,17 +1401,19 @@ static const struct pinctrl_map mackerel_pinctrl_map[] = { | |||
1396 | /* USBHS0 */ | 1401 | /* USBHS0 */ |
1397 | PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs.0", "pfc-sh7372", | 1402 | PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs.0", "pfc-sh7372", |
1398 | "usb0_vbus", "usb0"), | 1403 | "usb0_vbus", "usb0"), |
1404 | PIN_MAP_CONFIGS_GROUP_DEFAULT("renesas_usbhs.0", "pfc-sh7372", | ||
1405 | "usb0_vbus", pin_pulldown_conf), | ||
1399 | /* USBHS1 */ | 1406 | /* USBHS1 */ |
1400 | PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs.1", "pfc-sh7372", | 1407 | PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs.1", "pfc-sh7372", |
1401 | "usb1_vbus", "usb1"), | 1408 | "usb1_vbus", "usb1"), |
1409 | PIN_MAP_CONFIGS_GROUP_DEFAULT("renesas_usbhs.1", "pfc-sh7372", | ||
1410 | "usb1_vbus", pin_pulldown_conf), | ||
1402 | PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs.1", "pfc-sh7372", | 1411 | PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs.1", "pfc-sh7372", |
1403 | "usb1_otg_id_0", "usb1"), | 1412 | "usb1_otg_id_0", "usb1"), |
1404 | }; | 1413 | }; |
1405 | 1414 | ||
1406 | #define GPIO_PORT9CR IOMEM(0xE6051009) | 1415 | #define GPIO_PORT9CR IOMEM(0xE6051009) |
1407 | #define GPIO_PORT10CR IOMEM(0xE605100A) | 1416 | #define GPIO_PORT10CR IOMEM(0xE605100A) |
1408 | #define GPIO_PORT167CR IOMEM(0xE60520A7) | ||
1409 | #define GPIO_PORT168CR IOMEM(0xE60520A8) | ||
1410 | #define SRCR4 IOMEM(0xe61580bc) | 1417 | #define SRCR4 IOMEM(0xe61580bc) |
1411 | #define USCCR1 IOMEM(0xE6058144) | 1418 | #define USCCR1 IOMEM(0xE6058144) |
1412 | static void __init mackerel_init(void) | 1419 | static void __init mackerel_init(void) |
@@ -1446,12 +1453,6 @@ static void __init mackerel_init(void) | |||
1446 | 1453 | ||
1447 | gpio_request_one(151, GPIOF_OUT_INIT_HIGH, NULL); /* LCDDON */ | 1454 | gpio_request_one(151, GPIOF_OUT_INIT_HIGH, NULL); /* LCDDON */ |
1448 | 1455 | ||
1449 | /* USBHS0 */ | ||
1450 | gpio_request_pulldown(GPIO_PORT168CR); /* VBUS0_0 pull down */ | ||
1451 | |||
1452 | /* USBHS1 */ | ||
1453 | gpio_request_pulldown(GPIO_PORT167CR); /* VBUS0_1 pull down */ | ||
1454 | |||
1455 | /* FSI2 port A (ak4643) */ | 1456 | /* FSI2 port A (ak4643) */ |
1456 | gpio_request_one(161, GPIOF_OUT_INIT_LOW, NULL); /* slave */ | 1457 | gpio_request_one(161, GPIOF_OUT_INIT_LOW, NULL); /* slave */ |
1457 | 1458 | ||
diff --git a/arch/arm/mach-shmobile/sh-gpio.h b/arch/arm/mach-shmobile/sh-gpio.h index e834763ac2a5..2c4141413db9 100644 --- a/arch/arm/mach-shmobile/sh-gpio.h +++ b/arch/arm/mach-shmobile/sh-gpio.h | |||
@@ -26,23 +26,4 @@ static inline void __init gpio_direction_none(void __iomem * addr) | |||
26 | __raw_writeb(0x00, addr); | 26 | __raw_writeb(0x00, addr); |
27 | } | 27 | } |
28 | 28 | ||
29 | static inline void __init gpio_request_pullup(void __iomem * addr) | ||
30 | { | ||
31 | u8 data = __raw_readb(addr); | ||
32 | |||
33 | data &= 0x0F; | ||
34 | data |= 0xC0; | ||
35 | __raw_writeb(data, addr); | ||
36 | } | ||
37 | |||
38 | static inline void __init gpio_request_pulldown(void __iomem * addr) | ||
39 | { | ||
40 | u8 data = __raw_readb(addr); | ||
41 | |||
42 | data &= 0x0F; | ||
43 | data |= 0xA0; | ||
44 | |||
45 | __raw_writeb(data, addr); | ||
46 | } | ||
47 | |||
48 | #endif /* __ASM_ARCH_GPIO_H */ | 29 | #endif /* __ASM_ARCH_GPIO_H */ |