diff options
Diffstat (limited to 'arch/arm')
102 files changed, 2723 insertions, 572 deletions
diff --git a/arch/arm/boot/dts/imx51-babbage.dts b/arch/arm/boot/dts/imx51-babbage.dts index f8766af1121..564cb8c19f1 100644 --- a/arch/arm/boot/dts/imx51-babbage.dts +++ b/arch/arm/boot/dts/imx51-babbage.dts | |||
@@ -35,20 +35,19 @@ | |||
35 | }; | 35 | }; |
36 | 36 | ||
37 | esdhc@70008000 { /* ESDHC2 */ | 37 | esdhc@70008000 { /* ESDHC2 */ |
38 | cd-gpios = <&gpio0 6 0>; /* GPIO1_6 */ | 38 | cd-gpios = <&gpio1 6 0>; |
39 | wp-gpios = <&gpio0 5 0>; /* GPIO1_5 */ | 39 | wp-gpios = <&gpio1 5 0>; |
40 | status = "okay"; | 40 | status = "okay"; |
41 | }; | 41 | }; |
42 | 42 | ||
43 | uart2: uart@7000c000 { /* UART3 */ | 43 | uart3: uart@7000c000 { |
44 | fsl,uart-has-rtscts; | 44 | fsl,uart-has-rtscts; |
45 | status = "okay"; | 45 | status = "okay"; |
46 | }; | 46 | }; |
47 | 47 | ||
48 | ecspi@70010000 { /* ECSPI1 */ | 48 | ecspi@70010000 { /* ECSPI1 */ |
49 | fsl,spi-num-chipselects = <2>; | 49 | fsl,spi-num-chipselects = <2>; |
50 | cs-gpios = <&gpio3 24 0>, /* GPIO4_24 */ | 50 | cs-gpios = <&gpio4 24 0>, <&gpio4 25 0>; |
51 | <&gpio3 25 0>; /* GPIO4_25 */ | ||
52 | status = "okay"; | 51 | status = "okay"; |
53 | 52 | ||
54 | pmic: mc13892@0 { | 53 | pmic: mc13892@0 { |
@@ -57,7 +56,7 @@ | |||
57 | compatible = "fsl,mc13892"; | 56 | compatible = "fsl,mc13892"; |
58 | spi-max-frequency = <6000000>; | 57 | spi-max-frequency = <6000000>; |
59 | reg = <0>; | 58 | reg = <0>; |
60 | mc13xxx-irq-gpios = <&gpio0 8 0>; /* GPIO1_8 */ | 59 | mc13xxx-irq-gpios = <&gpio1 8 0>; |
61 | fsl,mc13xxx-uses-regulator; | 60 | fsl,mc13xxx-uses-regulator; |
62 | }; | 61 | }; |
63 | 62 | ||
@@ -91,12 +90,12 @@ | |||
91 | reg = <0x73fa8000 0x4000>; | 90 | reg = <0x73fa8000 0x4000>; |
92 | }; | 91 | }; |
93 | 92 | ||
94 | uart0: uart@73fbc000 { | 93 | uart1: uart@73fbc000 { |
95 | fsl,uart-has-rtscts; | 94 | fsl,uart-has-rtscts; |
96 | status = "okay"; | 95 | status = "okay"; |
97 | }; | 96 | }; |
98 | 97 | ||
99 | uart1: uart@73fc0000 { | 98 | uart2: uart@73fc0000 { |
100 | status = "okay"; | 99 | status = "okay"; |
101 | }; | 100 | }; |
102 | }; | 101 | }; |
@@ -127,7 +126,7 @@ | |||
127 | 126 | ||
128 | power { | 127 | power { |
129 | label = "Power Button"; | 128 | label = "Power Button"; |
130 | gpios = <&gpio1 21 0>; | 129 | gpios = <&gpio2 21 0>; |
131 | linux,code = <116>; /* KEY_POWER */ | 130 | linux,code = <116>; /* KEY_POWER */ |
132 | gpio-key,wakeup; | 131 | gpio-key,wakeup; |
133 | }; | 132 | }; |
diff --git a/arch/arm/boot/dts/imx51.dtsi b/arch/arm/boot/dts/imx51.dtsi index 327ab8e3a4c..6663986fe1c 100644 --- a/arch/arm/boot/dts/imx51.dtsi +++ b/arch/arm/boot/dts/imx51.dtsi | |||
@@ -14,9 +14,9 @@ | |||
14 | 14 | ||
15 | / { | 15 | / { |
16 | aliases { | 16 | aliases { |
17 | serial0 = &uart0; | 17 | serial0 = &uart1; |
18 | serial1 = &uart1; | 18 | serial1 = &uart2; |
19 | serial2 = &uart2; | 19 | serial2 = &uart3; |
20 | }; | 20 | }; |
21 | 21 | ||
22 | tzic: tz-interrupt-controller@e0000000 { | 22 | tzic: tz-interrupt-controller@e0000000 { |
@@ -86,7 +86,7 @@ | |||
86 | status = "disabled"; | 86 | status = "disabled"; |
87 | }; | 87 | }; |
88 | 88 | ||
89 | uart2: uart@7000c000 { /* UART3 */ | 89 | uart3: uart@7000c000 { |
90 | compatible = "fsl,imx51-uart", "fsl,imx21-uart"; | 90 | compatible = "fsl,imx51-uart", "fsl,imx21-uart"; |
91 | reg = <0x7000c000 0x4000>; | 91 | reg = <0x7000c000 0x4000>; |
92 | interrupts = <33>; | 92 | interrupts = <33>; |
@@ -117,7 +117,7 @@ | |||
117 | }; | 117 | }; |
118 | }; | 118 | }; |
119 | 119 | ||
120 | gpio0: gpio@73f84000 { /* GPIO1 */ | 120 | gpio1: gpio@73f84000 { |
121 | compatible = "fsl,imx51-gpio", "fsl,imx31-gpio"; | 121 | compatible = "fsl,imx51-gpio", "fsl,imx31-gpio"; |
122 | reg = <0x73f84000 0x4000>; | 122 | reg = <0x73f84000 0x4000>; |
123 | interrupts = <50 51>; | 123 | interrupts = <50 51>; |
@@ -127,7 +127,7 @@ | |||
127 | #interrupt-cells = <1>; | 127 | #interrupt-cells = <1>; |
128 | }; | 128 | }; |
129 | 129 | ||
130 | gpio1: gpio@73f88000 { /* GPIO2 */ | 130 | gpio2: gpio@73f88000 { |
131 | compatible = "fsl,imx51-gpio", "fsl,imx31-gpio"; | 131 | compatible = "fsl,imx51-gpio", "fsl,imx31-gpio"; |
132 | reg = <0x73f88000 0x4000>; | 132 | reg = <0x73f88000 0x4000>; |
133 | interrupts = <52 53>; | 133 | interrupts = <52 53>; |
@@ -137,7 +137,7 @@ | |||
137 | #interrupt-cells = <1>; | 137 | #interrupt-cells = <1>; |
138 | }; | 138 | }; |
139 | 139 | ||
140 | gpio2: gpio@73f8c000 { /* GPIO3 */ | 140 | gpio3: gpio@73f8c000 { |
141 | compatible = "fsl,imx51-gpio", "fsl,imx31-gpio"; | 141 | compatible = "fsl,imx51-gpio", "fsl,imx31-gpio"; |
142 | reg = <0x73f8c000 0x4000>; | 142 | reg = <0x73f8c000 0x4000>; |
143 | interrupts = <54 55>; | 143 | interrupts = <54 55>; |
@@ -147,7 +147,7 @@ | |||
147 | #interrupt-cells = <1>; | 147 | #interrupt-cells = <1>; |
148 | }; | 148 | }; |
149 | 149 | ||
150 | gpio3: gpio@73f90000 { /* GPIO4 */ | 150 | gpio4: gpio@73f90000 { |
151 | compatible = "fsl,imx51-gpio", "fsl,imx31-gpio"; | 151 | compatible = "fsl,imx51-gpio", "fsl,imx31-gpio"; |
152 | reg = <0x73f90000 0x4000>; | 152 | reg = <0x73f90000 0x4000>; |
153 | interrupts = <56 57>; | 153 | interrupts = <56 57>; |
@@ -171,14 +171,14 @@ | |||
171 | status = "disabled"; | 171 | status = "disabled"; |
172 | }; | 172 | }; |
173 | 173 | ||
174 | uart0: uart@73fbc000 { | 174 | uart1: uart@73fbc000 { |
175 | compatible = "fsl,imx51-uart", "fsl,imx21-uart"; | 175 | compatible = "fsl,imx51-uart", "fsl,imx21-uart"; |
176 | reg = <0x73fbc000 0x4000>; | 176 | reg = <0x73fbc000 0x4000>; |
177 | interrupts = <31>; | 177 | interrupts = <31>; |
178 | status = "disabled"; | 178 | status = "disabled"; |
179 | }; | 179 | }; |
180 | 180 | ||
181 | uart1: uart@73fc0000 { | 181 | uart2: uart@73fc0000 { |
182 | compatible = "fsl,imx51-uart", "fsl,imx21-uart"; | 182 | compatible = "fsl,imx51-uart", "fsl,imx21-uart"; |
183 | reg = <0x73fc0000 0x4000>; | 183 | reg = <0x73fc0000 0x4000>; |
184 | interrupts = <32>; | 184 | interrupts = <32>; |
diff --git a/arch/arm/boot/dts/imx53-ard.dts b/arch/arm/boot/dts/imx53-ard.dts index 2ab7f80a0a3..2dccce46ed8 100644 --- a/arch/arm/boot/dts/imx53-ard.dts +++ b/arch/arm/boot/dts/imx53-ard.dts | |||
@@ -29,8 +29,8 @@ | |||
29 | aips@50000000 { /* AIPS1 */ | 29 | aips@50000000 { /* AIPS1 */ |
30 | spba@50000000 { | 30 | spba@50000000 { |
31 | esdhc@50004000 { /* ESDHC1 */ | 31 | esdhc@50004000 { /* ESDHC1 */ |
32 | cd-gpios = <&gpio0 1 0>; /* GPIO1_1 */ | 32 | cd-gpios = <&gpio1 1 0>; |
33 | wp-gpios = <&gpio0 9 0>; /* GPIO1_9 */ | 33 | wp-gpios = <&gpio1 9 0>; |
34 | status = "okay"; | 34 | status = "okay"; |
35 | }; | 35 | }; |
36 | }; | 36 | }; |
@@ -44,7 +44,7 @@ | |||
44 | reg = <0x53fa8000 0x4000>; | 44 | reg = <0x53fa8000 0x4000>; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | uart0: uart@53fbc000 { /* UART1 */ | 47 | uart1: uart@53fbc000 { |
48 | status = "okay"; | 48 | status = "okay"; |
49 | }; | 49 | }; |
50 | }; | 50 | }; |
@@ -67,7 +67,7 @@ | |||
67 | compatible = "smsc,lan9220", "smsc,lan9115"; | 67 | compatible = "smsc,lan9220", "smsc,lan9115"; |
68 | reg = <0xf4000000 0x2000000>; | 68 | reg = <0xf4000000 0x2000000>; |
69 | phy-mode = "mii"; | 69 | phy-mode = "mii"; |
70 | interrupt-parent = <&gpio1>; | 70 | interrupt-parent = <&gpio2>; |
71 | interrupts = <31>; | 71 | interrupts = <31>; |
72 | reg-io-width = <4>; | 72 | reg-io-width = <4>; |
73 | smsc,irq-push-pull; | 73 | smsc,irq-push-pull; |
@@ -79,34 +79,34 @@ | |||
79 | 79 | ||
80 | home { | 80 | home { |
81 | label = "Home"; | 81 | label = "Home"; |
82 | gpios = <&gpio4 10 0>; /* GPIO5_10 */ | 82 | gpios = <&gpio5 10 0>; |
83 | linux,code = <102>; /* KEY_HOME */ | 83 | linux,code = <102>; /* KEY_HOME */ |
84 | gpio-key,wakeup; | 84 | gpio-key,wakeup; |
85 | }; | 85 | }; |
86 | 86 | ||
87 | back { | 87 | back { |
88 | label = "Back"; | 88 | label = "Back"; |
89 | gpios = <&gpio4 11 0>; /* GPIO5_11 */ | 89 | gpios = <&gpio5 11 0>; |
90 | linux,code = <158>; /* KEY_BACK */ | 90 | linux,code = <158>; /* KEY_BACK */ |
91 | gpio-key,wakeup; | 91 | gpio-key,wakeup; |
92 | }; | 92 | }; |
93 | 93 | ||
94 | program { | 94 | program { |
95 | label = "Program"; | 95 | label = "Program"; |
96 | gpios = <&gpio4 12 0>; /* GPIO5_12 */ | 96 | gpios = <&gpio5 12 0>; |
97 | linux,code = <362>; /* KEY_PROGRAM */ | 97 | linux,code = <362>; /* KEY_PROGRAM */ |
98 | gpio-key,wakeup; | 98 | gpio-key,wakeup; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | volume-up { | 101 | volume-up { |
102 | label = "Volume Up"; | 102 | label = "Volume Up"; |
103 | gpios = <&gpio4 13 0>; /* GPIO5_13 */ | 103 | gpios = <&gpio5 13 0>; |
104 | linux,code = <115>; /* KEY_VOLUMEUP */ | 104 | linux,code = <115>; /* KEY_VOLUMEUP */ |
105 | }; | 105 | }; |
106 | 106 | ||
107 | volume-down { | 107 | volume-down { |
108 | label = "Volume Down"; | 108 | label = "Volume Down"; |
109 | gpios = <&gpio3 0 0>; /* GPIO4_0 */ | 109 | gpios = <&gpio4 0 0>; |
110 | linux,code = <114>; /* KEY_VOLUMEDOWN */ | 110 | linux,code = <114>; /* KEY_VOLUMEDOWN */ |
111 | }; | 111 | }; |
112 | }; | 112 | }; |
diff --git a/arch/arm/boot/dts/imx53-evk.dts b/arch/arm/boot/dts/imx53-evk.dts index 3f3a88185ff..5bac4aa4800 100644 --- a/arch/arm/boot/dts/imx53-evk.dts +++ b/arch/arm/boot/dts/imx53-evk.dts | |||
@@ -29,15 +29,14 @@ | |||
29 | aips@50000000 { /* AIPS1 */ | 29 | aips@50000000 { /* AIPS1 */ |
30 | spba@50000000 { | 30 | spba@50000000 { |
31 | esdhc@50004000 { /* ESDHC1 */ | 31 | esdhc@50004000 { /* ESDHC1 */ |
32 | cd-gpios = <&gpio2 13 0>; /* GPIO3_13 */ | 32 | cd-gpios = <&gpio3 13 0>; |
33 | wp-gpios = <&gpio2 14 0>; /* GPIO3_14 */ | 33 | wp-gpios = <&gpio3 14 0>; |
34 | status = "okay"; | 34 | status = "okay"; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | ecspi@50010000 { /* ECSPI1 */ | 37 | ecspi@50010000 { /* ECSPI1 */ |
38 | fsl,spi-num-chipselects = <2>; | 38 | fsl,spi-num-chipselects = <2>; |
39 | cs-gpios = <&gpio1 30 0>, /* GPIO2_30 */ | 39 | cs-gpios = <&gpio2 30 0>, <&gpio3 19 0>; |
40 | <&gpio2 19 0>; /* GPIO3_19 */ | ||
41 | status = "okay"; | 40 | status = "okay"; |
42 | 41 | ||
43 | flash: at45db321d@1 { | 42 | flash: at45db321d@1 { |
@@ -61,8 +60,8 @@ | |||
61 | }; | 60 | }; |
62 | 61 | ||
63 | esdhc@50020000 { /* ESDHC3 */ | 62 | esdhc@50020000 { /* ESDHC3 */ |
64 | cd-gpios = <&gpio2 11 0>; /* GPIO3_11 */ | 63 | cd-gpios = <&gpio3 11 0>; |
65 | wp-gpios = <&gpio2 12 0>; /* GPIO3_12 */ | 64 | wp-gpios = <&gpio3 12 0>; |
66 | status = "okay"; | 65 | status = "okay"; |
67 | }; | 66 | }; |
68 | }; | 67 | }; |
@@ -76,7 +75,7 @@ | |||
76 | reg = <0x53fa8000 0x4000>; | 75 | reg = <0x53fa8000 0x4000>; |
77 | }; | 76 | }; |
78 | 77 | ||
79 | uart0: uart@53fbc000 { /* UART1 */ | 78 | uart1: uart@53fbc000 { |
80 | status = "okay"; | 79 | status = "okay"; |
81 | }; | 80 | }; |
82 | }; | 81 | }; |
@@ -102,7 +101,7 @@ | |||
102 | 101 | ||
103 | fec@63fec000 { | 102 | fec@63fec000 { |
104 | phy-mode = "rmii"; | 103 | phy-mode = "rmii"; |
105 | phy-reset-gpios = <&gpio6 6 0>; /* GPIO7_6 */ | 104 | phy-reset-gpios = <&gpio7 6 0>; |
106 | status = "okay"; | 105 | status = "okay"; |
107 | }; | 106 | }; |
108 | }; | 107 | }; |
@@ -113,7 +112,7 @@ | |||
113 | 112 | ||
114 | green { | 113 | green { |
115 | label = "Heartbeat"; | 114 | label = "Heartbeat"; |
116 | gpios = <&gpio6 7 0>; /* GPIO7_7 */ | 115 | gpios = <&gpio7 7 0>; |
117 | linux,default-trigger = "heartbeat"; | 116 | linux,default-trigger = "heartbeat"; |
118 | }; | 117 | }; |
119 | }; | 118 | }; |
diff --git a/arch/arm/boot/dts/imx53-qsb.dts b/arch/arm/boot/dts/imx53-qsb.dts index ae6de6d0c3f..5c57c8672c3 100644 --- a/arch/arm/boot/dts/imx53-qsb.dts +++ b/arch/arm/boot/dts/imx53-qsb.dts | |||
@@ -29,13 +29,13 @@ | |||
29 | aips@50000000 { /* AIPS1 */ | 29 | aips@50000000 { /* AIPS1 */ |
30 | spba@50000000 { | 30 | spba@50000000 { |
31 | esdhc@50004000 { /* ESDHC1 */ | 31 | esdhc@50004000 { /* ESDHC1 */ |
32 | cd-gpios = <&gpio2 13 0>; /* GPIO3_13 */ | 32 | cd-gpios = <&gpio3 13 0>; |
33 | status = "okay"; | 33 | status = "okay"; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | esdhc@50020000 { /* ESDHC3 */ | 36 | esdhc@50020000 { /* ESDHC3 */ |
37 | cd-gpios = <&gpio2 11 0>; /* GPIO3_11 */ | 37 | cd-gpios = <&gpio3 11 0>; |
38 | wp-gpios = <&gpio2 12 0>; /* GPIO3_12 */ | 38 | wp-gpios = <&gpio3 12 0>; |
39 | status = "okay"; | 39 | status = "okay"; |
40 | }; | 40 | }; |
41 | }; | 41 | }; |
@@ -49,7 +49,7 @@ | |||
49 | reg = <0x53fa8000 0x4000>; | 49 | reg = <0x53fa8000 0x4000>; |
50 | }; | 50 | }; |
51 | 51 | ||
52 | uart0: uart@53fbc000 { /* UART1 */ | 52 | uart1: uart@53fbc000 { |
53 | status = "okay"; | 53 | status = "okay"; |
54 | }; | 54 | }; |
55 | }; | 55 | }; |
@@ -84,7 +84,7 @@ | |||
84 | 84 | ||
85 | fec@63fec000 { | 85 | fec@63fec000 { |
86 | phy-mode = "rmii"; | 86 | phy-mode = "rmii"; |
87 | phy-reset-gpios = <&gpio6 6 0>; /* GPIO7_6 */ | 87 | phy-reset-gpios = <&gpio7 6 0>; |
88 | status = "okay"; | 88 | status = "okay"; |
89 | }; | 89 | }; |
90 | }; | 90 | }; |
@@ -95,20 +95,20 @@ | |||
95 | 95 | ||
96 | power { | 96 | power { |
97 | label = "Power Button"; | 97 | label = "Power Button"; |
98 | gpios = <&gpio0 8 0>; /* GPIO1_8 */ | 98 | gpios = <&gpio1 8 0>; |
99 | linux,code = <116>; /* KEY_POWER */ | 99 | linux,code = <116>; /* KEY_POWER */ |
100 | gpio-key,wakeup; | 100 | gpio-key,wakeup; |
101 | }; | 101 | }; |
102 | 102 | ||
103 | volume-up { | 103 | volume-up { |
104 | label = "Volume Up"; | 104 | label = "Volume Up"; |
105 | gpios = <&gpio1 14 0>; /* GPIO2_14 */ | 105 | gpios = <&gpio2 14 0>; |
106 | linux,code = <115>; /* KEY_VOLUMEUP */ | 106 | linux,code = <115>; /* KEY_VOLUMEUP */ |
107 | }; | 107 | }; |
108 | 108 | ||
109 | volume-down { | 109 | volume-down { |
110 | label = "Volume Down"; | 110 | label = "Volume Down"; |
111 | gpios = <&gpio1 15 0>; /* GPIO2_15 */ | 111 | gpios = <&gpio2 15 0>; |
112 | linux,code = <114>; /* KEY_VOLUMEDOWN */ | 112 | linux,code = <114>; /* KEY_VOLUMEDOWN */ |
113 | }; | 113 | }; |
114 | }; | 114 | }; |
@@ -118,7 +118,7 @@ | |||
118 | 118 | ||
119 | user { | 119 | user { |
120 | label = "Heartbeat"; | 120 | label = "Heartbeat"; |
121 | gpios = <&gpio6 7 0>; /* GPIO7_7 */ | 121 | gpios = <&gpio7 7 0>; |
122 | linux,default-trigger = "heartbeat"; | 122 | linux,default-trigger = "heartbeat"; |
123 | }; | 123 | }; |
124 | }; | 124 | }; |
diff --git a/arch/arm/boot/dts/imx53-smd.dts b/arch/arm/boot/dts/imx53-smd.dts index b1c062eea71..c7ee86c2dfb 100644 --- a/arch/arm/boot/dts/imx53-smd.dts +++ b/arch/arm/boot/dts/imx53-smd.dts | |||
@@ -29,8 +29,8 @@ | |||
29 | aips@50000000 { /* AIPS1 */ | 29 | aips@50000000 { /* AIPS1 */ |
30 | spba@50000000 { | 30 | spba@50000000 { |
31 | esdhc@50004000 { /* ESDHC1 */ | 31 | esdhc@50004000 { /* ESDHC1 */ |
32 | cd-gpios = <&gpio2 13 0>; /* GPIO3_13 */ | 32 | cd-gpios = <&gpio3 13 0>; |
33 | wp-gpios = <&gpio3 11 0>; /* GPIO4_11 */ | 33 | wp-gpios = <&gpio4 11 0>; |
34 | status = "okay"; | 34 | status = "okay"; |
35 | }; | 35 | }; |
36 | 36 | ||
@@ -39,15 +39,14 @@ | |||
39 | status = "okay"; | 39 | status = "okay"; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | uart2: uart@5000c000 { /* UART3 */ | 42 | uart3: uart@5000c000 { |
43 | fsl,uart-has-rtscts; | 43 | fsl,uart-has-rtscts; |
44 | status = "okay"; | 44 | status = "okay"; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | ecspi@50010000 { /* ECSPI1 */ | 47 | ecspi@50010000 { /* ECSPI1 */ |
48 | fsl,spi-num-chipselects = <2>; | 48 | fsl,spi-num-chipselects = <2>; |
49 | cs-gpios = <&gpio1 30 0>, /* GPIO2_30 */ | 49 | cs-gpios = <&gpio2 30 0>, <&gpio3 19 0>; |
50 | <&gpio2 19 0>; /* GPIO3_19 */ | ||
51 | status = "okay"; | 50 | status = "okay"; |
52 | 51 | ||
53 | zigbee: mc1323@0 { | 52 | zigbee: mc1323@0 { |
@@ -91,11 +90,11 @@ | |||
91 | reg = <0x53fa8000 0x4000>; | 90 | reg = <0x53fa8000 0x4000>; |
92 | }; | 91 | }; |
93 | 92 | ||
94 | uart0: uart@53fbc000 { /* UART1 */ | 93 | uart1: uart@53fbc000 { |
95 | status = "okay"; | 94 | status = "okay"; |
96 | }; | 95 | }; |
97 | 96 | ||
98 | uart1: uart@53fc0000 { /* UART2 */ | 97 | uart2: uart@53fc0000 { |
99 | status = "okay"; | 98 | status = "okay"; |
100 | }; | 99 | }; |
101 | }; | 100 | }; |
@@ -145,7 +144,7 @@ | |||
145 | 144 | ||
146 | fec@63fec000 { | 145 | fec@63fec000 { |
147 | phy-mode = "rmii"; | 146 | phy-mode = "rmii"; |
148 | phy-reset-gpios = <&gpio6 6 0>; /* GPIO7_6 */ | 147 | phy-reset-gpios = <&gpio7 6 0>; |
149 | status = "okay"; | 148 | status = "okay"; |
150 | }; | 149 | }; |
151 | }; | 150 | }; |
@@ -156,13 +155,13 @@ | |||
156 | 155 | ||
157 | volume-up { | 156 | volume-up { |
158 | label = "Volume Up"; | 157 | label = "Volume Up"; |
159 | gpios = <&gpio1 14 0>; /* GPIO2_14 */ | 158 | gpios = <&gpio2 14 0>; |
160 | linux,code = <115>; /* KEY_VOLUMEUP */ | 159 | linux,code = <115>; /* KEY_VOLUMEUP */ |
161 | }; | 160 | }; |
162 | 161 | ||
163 | volume-down { | 162 | volume-down { |
164 | label = "Volume Down"; | 163 | label = "Volume Down"; |
165 | gpios = <&gpio1 15 0>; /* GPIO2_15 */ | 164 | gpios = <&gpio2 15 0>; |
166 | linux,code = <114>; /* KEY_VOLUMEDOWN */ | 165 | linux,code = <114>; /* KEY_VOLUMEDOWN */ |
167 | }; | 166 | }; |
168 | }; | 167 | }; |
diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi index 099cd84ee37..5dd91b942c9 100644 --- a/arch/arm/boot/dts/imx53.dtsi +++ b/arch/arm/boot/dts/imx53.dtsi | |||
@@ -14,11 +14,11 @@ | |||
14 | 14 | ||
15 | / { | 15 | / { |
16 | aliases { | 16 | aliases { |
17 | serial0 = &uart0; | 17 | serial0 = &uart1; |
18 | serial1 = &uart1; | 18 | serial1 = &uart2; |
19 | serial2 = &uart2; | 19 | serial2 = &uart3; |
20 | serial3 = &uart3; | 20 | serial3 = &uart4; |
21 | serial4 = &uart4; | 21 | serial4 = &uart5; |
22 | }; | 22 | }; |
23 | 23 | ||
24 | tzic: tz-interrupt-controller@0fffc000 { | 24 | tzic: tz-interrupt-controller@0fffc000 { |
@@ -88,7 +88,7 @@ | |||
88 | status = "disabled"; | 88 | status = "disabled"; |
89 | }; | 89 | }; |
90 | 90 | ||
91 | uart2: uart@5000c000 { /* UART3 */ | 91 | uart3: uart@5000c000 { |
92 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; | 92 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; |
93 | reg = <0x5000c000 0x4000>; | 93 | reg = <0x5000c000 0x4000>; |
94 | interrupts = <33>; | 94 | interrupts = <33>; |
@@ -119,7 +119,7 @@ | |||
119 | }; | 119 | }; |
120 | }; | 120 | }; |
121 | 121 | ||
122 | gpio0: gpio@53f84000 { /* GPIO1 */ | 122 | gpio1: gpio@53f84000 { |
123 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; | 123 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; |
124 | reg = <0x53f84000 0x4000>; | 124 | reg = <0x53f84000 0x4000>; |
125 | interrupts = <50 51>; | 125 | interrupts = <50 51>; |
@@ -129,7 +129,7 @@ | |||
129 | #interrupt-cells = <1>; | 129 | #interrupt-cells = <1>; |
130 | }; | 130 | }; |
131 | 131 | ||
132 | gpio1: gpio@53f88000 { /* GPIO2 */ | 132 | gpio2: gpio@53f88000 { |
133 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; | 133 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; |
134 | reg = <0x53f88000 0x4000>; | 134 | reg = <0x53f88000 0x4000>; |
135 | interrupts = <52 53>; | 135 | interrupts = <52 53>; |
@@ -139,7 +139,7 @@ | |||
139 | #interrupt-cells = <1>; | 139 | #interrupt-cells = <1>; |
140 | }; | 140 | }; |
141 | 141 | ||
142 | gpio2: gpio@53f8c000 { /* GPIO3 */ | 142 | gpio3: gpio@53f8c000 { |
143 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; | 143 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; |
144 | reg = <0x53f8c000 0x4000>; | 144 | reg = <0x53f8c000 0x4000>; |
145 | interrupts = <54 55>; | 145 | interrupts = <54 55>; |
@@ -149,7 +149,7 @@ | |||
149 | #interrupt-cells = <1>; | 149 | #interrupt-cells = <1>; |
150 | }; | 150 | }; |
151 | 151 | ||
152 | gpio3: gpio@53f90000 { /* GPIO4 */ | 152 | gpio4: gpio@53f90000 { |
153 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; | 153 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; |
154 | reg = <0x53f90000 0x4000>; | 154 | reg = <0x53f90000 0x4000>; |
155 | interrupts = <56 57>; | 155 | interrupts = <56 57>; |
@@ -173,21 +173,21 @@ | |||
173 | status = "disabled"; | 173 | status = "disabled"; |
174 | }; | 174 | }; |
175 | 175 | ||
176 | uart0: uart@53fbc000 { /* UART1 */ | 176 | uart1: uart@53fbc000 { |
177 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; | 177 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; |
178 | reg = <0x53fbc000 0x4000>; | 178 | reg = <0x53fbc000 0x4000>; |
179 | interrupts = <31>; | 179 | interrupts = <31>; |
180 | status = "disabled"; | 180 | status = "disabled"; |
181 | }; | 181 | }; |
182 | 182 | ||
183 | uart1: uart@53fc0000 { /* UART2 */ | 183 | uart2: uart@53fc0000 { |
184 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; | 184 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; |
185 | reg = <0x53fc0000 0x4000>; | 185 | reg = <0x53fc0000 0x4000>; |
186 | interrupts = <32>; | 186 | interrupts = <32>; |
187 | status = "disabled"; | 187 | status = "disabled"; |
188 | }; | 188 | }; |
189 | 189 | ||
190 | gpio4: gpio@53fdc000 { /* GPIO5 */ | 190 | gpio5: gpio@53fdc000 { |
191 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; | 191 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; |
192 | reg = <0x53fdc000 0x4000>; | 192 | reg = <0x53fdc000 0x4000>; |
193 | interrupts = <103 104>; | 193 | interrupts = <103 104>; |
@@ -197,7 +197,7 @@ | |||
197 | #interrupt-cells = <1>; | 197 | #interrupt-cells = <1>; |
198 | }; | 198 | }; |
199 | 199 | ||
200 | gpio5: gpio@53fe0000 { /* GPIO6 */ | 200 | gpio6: gpio@53fe0000 { |
201 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; | 201 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; |
202 | reg = <0x53fe0000 0x4000>; | 202 | reg = <0x53fe0000 0x4000>; |
203 | interrupts = <105 106>; | 203 | interrupts = <105 106>; |
@@ -207,7 +207,7 @@ | |||
207 | #interrupt-cells = <1>; | 207 | #interrupt-cells = <1>; |
208 | }; | 208 | }; |
209 | 209 | ||
210 | gpio6: gpio@53fe4000 { /* GPIO7 */ | 210 | gpio7: gpio@53fe4000 { |
211 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; | 211 | compatible = "fsl,imx53-gpio", "fsl,imx31-gpio"; |
212 | reg = <0x53fe4000 0x4000>; | 212 | reg = <0x53fe4000 0x4000>; |
213 | interrupts = <107 108>; | 213 | interrupts = <107 108>; |
@@ -226,7 +226,7 @@ | |||
226 | status = "disabled"; | 226 | status = "disabled"; |
227 | }; | 227 | }; |
228 | 228 | ||
229 | uart3: uart@53ff0000 { /* UART4 */ | 229 | uart4: uart@53ff0000 { |
230 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; | 230 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; |
231 | reg = <0x53ff0000 0x4000>; | 231 | reg = <0x53ff0000 0x4000>; |
232 | interrupts = <13>; | 232 | interrupts = <13>; |
@@ -241,7 +241,7 @@ | |||
241 | reg = <0x60000000 0x10000000>; | 241 | reg = <0x60000000 0x10000000>; |
242 | ranges; | 242 | ranges; |
243 | 243 | ||
244 | uart4: uart@63f90000 { /* UART5 */ | 244 | uart5: uart@63f90000 { |
245 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; | 245 | compatible = "fsl,imx53-uart", "fsl,imx21-uart"; |
246 | reg = <0x63f90000 0x4000>; | 246 | reg = <0x63f90000 0x4000>; |
247 | interrupts = <86>; | 247 | interrupts = <86>; |
diff --git a/arch/arm/boot/dts/imx6q-sabreauto.dts b/arch/arm/boot/dts/imx6q-arm2.dts index 072974e443f..c3977e0478b 100644 --- a/arch/arm/boot/dts/imx6q-sabreauto.dts +++ b/arch/arm/boot/dts/imx6q-arm2.dts | |||
@@ -14,8 +14,8 @@ | |||
14 | /include/ "imx6q.dtsi" | 14 | /include/ "imx6q.dtsi" |
15 | 15 | ||
16 | / { | 16 | / { |
17 | model = "Freescale i.MX6 Quad SABRE Automotive Board"; | 17 | model = "Freescale i.MX6 Quad Armadillo2 Board"; |
18 | compatible = "fsl,imx6q-sabreauto", "fsl,imx6q"; | 18 | compatible = "fsl,imx6q-arm2", "fsl,imx6q"; |
19 | 19 | ||
20 | chosen { | 20 | chosen { |
21 | bootargs = "console=ttymxc0,115200 root=/dev/mmcblk3p3 rootwait"; | 21 | bootargs = "console=ttymxc0,115200 root=/dev/mmcblk3p3 rootwait"; |
@@ -34,8 +34,8 @@ | |||
34 | }; | 34 | }; |
35 | 35 | ||
36 | usdhc@02198000 { /* uSDHC3 */ | 36 | usdhc@02198000 { /* uSDHC3 */ |
37 | cd-gpios = <&gpio5 11 0>; /* GPIO6_11 */ | 37 | cd-gpios = <&gpio6 11 0>; |
38 | wp-gpios = <&gpio5 14 0>; /* GPIO6_14 */ | 38 | wp-gpios = <&gpio6 14 0>; |
39 | status = "okay"; | 39 | status = "okay"; |
40 | }; | 40 | }; |
41 | 41 | ||
@@ -44,7 +44,7 @@ | |||
44 | status = "okay"; | 44 | status = "okay"; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | uart3: uart@021f0000 { /* UART4 */ | 47 | uart4: uart@021f0000 { |
48 | status = "okay"; | 48 | status = "okay"; |
49 | }; | 49 | }; |
50 | }; | 50 | }; |
@@ -55,7 +55,7 @@ | |||
55 | 55 | ||
56 | debug-led { | 56 | debug-led { |
57 | label = "Heartbeat"; | 57 | label = "Heartbeat"; |
58 | gpios = <&gpio2 25 0>; /* GPIO3_25 */ | 58 | gpios = <&gpio3 25 0>; |
59 | linux,default-trigger = "heartbeat"; | 59 | linux,default-trigger = "heartbeat"; |
60 | }; | 60 | }; |
61 | }; | 61 | }; |
diff --git a/arch/arm/boot/dts/imx6q-sabrelite.dts b/arch/arm/boot/dts/imx6q-sabrelite.dts new file mode 100644 index 00000000000..08d920de728 --- /dev/null +++ b/arch/arm/boot/dts/imx6q-sabrelite.dts | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Copyright 2011 Freescale Semiconductor, Inc. | ||
3 | * Copyright 2011 Linaro Ltd. | ||
4 | * | ||
5 | * The code contained herein is licensed under the GNU General Public | ||
6 | * License. You may obtain a copy of the GNU General Public License | ||
7 | * Version 2 or later at the following locations: | ||
8 | * | ||
9 | * http://www.opensource.org/licenses/gpl-license.html | ||
10 | * http://www.gnu.org/copyleft/gpl.html | ||
11 | */ | ||
12 | |||
13 | /dts-v1/; | ||
14 | /include/ "imx6q.dtsi" | ||
15 | |||
16 | / { | ||
17 | model = "Freescale i.MX6 Quad SABRE Lite Board"; | ||
18 | compatible = "fsl,imx6q-sabrelite", "fsl,imx6q"; | ||
19 | |||
20 | memory { | ||
21 | reg = <0x10000000 0x40000000>; | ||
22 | }; | ||
23 | |||
24 | soc { | ||
25 | aips-bus@02100000 { /* AIPS2 */ | ||
26 | enet@02188000 { | ||
27 | phy-mode = "rgmii"; | ||
28 | phy-reset-gpios = <&gpio3 23 0>; | ||
29 | status = "okay"; | ||
30 | }; | ||
31 | |||
32 | usdhc@02198000 { /* uSDHC3 */ | ||
33 | cd-gpios = <&gpio7 0 0>; | ||
34 | wp-gpios = <&gpio7 1 0>; | ||
35 | status = "okay"; | ||
36 | }; | ||
37 | |||
38 | usdhc@0219c000 { /* uSDHC4 */ | ||
39 | cd-gpios = <&gpio2 6 0>; | ||
40 | wp-gpios = <&gpio2 7 0>; | ||
41 | status = "okay"; | ||
42 | }; | ||
43 | |||
44 | uart2: uart@021e8000 { | ||
45 | status = "okay"; | ||
46 | }; | ||
47 | }; | ||
48 | }; | ||
49 | }; | ||
diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi index 7dda599558c..263e8f3664b 100644 --- a/arch/arm/boot/dts/imx6q.dtsi +++ b/arch/arm/boot/dts/imx6q.dtsi | |||
@@ -14,11 +14,11 @@ | |||
14 | 14 | ||
15 | / { | 15 | / { |
16 | aliases { | 16 | aliases { |
17 | serial0 = &uart0; | 17 | serial0 = &uart1; |
18 | serial1 = &uart1; | 18 | serial1 = &uart2; |
19 | serial2 = &uart2; | 19 | serial2 = &uart3; |
20 | serial3 = &uart3; | 20 | serial3 = &uart4; |
21 | serial4 = &uart4; | 21 | serial4 = &uart5; |
22 | }; | 22 | }; |
23 | 23 | ||
24 | cpus { | 24 | cpus { |
@@ -165,7 +165,7 @@ | |||
165 | status = "disabled"; | 165 | status = "disabled"; |
166 | }; | 166 | }; |
167 | 167 | ||
168 | uart0: uart@02020000 { /* UART1 */ | 168 | uart1: uart@02020000 { |
169 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; | 169 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; |
170 | reg = <0x02020000 0x4000>; | 170 | reg = <0x02020000 0x4000>; |
171 | interrupts = <0 26 0x04>; | 171 | interrupts = <0 26 0x04>; |
@@ -247,7 +247,7 @@ | |||
247 | interrupts = <0 55 0x04>; | 247 | interrupts = <0 55 0x04>; |
248 | }; | 248 | }; |
249 | 249 | ||
250 | gpio0: gpio@0209c000 { /* GPIO1 */ | 250 | gpio1: gpio@0209c000 { |
251 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; | 251 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; |
252 | reg = <0x0209c000 0x4000>; | 252 | reg = <0x0209c000 0x4000>; |
253 | interrupts = <0 66 0x04 0 67 0x04>; | 253 | interrupts = <0 66 0x04 0 67 0x04>; |
@@ -257,7 +257,7 @@ | |||
257 | #interrupt-cells = <1>; | 257 | #interrupt-cells = <1>; |
258 | }; | 258 | }; |
259 | 259 | ||
260 | gpio1: gpio@020a0000 { /* GPIO2 */ | 260 | gpio2: gpio@020a0000 { |
261 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; | 261 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; |
262 | reg = <0x020a0000 0x4000>; | 262 | reg = <0x020a0000 0x4000>; |
263 | interrupts = <0 68 0x04 0 69 0x04>; | 263 | interrupts = <0 68 0x04 0 69 0x04>; |
@@ -267,7 +267,7 @@ | |||
267 | #interrupt-cells = <1>; | 267 | #interrupt-cells = <1>; |
268 | }; | 268 | }; |
269 | 269 | ||
270 | gpio2: gpio@020a4000 { /* GPIO3 */ | 270 | gpio3: gpio@020a4000 { |
271 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; | 271 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; |
272 | reg = <0x020a4000 0x4000>; | 272 | reg = <0x020a4000 0x4000>; |
273 | interrupts = <0 70 0x04 0 71 0x04>; | 273 | interrupts = <0 70 0x04 0 71 0x04>; |
@@ -277,7 +277,7 @@ | |||
277 | #interrupt-cells = <1>; | 277 | #interrupt-cells = <1>; |
278 | }; | 278 | }; |
279 | 279 | ||
280 | gpio3: gpio@020a8000 { /* GPIO4 */ | 280 | gpio4: gpio@020a8000 { |
281 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; | 281 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; |
282 | reg = <0x020a8000 0x4000>; | 282 | reg = <0x020a8000 0x4000>; |
283 | interrupts = <0 72 0x04 0 73 0x04>; | 283 | interrupts = <0 72 0x04 0 73 0x04>; |
@@ -287,7 +287,7 @@ | |||
287 | #interrupt-cells = <1>; | 287 | #interrupt-cells = <1>; |
288 | }; | 288 | }; |
289 | 289 | ||
290 | gpio4: gpio@020ac000 { /* GPIO5 */ | 290 | gpio5: gpio@020ac000 { |
291 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; | 291 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; |
292 | reg = <0x020ac000 0x4000>; | 292 | reg = <0x020ac000 0x4000>; |
293 | interrupts = <0 74 0x04 0 75 0x04>; | 293 | interrupts = <0 74 0x04 0 75 0x04>; |
@@ -297,7 +297,7 @@ | |||
297 | #interrupt-cells = <1>; | 297 | #interrupt-cells = <1>; |
298 | }; | 298 | }; |
299 | 299 | ||
300 | gpio5: gpio@020b0000 { /* GPIO6 */ | 300 | gpio6: gpio@020b0000 { |
301 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; | 301 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; |
302 | reg = <0x020b0000 0x4000>; | 302 | reg = <0x020b0000 0x4000>; |
303 | interrupts = <0 76 0x04 0 77 0x04>; | 303 | interrupts = <0 76 0x04 0 77 0x04>; |
@@ -307,7 +307,7 @@ | |||
307 | #interrupt-cells = <1>; | 307 | #interrupt-cells = <1>; |
308 | }; | 308 | }; |
309 | 309 | ||
310 | gpio6: gpio@020b4000 { /* GPIO7 */ | 310 | gpio7: gpio@020b4000 { |
311 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; | 311 | compatible = "fsl,imx6q-gpio", "fsl,imx31-gpio"; |
312 | reg = <0x020b4000 0x4000>; | 312 | reg = <0x020b4000 0x4000>; |
313 | interrupts = <0 78 0x04 0 79 0x04>; | 313 | interrupts = <0 78 0x04 0 79 0x04>; |
@@ -543,28 +543,28 @@ | |||
543 | interrupts = <0 18 0x04>; | 543 | interrupts = <0 18 0x04>; |
544 | }; | 544 | }; |
545 | 545 | ||
546 | uart1: uart@021e8000 { /* UART2 */ | 546 | uart2: uart@021e8000 { |
547 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; | 547 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; |
548 | reg = <0x021e8000 0x4000>; | 548 | reg = <0x021e8000 0x4000>; |
549 | interrupts = <0 27 0x04>; | 549 | interrupts = <0 27 0x04>; |
550 | status = "disabled"; | 550 | status = "disabled"; |
551 | }; | 551 | }; |
552 | 552 | ||
553 | uart2: uart@021ec000 { /* UART3 */ | 553 | uart3: uart@021ec000 { |
554 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; | 554 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; |
555 | reg = <0x021ec000 0x4000>; | 555 | reg = <0x021ec000 0x4000>; |
556 | interrupts = <0 28 0x04>; | 556 | interrupts = <0 28 0x04>; |
557 | status = "disabled"; | 557 | status = "disabled"; |
558 | }; | 558 | }; |
559 | 559 | ||
560 | uart3: uart@021f0000 { /* UART4 */ | 560 | uart4: uart@021f0000 { |
561 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; | 561 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; |
562 | reg = <0x021f0000 0x4000>; | 562 | reg = <0x021f0000 0x4000>; |
563 | interrupts = <0 29 0x04>; | 563 | interrupts = <0 29 0x04>; |
564 | status = "disabled"; | 564 | status = "disabled"; |
565 | }; | 565 | }; |
566 | 566 | ||
567 | uart4: uart@021f4000 { /* UART5 */ | 567 | uart5: uart@021f4000 { |
568 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; | 568 | compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; |
569 | reg = <0x021f4000 0x4000>; | 569 | reg = <0x021f4000 0x4000>; |
570 | interrupts = <0 30 0x04>; | 570 | interrupts = <0 30 0x04>; |
diff --git a/arch/arm/boot/dts/tegra-cardhu.dts b/arch/arm/boot/dts/tegra-cardhu.dts new file mode 100644 index 00000000000..70c41fc897d --- /dev/null +++ b/arch/arm/boot/dts/tegra-cardhu.dts | |||
@@ -0,0 +1,36 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | /include/ "tegra30.dtsi" | ||
4 | |||
5 | / { | ||
6 | model = "NVIDIA Tegra30 Cardhu evaluation board"; | ||
7 | compatible = "nvidia,cardhu", "nvidia,tegra30"; | ||
8 | |||
9 | memory { | ||
10 | reg = < 0x80000000 0x40000000 >; | ||
11 | }; | ||
12 | |||
13 | serial@70006000 { | ||
14 | clock-frequency = < 408000000 >; | ||
15 | }; | ||
16 | |||
17 | i2c@7000c000 { | ||
18 | clock-frequency = <100000>; | ||
19 | }; | ||
20 | |||
21 | i2c@7000c400 { | ||
22 | clock-frequency = <100000>; | ||
23 | }; | ||
24 | |||
25 | i2c@7000c500 { | ||
26 | clock-frequency = <100000>; | ||
27 | }; | ||
28 | |||
29 | i2c@7000c700 { | ||
30 | clock-frequency = <100000>; | ||
31 | }; | ||
32 | |||
33 | i2c@7000d000 { | ||
34 | clock-frequency = <100000>; | ||
35 | }; | ||
36 | }; | ||
diff --git a/arch/arm/boot/dts/tegra-harmony.dts b/arch/arm/boot/dts/tegra-harmony.dts index 0e225b86b65..80afa1b70b8 100644 --- a/arch/arm/boot/dts/tegra-harmony.dts +++ b/arch/arm/boot/dts/tegra-harmony.dts | |||
@@ -1,16 +1,11 @@ | |||
1 | /dts-v1/; | 1 | /dts-v1/; |
2 | 2 | ||
3 | /memreserve/ 0x1c000000 0x04000000; | ||
4 | /include/ "tegra20.dtsi" | 3 | /include/ "tegra20.dtsi" |
5 | 4 | ||
6 | / { | 5 | / { |
7 | model = "NVIDIA Tegra2 Harmony evaluation board"; | 6 | model = "NVIDIA Tegra2 Harmony evaluation board"; |
8 | compatible = "nvidia,harmony", "nvidia,tegra20"; | 7 | compatible = "nvidia,harmony", "nvidia,tegra20"; |
9 | 8 | ||
10 | chosen { | ||
11 | bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootwait"; | ||
12 | }; | ||
13 | |||
14 | memory@0 { | 9 | memory@0 { |
15 | reg = < 0x00000000 0x40000000 >; | 10 | reg = < 0x00000000 0x40000000 >; |
16 | }; | 11 | }; |
@@ -52,16 +47,40 @@ | |||
52 | ext-mic-en-gpios = <&gpio 185 0>; | 47 | ext-mic-en-gpios = <&gpio 185 0>; |
53 | }; | 48 | }; |
54 | 49 | ||
50 | serial@70006000 { | ||
51 | status = "disable"; | ||
52 | }; | ||
53 | |||
54 | serial@70006040 { | ||
55 | status = "disable"; | ||
56 | }; | ||
57 | |||
58 | serial@70006200 { | ||
59 | status = "disable"; | ||
60 | }; | ||
61 | |||
55 | serial@70006300 { | 62 | serial@70006300 { |
56 | clock-frequency = < 216000000 >; | 63 | clock-frequency = < 216000000 >; |
57 | }; | 64 | }; |
58 | 65 | ||
66 | serial@70006400 { | ||
67 | status = "disable"; | ||
68 | }; | ||
69 | |||
70 | sdhci@c8000000 { | ||
71 | status = "disable"; | ||
72 | }; | ||
73 | |||
59 | sdhci@c8000200 { | 74 | sdhci@c8000200 { |
60 | cd-gpios = <&gpio 69 0>; /* gpio PI5 */ | 75 | cd-gpios = <&gpio 69 0>; /* gpio PI5 */ |
61 | wp-gpios = <&gpio 57 0>; /* gpio PH1 */ | 76 | wp-gpios = <&gpio 57 0>; /* gpio PH1 */ |
62 | power-gpios = <&gpio 155 0>; /* gpio PT3 */ | 77 | power-gpios = <&gpio 155 0>; /* gpio PT3 */ |
63 | }; | 78 | }; |
64 | 79 | ||
80 | sdhci@c8000400 { | ||
81 | status = "disable"; | ||
82 | }; | ||
83 | |||
65 | sdhci@c8000600 { | 84 | sdhci@c8000600 { |
66 | cd-gpios = <&gpio 58 0>; /* gpio PH2 */ | 85 | cd-gpios = <&gpio 58 0>; /* gpio PH2 */ |
67 | wp-gpios = <&gpio 59 0>; /* gpio PH3 */ | 86 | wp-gpios = <&gpio 59 0>; /* gpio PH3 */ |
diff --git a/arch/arm/boot/dts/tegra-paz00.dts b/arch/arm/boot/dts/tegra-paz00.dts new file mode 100644 index 00000000000..1a1d7023b69 --- /dev/null +++ b/arch/arm/boot/dts/tegra-paz00.dts | |||
@@ -0,0 +1,77 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | /include/ "tegra20.dtsi" | ||
4 | |||
5 | / { | ||
6 | model = "Toshiba AC100 / Dynabook AZ"; | ||
7 | compatible = "compal,paz00", "nvidia,tegra20"; | ||
8 | |||
9 | memory@0 { | ||
10 | reg = <0x00000000 0x20000000>; | ||
11 | }; | ||
12 | |||
13 | i2c@7000c000 { | ||
14 | clock-frequency = <400000>; | ||
15 | }; | ||
16 | |||
17 | i2c@7000c400 { | ||
18 | clock-frequency = <400000>; | ||
19 | }; | ||
20 | |||
21 | i2c@7000c500 { | ||
22 | status = "disable"; | ||
23 | }; | ||
24 | |||
25 | nvec@7000c500 { | ||
26 | #address-cells = <1>; | ||
27 | #size-cells = <0>; | ||
28 | compatible = "nvidia,nvec"; | ||
29 | reg = <0x7000C500 0x100>; | ||
30 | interrupts = <0 92 0x04>; | ||
31 | clock-frequency = <80000>; | ||
32 | request-gpios = <&gpio 170 0>; | ||
33 | slave-addr = <138>; | ||
34 | }; | ||
35 | |||
36 | i2c@7000d000 { | ||
37 | clock-frequency = <400000>; | ||
38 | }; | ||
39 | |||
40 | serial@70006000 { | ||
41 | clock-frequency = <216000000>; | ||
42 | }; | ||
43 | |||
44 | serial@70006040 { | ||
45 | status = "disable"; | ||
46 | }; | ||
47 | |||
48 | serial@70006200 { | ||
49 | status = "disable"; | ||
50 | }; | ||
51 | |||
52 | serial@70006300 { | ||
53 | clock-frequency = <216000000>; | ||
54 | }; | ||
55 | |||
56 | serial@70006400 { | ||
57 | status = "disable"; | ||
58 | }; | ||
59 | |||
60 | sdhci@c8000000 { | ||
61 | cd-gpios = <&gpio 173 0>; /* gpio PV5 */ | ||
62 | wp-gpios = <&gpio 57 0>; /* gpio PH1 */ | ||
63 | power-gpios = <&gpio 155 0>; /* gpio PT3 */ | ||
64 | }; | ||
65 | |||
66 | sdhci@c8000200 { | ||
67 | status = "disable"; | ||
68 | }; | ||
69 | |||
70 | sdhci@c8000400 { | ||
71 | status = "disable"; | ||
72 | }; | ||
73 | |||
74 | sdhci@c8000600 { | ||
75 | support-8bit; | ||
76 | }; | ||
77 | }; | ||
diff --git a/arch/arm/boot/dts/tegra-seaboard.dts b/arch/arm/boot/dts/tegra-seaboard.dts index a72299b8e66..f552bcc0441 100644 --- a/arch/arm/boot/dts/tegra-seaboard.dts +++ b/arch/arm/boot/dts/tegra-seaboard.dts | |||
@@ -1,25 +1,60 @@ | |||
1 | /dts-v1/; | 1 | /dts-v1/; |
2 | 2 | ||
3 | /memreserve/ 0x1c000000 0x04000000; | ||
4 | /include/ "tegra20.dtsi" | 3 | /include/ "tegra20.dtsi" |
5 | 4 | ||
6 | / { | 5 | / { |
7 | model = "NVIDIA Seaboard"; | 6 | model = "NVIDIA Seaboard"; |
8 | compatible = "nvidia,seaboard", "nvidia,tegra20"; | 7 | compatible = "nvidia,seaboard", "nvidia,tegra20"; |
9 | 8 | ||
10 | chosen { | ||
11 | bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk1p3 rw rootwait"; | ||
12 | }; | ||
13 | |||
14 | memory { | 9 | memory { |
15 | device_type = "memory"; | 10 | device_type = "memory"; |
16 | reg = < 0x00000000 0x40000000 >; | 11 | reg = < 0x00000000 0x40000000 >; |
17 | }; | 12 | }; |
18 | 13 | ||
14 | i2c@7000c000 { | ||
15 | clock-frequency = <400000>; | ||
16 | }; | ||
17 | |||
18 | i2c@7000c400 { | ||
19 | clock-frequency = <400000>; | ||
20 | }; | ||
21 | |||
22 | i2c@7000c500 { | ||
23 | clock-frequency = <400000>; | ||
24 | }; | ||
25 | |||
26 | i2c@7000d000 { | ||
27 | clock-frequency = <400000>; | ||
28 | }; | ||
29 | |||
30 | serial@70006000 { | ||
31 | status = "disable"; | ||
32 | }; | ||
33 | |||
34 | serial@70006040 { | ||
35 | status = "disable"; | ||
36 | }; | ||
37 | |||
38 | serial@70006200 { | ||
39 | status = "disable"; | ||
40 | }; | ||
41 | |||
19 | serial@70006300 { | 42 | serial@70006300 { |
20 | clock-frequency = < 216000000 >; | 43 | clock-frequency = < 216000000 >; |
21 | }; | 44 | }; |
22 | 45 | ||
46 | serial@70006400 { | ||
47 | status = "disable"; | ||
48 | }; | ||
49 | |||
50 | sdhci@c8000000 { | ||
51 | status = "disable"; | ||
52 | }; | ||
53 | |||
54 | sdhci@c8000200 { | ||
55 | status = "disable"; | ||
56 | }; | ||
57 | |||
23 | sdhci@c8000400 { | 58 | sdhci@c8000400 { |
24 | cd-gpios = <&gpio 69 0>; /* gpio PI5 */ | 59 | cd-gpios = <&gpio 69 0>; /* gpio PI5 */ |
25 | wp-gpios = <&gpio 57 0>; /* gpio PH1 */ | 60 | wp-gpios = <&gpio 57 0>; /* gpio PH1 */ |
@@ -29,4 +64,8 @@ | |||
29 | sdhci@c8000600 { | 64 | sdhci@c8000600 { |
30 | support-8bit; | 65 | support-8bit; |
31 | }; | 66 | }; |
67 | |||
68 | usb@c5000000 { | ||
69 | nvidia,vbus-gpio = <&gpio 24 0>; /* PD0 */ | ||
70 | }; | ||
32 | }; | 71 | }; |
diff --git a/arch/arm/boot/dts/tegra-trimslice.dts b/arch/arm/boot/dts/tegra-trimslice.dts new file mode 100644 index 00000000000..3b3ee7db99f --- /dev/null +++ b/arch/arm/boot/dts/tegra-trimslice.dts | |||
@@ -0,0 +1,65 @@ | |||
1 | /dts-v1/; | ||
2 | |||
3 | /include/ "tegra20.dtsi" | ||
4 | |||
5 | / { | ||
6 | model = "Compulab TrimSlice board"; | ||
7 | compatible = "compulab,trimslice", "nvidia,tegra20"; | ||
8 | |||
9 | memory@0 { | ||
10 | reg = < 0x00000000 0x40000000 >; | ||
11 | }; | ||
12 | |||
13 | i2c@7000c000 { | ||
14 | clock-frequency = <400000>; | ||
15 | }; | ||
16 | |||
17 | i2c@7000c400 { | ||
18 | clock-frequency = <400000>; | ||
19 | }; | ||
20 | |||
21 | i2c@7000c500 { | ||
22 | clock-frequency = <400000>; | ||
23 | }; | ||
24 | |||
25 | i2c@7000d000 { | ||
26 | status = "disable"; | ||
27 | }; | ||
28 | |||
29 | serial@70006000 { | ||
30 | clock-frequency = < 216000000 >; | ||
31 | }; | ||
32 | |||
33 | serial@70006040 { | ||
34 | status = "disable"; | ||
35 | }; | ||
36 | |||
37 | serial@70006200 { | ||
38 | status = "disable"; | ||
39 | }; | ||
40 | |||
41 | serial@70006300 { | ||
42 | status = "disable"; | ||
43 | }; | ||
44 | |||
45 | serial@70006400 { | ||
46 | status = "disable"; | ||
47 | }; | ||
48 | |||
49 | sdhci@c8000000 { | ||
50 | status = "disable"; | ||
51 | }; | ||
52 | |||
53 | sdhci@c8000200 { | ||
54 | status = "disable"; | ||
55 | }; | ||
56 | |||
57 | sdhci@c8000400 { | ||
58 | status = "disable"; | ||
59 | }; | ||
60 | |||
61 | sdhci@c8000600 { | ||
62 | cd-gpios = <&gpio 121 0>; | ||
63 | wp-gpios = <&gpio 122 0>; | ||
64 | }; | ||
65 | }; | ||
diff --git a/arch/arm/boot/dts/tegra-ventana.dts b/arch/arm/boot/dts/tegra-ventana.dts index 3f9abd6b696..c7d3b87f29d 100644 --- a/arch/arm/boot/dts/tegra-ventana.dts +++ b/arch/arm/boot/dts/tegra-ventana.dts | |||
@@ -1,24 +1,59 @@ | |||
1 | /dts-v1/; | 1 | /dts-v1/; |
2 | 2 | ||
3 | /memreserve/ 0x1c000000 0x04000000; | ||
4 | /include/ "tegra20.dtsi" | 3 | /include/ "tegra20.dtsi" |
5 | 4 | ||
6 | / { | 5 | / { |
7 | model = "NVIDIA Tegra2 Ventana evaluation board"; | 6 | model = "NVIDIA Tegra2 Ventana evaluation board"; |
8 | compatible = "nvidia,ventana", "nvidia,tegra20"; | 7 | compatible = "nvidia,ventana", "nvidia,tegra20"; |
9 | 8 | ||
10 | chosen { | ||
11 | bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/ram rdinit=/sbin/init"; | ||
12 | }; | ||
13 | |||
14 | memory { | 9 | memory { |
15 | reg = < 0x00000000 0x40000000 >; | 10 | reg = < 0x00000000 0x40000000 >; |
16 | }; | 11 | }; |
17 | 12 | ||
13 | i2c@7000c000 { | ||
14 | clock-frequency = <400000>; | ||
15 | }; | ||
16 | |||
17 | i2c@7000c400 { | ||
18 | clock-frequency = <400000>; | ||
19 | }; | ||
20 | |||
21 | i2c@7000c500 { | ||
22 | clock-frequency = <400000>; | ||
23 | }; | ||
24 | |||
25 | i2c@7000d000 { | ||
26 | clock-frequency = <400000>; | ||
27 | }; | ||
28 | |||
29 | serial@70006000 { | ||
30 | status = "disable"; | ||
31 | }; | ||
32 | |||
33 | serial@70006040 { | ||
34 | status = "disable"; | ||
35 | }; | ||
36 | |||
37 | serial@70006200 { | ||
38 | status = "disable"; | ||
39 | }; | ||
40 | |||
18 | serial@70006300 { | 41 | serial@70006300 { |
19 | clock-frequency = < 216000000 >; | 42 | clock-frequency = < 216000000 >; |
20 | }; | 43 | }; |
21 | 44 | ||
45 | serial@70006400 { | ||
46 | status = "disable"; | ||
47 | }; | ||
48 | |||
49 | sdhci@c8000000 { | ||
50 | status = "disable"; | ||
51 | }; | ||
52 | |||
53 | sdhci@c8000200 { | ||
54 | status = "disable"; | ||
55 | }; | ||
56 | |||
22 | sdhci@c8000400 { | 57 | sdhci@c8000400 { |
23 | cd-gpios = <&gpio 69 0>; /* gpio PI5 */ | 58 | cd-gpios = <&gpio 69 0>; /* gpio PI5 */ |
24 | wp-gpios = <&gpio 57 0>; /* gpio PH1 */ | 59 | wp-gpios = <&gpio 57 0>; /* gpio PH1 */ |
diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 65d7e6a333e..660c8ad537c 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts/tegra20.dtsi | |||
@@ -5,9 +5,9 @@ | |||
5 | interrupt-parent = <&intc>; | 5 | interrupt-parent = <&intc>; |
6 | 6 | ||
7 | intc: interrupt-controller@50041000 { | 7 | intc: interrupt-controller@50041000 { |
8 | compatible = "nvidia,tegra20-gic"; | 8 | compatible = "arm,cortex-a9-gic"; |
9 | interrupt-controller; | 9 | interrupt-controller; |
10 | #interrupt-cells = <1>; | 10 | #interrupt-cells = <3>; |
11 | reg = < 0x50041000 0x1000 >, | 11 | reg = < 0x50041000 0x1000 >, |
12 | < 0x50040100 0x0100 >; | 12 | < 0x50040100 0x0100 >; |
13 | }; | 13 | }; |
@@ -17,7 +17,7 @@ | |||
17 | #size-cells = <0>; | 17 | #size-cells = <0>; |
18 | compatible = "nvidia,tegra20-i2c"; | 18 | compatible = "nvidia,tegra20-i2c"; |
19 | reg = <0x7000C000 0x100>; | 19 | reg = <0x7000C000 0x100>; |
20 | interrupts = < 70 >; | 20 | interrupts = < 0 38 0x04 >; |
21 | }; | 21 | }; |
22 | 22 | ||
23 | i2c@7000c400 { | 23 | i2c@7000c400 { |
@@ -25,7 +25,7 @@ | |||
25 | #size-cells = <0>; | 25 | #size-cells = <0>; |
26 | compatible = "nvidia,tegra20-i2c"; | 26 | compatible = "nvidia,tegra20-i2c"; |
27 | reg = <0x7000C400 0x100>; | 27 | reg = <0x7000C400 0x100>; |
28 | interrupts = < 116 >; | 28 | interrupts = < 0 84 0x04 >; |
29 | }; | 29 | }; |
30 | 30 | ||
31 | i2c@7000c500 { | 31 | i2c@7000c500 { |
@@ -33,7 +33,7 @@ | |||
33 | #size-cells = <0>; | 33 | #size-cells = <0>; |
34 | compatible = "nvidia,tegra20-i2c"; | 34 | compatible = "nvidia,tegra20-i2c"; |
35 | reg = <0x7000C500 0x100>; | 35 | reg = <0x7000C500 0x100>; |
36 | interrupts = < 124 >; | 36 | interrupts = < 0 92 0x04 >; |
37 | }; | 37 | }; |
38 | 38 | ||
39 | i2c@7000d000 { | 39 | i2c@7000d000 { |
@@ -41,30 +41,24 @@ | |||
41 | #size-cells = <0>; | 41 | #size-cells = <0>; |
42 | compatible = "nvidia,tegra20-i2c"; | 42 | compatible = "nvidia,tegra20-i2c"; |
43 | reg = <0x7000D000 0x200>; | 43 | reg = <0x7000D000 0x200>; |
44 | interrupts = < 85 >; | 44 | interrupts = < 0 53 0x04 >; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | i2s@70002800 { | 47 | i2s@70002800 { |
48 | #address-cells = <1>; | ||
49 | #size-cells = <0>; | ||
50 | compatible = "nvidia,tegra20-i2s"; | 48 | compatible = "nvidia,tegra20-i2s"; |
51 | reg = <0x70002800 0x200>; | 49 | reg = <0x70002800 0x200>; |
52 | interrupts = < 45 >; | 50 | interrupts = < 0 13 0x04 >; |
53 | dma-channel = < 2 >; | 51 | dma-channel = < 2 >; |
54 | }; | 52 | }; |
55 | 53 | ||
56 | i2s@70002a00 { | 54 | i2s@70002a00 { |
57 | #address-cells = <1>; | ||
58 | #size-cells = <0>; | ||
59 | compatible = "nvidia,tegra20-i2s"; | 55 | compatible = "nvidia,tegra20-i2s"; |
60 | reg = <0x70002a00 0x200>; | 56 | reg = <0x70002a00 0x200>; |
61 | interrupts = < 35 >; | 57 | interrupts = < 0 3 0x04 >; |
62 | dma-channel = < 1 >; | 58 | dma-channel = < 1 >; |
63 | }; | 59 | }; |
64 | 60 | ||
65 | das@70000c00 { | 61 | das@70000c00 { |
66 | #address-cells = <1>; | ||
67 | #size-cells = <0>; | ||
68 | compatible = "nvidia,tegra20-das"; | 62 | compatible = "nvidia,tegra20-das"; |
69 | reg = <0x70000c00 0x80>; | 63 | reg = <0x70000c00 0x80>; |
70 | }; | 64 | }; |
@@ -72,7 +66,13 @@ | |||
72 | gpio: gpio@6000d000 { | 66 | gpio: gpio@6000d000 { |
73 | compatible = "nvidia,tegra20-gpio"; | 67 | compatible = "nvidia,tegra20-gpio"; |
74 | reg = < 0x6000d000 0x1000 >; | 68 | reg = < 0x6000d000 0x1000 >; |
75 | interrupts = < 64 65 66 67 87 119 121 >; | 69 | interrupts = < 0 32 0x04 |
70 | 0 33 0x04 | ||
71 | 0 34 0x04 | ||
72 | 0 35 0x04 | ||
73 | 0 55 0x04 | ||
74 | 0 87 0x04 | ||
75 | 0 89 0x04 >; | ||
76 | #gpio-cells = <2>; | 76 | #gpio-cells = <2>; |
77 | gpio-controller; | 77 | gpio-controller; |
78 | }; | 78 | }; |
@@ -89,59 +89,80 @@ | |||
89 | compatible = "nvidia,tegra20-uart"; | 89 | compatible = "nvidia,tegra20-uart"; |
90 | reg = <0x70006000 0x40>; | 90 | reg = <0x70006000 0x40>; |
91 | reg-shift = <2>; | 91 | reg-shift = <2>; |
92 | interrupts = < 68 >; | 92 | interrupts = < 0 36 0x04 >; |
93 | }; | 93 | }; |
94 | 94 | ||
95 | serial@70006040 { | 95 | serial@70006040 { |
96 | compatible = "nvidia,tegra20-uart"; | 96 | compatible = "nvidia,tegra20-uart"; |
97 | reg = <0x70006040 0x40>; | 97 | reg = <0x70006040 0x40>; |
98 | reg-shift = <2>; | 98 | reg-shift = <2>; |
99 | interrupts = < 69 >; | 99 | interrupts = < 0 37 0x04 >; |
100 | }; | 100 | }; |
101 | 101 | ||
102 | serial@70006200 { | 102 | serial@70006200 { |
103 | compatible = "nvidia,tegra20-uart"; | 103 | compatible = "nvidia,tegra20-uart"; |
104 | reg = <0x70006200 0x100>; | 104 | reg = <0x70006200 0x100>; |
105 | reg-shift = <2>; | 105 | reg-shift = <2>; |
106 | interrupts = < 78 >; | 106 | interrupts = < 0 46 0x04 >; |
107 | }; | 107 | }; |
108 | 108 | ||
109 | serial@70006300 { | 109 | serial@70006300 { |
110 | compatible = "nvidia,tegra20-uart"; | 110 | compatible = "nvidia,tegra20-uart"; |
111 | reg = <0x70006300 0x100>; | 111 | reg = <0x70006300 0x100>; |
112 | reg-shift = <2>; | 112 | reg-shift = <2>; |
113 | interrupts = < 122 >; | 113 | interrupts = < 0 90 0x04 >; |
114 | }; | 114 | }; |
115 | 115 | ||
116 | serial@70006400 { | 116 | serial@70006400 { |
117 | compatible = "nvidia,tegra20-uart"; | 117 | compatible = "nvidia,tegra20-uart"; |
118 | reg = <0x70006400 0x100>; | 118 | reg = <0x70006400 0x100>; |
119 | reg-shift = <2>; | 119 | reg-shift = <2>; |
120 | interrupts = < 123 >; | 120 | interrupts = < 0 91 0x04 >; |
121 | }; | 121 | }; |
122 | 122 | ||
123 | sdhci@c8000000 { | 123 | sdhci@c8000000 { |
124 | compatible = "nvidia,tegra20-sdhci"; | 124 | compatible = "nvidia,tegra20-sdhci"; |
125 | reg = <0xc8000000 0x200>; | 125 | reg = <0xc8000000 0x200>; |
126 | interrupts = < 46 >; | 126 | interrupts = < 0 14 0x04 >; |
127 | }; | 127 | }; |
128 | 128 | ||
129 | sdhci@c8000200 { | 129 | sdhci@c8000200 { |
130 | compatible = "nvidia,tegra20-sdhci"; | 130 | compatible = "nvidia,tegra20-sdhci"; |
131 | reg = <0xc8000200 0x200>; | 131 | reg = <0xc8000200 0x200>; |
132 | interrupts = < 47 >; | 132 | interrupts = < 0 15 0x04 >; |
133 | }; | 133 | }; |
134 | 134 | ||
135 | sdhci@c8000400 { | 135 | sdhci@c8000400 { |
136 | compatible = "nvidia,tegra20-sdhci"; | 136 | compatible = "nvidia,tegra20-sdhci"; |
137 | reg = <0xc8000400 0x200>; | 137 | reg = <0xc8000400 0x200>; |
138 | interrupts = < 51 >; | 138 | interrupts = < 0 19 0x04 >; |
139 | }; | 139 | }; |
140 | 140 | ||
141 | sdhci@c8000600 { | 141 | sdhci@c8000600 { |
142 | compatible = "nvidia,tegra20-sdhci"; | 142 | compatible = "nvidia,tegra20-sdhci"; |
143 | reg = <0xc8000600 0x200>; | 143 | reg = <0xc8000600 0x200>; |
144 | interrupts = < 63 >; | 144 | interrupts = < 0 31 0x04 >; |
145 | }; | ||
146 | |||
147 | usb@c5000000 { | ||
148 | compatible = "nvidia,tegra20-ehci", "usb-ehci"; | ||
149 | reg = <0xc5000000 0x4000>; | ||
150 | interrupts = < 0 20 0x04 >; | ||
151 | phy_type = "utmi"; | ||
152 | }; | ||
153 | |||
154 | usb@c5004000 { | ||
155 | compatible = "nvidia,tegra20-ehci", "usb-ehci"; | ||
156 | reg = <0xc5004000 0x4000>; | ||
157 | interrupts = < 0 21 0x04 >; | ||
158 | phy_type = "ulpi"; | ||
159 | }; | ||
160 | |||
161 | usb@c5008000 { | ||
162 | compatible = "nvidia,tegra20-ehci", "usb-ehci"; | ||
163 | reg = <0xc5008000 0x4000>; | ||
164 | interrupts = < 0 97 0x04 >; | ||
165 | phy_type = "utmi"; | ||
145 | }; | 166 | }; |
146 | }; | 167 | }; |
147 | 168 | ||
diff --git a/arch/arm/boot/dts/tegra30.dtsi b/arch/arm/boot/dts/tegra30.dtsi new file mode 100644 index 00000000000..ee7db9892e0 --- /dev/null +++ b/arch/arm/boot/dts/tegra30.dtsi | |||
@@ -0,0 +1,127 @@ | |||
1 | /include/ "skeleton.dtsi" | ||
2 | |||
3 | / { | ||
4 | compatible = "nvidia,tegra30"; | ||
5 | interrupt-parent = <&intc>; | ||
6 | |||
7 | intc: interrupt-controller@50041000 { | ||
8 | compatible = "arm,cortex-a9-gic"; | ||
9 | interrupt-controller; | ||
10 | #interrupt-cells = <3>; | ||
11 | reg = < 0x50041000 0x1000 >, | ||
12 | < 0x50040100 0x0100 >; | ||
13 | }; | ||
14 | |||
15 | i2c@7000c000 { | ||
16 | #address-cells = <1>; | ||
17 | #size-cells = <0>; | ||
18 | compatible = "nvidia,tegra30-i2c", "nvidia,tegra20-i2c"; | ||
19 | reg = <0x7000C000 0x100>; | ||
20 | interrupts = < 0 38 0x04 >; | ||
21 | }; | ||
22 | |||
23 | i2c@7000c400 { | ||
24 | #address-cells = <1>; | ||
25 | #size-cells = <0>; | ||
26 | compatible = "nvidia,tegra30-i2c", "nvidia,tegra20-i2c"; | ||
27 | reg = <0x7000C400 0x100>; | ||
28 | interrupts = < 0 84 0x04 >; | ||
29 | }; | ||
30 | |||
31 | i2c@7000c500 { | ||
32 | #address-cells = <1>; | ||
33 | #size-cells = <0>; | ||
34 | compatible = "nvidia,tegra30-i2c", "nvidia,tegra20-i2c"; | ||
35 | reg = <0x7000C500 0x100>; | ||
36 | interrupts = < 0 92 0x04 >; | ||
37 | }; | ||
38 | |||
39 | i2c@7000c700 { | ||
40 | #address-cells = <1>; | ||
41 | #size-cells = <0>; | ||
42 | compatible = "nvidia,tegra30-i2c", "nvidia,tegra20-i2c"; | ||
43 | reg = <0x7000c700 0x100>; | ||
44 | interrupts = < 0 120 0x04 >; | ||
45 | }; | ||
46 | |||
47 | i2c@7000d000 { | ||
48 | #address-cells = <1>; | ||
49 | #size-cells = <0>; | ||
50 | compatible = "nvidia,tegra30-i2c", "nvidia,tegra20-i2c"; | ||
51 | reg = <0x7000D000 0x100>; | ||
52 | interrupts = < 0 53 0x04 >; | ||
53 | }; | ||
54 | |||
55 | gpio: gpio@6000d000 { | ||
56 | compatible = "nvidia,tegra30-gpio", "nvidia,tegra20-gpio"; | ||
57 | reg = < 0x6000d000 0x1000 >; | ||
58 | interrupts = < 0 32 0x04 0 33 0x04 0 34 0x04 0 35 0x04 0 55 0x04 0 87 0x04 0 89 0x04 >; | ||
59 | #gpio-cells = <2>; | ||
60 | gpio-controller; | ||
61 | }; | ||
62 | |||
63 | serial@70006000 { | ||
64 | compatible = "nvidia,tegra30-uart", "nvidia,tegra20-uart"; | ||
65 | reg = <0x70006000 0x40>; | ||
66 | reg-shift = <2>; | ||
67 | interrupts = < 0 36 0x04 >; | ||
68 | }; | ||
69 | |||
70 | serial@70006040 { | ||
71 | compatible = "nvidia,tegra30-uart", "nvidia,tegra20-uart"; | ||
72 | reg = <0x70006040 0x40>; | ||
73 | reg-shift = <2>; | ||
74 | interrupts = < 0 37 0x04 >; | ||
75 | }; | ||
76 | |||
77 | serial@70006200 { | ||
78 | compatible = "nvidia,tegra30-uart", "nvidia,tegra20-uart"; | ||
79 | reg = <0x70006200 0x100>; | ||
80 | reg-shift = <2>; | ||
81 | interrupts = < 0 46 0x04 >; | ||
82 | }; | ||
83 | |||
84 | serial@70006300 { | ||
85 | compatible = "nvidia,tegra30-uart", "nvidia,tegra20-uart"; | ||
86 | reg = <0x70006300 0x100>; | ||
87 | reg-shift = <2>; | ||
88 | interrupts = < 0 90 0x04 >; | ||
89 | }; | ||
90 | |||
91 | serial@70006400 { | ||
92 | compatible = "nvidia,tegra30-uart", "nvidia,tegra20-uart"; | ||
93 | reg = <0x70006400 0x100>; | ||
94 | reg-shift = <2>; | ||
95 | interrupts = < 0 91 0x04 >; | ||
96 | }; | ||
97 | |||
98 | sdhci@78000000 { | ||
99 | compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci"; | ||
100 | reg = <0x78000000 0x200>; | ||
101 | interrupts = < 0 14 0x04 >; | ||
102 | }; | ||
103 | |||
104 | sdhci@78000200 { | ||
105 | compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci"; | ||
106 | reg = <0x78000200 0x200>; | ||
107 | interrupts = < 0 15 0x04 >; | ||
108 | }; | ||
109 | |||
110 | sdhci@78000400 { | ||
111 | compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci"; | ||
112 | reg = <0x78000400 0x200>; | ||
113 | interrupts = < 0 19 0x04 >; | ||
114 | }; | ||
115 | |||
116 | sdhci@78000600 { | ||
117 | compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci"; | ||
118 | reg = <0x78000600 0x200>; | ||
119 | interrupts = < 0 31 0x04 >; | ||
120 | }; | ||
121 | |||
122 | pinmux: pinmux@70000000 { | ||
123 | compatible = "nvidia,tegra30-pinmux"; | ||
124 | reg = < 0x70000868 0xd0 /* Pad control registers */ | ||
125 | 0x70003000 0x3e0 >; /* Mux registers */ | ||
126 | }; | ||
127 | }; | ||
diff --git a/arch/arm/configs/imx_v4_v5_defconfig b/arch/arm/configs/imx_v4_v5_defconfig index cf497ce41df..a22e9307906 100644 --- a/arch/arm/configs/imx_v4_v5_defconfig +++ b/arch/arm/configs/imx_v4_v5_defconfig | |||
@@ -68,7 +68,6 @@ CONFIG_MTD_CFI=y | |||
68 | CONFIG_MTD_CFI_ADV_OPTIONS=y | 68 | CONFIG_MTD_CFI_ADV_OPTIONS=y |
69 | CONFIG_MTD_CFI_GEOMETRY=y | 69 | CONFIG_MTD_CFI_GEOMETRY=y |
70 | # CONFIG_MTD_MAP_BANK_WIDTH_1 is not set | 70 | # CONFIG_MTD_MAP_BANK_WIDTH_1 is not set |
71 | # CONFIG_MTD_MAP_BANK_WIDTH_4 is not set | ||
72 | # CONFIG_MTD_CFI_I2 is not set | 71 | # CONFIG_MTD_CFI_I2 is not set |
73 | CONFIG_MTD_CFI_INTELEXT=y | 72 | CONFIG_MTD_CFI_INTELEXT=y |
74 | CONFIG_MTD_PHYSMAP=y | 73 | CONFIG_MTD_PHYSMAP=y |
diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index 195729760ae..fd5d3041d71 100644 --- a/arch/arm/configs/tegra_defconfig +++ b/arch/arm/configs/tegra_defconfig | |||
@@ -9,9 +9,8 @@ CONFIG_RESOURCE_COUNTERS=y | |||
9 | CONFIG_CGROUP_SCHED=y | 9 | CONFIG_CGROUP_SCHED=y |
10 | CONFIG_RT_GROUP_SCHED=y | 10 | CONFIG_RT_GROUP_SCHED=y |
11 | CONFIG_BLK_DEV_INITRD=y | 11 | CONFIG_BLK_DEV_INITRD=y |
12 | CONFIG_EMBEDDED=y | ||
13 | # CONFIG_SYSCTL_SYSCALL is not set | ||
14 | # CONFIG_ELF_CORE is not set | 12 | # CONFIG_ELF_CORE is not set |
13 | CONFIG_EMBEDDED=y | ||
15 | CONFIG_SLAB=y | 14 | CONFIG_SLAB=y |
16 | CONFIG_MODULES=y | 15 | CONFIG_MODULES=y |
17 | CONFIG_MODULE_UNLOAD=y | 16 | CONFIG_MODULE_UNLOAD=y |
@@ -20,6 +19,8 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
20 | # CONFIG_IOSCHED_DEADLINE is not set | 19 | # CONFIG_IOSCHED_DEADLINE is not set |
21 | # CONFIG_IOSCHED_CFQ is not set | 20 | # CONFIG_IOSCHED_CFQ is not set |
22 | CONFIG_ARCH_TEGRA=y | 21 | CONFIG_ARCH_TEGRA=y |
22 | CONFIG_ARCH_TEGRA_2x_SOC=y | ||
23 | CONFIG_ARCH_TEGRA_3x_SOC=y | ||
23 | CONFIG_MACH_HARMONY=y | 24 | CONFIG_MACH_HARMONY=y |
24 | CONFIG_MACH_KAEN=y | 25 | CONFIG_MACH_KAEN=y |
25 | CONFIG_MACH_PAZ00=y | 26 | CONFIG_MACH_PAZ00=y |
@@ -78,14 +79,12 @@ CONFIG_BLK_DEV_SD=y | |||
78 | # CONFIG_SCSI_LOWLEVEL is not set | 79 | # CONFIG_SCSI_LOWLEVEL is not set |
79 | CONFIG_NETDEVICES=y | 80 | CONFIG_NETDEVICES=y |
80 | CONFIG_DUMMY=y | 81 | CONFIG_DUMMY=y |
81 | CONFIG_NET_ETHERNET=y | ||
82 | CONFIG_R8169=y | 82 | CONFIG_R8169=y |
83 | # CONFIG_NETDEV_10000 is not set | ||
84 | # CONFIG_WLAN is not set | ||
85 | CONFIG_USB_PEGASUS=y | 83 | CONFIG_USB_PEGASUS=y |
86 | CONFIG_USB_USBNET=y | 84 | CONFIG_USB_USBNET=y |
87 | CONFIG_USB_NET_SMSC75XX=y | 85 | CONFIG_USB_NET_SMSC75XX=y |
88 | CONFIG_USB_NET_SMSC95XX=y | 86 | CONFIG_USB_NET_SMSC95XX=y |
87 | # CONFIG_WLAN is not set | ||
89 | # CONFIG_INPUT is not set | 88 | # CONFIG_INPUT is not set |
90 | # CONFIG_SERIO is not set | 89 | # CONFIG_SERIO is not set |
91 | # CONFIG_VT is not set | 90 | # CONFIG_VT is not set |
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 35a218cb5c7..9d8598f29fd 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -98,6 +98,7 @@ config MACH_SCB9328 | |||
98 | config MACH_APF9328 | 98 | config MACH_APF9328 |
99 | bool "APF9328" | 99 | bool "APF9328" |
100 | select SOC_IMX1 | 100 | select SOC_IMX1 |
101 | select IMX_HAVE_PLATFORM_IMX_I2C | ||
101 | select IMX_HAVE_PLATFORM_IMX_UART | 102 | select IMX_HAVE_PLATFORM_IMX_UART |
102 | help | 103 | help |
103 | Say Yes here if you are using the Armadeus APF9328 development board | 104 | Say Yes here if you are using the Armadeus APF9328 development board |
diff --git a/arch/arm/mach-imx/Makefile.boot b/arch/arm/mach-imx/Makefile.boot index cfede5768aa..5f4d06af491 100644 --- a/arch/arm/mach-imx/Makefile.boot +++ b/arch/arm/mach-imx/Makefile.boot | |||
@@ -25,3 +25,6 @@ initrd_phys-$(CONFIG_SOC_IMX35) := 0x80800000 | |||
25 | zreladdr-$(CONFIG_SOC_IMX6Q) += 0x10008000 | 25 | zreladdr-$(CONFIG_SOC_IMX6Q) += 0x10008000 |
26 | params_phys-$(CONFIG_SOC_IMX6Q) := 0x10000100 | 26 | params_phys-$(CONFIG_SOC_IMX6Q) := 0x10000100 |
27 | initrd_phys-$(CONFIG_SOC_IMX6Q) := 0x10800000 | 27 | initrd_phys-$(CONFIG_SOC_IMX6Q) := 0x10800000 |
28 | |||
29 | dtb-$(CONFIG_SOC_IMX6Q) += imx6q-arm2.dtb \ | ||
30 | imx6q-sabrelite.dtb | ||
diff --git a/arch/arm/mach-imx/mach-apf9328.c b/arch/arm/mach-imx/mach-apf9328.c index 146a4f07346..f4a63ee9e21 100644 --- a/arch/arm/mach-imx/mach-apf9328.c +++ b/arch/arm/mach-imx/mach-apf9328.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/mtd/physmap.h> | 19 | #include <linux/mtd/physmap.h> |
20 | #include <linux/dm9000.h> | 20 | #include <linux/dm9000.h> |
21 | #include <linux/i2c.h> | ||
21 | 22 | ||
22 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
23 | #include <asm/mach/arch.h> | 24 | #include <asm/mach/arch.h> |
@@ -41,6 +42,9 @@ static const int apf9328_pins[] __initconst = { | |||
41 | PB29_PF_UART2_RTS, | 42 | PB29_PF_UART2_RTS, |
42 | PB30_PF_UART2_TXD, | 43 | PB30_PF_UART2_TXD, |
43 | PB31_PF_UART2_RXD, | 44 | PB31_PF_UART2_RXD, |
45 | /* I2C */ | ||
46 | PA15_PF_I2C_SDA, | ||
47 | PA16_PF_I2C_SCL, | ||
44 | }; | 48 | }; |
45 | 49 | ||
46 | /* | 50 | /* |
@@ -103,6 +107,10 @@ static const struct imxuart_platform_data uart1_pdata __initconst = { | |||
103 | .flags = IMXUART_HAVE_RTSCTS, | 107 | .flags = IMXUART_HAVE_RTSCTS, |
104 | }; | 108 | }; |
105 | 109 | ||
110 | static const struct imxi2c_platform_data apf9328_i2c_data __initconst = { | ||
111 | .bitrate = 100000, | ||
112 | }; | ||
113 | |||
106 | static struct platform_device *devices[] __initdata = { | 114 | static struct platform_device *devices[] __initdata = { |
107 | &apf9328_flash_device, | 115 | &apf9328_flash_device, |
108 | &dm9000x_device, | 116 | &dm9000x_device, |
@@ -119,6 +127,8 @@ static void __init apf9328_init(void) | |||
119 | imx1_add_imx_uart0(NULL); | 127 | imx1_add_imx_uart0(NULL); |
120 | imx1_add_imx_uart1(&uart1_pdata); | 128 | imx1_add_imx_uart1(&uart1_pdata); |
121 | 129 | ||
130 | imx1_add_imx_i2c(&apf9328_i2c_data); | ||
131 | |||
122 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 132 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
123 | } | 133 | } |
124 | 134 | ||
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 05b49bb5d67..c2572810691 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <linux/of_address.h> | 19 | #include <linux/of_address.h> |
20 | #include <linux/of_irq.h> | 20 | #include <linux/of_irq.h> |
21 | #include <linux/of_platform.h> | 21 | #include <linux/of_platform.h> |
22 | #include <linux/phy.h> | ||
23 | #include <linux/micrel_phy.h> | ||
22 | #include <asm/hardware/cache-l2x0.h> | 24 | #include <asm/hardware/cache-l2x0.h> |
23 | #include <asm/hardware/gic.h> | 25 | #include <asm/hardware/gic.h> |
24 | #include <asm/mach/arch.h> | 26 | #include <asm/mach/arch.h> |
@@ -56,8 +58,27 @@ soft: | |||
56 | soft_restart(0); | 58 | soft_restart(0); |
57 | } | 59 | } |
58 | 60 | ||
61 | /* For imx6q sabrelite board: set KSZ9021RN RGMII pad skew */ | ||
62 | static int ksz9021rn_phy_fixup(struct phy_device *phydev) | ||
63 | { | ||
64 | /* min rx data delay */ | ||
65 | phy_write(phydev, 0x0b, 0x8105); | ||
66 | phy_write(phydev, 0x0c, 0x0000); | ||
67 | |||
68 | /* max rx/tx clock delay, min rx/tx control delay */ | ||
69 | phy_write(phydev, 0x0b, 0x8104); | ||
70 | phy_write(phydev, 0x0c, 0xf0f0); | ||
71 | phy_write(phydev, 0x0b, 0x104); | ||
72 | |||
73 | return 0; | ||
74 | } | ||
75 | |||
59 | static void __init imx6q_init_machine(void) | 76 | static void __init imx6q_init_machine(void) |
60 | { | 77 | { |
78 | if (of_machine_is_compatible("fsl,imx6q-sabrelite")) | ||
79 | phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, | ||
80 | ksz9021rn_phy_fixup); | ||
81 | |||
61 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 82 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
62 | 83 | ||
63 | imx6q_pm_init(); | 84 | imx6q_pm_init(); |
@@ -105,7 +126,8 @@ static struct sys_timer imx6q_timer = { | |||
105 | }; | 126 | }; |
106 | 127 | ||
107 | static const char *imx6q_dt_compat[] __initdata = { | 128 | static const char *imx6q_dt_compat[] __initdata = { |
108 | "fsl,imx6q-sabreauto", | 129 | "fsl,imx6q-arm2", |
130 | "fsl,imx6q-sabrelite", | ||
109 | NULL, | 131 | NULL, |
110 | }; | 132 | }; |
111 | 133 | ||
diff --git a/arch/arm/mach-imx/mach-mx31_3ds.c b/arch/arm/mach-imx/mach-mx31_3ds.c index 2b565c38134..89c33258639 100644 --- a/arch/arm/mach-imx/mach-mx31_3ds.c +++ b/arch/arm/mach-imx/mach-mx31_3ds.c | |||
@@ -492,7 +492,7 @@ static struct mc13xxx_platform_data mc13783_pdata = { | |||
492 | .regulators = mx31_3ds_regulators, | 492 | .regulators = mx31_3ds_regulators, |
493 | .num_regulators = ARRAY_SIZE(mx31_3ds_regulators), | 493 | .num_regulators = ARRAY_SIZE(mx31_3ds_regulators), |
494 | }, | 494 | }, |
495 | .flags = MC13XXX_USE_TOUCHSCREEN, | 495 | .flags = MC13XXX_USE_TOUCHSCREEN | MC13XXX_USE_RTC, |
496 | }; | 496 | }; |
497 | 497 | ||
498 | /* SPI */ | 498 | /* SPI */ |
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 4f01533083c..b7407154c88 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -78,8 +78,13 @@ config SOC_OMAP3430 | |||
78 | default y | 78 | default y |
79 | select ARCH_OMAP_OTG | 79 | select ARCH_OMAP_OTG |
80 | 80 | ||
81 | config SOC_OMAPTI816X | 81 | config SOC_OMAPTI81XX |
82 | bool "TI816X support" | 82 | bool "TI81XX support" |
83 | depends on ARCH_OMAP3 | ||
84 | default y | ||
85 | |||
86 | config SOC_OMAPAM33XX | ||
87 | bool "AM33XX support" | ||
83 | depends on ARCH_OMAP3 | 88 | depends on ARCH_OMAP3 |
84 | default y | 89 | default y |
85 | 90 | ||
@@ -316,7 +321,12 @@ config MACH_OMAP_3630SDP | |||
316 | 321 | ||
317 | config MACH_TI8168EVM | 322 | config MACH_TI8168EVM |
318 | bool "TI8168 Evaluation Module" | 323 | bool "TI8168 Evaluation Module" |
319 | depends on SOC_OMAPTI816X | 324 | depends on SOC_OMAPTI81XX |
325 | default y | ||
326 | |||
327 | config MACH_TI8148EVM | ||
328 | bool "TI8148 Evaluation Module" | ||
329 | depends on SOC_OMAPTI81XX | ||
320 | default y | 330 | default y |
321 | 331 | ||
322 | config MACH_OMAP_4430SDP | 332 | config MACH_OMAP_4430SDP |
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index b009f17dee5..6d226a76d05 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -232,6 +232,7 @@ obj-$(CONFIG_MACH_CRANEBOARD) += board-am3517crane.o | |||
232 | 232 | ||
233 | obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o | 233 | obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o |
234 | obj-$(CONFIG_MACH_TI8168EVM) += board-ti8168evm.o | 234 | obj-$(CONFIG_MACH_TI8168EVM) += board-ti8168evm.o |
235 | obj-$(CONFIG_MACH_TI8148EVM) += board-ti8168evm.o | ||
235 | 236 | ||
236 | # Platform specific device init code | 237 | # Platform specific device init code |
237 | 238 | ||
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index bad5d5a5ef7..5598e00ccf5 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -372,11 +372,17 @@ static struct platform_device sdp4430_vbat = { | |||
372 | }, | 372 | }, |
373 | }; | 373 | }; |
374 | 374 | ||
375 | static struct platform_device sdp4430_dmic_codec = { | ||
376 | .name = "dmic-codec", | ||
377 | .id = -1, | ||
378 | }; | ||
379 | |||
375 | static struct platform_device *sdp4430_devices[] __initdata = { | 380 | static struct platform_device *sdp4430_devices[] __initdata = { |
376 | &sdp4430_gpio_keys_device, | 381 | &sdp4430_gpio_keys_device, |
377 | &sdp4430_leds_gpio, | 382 | &sdp4430_leds_gpio, |
378 | &sdp4430_leds_pwm, | 383 | &sdp4430_leds_pwm, |
379 | &sdp4430_vbat, | 384 | &sdp4430_vbat, |
385 | &sdp4430_dmic_codec, | ||
380 | }; | 386 | }; |
381 | 387 | ||
382 | static struct omap_musb_board_data musb_board_data = { | 388 | static struct omap_musb_board_data musb_board_data = { |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 1545102d1f9..e921e3be24a 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -53,7 +53,8 @@ | |||
53 | #include "hsmmc.h" | 53 | #include "hsmmc.h" |
54 | #include "common-board-devices.h" | 54 | #include "common-board-devices.h" |
55 | 55 | ||
56 | #define CM_T35_GPIO_PENDOWN 57 | 56 | #define CM_T35_GPIO_PENDOWN 57 |
57 | #define SB_T35_USB_HUB_RESET_GPIO 167 | ||
57 | 58 | ||
58 | #define CM_T35_SMSC911X_CS 5 | 59 | #define CM_T35_SMSC911X_CS 5 |
59 | #define CM_T35_SMSC911X_GPIO 163 | 60 | #define CM_T35_SMSC911X_GPIO 163 |
@@ -339,8 +340,10 @@ static struct regulator_consumer_supply cm_t35_vsim_supply[] = { | |||
339 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"), | 340 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"), |
340 | }; | 341 | }; |
341 | 342 | ||
342 | static struct regulator_consumer_supply cm_t35_vdvi_supply[] = { | 343 | static struct regulator_consumer_supply cm_t35_vio_supplies[] = { |
343 | REGULATOR_SUPPLY("vdvi", "omapdss"), | 344 | REGULATOR_SUPPLY("vcc", "spi1.0"), |
345 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"), | ||
346 | REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi1"), | ||
344 | }; | 347 | }; |
345 | 348 | ||
346 | /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ | 349 | /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ |
@@ -373,6 +376,19 @@ static struct regulator_init_data cm_t35_vsim = { | |||
373 | .consumer_supplies = cm_t35_vsim_supply, | 376 | .consumer_supplies = cm_t35_vsim_supply, |
374 | }; | 377 | }; |
375 | 378 | ||
379 | static struct regulator_init_data cm_t35_vio = { | ||
380 | .constraints = { | ||
381 | .min_uV = 1800000, | ||
382 | .max_uV = 1800000, | ||
383 | .apply_uV = true, | ||
384 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
385 | | REGULATOR_MODE_STANDBY, | ||
386 | .valid_ops_mask = REGULATOR_CHANGE_MODE, | ||
387 | }, | ||
388 | .num_consumer_supplies = ARRAY_SIZE(cm_t35_vio_supplies), | ||
389 | .consumer_supplies = cm_t35_vio_supplies, | ||
390 | }; | ||
391 | |||
376 | static uint32_t cm_t35_keymap[] = { | 392 | static uint32_t cm_t35_keymap[] = { |
377 | KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_LEFT), | 393 | KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_LEFT), |
378 | KEY(1, 0, KEY_UP), KEY(1, 1, KEY_ENTER), KEY(1, 2, KEY_DOWN), | 394 | KEY(1, 0, KEY_UP), KEY(1, 1, KEY_ENTER), KEY(1, 2, KEY_DOWN), |
@@ -421,6 +437,23 @@ static struct usbhs_omap_board_data usbhs_bdata __initdata = { | |||
421 | .reset_gpio_port[2] = -EINVAL | 437 | .reset_gpio_port[2] = -EINVAL |
422 | }; | 438 | }; |
423 | 439 | ||
440 | static void cm_t35_init_usbh(void) | ||
441 | { | ||
442 | int err; | ||
443 | |||
444 | err = gpio_request_one(SB_T35_USB_HUB_RESET_GPIO, | ||
445 | GPIOF_OUT_INIT_LOW, "usb hub rst"); | ||
446 | if (err) { | ||
447 | pr_err("SB-T35: usb hub rst gpio request failed: %d\n", err); | ||
448 | } else { | ||
449 | udelay(10); | ||
450 | gpio_set_value(SB_T35_USB_HUB_RESET_GPIO, 1); | ||
451 | msleep(1); | ||
452 | } | ||
453 | |||
454 | usbhs_init(&usbhs_bdata); | ||
455 | } | ||
456 | |||
424 | static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio, | 457 | static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio, |
425 | unsigned ngpio) | 458 | unsigned ngpio) |
426 | { | 459 | { |
@@ -456,17 +489,14 @@ static struct twl4030_platform_data cm_t35_twldata = { | |||
456 | .gpio = &cm_t35_gpio_data, | 489 | .gpio = &cm_t35_gpio_data, |
457 | .vmmc1 = &cm_t35_vmmc1, | 490 | .vmmc1 = &cm_t35_vmmc1, |
458 | .vsim = &cm_t35_vsim, | 491 | .vsim = &cm_t35_vsim, |
492 | .vio = &cm_t35_vio, | ||
459 | }; | 493 | }; |
460 | 494 | ||
461 | static void __init cm_t35_init_i2c(void) | 495 | static void __init cm_t35_init_i2c(void) |
462 | { | 496 | { |
463 | omap3_pmic_get_config(&cm_t35_twldata, TWL_COMMON_PDATA_USB, | 497 | omap3_pmic_get_config(&cm_t35_twldata, TWL_COMMON_PDATA_USB, |
464 | TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); | 498 | TWL_COMMON_REGULATOR_VDAC | |
465 | 499 | TWL_COMMON_PDATA_AUDIO); | |
466 | cm_t35_twldata.vpll2->constraints.name = "VDVI"; | ||
467 | cm_t35_twldata.vpll2->num_consumer_supplies = | ||
468 | ARRAY_SIZE(cm_t35_vdvi_supply); | ||
469 | cm_t35_twldata.vpll2->consumer_supplies = cm_t35_vdvi_supply; | ||
470 | 500 | ||
471 | omap3_pmic_init("tps65930", &cm_t35_twldata); | 501 | omap3_pmic_init("tps65930", &cm_t35_twldata); |
472 | } | 502 | } |
@@ -570,24 +600,28 @@ static void __init cm_t3x_common_dss_mux_init(int mux_mode) | |||
570 | 600 | ||
571 | static void __init cm_t35_init_mux(void) | 601 | static void __init cm_t35_init_mux(void) |
572 | { | 602 | { |
573 | omap_mux_init_signal("gpio_70", OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT); | 603 | int mux_mode = OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT; |
574 | omap_mux_init_signal("gpio_71", OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT); | 604 | |
575 | omap_mux_init_signal("gpio_72", OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT); | 605 | omap_mux_init_signal("dss_data0.dss_data0", mux_mode); |
576 | omap_mux_init_signal("gpio_73", OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT); | 606 | omap_mux_init_signal("dss_data1.dss_data1", mux_mode); |
577 | omap_mux_init_signal("gpio_74", OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT); | 607 | omap_mux_init_signal("dss_data2.dss_data2", mux_mode); |
578 | omap_mux_init_signal("gpio_75", OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT); | 608 | omap_mux_init_signal("dss_data3.dss_data3", mux_mode); |
579 | cm_t3x_common_dss_mux_init(OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT); | 609 | omap_mux_init_signal("dss_data4.dss_data4", mux_mode); |
610 | omap_mux_init_signal("dss_data5.dss_data5", mux_mode); | ||
611 | cm_t3x_common_dss_mux_init(mux_mode); | ||
580 | } | 612 | } |
581 | 613 | ||
582 | static void __init cm_t3730_init_mux(void) | 614 | static void __init cm_t3730_init_mux(void) |
583 | { | 615 | { |
584 | omap_mux_init_signal("sys_boot0", OMAP_MUX_MODE3 | OMAP_PIN_OUTPUT); | 616 | int mux_mode = OMAP_MUX_MODE3 | OMAP_PIN_OUTPUT; |
585 | omap_mux_init_signal("sys_boot1", OMAP_MUX_MODE3 | OMAP_PIN_OUTPUT); | 617 | |
586 | omap_mux_init_signal("sys_boot3", OMAP_MUX_MODE3 | OMAP_PIN_OUTPUT); | 618 | omap_mux_init_signal("sys_boot0", mux_mode); |
587 | omap_mux_init_signal("sys_boot4", OMAP_MUX_MODE3 | OMAP_PIN_OUTPUT); | 619 | omap_mux_init_signal("sys_boot1", mux_mode); |
588 | omap_mux_init_signal("sys_boot5", OMAP_MUX_MODE3 | OMAP_PIN_OUTPUT); | 620 | omap_mux_init_signal("sys_boot3", mux_mode); |
589 | omap_mux_init_signal("sys_boot6", OMAP_MUX_MODE3 | OMAP_PIN_OUTPUT); | 621 | omap_mux_init_signal("sys_boot4", mux_mode); |
590 | cm_t3x_common_dss_mux_init(OMAP_MUX_MODE3 | OMAP_PIN_OUTPUT); | 622 | omap_mux_init_signal("sys_boot5", mux_mode); |
623 | omap_mux_init_signal("sys_boot6", mux_mode); | ||
624 | cm_t3x_common_dss_mux_init(mux_mode); | ||
591 | } | 625 | } |
592 | #else | 626 | #else |
593 | static inline void cm_t35_init_mux(void) {} | 627 | static inline void cm_t35_init_mux(void) {} |
@@ -612,7 +646,7 @@ static void __init cm_t3x_common_init(void) | |||
612 | cm_t35_init_display(); | 646 | cm_t35_init_display(); |
613 | 647 | ||
614 | usb_musb_init(NULL); | 648 | usb_musb_init(NULL); |
615 | usbhs_init(&usbhs_bdata); | 649 | cm_t35_init_usbh(); |
616 | } | 650 | } |
617 | 651 | ||
618 | static void __init cm_t35_init(void) | 652 | static void __init cm_t35_init(void) |
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 108fee6146f..d67bcdf724d 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/input/matrix_keypad.h> | 15 | #include <linux/input/matrix_keypad.h> |
16 | #include <linux/spi/spi.h> | 16 | #include <linux/spi/spi.h> |
17 | #include <linux/wl12xx.h> | 17 | #include <linux/wl12xx.h> |
18 | #include <linux/spi/tsc2005.h> | ||
18 | #include <linux/i2c.h> | 19 | #include <linux/i2c.h> |
19 | #include <linux/i2c/twl.h> | 20 | #include <linux/i2c/twl.h> |
20 | #include <linux/clk.h> | 21 | #include <linux/clk.h> |
@@ -58,6 +59,9 @@ | |||
58 | 59 | ||
59 | #define RX51_USB_TRANSCEIVER_RST_GPIO 67 | 60 | #define RX51_USB_TRANSCEIVER_RST_GPIO 67 |
60 | 61 | ||
62 | #define RX51_TSC2005_RESET_GPIO 104 | ||
63 | #define RX51_TSC2005_IRQ_GPIO 100 | ||
64 | |||
61 | /* list all spi devices here */ | 65 | /* list all spi devices here */ |
62 | enum { | 66 | enum { |
63 | RX51_SPI_WL1251, | 67 | RX51_SPI_WL1251, |
@@ -66,6 +70,7 @@ enum { | |||
66 | }; | 70 | }; |
67 | 71 | ||
68 | static struct wl12xx_platform_data wl1251_pdata; | 72 | static struct wl12xx_platform_data wl1251_pdata; |
73 | static struct tsc2005_platform_data tsc2005_pdata; | ||
69 | 74 | ||
70 | #if defined(CONFIG_SENSORS_TSL2563) || defined(CONFIG_SENSORS_TSL2563_MODULE) | 75 | #if defined(CONFIG_SENSORS_TSL2563) || defined(CONFIG_SENSORS_TSL2563_MODULE) |
71 | static struct tsl2563_platform_data rx51_tsl2563_platform_data = { | 76 | static struct tsl2563_platform_data rx51_tsl2563_platform_data = { |
@@ -167,10 +172,10 @@ static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = { | |||
167 | .modalias = "tsc2005", | 172 | .modalias = "tsc2005", |
168 | .bus_num = 1, | 173 | .bus_num = 1, |
169 | .chip_select = 0, | 174 | .chip_select = 0, |
170 | /* .irq = OMAP_GPIO_IRQ(RX51_TSC2005_IRQ_GPIO),*/ | 175 | .irq = OMAP_GPIO_IRQ(RX51_TSC2005_IRQ_GPIO), |
171 | .max_speed_hz = 6000000, | 176 | .max_speed_hz = 6000000, |
172 | .controller_data = &tsc2005_mcspi_config, | 177 | .controller_data = &tsc2005_mcspi_config, |
173 | /* .platform_data = &tsc2005_config,*/ | 178 | .platform_data = &tsc2005_pdata, |
174 | }, | 179 | }, |
175 | }; | 180 | }; |
176 | 181 | ||
@@ -1086,6 +1091,42 @@ error: | |||
1086 | */ | 1091 | */ |
1087 | } | 1092 | } |
1088 | 1093 | ||
1094 | static struct tsc2005_platform_data tsc2005_pdata = { | ||
1095 | .ts_pressure_max = 2048, | ||
1096 | .ts_pressure_fudge = 2, | ||
1097 | .ts_x_max = 4096, | ||
1098 | .ts_x_fudge = 4, | ||
1099 | .ts_y_max = 4096, | ||
1100 | .ts_y_fudge = 7, | ||
1101 | .ts_x_plate_ohm = 280, | ||
1102 | .esd_timeout_ms = 8000, | ||
1103 | }; | ||
1104 | |||
1105 | static void rx51_tsc2005_set_reset(bool enable) | ||
1106 | { | ||
1107 | gpio_set_value(RX51_TSC2005_RESET_GPIO, enable); | ||
1108 | } | ||
1109 | |||
1110 | static void __init rx51_init_tsc2005(void) | ||
1111 | { | ||
1112 | int r; | ||
1113 | |||
1114 | r = gpio_request_one(RX51_TSC2005_IRQ_GPIO, GPIOF_IN, "tsc2005 IRQ"); | ||
1115 | if (r < 0) { | ||
1116 | printk(KERN_ERR "unable to get %s GPIO\n", "tsc2005 IRQ"); | ||
1117 | rx51_peripherals_spi_board_info[RX51_SPI_TSC2005].irq = 0; | ||
1118 | } | ||
1119 | |||
1120 | r = gpio_request_one(RX51_TSC2005_RESET_GPIO, GPIOF_OUT_INIT_HIGH, | ||
1121 | "tsc2005 reset"); | ||
1122 | if (r >= 0) { | ||
1123 | tsc2005_pdata.set_reset = rx51_tsc2005_set_reset; | ||
1124 | } else { | ||
1125 | printk(KERN_ERR "unable to get %s GPIO\n", "tsc2005 reset"); | ||
1126 | tsc2005_pdata.esd_timeout_ms = 0; | ||
1127 | } | ||
1128 | } | ||
1129 | |||
1089 | void __init rx51_peripherals_init(void) | 1130 | void __init rx51_peripherals_init(void) |
1090 | { | 1131 | { |
1091 | rx51_i2c_init(); | 1132 | rx51_i2c_init(); |
@@ -1094,6 +1135,7 @@ void __init rx51_peripherals_init(void) | |||
1094 | board_smc91x_init(); | 1135 | board_smc91x_init(); |
1095 | rx51_add_gpio_keys(); | 1136 | rx51_add_gpio_keys(); |
1096 | rx51_init_wl1251(); | 1137 | rx51_init_wl1251(); |
1138 | rx51_init_tsc2005(); | ||
1097 | rx51_init_si4713(); | 1139 | rx51_init_si4713(); |
1098 | spi_register_board_info(rx51_peripherals_spi_board_info, | 1140 | spi_register_board_info(rx51_peripherals_spi_board_info, |
1099 | ARRAY_SIZE(rx51_peripherals_spi_board_info)); | 1141 | ARRAY_SIZE(rx51_peripherals_spi_board_info)); |
diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c index 74713e3993e..ab9a7a9e9d6 100644 --- a/arch/arm/mach-omap2/board-ti8168evm.c +++ b/arch/arm/mach-omap2/board-ti8168evm.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Code for TI8168 EVM. | 2 | * Code for TI8168/TI8148 EVM. |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ | 4 | * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ |
5 | * | 5 | * |
@@ -23,30 +23,45 @@ | |||
23 | #include <plat/irqs.h> | 23 | #include <plat/irqs.h> |
24 | #include <plat/board.h> | 24 | #include <plat/board.h> |
25 | #include "common.h" | 25 | #include "common.h" |
26 | #include <plat/usb.h> | ||
26 | 27 | ||
27 | static struct omap_board_config_kernel ti8168_evm_config[] __initdata = { | 28 | static struct omap_musb_board_data musb_board_data = { |
29 | .set_phy_power = ti81xx_musb_phy_power, | ||
30 | .interface_type = MUSB_INTERFACE_ULPI, | ||
31 | .mode = MUSB_OTG, | ||
32 | .power = 500, | ||
28 | }; | 33 | }; |
29 | 34 | ||
30 | static void __init ti8168_evm_init(void) | 35 | static struct omap_board_config_kernel ti81xx_evm_config[] __initdata = { |
36 | }; | ||
37 | |||
38 | static void __init ti81xx_evm_init(void) | ||
31 | { | 39 | { |
32 | omap_serial_init(); | 40 | omap_serial_init(); |
33 | omap_sdrc_init(NULL, NULL); | 41 | omap_sdrc_init(NULL, NULL); |
34 | omap_board_config = ti8168_evm_config; | 42 | omap_board_config = ti81xx_evm_config; |
35 | omap_board_config_size = ARRAY_SIZE(ti8168_evm_config); | 43 | omap_board_config_size = ARRAY_SIZE(ti81xx_evm_config); |
36 | } | 44 | usb_musb_init(&musb_board_data); |
37 | |||
38 | static void __init ti8168_evm_map_io(void) | ||
39 | { | ||
40 | omapti816x_map_common_io(); | ||
41 | } | 45 | } |
42 | 46 | ||
43 | MACHINE_START(TI8168EVM, "ti8168evm") | 47 | MACHINE_START(TI8168EVM, "ti8168evm") |
44 | /* Maintainer: Texas Instruments */ | 48 | /* Maintainer: Texas Instruments */ |
45 | .atag_offset = 0x100, | 49 | .atag_offset = 0x100, |
46 | .map_io = ti8168_evm_map_io, | 50 | .map_io = ti81xx_map_io, |
47 | .init_early = ti816x_init_early, | 51 | .init_early = ti81xx_init_early, |
48 | .init_irq = ti816x_init_irq, | 52 | .init_irq = ti81xx_init_irq, |
53 | .timer = &omap3_timer, | ||
54 | .init_machine = ti81xx_evm_init, | ||
55 | .restart = omap_prcm_restart, | ||
56 | MACHINE_END | ||
57 | |||
58 | MACHINE_START(TI8148EVM, "ti8148evm") | ||
59 | /* Maintainer: Texas Instruments */ | ||
60 | .atag_offset = 0x100, | ||
61 | .map_io = ti81xx_map_io, | ||
62 | .init_early = ti81xx_init_early, | ||
63 | .init_irq = ti81xx_init_irq, | ||
49 | .timer = &omap3_timer, | 64 | .timer = &omap3_timer, |
50 | .init_machine = ti8168_evm_init, | 65 | .init_machine = ti81xx_evm_init, |
51 | .restart = omap_prcm_restart, | 66 | .restart = omap_prcm_restart, |
52 | MACHINE_END | 67 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 1f3481f8d69..f57ed5baecc 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "cm-regbits-24xx.h" | 35 | #include "cm-regbits-24xx.h" |
36 | #include "cm-regbits-34xx.h" | 36 | #include "cm-regbits-34xx.h" |
37 | 37 | ||
38 | u8 cpu_mask; | 38 | u16 cpu_mask; |
39 | 39 | ||
40 | /* | 40 | /* |
41 | * clkdm_control: if true, then when a clock is enabled in the | 41 | * clkdm_control: if true, then when a clock is enabled in the |
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index 2311bc21722..b8c2a686481 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h | |||
@@ -132,7 +132,7 @@ void omap2_clk_print_new_rates(const char *hfclkin_ck_name, | |||
132 | const char *core_ck_name, | 132 | const char *core_ck_name, |
133 | const char *mpu_ck_name); | 133 | const char *mpu_ck_name); |
134 | 134 | ||
135 | extern u8 cpu_mask; | 135 | extern u16 cpu_mask; |
136 | 136 | ||
137 | extern const struct clkops clkops_omap2_dflt_wait; | 137 | extern const struct clkops clkops_omap2_dflt_wait; |
138 | extern const struct clkops clkops_dummy; | 138 | extern const struct clkops clkops_dummy; |
diff --git a/arch/arm/mach-omap2/clock3xxx_data.c b/arch/arm/mach-omap2/clock3xxx_data.c index 5d0064a4fb5..60424f41156 100644 --- a/arch/arm/mach-omap2/clock3xxx_data.c +++ b/arch/arm/mach-omap2/clock3xxx_data.c | |||
@@ -3517,6 +3517,10 @@ int __init omap3xxx_clk_init(void) | |||
3517 | } else if (cpu_is_ti816x()) { | 3517 | } else if (cpu_is_ti816x()) { |
3518 | cpu_mask = RATE_IN_TI816X; | 3518 | cpu_mask = RATE_IN_TI816X; |
3519 | cpu_clkflg = CK_TI816X; | 3519 | cpu_clkflg = CK_TI816X; |
3520 | } else if (cpu_is_am33xx()) { | ||
3521 | cpu_mask = RATE_IN_AM33XX; | ||
3522 | } else if (cpu_is_ti814x()) { | ||
3523 | cpu_mask = RATE_IN_TI814X; | ||
3520 | } else if (cpu_is_omap34xx()) { | 3524 | } else if (cpu_is_omap34xx()) { |
3521 | if (omap_rev() == OMAP3430_REV_ES1_0) { | 3525 | if (omap_rev() == OMAP3430_REV_ES1_0) { |
3522 | cpu_mask = RATE_IN_3430ES1; | 3526 | cpu_mask = RATE_IN_3430ES1; |
@@ -3600,7 +3604,7 @@ int __init omap3xxx_clk_init(void) | |||
3600 | * Lock DPLL5 -- here only until other device init code can | 3604 | * Lock DPLL5 -- here only until other device init code can |
3601 | * handle this | 3605 | * handle this |
3602 | */ | 3606 | */ |
3603 | if (!cpu_is_ti816x() && (omap_rev() >= OMAP3430_REV_ES2_0)) | 3607 | if (!cpu_is_ti81xx() && (omap_rev() >= OMAP3430_REV_ES2_0)) |
3604 | omap3_clk_lock_dpll5(); | 3608 | omap3_clk_lock_dpll5(); |
3605 | 3609 | ||
3606 | /* Avoid sleeping during omap3_core_dpll_m2_set_rate() */ | 3610 | /* Avoid sleeping during omap3_core_dpll_m2_set_rate() */ |
diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c index 684b8a7cd40..aaf421178c9 100644 --- a/arch/arm/mach-omap2/common.c +++ b/arch/arm/mach-omap2/common.c | |||
@@ -110,23 +110,49 @@ void __init omap3_map_io(void) | |||
110 | 110 | ||
111 | /* | 111 | /* |
112 | * Adjust TAP register base such that omap3_check_revision accesses the correct | 112 | * Adjust TAP register base such that omap3_check_revision accesses the correct |
113 | * TI816X register for checking device ID (it adds 0x204 to tap base while | 113 | * TI81XX register for checking device ID (it adds 0x204 to tap base while |
114 | * TI816X DEVICE ID register is at offset 0x600 from control base). | 114 | * TI81XX DEVICE ID register is at offset 0x600 from control base). |
115 | */ | 115 | */ |
116 | #define TI816X_TAP_BASE (TI816X_CTRL_BASE + \ | 116 | #define TI81XX_TAP_BASE (TI81XX_CTRL_BASE + \ |
117 | TI816X_CONTROL_DEVICE_ID - 0x204) | 117 | TI81XX_CONTROL_DEVICE_ID - 0x204) |
118 | 118 | ||
119 | static struct omap_globals ti816x_globals = { | 119 | static struct omap_globals ti81xx_globals = { |
120 | .class = OMAP343X_CLASS, | 120 | .class = OMAP343X_CLASS, |
121 | .tap = OMAP2_L4_IO_ADDRESS(TI816X_TAP_BASE), | 121 | .tap = OMAP2_L4_IO_ADDRESS(TI81XX_TAP_BASE), |
122 | .ctrl = OMAP2_L4_IO_ADDRESS(TI816X_CTRL_BASE), | 122 | .ctrl = OMAP2_L4_IO_ADDRESS(TI81XX_CTRL_BASE), |
123 | .prm = OMAP2_L4_IO_ADDRESS(TI816X_PRCM_BASE), | 123 | .prm = OMAP2_L4_IO_ADDRESS(TI81XX_PRCM_BASE), |
124 | .cm = OMAP2_L4_IO_ADDRESS(TI816X_PRCM_BASE), | 124 | .cm = OMAP2_L4_IO_ADDRESS(TI81XX_PRCM_BASE), |
125 | }; | 125 | }; |
126 | 126 | ||
127 | void __init omap2_set_globals_ti816x(void) | 127 | void __init omap2_set_globals_ti81xx(void) |
128 | { | 128 | { |
129 | __omap2_set_globals(&ti816x_globals); | 129 | __omap2_set_globals(&ti81xx_globals); |
130 | } | ||
131 | |||
132 | void __init ti81xx_map_io(void) | ||
133 | { | ||
134 | omapti81xx_map_common_io(); | ||
135 | } | ||
136 | |||
137 | #define AM33XX_TAP_BASE (AM33XX_CTRL_BASE + \ | ||
138 | TI81XX_CONTROL_DEVICE_ID - 0x204) | ||
139 | |||
140 | static struct omap_globals am33xx_globals = { | ||
141 | .class = AM335X_CLASS, | ||
142 | .tap = AM33XX_L4_WK_IO_ADDRESS(AM33XX_TAP_BASE), | ||
143 | .ctrl = AM33XX_L4_WK_IO_ADDRESS(AM33XX_CTRL_BASE), | ||
144 | .prm = AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRCM_BASE), | ||
145 | .cm = AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRCM_BASE), | ||
146 | }; | ||
147 | |||
148 | void __init omap2_set_globals_am33xx(void) | ||
149 | { | ||
150 | __omap2_set_globals(&am33xx_globals); | ||
151 | } | ||
152 | |||
153 | void __init am33xx_map_io(void) | ||
154 | { | ||
155 | omapam33xx_map_common_io(); | ||
130 | } | 156 | } |
131 | #endif | 157 | #endif |
132 | 158 | ||
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index cda888a2e63..9403b2ce6c8 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -52,10 +52,18 @@ static inline void omap34xx_map_common_io(void) | |||
52 | } | 52 | } |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #ifdef CONFIG_SOC_OMAPTI816X | 55 | #ifdef CONFIG_SOC_OMAPTI81XX |
56 | extern void omapti816x_map_common_io(void); | 56 | extern void omapti81xx_map_common_io(void); |
57 | #else | 57 | #else |
58 | static inline void omapti816x_map_common_io(void) | 58 | static inline void omapti81xx_map_common_io(void) |
59 | { | ||
60 | } | ||
61 | #endif | ||
62 | |||
63 | #ifdef CONFIG_SOC_OMAPAM33XX | ||
64 | extern void omapam33xx_map_common_io(void); | ||
65 | #else | ||
66 | static inline void omapam33xx_map_common_io(void) | ||
59 | { | 67 | { |
60 | } | 68 | } |
61 | #endif | 69 | #endif |
@@ -82,7 +90,7 @@ void omap35xx_init_early(void); | |||
82 | void omap3630_init_early(void); | 90 | void omap3630_init_early(void); |
83 | void omap3_init_early(void); /* Do not use this one */ | 91 | void omap3_init_early(void); /* Do not use this one */ |
84 | void am35xx_init_early(void); | 92 | void am35xx_init_early(void); |
85 | void ti816x_init_early(void); | 93 | void ti81xx_init_early(void); |
86 | void omap4430_init_early(void); | 94 | void omap4430_init_early(void); |
87 | void omap_prcm_restart(char, const char *); | 95 | void omap_prcm_restart(char, const char *); |
88 | 96 | ||
@@ -107,7 +115,8 @@ void omap2_set_globals_242x(void); | |||
107 | void omap2_set_globals_243x(void); | 115 | void omap2_set_globals_243x(void); |
108 | void omap2_set_globals_3xxx(void); | 116 | void omap2_set_globals_3xxx(void); |
109 | void omap2_set_globals_443x(void); | 117 | void omap2_set_globals_443x(void); |
110 | void omap2_set_globals_ti816x(void); | 118 | void omap2_set_globals_ti81xx(void); |
119 | void omap2_set_globals_am33xx(void); | ||
111 | 120 | ||
112 | /* These get called from omap2_set_globals_xxxx(), do not call these */ | 121 | /* These get called from omap2_set_globals_xxxx(), do not call these */ |
113 | void omap2_set_globals_tap(struct omap_globals *); | 122 | void omap2_set_globals_tap(struct omap_globals *); |
@@ -118,7 +127,9 @@ void omap2_set_globals_prcm(struct omap_globals *); | |||
118 | void omap242x_map_io(void); | 127 | void omap242x_map_io(void); |
119 | void omap243x_map_io(void); | 128 | void omap243x_map_io(void); |
120 | void omap3_map_io(void); | 129 | void omap3_map_io(void); |
130 | void am33xx_map_io(void); | ||
121 | void omap4_map_io(void); | 131 | void omap4_map_io(void); |
132 | void ti81xx_map_io(void); | ||
122 | 133 | ||
123 | /** | 134 | /** |
124 | * omap_test_timeout - busy-loop, testing a condition | 135 | * omap_test_timeout - busy-loop, testing a condition |
@@ -147,7 +158,7 @@ extern struct device *omap4_get_dsp_device(void); | |||
147 | 158 | ||
148 | void omap2_init_irq(void); | 159 | void omap2_init_irq(void); |
149 | void omap3_init_irq(void); | 160 | void omap3_init_irq(void); |
150 | void ti816x_init_irq(void); | 161 | void ti81xx_init_irq(void); |
151 | extern int omap_irq_pending(void); | 162 | extern int omap_irq_pending(void); |
152 | void omap_intc_save_context(void); | 163 | void omap_intc_save_context(void); |
153 | void omap_intc_restore_context(void); | 164 | void omap_intc_restore_context(void); |
diff --git a/arch/arm/mach-omap2/control.h b/arch/arm/mach-omap2/control.h index d4ef75d5a38..0ba68d3764b 100644 --- a/arch/arm/mach-omap2/control.h +++ b/arch/arm/mach-omap2/control.h | |||
@@ -52,8 +52,8 @@ | |||
52 | #define OMAP343X_CONTROL_PADCONFS_WKUP 0xa00 | 52 | #define OMAP343X_CONTROL_PADCONFS_WKUP 0xa00 |
53 | #define OMAP343X_CONTROL_GENERAL_WKUP 0xa60 | 53 | #define OMAP343X_CONTROL_GENERAL_WKUP 0xa60 |
54 | 54 | ||
55 | /* TI816X spefic control submodules */ | 55 | /* TI81XX spefic control submodules */ |
56 | #define TI816X_CONTROL_DEVCONF 0x600 | 56 | #define TI81XX_CONTROL_DEVCONF 0x600 |
57 | 57 | ||
58 | /* Control register offsets - read/write with omap_ctrl_{read,write}{bwl}() */ | 58 | /* Control register offsets - read/write with omap_ctrl_{read,write}{bwl}() */ |
59 | 59 | ||
@@ -244,8 +244,8 @@ | |||
244 | #define OMAP3_PADCONF_SAD2D_MSTANDBY 0x250 | 244 | #define OMAP3_PADCONF_SAD2D_MSTANDBY 0x250 |
245 | #define OMAP3_PADCONF_SAD2D_IDLEACK 0x254 | 245 | #define OMAP3_PADCONF_SAD2D_IDLEACK 0x254 |
246 | 246 | ||
247 | /* TI816X CONTROL_DEVCONF register offsets */ | 247 | /* TI81XX CONTROL_DEVCONF register offsets */ |
248 | #define TI816X_CONTROL_DEVICE_ID (TI816X_CONTROL_DEVCONF + 0x000) | 248 | #define TI81XX_CONTROL_DEVICE_ID (TI81XX_CONTROL_DEVCONF + 0x000) |
249 | 249 | ||
250 | /* | 250 | /* |
251 | * REVISIT: This list of registers is not comprehensive - there are more | 251 | * REVISIT: This list of registers is not comprehensive - there are more |
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index c15cfada5f1..35d5dffab7e 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -336,6 +336,27 @@ static void omap_init_mcpdm(void) | |||
336 | static inline void omap_init_mcpdm(void) {} | 336 | static inline void omap_init_mcpdm(void) {} |
337 | #endif | 337 | #endif |
338 | 338 | ||
339 | #if defined(CONFIG_SND_OMAP_SOC_DMIC) || \ | ||
340 | defined(CONFIG_SND_OMAP_SOC_DMIC_MODULE) | ||
341 | |||
342 | static void omap_init_dmic(void) | ||
343 | { | ||
344 | struct omap_hwmod *oh; | ||
345 | struct platform_device *pdev; | ||
346 | |||
347 | oh = omap_hwmod_lookup("dmic"); | ||
348 | if (!oh) { | ||
349 | printk(KERN_ERR "Could not look up mcpdm hw_mod\n"); | ||
350 | return; | ||
351 | } | ||
352 | |||
353 | pdev = omap_device_build("omap-dmic", -1, oh, NULL, 0, NULL, 0, 0); | ||
354 | WARN(IS_ERR(pdev), "Can't build omap_device for omap-dmic.\n"); | ||
355 | } | ||
356 | #else | ||
357 | static inline void omap_init_dmic(void) {} | ||
358 | #endif | ||
359 | |||
339 | #if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE) | 360 | #if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE) |
340 | 361 | ||
341 | #include <plat/mcspi.h> | 362 | #include <plat/mcspi.h> |
@@ -681,6 +702,7 @@ static int __init omap2_init_devices(void) | |||
681 | */ | 702 | */ |
682 | omap_init_audio(); | 703 | omap_init_audio(); |
683 | omap_init_mcpdm(); | 704 | omap_init_mcpdm(); |
705 | omap_init_dmic(); | ||
684 | omap_init_camera(); | 706 | omap_init_camera(); |
685 | omap_init_mbox(); | 707 | omap_init_mbox(); |
686 | omap_init_mcspi(); | 708 | omap_init_mcspi(); |
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 27ad722df63..6c5826605ea 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c | |||
@@ -226,7 +226,7 @@ static void __init omap4_check_features(void) | |||
226 | } | 226 | } |
227 | } | 227 | } |
228 | 228 | ||
229 | static void __init ti816x_check_features(void) | 229 | static void __init ti81xx_check_features(void) |
230 | { | 230 | { |
231 | omap_features = OMAP3_HAS_NEON; | 231 | omap_features = OMAP3_HAS_NEON; |
232 | } | 232 | } |
@@ -340,6 +340,29 @@ static void __init omap3_check_revision(const char **cpu_rev) | |||
340 | break; | 340 | break; |
341 | } | 341 | } |
342 | break; | 342 | break; |
343 | case 0xb944: | ||
344 | omap_revision = AM335X_REV_ES1_0; | ||
345 | *cpu_rev = "1.0"; | ||
346 | case 0xb8f2: | ||
347 | switch (rev) { | ||
348 | case 0: | ||
349 | /* FALLTHROUGH */ | ||
350 | case 1: | ||
351 | omap_revision = TI8148_REV_ES1_0; | ||
352 | *cpu_rev = "1.0"; | ||
353 | break; | ||
354 | case 2: | ||
355 | omap_revision = TI8148_REV_ES2_0; | ||
356 | *cpu_rev = "2.0"; | ||
357 | break; | ||
358 | case 3: | ||
359 | /* FALLTHROUGH */ | ||
360 | default: | ||
361 | omap_revision = TI8148_REV_ES2_1; | ||
362 | *cpu_rev = "2.1"; | ||
363 | break; | ||
364 | } | ||
365 | break; | ||
343 | default: | 366 | default: |
344 | /* Unknown default to latest silicon rev as default */ | 367 | /* Unknown default to latest silicon rev as default */ |
345 | omap_revision = OMAP3630_REV_ES1_2; | 368 | omap_revision = OMAP3630_REV_ES1_2; |
@@ -367,7 +390,7 @@ static void __init omap4_check_revision(void) | |||
367 | * Few initial 4430 ES2.0 samples IDCODE is same as ES1.0 | 390 | * Few initial 4430 ES2.0 samples IDCODE is same as ES1.0 |
368 | * Use ARM register to detect the correct ES version | 391 | * Use ARM register to detect the correct ES version |
369 | */ | 392 | */ |
370 | if (!rev && (hawkeye != 0xb94e)) { | 393 | if (!rev && (hawkeye != 0xb94e) && (hawkeye != 0xb975)) { |
371 | idcode = read_cpuid(CPUID_ID); | 394 | idcode = read_cpuid(CPUID_ID); |
372 | rev = (idcode & 0xf) - 1; | 395 | rev = (idcode & 0xf) - 1; |
373 | } | 396 | } |
@@ -389,8 +412,11 @@ static void __init omap4_check_revision(void) | |||
389 | omap_revision = OMAP4430_REV_ES2_1; | 412 | omap_revision = OMAP4430_REV_ES2_1; |
390 | break; | 413 | break; |
391 | case 4: | 414 | case 4: |
392 | default: | ||
393 | omap_revision = OMAP4430_REV_ES2_2; | 415 | omap_revision = OMAP4430_REV_ES2_2; |
416 | break; | ||
417 | case 6: | ||
418 | default: | ||
419 | omap_revision = OMAP4430_REV_ES2_3; | ||
394 | } | 420 | } |
395 | break; | 421 | break; |
396 | case 0xb94e: | 422 | case 0xb94e: |
@@ -401,9 +427,17 @@ static void __init omap4_check_revision(void) | |||
401 | break; | 427 | break; |
402 | } | 428 | } |
403 | break; | 429 | break; |
430 | case 0xb975: | ||
431 | switch (rev) { | ||
432 | case 0: | ||
433 | default: | ||
434 | omap_revision = OMAP4470_REV_ES1_0; | ||
435 | break; | ||
436 | } | ||
437 | break; | ||
404 | default: | 438 | default: |
405 | /* Unknown default to latest silicon rev as default */ | 439 | /* Unknown default to latest silicon rev as default */ |
406 | omap_revision = OMAP4430_REV_ES2_2; | 440 | omap_revision = OMAP4430_REV_ES2_3; |
407 | } | 441 | } |
408 | 442 | ||
409 | pr_info("OMAP%04x ES%d.%d\n", omap_rev() >> 16, | 443 | pr_info("OMAP%04x ES%d.%d\n", omap_rev() >> 16, |
@@ -432,6 +466,10 @@ static void __init omap3_cpuinfo(const char *cpu_rev) | |||
432 | cpu_name = (omap3_has_sgx()) ? "AM3517" : "AM3505"; | 466 | cpu_name = (omap3_has_sgx()) ? "AM3517" : "AM3505"; |
433 | } else if (cpu_is_ti816x()) { | 467 | } else if (cpu_is_ti816x()) { |
434 | cpu_name = "TI816X"; | 468 | cpu_name = "TI816X"; |
469 | } else if (cpu_is_am335x()) { | ||
470 | cpu_name = "AM335X"; | ||
471 | } else if (cpu_is_ti814x()) { | ||
472 | cpu_name = "TI814X"; | ||
435 | } else if (omap3_has_iva() && omap3_has_sgx()) { | 473 | } else if (omap3_has_iva() && omap3_has_sgx()) { |
436 | /* OMAP3430, OMAP3525, OMAP3515, OMAP3503 devices */ | 474 | /* OMAP3430, OMAP3525, OMAP3515, OMAP3503 devices */ |
437 | cpu_name = "OMAP3430/3530"; | 475 | cpu_name = "OMAP3430/3530"; |
@@ -472,11 +510,11 @@ void __init omap2_check_revision(void) | |||
472 | } else if (cpu_is_omap34xx()) { | 510 | } else if (cpu_is_omap34xx()) { |
473 | omap3_check_revision(&cpu_rev); | 511 | omap3_check_revision(&cpu_rev); |
474 | 512 | ||
475 | /* TI816X doesn't have feature register */ | 513 | /* TI81XX doesn't have feature register */ |
476 | if (!cpu_is_ti816x()) | 514 | if (!cpu_is_ti81xx()) |
477 | omap3_check_features(); | 515 | omap3_check_features(); |
478 | else | 516 | else |
479 | ti816x_check_features(); | 517 | ti81xx_check_features(); |
480 | 518 | ||
481 | omap3_cpuinfo(cpu_rev); | 519 | omap3_cpuinfo(cpu_rev); |
482 | return; | 520 | return; |
diff --git a/arch/arm/mach-omap2/include/mach/debug-macro.S b/arch/arm/mach-omap2/include/mach/debug-macro.S index 13f98e59cfe..cdfc2a1f0e7 100644 --- a/arch/arm/mach-omap2/include/mach/debug-macro.S +++ b/arch/arm/mach-omap2/include/mach/debug-macro.S | |||
@@ -66,11 +66,11 @@ omap_uart_lsr: .word 0 | |||
66 | beq 34f @ configure OMAP3UART4 | 66 | beq 34f @ configure OMAP3UART4 |
67 | cmp \rp, #OMAP4UART4 @ only on 44xx | 67 | cmp \rp, #OMAP4UART4 @ only on 44xx |
68 | beq 44f @ configure OMAP4UART4 | 68 | beq 44f @ configure OMAP4UART4 |
69 | cmp \rp, #TI816XUART1 @ ti816x UART offsets different | 69 | cmp \rp, #TI81XXUART1 @ ti81Xx UART offsets different |
70 | beq 81f @ configure UART1 | 70 | beq 81f @ configure UART1 |
71 | cmp \rp, #TI816XUART2 @ ti816x UART offsets different | 71 | cmp \rp, #TI81XXUART2 @ ti81Xx UART offsets different |
72 | beq 82f @ configure UART2 | 72 | beq 82f @ configure UART2 |
73 | cmp \rp, #TI816XUART3 @ ti816x UART offsets different | 73 | cmp \rp, #TI81XXUART3 @ ti81Xx UART offsets different |
74 | beq 83f @ configure UART3 | 74 | beq 83f @ configure UART3 |
75 | cmp \rp, #ZOOM_UART @ only on zoom2/3 | 75 | cmp \rp, #ZOOM_UART @ only on zoom2/3 |
76 | beq 95f @ configure ZOOM_UART | 76 | beq 95f @ configure ZOOM_UART |
@@ -94,11 +94,11 @@ omap_uart_lsr: .word 0 | |||
94 | b 98f | 94 | b 98f |
95 | 44: mov \rp, #UART_OFFSET(OMAP4_UART4_BASE) | 95 | 44: mov \rp, #UART_OFFSET(OMAP4_UART4_BASE) |
96 | b 98f | 96 | b 98f |
97 | 81: mov \rp, #UART_OFFSET(TI816X_UART1_BASE) | 97 | 81: mov \rp, #UART_OFFSET(TI81XX_UART1_BASE) |
98 | b 98f | 98 | b 98f |
99 | 82: mov \rp, #UART_OFFSET(TI816X_UART2_BASE) | 99 | 82: mov \rp, #UART_OFFSET(TI81XX_UART2_BASE) |
100 | b 98f | 100 | b 98f |
101 | 83: mov \rp, #UART_OFFSET(TI816X_UART3_BASE) | 101 | 83: mov \rp, #UART_OFFSET(TI81XX_UART3_BASE) |
102 | b 98f | 102 | b 98f |
103 | 103 | ||
104 | 95: ldr \rp, =ZOOM_UART_BASE | 104 | 95: ldr \rp, =ZOOM_UART_BASE |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 3f565dd2ea8..73d617f0dc4 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -176,14 +176,31 @@ static struct map_desc omap34xx_io_desc[] __initdata = { | |||
176 | }; | 176 | }; |
177 | #endif | 177 | #endif |
178 | 178 | ||
179 | #ifdef CONFIG_SOC_OMAPTI816X | 179 | #ifdef CONFIG_SOC_OMAPTI81XX |
180 | static struct map_desc omapti816x_io_desc[] __initdata = { | 180 | static struct map_desc omapti81xx_io_desc[] __initdata = { |
181 | { | ||
182 | .virtual = L4_34XX_VIRT, | ||
183 | .pfn = __phys_to_pfn(L4_34XX_PHYS), | ||
184 | .length = L4_34XX_SIZE, | ||
185 | .type = MT_DEVICE | ||
186 | } | ||
187 | }; | ||
188 | #endif | ||
189 | |||
190 | #ifdef CONFIG_SOC_OMAPAM33XX | ||
191 | static struct map_desc omapam33xx_io_desc[] __initdata = { | ||
181 | { | 192 | { |
182 | .virtual = L4_34XX_VIRT, | 193 | .virtual = L4_34XX_VIRT, |
183 | .pfn = __phys_to_pfn(L4_34XX_PHYS), | 194 | .pfn = __phys_to_pfn(L4_34XX_PHYS), |
184 | .length = L4_34XX_SIZE, | 195 | .length = L4_34XX_SIZE, |
185 | .type = MT_DEVICE | 196 | .type = MT_DEVICE |
186 | }, | 197 | }, |
198 | { | ||
199 | .virtual = L4_WK_AM33XX_VIRT, | ||
200 | .pfn = __phys_to_pfn(L4_WK_AM33XX_PHYS), | ||
201 | .length = L4_WK_AM33XX_SIZE, | ||
202 | .type = MT_DEVICE | ||
203 | } | ||
187 | }; | 204 | }; |
188 | #endif | 205 | #endif |
189 | 206 | ||
@@ -263,10 +280,17 @@ void __init omap34xx_map_common_io(void) | |||
263 | } | 280 | } |
264 | #endif | 281 | #endif |
265 | 282 | ||
266 | #ifdef CONFIG_SOC_OMAPTI816X | 283 | #ifdef CONFIG_SOC_OMAPTI81XX |
267 | void __init omapti816x_map_common_io(void) | 284 | void __init omapti81xx_map_common_io(void) |
285 | { | ||
286 | iotable_init(omapti81xx_io_desc, ARRAY_SIZE(omapti81xx_io_desc)); | ||
287 | } | ||
288 | #endif | ||
289 | |||
290 | #ifdef CONFIG_SOC_OMAPAM33XX | ||
291 | void __init omapam33xx_map_common_io(void) | ||
268 | { | 292 | { |
269 | iotable_init(omapti816x_io_desc, ARRAY_SIZE(omapti816x_io_desc)); | 293 | iotable_init(omapam33xx_io_desc, ARRAY_SIZE(omapam33xx_io_desc)); |
270 | } | 294 | } |
271 | #endif | 295 | #endif |
272 | 296 | ||
@@ -418,9 +442,9 @@ void __init am35xx_init_early(void) | |||
418 | omap3_init_early(); | 442 | omap3_init_early(); |
419 | } | 443 | } |
420 | 444 | ||
421 | void __init ti816x_init_early(void) | 445 | void __init ti81xx_init_early(void) |
422 | { | 446 | { |
423 | omap2_set_globals_ti816x(); | 447 | omap2_set_globals_ti81xx(); |
424 | omap_common_init_early(); | 448 | omap_common_init_early(); |
425 | omap3xxx_voltagedomains_init(); | 449 | omap3xxx_voltagedomains_init(); |
426 | omap3xxx_powerdomains_init(); | 450 | omap3xxx_powerdomains_init(); |
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 42b1d659191..1fef061f792 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c | |||
@@ -193,7 +193,7 @@ void __init omap3_init_irq(void) | |||
193 | omap_init_irq(OMAP34XX_IC_BASE, 96); | 193 | omap_init_irq(OMAP34XX_IC_BASE, 96); |
194 | } | 194 | } |
195 | 195 | ||
196 | void __init ti816x_init_irq(void) | 196 | void __init ti81xx_init_irq(void) |
197 | { | 197 | { |
198 | omap_init_irq(OMAP34XX_IC_BASE, 128); | 198 | omap_init_irq(OMAP34XX_IC_BASE, 128); |
199 | } | 199 | } |
diff --git a/arch/arm/mach-omap2/omap_phy_internal.c b/arch/arm/mach-omap2/omap_phy_internal.c index 58775e3c847..4c90477e6f8 100644 --- a/arch/arm/mach-omap2/omap_phy_internal.c +++ b/arch/arm/mach-omap2/omap_phy_internal.c | |||
@@ -260,3 +260,38 @@ void am35x_set_mode(u8 musb_mode) | |||
260 | 260 | ||
261 | omap_ctrl_writel(devconf2, AM35XX_CONTROL_DEVCONF2); | 261 | omap_ctrl_writel(devconf2, AM35XX_CONTROL_DEVCONF2); |
262 | } | 262 | } |
263 | |||
264 | void ti81xx_musb_phy_power(u8 on) | ||
265 | { | ||
266 | void __iomem *scm_base = NULL; | ||
267 | u32 usbphycfg; | ||
268 | |||
269 | scm_base = ioremap(TI81XX_SCM_BASE, SZ_2K); | ||
270 | if (!scm_base) { | ||
271 | pr_err("system control module ioremap failed\n"); | ||
272 | return; | ||
273 | } | ||
274 | |||
275 | usbphycfg = __raw_readl(scm_base + USBCTRL0); | ||
276 | |||
277 | if (on) { | ||
278 | if (cpu_is_ti816x()) { | ||
279 | usbphycfg |= TI816X_USBPHY0_NORMAL_MODE; | ||
280 | usbphycfg &= ~TI816X_USBPHY_REFCLK_OSC; | ||
281 | } else if (cpu_is_ti814x()) { | ||
282 | usbphycfg &= ~(USBPHY_CM_PWRDN | USBPHY_OTG_PWRDN | ||
283 | | USBPHY_DPINPUT | USBPHY_DMINPUT); | ||
284 | usbphycfg |= (USBPHY_OTGVDET_EN | USBPHY_OTGSESSEND_EN | ||
285 | | USBPHY_DPOPBUFCTL | USBPHY_DMOPBUFCTL); | ||
286 | } | ||
287 | } else { | ||
288 | if (cpu_is_ti816x()) | ||
289 | usbphycfg &= ~TI816X_USBPHY0_NORMAL_MODE; | ||
290 | else if (cpu_is_ti814x()) | ||
291 | usbphycfg |= USBPHY_CM_PWRDN | USBPHY_OTG_PWRDN; | ||
292 | |||
293 | } | ||
294 | __raw_writel(usbphycfg, scm_base + USBCTRL0); | ||
295 | |||
296 | iounmap(scm_base); | ||
297 | } | ||
diff --git a/arch/arm/mach-omap2/opp2xxx.h b/arch/arm/mach-omap2/opp2xxx.h index 8affc66a92c..8fae534eb15 100644 --- a/arch/arm/mach-omap2/opp2xxx.h +++ b/arch/arm/mach-omap2/opp2xxx.h | |||
@@ -51,7 +51,7 @@ struct prcm_config { | |||
51 | unsigned long cm_clksel2_pll; /* dpllx1 or x2 out */ | 51 | unsigned long cm_clksel2_pll; /* dpllx1 or x2 out */ |
52 | unsigned long cm_clksel_mdm; /* modem dividers 2430 only */ | 52 | unsigned long cm_clksel_mdm; /* modem dividers 2430 only */ |
53 | unsigned long base_sdrc_rfr; /* base refresh timing for a set */ | 53 | unsigned long base_sdrc_rfr; /* base refresh timing for a set */ |
54 | unsigned char flags; | 54 | unsigned short flags; |
55 | }; | 55 | }; |
56 | 56 | ||
57 | 57 | ||
diff --git a/arch/arm/mach-omap2/sdram-nokia.c b/arch/arm/mach-omap2/sdram-nokia.c index ee3a8ad304c..7479d7ea137 100644 --- a/arch/arm/mach-omap2/sdram-nokia.c +++ b/arch/arm/mach-omap2/sdram-nokia.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * SDRC register values for Nokia boards | 2 | * SDRC register values for Nokia boards |
3 | * | 3 | * |
4 | * Copyright (C) 2008, 2010 Nokia Corporation | 4 | * Copyright (C) 2008, 2010-2011 Nokia Corporation |
5 | * | 5 | * |
6 | * Lauri Leukkunen <lauri.leukkunen@nokia.com> | 6 | * Lauri Leukkunen <lauri.leukkunen@nokia.com> |
7 | * | 7 | * |
@@ -107,14 +107,37 @@ static const struct sdram_timings nokia_195dot2mhz_timings[] = { | |||
107 | }, | 107 | }, |
108 | }; | 108 | }; |
109 | 109 | ||
110 | static const struct sdram_timings nokia_200mhz_timings[] = { | ||
111 | { | ||
112 | .casl = 3, | ||
113 | .tDAL = 30000, | ||
114 | .tDPL = 15000, | ||
115 | .tRRD = 10000, | ||
116 | .tRCD = 20000, | ||
117 | .tRP = 15000, | ||
118 | .tRAS = 40000, | ||
119 | .tRC = 55000, | ||
120 | .tRFC = 140000, | ||
121 | .tXSR = 200000, | ||
122 | |||
123 | .tREF = 7800, | ||
124 | |||
125 | .tXP = 2, | ||
126 | .tCKE = 4, | ||
127 | .tWTR = 2 | ||
128 | }, | ||
129 | }; | ||
130 | |||
110 | static const struct { | 131 | static const struct { |
111 | long rate; | 132 | long rate; |
112 | struct sdram_timings const *data; | 133 | struct sdram_timings const *data; |
113 | } nokia_timings[] = { | 134 | } nokia_timings[] = { |
114 | { 83000000, nokia_166mhz_timings }, | 135 | { 83000000, nokia_166mhz_timings }, |
115 | { 97600000, nokia_97dot6mhz_timings }, | 136 | { 97600000, nokia_97dot6mhz_timings }, |
137 | { 100000000, nokia_200mhz_timings }, | ||
116 | { 166000000, nokia_166mhz_timings }, | 138 | { 166000000, nokia_166mhz_timings }, |
117 | { 195200000, nokia_195dot2mhz_timings }, | 139 | { 195200000, nokia_195dot2mhz_timings }, |
140 | { 200000000, nokia_200mhz_timings }, | ||
118 | }; | 141 | }; |
119 | static struct omap_sdrc_params nokia_sdrc_params[ARRAY_SIZE(nokia_timings) + 1]; | 142 | static struct omap_sdrc_params nokia_sdrc_params[ARRAY_SIZE(nokia_timings) + 1]; |
120 | 143 | ||
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 42c326732a2..d0f009cbfb5 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -464,7 +464,7 @@ static void omap_uart_idle_init(struct omap_uart_state *uart) | |||
464 | mod_timer(&uart->timer, jiffies + uart->timeout); | 464 | mod_timer(&uart->timer, jiffies + uart->timeout); |
465 | omap_uart_smart_idle_enable(uart, 0); | 465 | omap_uart_smart_idle_enable(uart, 0); |
466 | 466 | ||
467 | if (cpu_is_omap34xx() && !cpu_is_ti816x()) { | 467 | if (cpu_is_omap34xx() && !(cpu_is_ti81xx() || cpu_is_am33xx())) { |
468 | u32 mod = (uart->num > 1) ? OMAP3430_PER_MOD : CORE_MOD; | 468 | u32 mod = (uart->num > 1) ? OMAP3430_PER_MOD : CORE_MOD; |
469 | u32 wk_mask = 0; | 469 | u32 wk_mask = 0; |
470 | u32 padconf = 0; | 470 | u32 padconf = 0; |
@@ -746,7 +746,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata) | |||
746 | */ | 746 | */ |
747 | uart->regshift = p->regshift; | 747 | uart->regshift = p->regshift; |
748 | uart->membase = p->membase; | 748 | uart->membase = p->membase; |
749 | if (cpu_is_omap44xx() || cpu_is_ti816x()) | 749 | if (cpu_is_omap44xx() || cpu_is_ti81xx()) |
750 | uart->errata |= UART_ERRATA_FIFO_FULL_ABORT; | 750 | uart->errata |= UART_ERRATA_FIFO_FULL_ABORT; |
751 | else if ((serial_read_reg(uart, UART_OMAP_MVER) & 0xFF) | 751 | else if ((serial_read_reg(uart, UART_OMAP_MVER) & 0xFF) |
752 | >= UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV) | 752 | >= UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV) |
@@ -828,7 +828,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata) | |||
828 | } | 828 | } |
829 | 829 | ||
830 | /* Enable the MDR1 errata for OMAP3 */ | 830 | /* Enable the MDR1 errata for OMAP3 */ |
831 | if (cpu_is_omap34xx() && !cpu_is_ti816x()) | 831 | if (cpu_is_omap34xx() && !(cpu_is_ti81xx() || cpu_is_am33xx())) |
832 | uart->errata |= UART_ERRATA_i202_MDR1_ACCESS; | 832 | uart->errata |= UART_ERRATA_i202_MDR1_ACCESS; |
833 | } | 833 | } |
834 | 834 | ||
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c index 267975086a7..8d5ed775dd5 100644 --- a/arch/arm/mach-omap2/usb-musb.c +++ b/arch/arm/mach-omap2/usb-musb.c | |||
@@ -93,6 +93,9 @@ void __init usb_musb_init(struct omap_musb_board_data *musb_board_data) | |||
93 | if (cpu_is_omap3517() || cpu_is_omap3505()) { | 93 | if (cpu_is_omap3517() || cpu_is_omap3505()) { |
94 | oh_name = "am35x_otg_hs"; | 94 | oh_name = "am35x_otg_hs"; |
95 | name = "musb-am35x"; | 95 | name = "musb-am35x"; |
96 | } else if (cpu_is_ti81xx()) { | ||
97 | oh_name = "usb_otg_hs"; | ||
98 | name = "musb-ti81xx"; | ||
96 | } else { | 99 | } else { |
97 | oh_name = "usb_otg_hs"; | 100 | oh_name = "usb_otg_hs"; |
98 | name = "musb-omap2430"; | 101 | name = "musb-omap2430"; |
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index 924a3b5f8da..dce71b4a3a5 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c | |||
@@ -53,6 +53,7 @@ | |||
53 | #include <mach/pxa27x-udc.h> | 53 | #include <mach/pxa27x-udc.h> |
54 | #include <mach/camera.h> | 54 | #include <mach/camera.h> |
55 | #include <mach/audio.h> | 55 | #include <mach/audio.h> |
56 | #include <mach/smemc.h> | ||
56 | #include <media/soc_camera.h> | 57 | #include <media/soc_camera.h> |
57 | 58 | ||
58 | #include <mach/mioa701.h> | 59 | #include <mach/mioa701.h> |
@@ -390,24 +391,19 @@ static struct pxamci_platform_data mioa701_mci_info = { | |||
390 | }; | 391 | }; |
391 | 392 | ||
392 | /* FlashRAM */ | 393 | /* FlashRAM */ |
393 | static struct resource strataflash_resource = { | 394 | static struct resource docg3_resource = { |
394 | .start = PXA_CS0_PHYS, | 395 | .start = PXA_CS0_PHYS, |
395 | .end = PXA_CS0_PHYS + SZ_64M - 1, | 396 | .end = PXA_CS0_PHYS + SZ_8K - 1, |
396 | .flags = IORESOURCE_MEM, | 397 | .flags = IORESOURCE_MEM, |
397 | }; | 398 | }; |
398 | 399 | ||
399 | static struct physmap_flash_data strataflash_data = { | 400 | static struct platform_device docg3 = { |
400 | .width = 2, | 401 | .name = "docg3", |
401 | /* .set_vpp = mioa701_set_vpp, */ | ||
402 | }; | ||
403 | |||
404 | static struct platform_device strataflash = { | ||
405 | .name = "physmap-flash", | ||
406 | .id = -1, | 402 | .id = -1, |
407 | .resource = &strataflash_resource, | 403 | .resource = &docg3_resource, |
408 | .num_resources = 1, | 404 | .num_resources = 1, |
409 | .dev = { | 405 | .dev = { |
410 | .platform_data = &strataflash_data, | 406 | .platform_data = NULL, |
411 | }, | 407 | }, |
412 | }; | 408 | }; |
413 | 409 | ||
@@ -685,7 +681,7 @@ static struct platform_device *devices[] __initdata = { | |||
685 | &pxa2xx_pcm, | 681 | &pxa2xx_pcm, |
686 | &mioa701_sound, | 682 | &mioa701_sound, |
687 | &power_dev, | 683 | &power_dev, |
688 | &strataflash, | 684 | &docg3, |
689 | &gpio_vbus, | 685 | &gpio_vbus, |
690 | &mioa701_camera, | 686 | &mioa701_camera, |
691 | &mioa701_board, | 687 | &mioa701_board, |
@@ -720,6 +716,15 @@ static void __init mioa701_machine_init(void) | |||
720 | RTTR = 32768 - 1; /* Reset crazy WinCE value */ | 716 | RTTR = 32768 - 1; /* Reset crazy WinCE value */ |
721 | UP2OCR = UP2OCR_HXOE; | 717 | UP2OCR = UP2OCR_HXOE; |
722 | 718 | ||
719 | /* | ||
720 | * Set up the flash memory : DiskOnChip G3 on first static memory bank | ||
721 | */ | ||
722 | __raw_writel(0x7ff02dd8, MSC0); | ||
723 | __raw_writel(0x0001c391, MCMEM0); | ||
724 | __raw_writel(0x0001c391, MCATT0); | ||
725 | __raw_writel(0x0001c391, MCIO0); | ||
726 | |||
727 | |||
723 | pxa2xx_mfp_config(ARRAY_AND_SIZE(mioa701_pin_config)); | 728 | pxa2xx_mfp_config(ARRAY_AND_SIZE(mioa701_pin_config)); |
724 | pxa_set_ffuart_info(NULL); | 729 | pxa_set_ffuart_info(NULL); |
725 | pxa_set_btuart_info(NULL); | 730 | pxa_set_btuart_info(NULL); |
diff --git a/arch/arm/mach-s3c2440/mach-mini2440.c b/arch/arm/mach-s3c2440/mach-mini2440.c index 437322ffd88..adbbb85bc4c 100644 --- a/arch/arm/mach-s3c2440/mach-mini2440.c +++ b/arch/arm/mach-s3c2440/mach-mini2440.c | |||
@@ -169,6 +169,24 @@ static struct s3c2410fb_display mini2440_lcd_cfg[] __initdata = { | |||
169 | .lcdcon5 = (S3C2410_LCDCON5_FRM565 | | 169 | .lcdcon5 = (S3C2410_LCDCON5_FRM565 | |
170 | S3C2410_LCDCON5_HWSWP), | 170 | S3C2410_LCDCON5_HWSWP), |
171 | }, | 171 | }, |
172 | /* mini2440 + 3.5" TFT (LCD-W35i, LQ035Q1DG06 type) + touchscreen*/ | ||
173 | [3] = { | ||
174 | _LCD_DECLARE( | ||
175 | /* clock */ | ||
176 | 7, | ||
177 | /* xres, margin_right, margin_left, hsync */ | ||
178 | 320, 68, 66, 4, | ||
179 | /* yres, margin_top, margin_bottom, vsync */ | ||
180 | 240, 4, 4, 9, | ||
181 | /* refresh rate */ | ||
182 | 60), | ||
183 | .lcdcon5 = (S3C2410_LCDCON5_FRM565 | | ||
184 | S3C2410_LCDCON5_INVVDEN | | ||
185 | S3C2410_LCDCON5_INVVFRAME | | ||
186 | S3C2410_LCDCON5_INVVLINE | | ||
187 | S3C2410_LCDCON5_INVVCLK | | ||
188 | S3C2410_LCDCON5_HWSWP), | ||
189 | }, | ||
172 | }; | 190 | }; |
173 | 191 | ||
174 | /* todo - put into gpio header */ | 192 | /* todo - put into gpio header */ |
diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig index 90b34ab75b5..e9dae9105df 100644 --- a/arch/arm/mach-s3c64xx/Kconfig +++ b/arch/arm/mach-s3c64xx/Kconfig | |||
@@ -193,7 +193,7 @@ config SMDK6410_WM1190_EV1 | |||
193 | depends on MACH_SMDK6410 | 193 | depends on MACH_SMDK6410 |
194 | select REGULATOR | 194 | select REGULATOR |
195 | select REGULATOR_WM8350 | 195 | select REGULATOR_WM8350 |
196 | select S3C24XX_GPIO_EXTRA64 | 196 | select SAMSUNG_GPIO_EXTRA64 |
197 | select MFD_WM8350_I2C | 197 | select MFD_WM8350_I2C |
198 | select MFD_WM8350_CONFIG_MODE_0 | 198 | select MFD_WM8350_CONFIG_MODE_0 |
199 | select MFD_WM8350_CONFIG_MODE_3 | 199 | select MFD_WM8350_CONFIG_MODE_3 |
@@ -211,7 +211,7 @@ config SMDK6410_WM1192_EV1 | |||
211 | depends on MACH_SMDK6410 | 211 | depends on MACH_SMDK6410 |
212 | select REGULATOR | 212 | select REGULATOR |
213 | select REGULATOR_WM831X | 213 | select REGULATOR_WM831X |
214 | select S3C24XX_GPIO_EXTRA64 | 214 | select SAMSUNG_GPIO_EXTRA64 |
215 | select MFD_WM831X | 215 | select MFD_WM831X |
216 | select MFD_WM831X_I2C | 216 | select MFD_WM831X_I2C |
217 | help | 217 | help |
@@ -293,7 +293,7 @@ config MACH_WLF_CRAGG_6410 | |||
293 | select S3C_DEV_WDT | 293 | select S3C_DEV_WDT |
294 | select S3C_DEV_RTC | 294 | select S3C_DEV_RTC |
295 | select S3C64XX_DEV_SPI0 | 295 | select S3C64XX_DEV_SPI0 |
296 | select S3C24XX_GPIO_EXTRA128 | 296 | select SAMSUNG_GPIO_EXTRA128 |
297 | select I2C | 297 | select I2C |
298 | help | 298 | help |
299 | Machine support for the Wolfson Cragganmore S3C6410 variant. | 299 | Machine support for the Wolfson Cragganmore S3C6410 variant. |
diff --git a/arch/arm/mach-s3c64xx/include/mach/crag6410.h b/arch/arm/mach-s3c64xx/include/mach/crag6410.h index be9074e17df..5d55ab018b6 100644 --- a/arch/arm/mach-s3c64xx/include/mach/crag6410.h +++ b/arch/arm/mach-s3c64xx/include/mach/crag6410.h | |||
@@ -15,9 +15,11 @@ | |||
15 | 15 | ||
16 | #define BANFF_PMIC_IRQ_BASE IRQ_BOARD_START | 16 | #define BANFF_PMIC_IRQ_BASE IRQ_BOARD_START |
17 | #define GLENFARCLAS_PMIC_IRQ_BASE (IRQ_BOARD_START + 64) | 17 | #define GLENFARCLAS_PMIC_IRQ_BASE (IRQ_BOARD_START + 64) |
18 | #define CODEC_IRQ_BASE (IRQ_BOARD_START + 128) | ||
18 | 19 | ||
19 | #define PCA935X_GPIO_BASE GPIO_BOARD_START | 20 | #define PCA935X_GPIO_BASE GPIO_BOARD_START |
20 | #define CODEC_GPIO_BASE (GPIO_BOARD_START + 8) | 21 | #define CODEC_GPIO_BASE (GPIO_BOARD_START + 8) |
21 | #define GLENFARCLAS_PMIC_GPIO_BASE (GPIO_BOARD_START + 16) | 22 | #define GLENFARCLAS_PMIC_GPIO_BASE (GPIO_BOARD_START + 32) |
23 | #define BANFF_PMIC_GPIO_BASE (GPIO_BOARD_START + 64) | ||
22 | 24 | ||
23 | #endif | 25 | #endif |
diff --git a/arch/arm/mach-s3c64xx/include/mach/gpio.h b/arch/arm/mach-s3c64xx/include/mach/gpio.h index 6e34c2f6e67..8b540c42d5d 100644 --- a/arch/arm/mach-s3c64xx/include/mach/gpio.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio.h | |||
@@ -88,6 +88,6 @@ enum s3c_gpio_number { | |||
88 | /* define the number of gpios we need to the one after the GPQ() range */ | 88 | /* define the number of gpios we need to the one after the GPQ() range */ |
89 | #define GPIO_BOARD_START (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1) | 89 | #define GPIO_BOARD_START (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1) |
90 | 90 | ||
91 | #define BOARD_NR_GPIOS 16 | 91 | #define BOARD_NR_GPIOS (16 + CONFIG_SAMSUNG_GPIO_EXTRA) |
92 | 92 | ||
93 | #define ARCH_NR_GPIOS (GPIO_BOARD_START + BOARD_NR_GPIOS) | 93 | #define ARCH_NR_GPIOS (GPIO_BOARD_START + BOARD_NR_GPIOS) |
diff --git a/arch/arm/mach-s3c64xx/include/mach/irqs.h b/arch/arm/mach-s3c64xx/include/mach/irqs.h index 443f85b3c20..96d60e0d937 100644 --- a/arch/arm/mach-s3c64xx/include/mach/irqs.h +++ b/arch/arm/mach-s3c64xx/include/mach/irqs.h | |||
@@ -169,7 +169,7 @@ | |||
169 | #define IRQ_BOARD_START (IRQ_EINT_GROUP9_BASE + IRQ_EINT_GROUP9_NR + 1) | 169 | #define IRQ_BOARD_START (IRQ_EINT_GROUP9_BASE + IRQ_EINT_GROUP9_NR + 1) |
170 | 170 | ||
171 | #ifdef CONFIG_MACH_WLF_CRAGG_6410 | 171 | #ifdef CONFIG_MACH_WLF_CRAGG_6410 |
172 | #define IRQ_BOARD_NR 128 | 172 | #define IRQ_BOARD_NR 160 |
173 | #elif defined(CONFIG_SMDK6410_WM1190_EV1) | 173 | #elif defined(CONFIG_SMDK6410_WM1190_EV1) |
174 | #define IRQ_BOARD_NR 64 | 174 | #define IRQ_BOARD_NR 64 |
175 | #elif defined(CONFIG_SMDK6410_WM1192_EV1) | 175 | #elif defined(CONFIG_SMDK6410_WM1192_EV1) |
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c index f208154b138..cd3c97e2ee7 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c | |||
@@ -14,13 +14,43 @@ | |||
14 | 14 | ||
15 | #include <linux/mfd/wm831x/irq.h> | 15 | #include <linux/mfd/wm831x/irq.h> |
16 | #include <linux/mfd/wm831x/gpio.h> | 16 | #include <linux/mfd/wm831x/gpio.h> |
17 | #include <linux/mfd/wm8994/pdata.h> | ||
17 | 18 | ||
19 | #include <sound/wm5100.h> | ||
18 | #include <sound/wm8996.h> | 20 | #include <sound/wm8996.h> |
19 | #include <sound/wm8962.h> | 21 | #include <sound/wm8962.h> |
20 | #include <sound/wm9081.h> | 22 | #include <sound/wm9081.h> |
21 | 23 | ||
22 | #include <mach/crag6410.h> | 24 | #include <mach/crag6410.h> |
23 | 25 | ||
26 | static struct wm5100_pdata wm5100_pdata = { | ||
27 | .ldo_ena = S3C64XX_GPN(7), | ||
28 | .irq_flags = IRQF_TRIGGER_HIGH, | ||
29 | .gpio_base = CODEC_GPIO_BASE, | ||
30 | |||
31 | .in_mode = { | ||
32 | WM5100_IN_DIFF, | ||
33 | WM5100_IN_DIFF, | ||
34 | WM5100_IN_DIFF, | ||
35 | WM5100_IN_SE, | ||
36 | }, | ||
37 | |||
38 | .hp_pol = CODEC_GPIO_BASE + 3, | ||
39 | .jack_modes = { | ||
40 | { WM5100_MICDET_MICBIAS3, 0, 0 }, | ||
41 | { WM5100_MICDET_MICBIAS2, 1, 1 }, | ||
42 | }, | ||
43 | |||
44 | .gpio_defaults = { | ||
45 | 0, | ||
46 | 0, | ||
47 | 0, | ||
48 | 0, | ||
49 | 0x2, /* IRQ: CMOS output */ | ||
50 | 0x3, /* CLKOUT: CMOS output */ | ||
51 | }, | ||
52 | }; | ||
53 | |||
24 | static struct wm8996_retune_mobile_config wm8996_retune[] = { | 54 | static struct wm8996_retune_mobile_config wm8996_retune[] = { |
25 | { | 55 | { |
26 | .name = "Sub LPF", | 56 | .name = "Sub LPF", |
@@ -72,7 +102,6 @@ static struct wm8962_pdata wm8962_pdata __initdata = { | |||
72 | 0x8000 | WM8962_GPIO_FN_DMICDAT, | 102 | 0x8000 | WM8962_GPIO_FN_DMICDAT, |
73 | WM8962_GPIO_FN_IRQ, /* Open drain mode */ | 103 | WM8962_GPIO_FN_IRQ, /* Open drain mode */ |
74 | }, | 104 | }, |
75 | .irq_active_low = true, | ||
76 | }; | 105 | }; |
77 | 106 | ||
78 | static struct wm9081_pdata wm9081_pdata __initdata = { | 107 | static struct wm9081_pdata wm9081_pdata __initdata = { |
@@ -91,6 +120,7 @@ static const struct i2c_board_info wm1254_devs[] = { | |||
91 | 120 | ||
92 | static const struct i2c_board_info wm1255_devs[] = { | 121 | static const struct i2c_board_info wm1255_devs[] = { |
93 | { I2C_BOARD_INFO("wm5100", 0x1a), | 122 | { I2C_BOARD_INFO("wm5100", 0x1a), |
123 | .platform_data = &wm5100_pdata, | ||
94 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, | 124 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, |
95 | }, | 125 | }, |
96 | { I2C_BOARD_INFO("wm9081", 0x6c), | 126 | { I2C_BOARD_INFO("wm9081", 0x6c), |
@@ -104,6 +134,24 @@ static const struct i2c_board_info wm1259_devs[] = { | |||
104 | }, | 134 | }, |
105 | }; | 135 | }; |
106 | 136 | ||
137 | static struct wm8994_pdata wm8994_pdata = { | ||
138 | .gpio_base = CODEC_GPIO_BASE, | ||
139 | .gpio_defaults = { | ||
140 | 0x3, /* IRQ out, active high, CMOS */ | ||
141 | }, | ||
142 | .irq_base = CODEC_IRQ_BASE, | ||
143 | .ldo = { | ||
144 | { .supply = "WALLVDD" }, | ||
145 | { .supply = "WALLVDD" }, | ||
146 | }, | ||
147 | }; | ||
148 | |||
149 | static const struct i2c_board_info wm1277_devs[] = { | ||
150 | { I2C_BOARD_INFO("wm8958", 0x1a), /* WM8958 is the superset */ | ||
151 | .platform_data = &wm8994_pdata, | ||
152 | .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, | ||
153 | }, | ||
154 | }; | ||
107 | 155 | ||
108 | static __devinitdata const struct { | 156 | static __devinitdata const struct { |
109 | u8 id; | 157 | u8 id; |
@@ -125,6 +173,8 @@ static __devinitdata const struct { | |||
125 | { .id = 0x3b, .name = "1255-EV1 Kilchoman", | 173 | { .id = 0x3b, .name = "1255-EV1 Kilchoman", |
126 | .i2c_devs = wm1255_devs, .num_i2c_devs = ARRAY_SIZE(wm1255_devs) }, | 174 | .i2c_devs = wm1255_devs, .num_i2c_devs = ARRAY_SIZE(wm1255_devs) }, |
127 | { .id = 0x3c, .name = "1273-EV1 Longmorn" }, | 175 | { .id = 0x3c, .name = "1273-EV1 Longmorn" }, |
176 | { .id = 0x3d, .name = "1277-EV1 Littlemill", | ||
177 | .i2c_devs = wm1277_devs, .num_i2c_devs = ARRAY_SIZE(wm1277_devs) }, | ||
128 | }; | 178 | }; |
129 | 179 | ||
130 | static __devinit int wlf_gf_module_probe(struct i2c_client *i2c, | 180 | static __devinit int wlf_gf_module_probe(struct i2c_client *i2c, |
@@ -154,8 +204,8 @@ static __devinit int wlf_gf_module_probe(struct i2c_client *i2c, | |||
154 | "Failed to register dev: %d\n", ret); | 204 | "Failed to register dev: %d\n", ret); |
155 | } | 205 | } |
156 | } else { | 206 | } else { |
157 | dev_warn(&i2c->dev, "Unknown module ID %d revision %d\n", | 207 | dev_warn(&i2c->dev, "Unknown module ID 0x%x revision %d\n", |
158 | id, rev); | 208 | id, rev + 1); |
159 | } | 209 | } |
160 | 210 | ||
161 | return 0; | 211 | return 0; |
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index f1c848aa4a1..25d9f0cf945 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c | |||
@@ -37,6 +37,8 @@ | |||
37 | #include <linux/mfd/wm831x/irq.h> | 37 | #include <linux/mfd/wm831x/irq.h> |
38 | #include <linux/mfd/wm831x/gpio.h> | 38 | #include <linux/mfd/wm831x/gpio.h> |
39 | 39 | ||
40 | #include <sound/wm1250-ev1.h> | ||
41 | |||
40 | #include <asm/hardware/vic.h> | 42 | #include <asm/hardware/vic.h> |
41 | #include <asm/mach/arch.h> | 43 | #include <asm/mach/arch.h> |
42 | #include <asm/mach-types.h> | 44 | #include <asm/mach-types.h> |
@@ -289,6 +291,11 @@ static struct platform_device speyside_wm8962_device = { | |||
289 | .id = -1, | 291 | .id = -1, |
290 | }; | 292 | }; |
291 | 293 | ||
294 | static struct platform_device littlemill_device = { | ||
295 | .name = "littlemill", | ||
296 | .id = -1, | ||
297 | }; | ||
298 | |||
292 | static struct regulator_consumer_supply wallvdd_consumers[] = { | 299 | static struct regulator_consumer_supply wallvdd_consumers[] = { |
293 | REGULATOR_SUPPLY("SPKVDD1", "1-001a"), | 300 | REGULATOR_SUPPLY("SPKVDD1", "1-001a"), |
294 | REGULATOR_SUPPLY("SPKVDD2", "1-001a"), | 301 | REGULATOR_SUPPLY("SPKVDD2", "1-001a"), |
@@ -341,6 +348,7 @@ static struct platform_device *crag6410_devices[] __initdata = { | |||
341 | &crag6410_backlight_device, | 348 | &crag6410_backlight_device, |
342 | &speyside_device, | 349 | &speyside_device, |
343 | &speyside_wm8962_device, | 350 | &speyside_wm8962_device, |
351 | &littlemill_device, | ||
344 | &lowland_device, | 352 | &lowland_device, |
345 | &wallvdd_device, | 353 | &wallvdd_device, |
346 | }; | 354 | }; |
@@ -374,6 +382,10 @@ static struct regulator_init_data vddarm __initdata = { | |||
374 | .driver_data = &vddarm_pdata, | 382 | .driver_data = &vddarm_pdata, |
375 | }; | 383 | }; |
376 | 384 | ||
385 | static struct regulator_consumer_supply vddint_consumers[] __initdata = { | ||
386 | REGULATOR_SUPPLY("vddint", NULL), | ||
387 | }; | ||
388 | |||
377 | static struct regulator_init_data vddint __initdata = { | 389 | static struct regulator_init_data vddint __initdata = { |
378 | .constraints = { | 390 | .constraints = { |
379 | .name = "VDDINT", | 391 | .name = "VDDINT", |
@@ -382,6 +394,9 @@ static struct regulator_init_data vddint __initdata = { | |||
382 | .always_on = 1, | 394 | .always_on = 1, |
383 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE, | 395 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE, |
384 | }, | 396 | }, |
397 | .num_consumer_supplies = ARRAY_SIZE(vddint_consumers), | ||
398 | .consumer_supplies = vddint_consumers, | ||
399 | .supply_regulator = "WALLVDD", | ||
385 | }; | 400 | }; |
386 | 401 | ||
387 | static struct regulator_init_data vddmem __initdata = { | 402 | static struct regulator_init_data vddmem __initdata = { |
@@ -502,7 +517,8 @@ static struct wm831x_touch_pdata touch_pdata __initdata = { | |||
502 | static struct wm831x_pdata crag_pmic_pdata __initdata = { | 517 | static struct wm831x_pdata crag_pmic_pdata __initdata = { |
503 | .wm831x_num = 1, | 518 | .wm831x_num = 1, |
504 | .irq_base = BANFF_PMIC_IRQ_BASE, | 519 | .irq_base = BANFF_PMIC_IRQ_BASE, |
505 | .gpio_base = GPIO_BOARD_START + 8, | 520 | .gpio_base = BANFF_PMIC_GPIO_BASE, |
521 | .soft_shutdown = true, | ||
506 | 522 | ||
507 | .backup = &banff_backup_pdata, | 523 | .backup = &banff_backup_pdata, |
508 | 524 | ||
@@ -607,6 +623,7 @@ static struct wm831x_pdata glenfarclas_pmic_pdata __initdata = { | |||
607 | .wm831x_num = 2, | 623 | .wm831x_num = 2, |
608 | .irq_base = GLENFARCLAS_PMIC_IRQ_BASE, | 624 | .irq_base = GLENFARCLAS_PMIC_IRQ_BASE, |
609 | .gpio_base = GLENFARCLAS_PMIC_GPIO_BASE, | 625 | .gpio_base = GLENFARCLAS_PMIC_GPIO_BASE, |
626 | .soft_shutdown = true, | ||
610 | 627 | ||
611 | .gpio_defaults = { | 628 | .gpio_defaults = { |
612 | /* GPIO1-3: IRQ inputs, rising edge triggered, CMOS */ | 629 | /* GPIO1-3: IRQ inputs, rising edge triggered, CMOS */ |
@@ -624,6 +641,16 @@ static struct wm831x_pdata glenfarclas_pmic_pdata __initdata = { | |||
624 | .disable_touch = true, | 641 | .disable_touch = true, |
625 | }; | 642 | }; |
626 | 643 | ||
644 | static struct wm1250_ev1_pdata wm1250_ev1_pdata = { | ||
645 | .gpios = { | ||
646 | [WM1250_EV1_GPIO_CLK_ENA] = S3C64XX_GPN(12), | ||
647 | [WM1250_EV1_GPIO_CLK_SEL0] = S3C64XX_GPL(12), | ||
648 | [WM1250_EV1_GPIO_CLK_SEL1] = S3C64XX_GPL(13), | ||
649 | [WM1250_EV1_GPIO_OSR] = S3C64XX_GPL(14), | ||
650 | [WM1250_EV1_GPIO_MASTER] = S3C64XX_GPL(8), | ||
651 | }, | ||
652 | }; | ||
653 | |||
627 | static struct i2c_board_info i2c_devs1[] __initdata = { | 654 | static struct i2c_board_info i2c_devs1[] __initdata = { |
628 | { I2C_BOARD_INFO("wm8311", 0x34), | 655 | { I2C_BOARD_INFO("wm8311", 0x34), |
629 | .irq = S3C_EINT(0), | 656 | .irq = S3C_EINT(0), |
@@ -633,7 +660,13 @@ static struct i2c_board_info i2c_devs1[] __initdata = { | |||
633 | { I2C_BOARD_INFO("wlf-gf-module", 0x25) }, | 660 | { I2C_BOARD_INFO("wlf-gf-module", 0x25) }, |
634 | { I2C_BOARD_INFO("wlf-gf-module", 0x26) }, | 661 | { I2C_BOARD_INFO("wlf-gf-module", 0x26) }, |
635 | 662 | ||
636 | { I2C_BOARD_INFO("wm1250-ev1", 0x27) }, | 663 | { I2C_BOARD_INFO("wm1250-ev1", 0x27), |
664 | .platform_data = &wm1250_ev1_pdata }, | ||
665 | }; | ||
666 | |||
667 | static struct s3c2410_platform_i2c i2c1_pdata = { | ||
668 | .frequency = 400000, | ||
669 | .bus_num = 1, | ||
637 | }; | 670 | }; |
638 | 671 | ||
639 | static void __init crag6410_map_io(void) | 672 | static void __init crag6410_map_io(void) |
@@ -694,7 +727,7 @@ static void __init crag6410_machine_init(void) | |||
694 | s3c_sdhci2_set_platdata(&crag6410_hsmmc2_pdata); | 727 | s3c_sdhci2_set_platdata(&crag6410_hsmmc2_pdata); |
695 | 728 | ||
696 | s3c_i2c0_set_platdata(&i2c0_pdata); | 729 | s3c_i2c0_set_platdata(&i2c0_pdata); |
697 | s3c_i2c1_set_platdata(NULL); | 730 | s3c_i2c1_set_platdata(&i2c1_pdata); |
698 | s3c_fb_set_platdata(&crag6410_lcd_pdata); | 731 | s3c_fb_set_platdata(&crag6410_lcd_pdata); |
699 | 732 | ||
700 | i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0)); | 733 | i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0)); |
diff --git a/arch/arm/mach-s3c64xx/pm.c b/arch/arm/mach-s3c64xx/pm.c index b375cd5c47c..0868d133191 100644 --- a/arch/arm/mach-s3c64xx/pm.c +++ b/arch/arm/mach-s3c64xx/pm.c | |||
@@ -89,6 +89,8 @@ static struct sleep_save misc_save[] = { | |||
89 | 89 | ||
90 | SAVE_ITEM(S3C64XX_SDMA_SEL), | 90 | SAVE_ITEM(S3C64XX_SDMA_SEL), |
91 | SAVE_ITEM(S3C64XX_MODEM_MIFPCON), | 91 | SAVE_ITEM(S3C64XX_MODEM_MIFPCON), |
92 | |||
93 | SAVE_ITEM(S3C64XX_NORMAL_CFG), | ||
92 | }; | 94 | }; |
93 | 95 | ||
94 | void s3c_pm_configure_extint(void) | 96 | void s3c_pm_configure_extint(void) |
@@ -181,10 +183,23 @@ static void s3c64xx_pm_prepare(void) | |||
181 | 183 | ||
182 | static int s3c64xx_pm_init(void) | 184 | static int s3c64xx_pm_init(void) |
183 | { | 185 | { |
186 | u32 val; | ||
187 | |||
184 | pm_cpu_prep = s3c64xx_pm_prepare; | 188 | pm_cpu_prep = s3c64xx_pm_prepare; |
185 | pm_cpu_sleep = s3c64xx_cpu_suspend; | 189 | pm_cpu_sleep = s3c64xx_cpu_suspend; |
186 | pm_uart_udivslot = 1; | 190 | pm_uart_udivslot = 1; |
187 | 191 | ||
192 | /* | ||
193 | * Unconditionally disable power domains that contain only | ||
194 | * blocks which have no mainline driver support. | ||
195 | */ | ||
196 | val = __raw_readl(S3C64XX_NORMAL_CFG); | ||
197 | val &= ~(S3C64XX_NORMALCFG_DOMAIN_G_ON | | ||
198 | S3C64XX_NORMALCFG_DOMAIN_V_ON | | ||
199 | S3C64XX_NORMALCFG_DOMAIN_I_ON | | ||
200 | S3C64XX_NORMALCFG_DOMAIN_P_ON); | ||
201 | __raw_writel(val, S3C64XX_NORMAL_CFG); | ||
202 | |||
188 | #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK | 203 | #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK |
189 | gpio_request(S3C64XX_GPN(12), "DEBUG_LED0"); | 204 | gpio_request(S3C64XX_GPN(12), "DEBUG_LED0"); |
190 | gpio_request(S3C64XX_GPN(13), "DEBUG_LED1"); | 205 | gpio_request(S3C64XX_GPN(13), "DEBUG_LED1"); |
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 91aff7cb828..373652d76b9 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig | |||
@@ -2,11 +2,8 @@ if ARCH_TEGRA | |||
2 | 2 | ||
3 | comment "NVIDIA Tegra options" | 3 | comment "NVIDIA Tegra options" |
4 | 4 | ||
5 | choice | ||
6 | prompt "Select Tegra processor family for target system" | ||
7 | |||
8 | config ARCH_TEGRA_2x_SOC | 5 | config ARCH_TEGRA_2x_SOC |
9 | bool "Tegra 2 family" | 6 | bool "Enable support for Tegra20 family" |
10 | select CPU_V7 | 7 | select CPU_V7 |
11 | select ARM_GIC | 8 | select ARM_GIC |
12 | select ARCH_REQUIRE_GPIOLIB | 9 | select ARCH_REQUIRE_GPIOLIB |
@@ -17,22 +14,36 @@ config ARCH_TEGRA_2x_SOC | |||
17 | Support for NVIDIA Tegra AP20 and T20 processors, based on the | 14 | Support for NVIDIA Tegra AP20 and T20 processors, based on the |
18 | ARM CortexA9MP CPU and the ARM PL310 L2 cache controller | 15 | ARM CortexA9MP CPU and the ARM PL310 L2 cache controller |
19 | 16 | ||
20 | endchoice | 17 | config ARCH_TEGRA_3x_SOC |
18 | bool "Enable support for Tegra30 family" | ||
19 | select CPU_V7 | ||
20 | select ARM_GIC | ||
21 | select ARCH_REQUIRE_GPIOLIB | ||
22 | select USB_ARCH_HAS_EHCI if USB_SUPPORT | ||
23 | select USB_ULPI if USB_SUPPORT | ||
24 | select USB_ULPI_VIEWPORT if USB_SUPPORT | ||
25 | select USE_OF | ||
26 | help | ||
27 | Support for NVIDIA Tegra T30 processor family, based on the | ||
28 | ARM CortexA9MP CPU and the ARM PL310 L2 cache controller | ||
21 | 29 | ||
22 | config TEGRA_PCI | 30 | config TEGRA_PCI |
23 | bool "PCI Express support" | 31 | bool "PCI Express support" |
32 | depends on ARCH_TEGRA_2x_SOC | ||
24 | select PCI | 33 | select PCI |
25 | 34 | ||
26 | comment "Tegra board type" | 35 | comment "Tegra board type" |
27 | 36 | ||
28 | config MACH_HARMONY | 37 | config MACH_HARMONY |
29 | bool "Harmony board" | 38 | bool "Harmony board" |
39 | depends on ARCH_TEGRA_2x_SOC | ||
30 | select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC | 40 | select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC |
31 | help | 41 | help |
32 | Support for nVidia Harmony development platform | 42 | Support for nVidia Harmony development platform |
33 | 43 | ||
34 | config MACH_KAEN | 44 | config MACH_KAEN |
35 | bool "Kaen board" | 45 | bool "Kaen board" |
46 | depends on ARCH_TEGRA_2x_SOC | ||
36 | select MACH_SEABOARD | 47 | select MACH_SEABOARD |
37 | select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC | 48 | select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC |
38 | help | 49 | help |
@@ -40,11 +51,13 @@ config MACH_KAEN | |||
40 | 51 | ||
41 | config MACH_PAZ00 | 52 | config MACH_PAZ00 |
42 | bool "Paz00 board" | 53 | bool "Paz00 board" |
54 | depends on ARCH_TEGRA_2x_SOC | ||
43 | help | 55 | help |
44 | Support for the Toshiba AC100/Dynabook AZ netbook | 56 | Support for the Toshiba AC100/Dynabook AZ netbook |
45 | 57 | ||
46 | config MACH_SEABOARD | 58 | config MACH_SEABOARD |
47 | bool "Seaboard board" | 59 | bool "Seaboard board" |
60 | depends on ARCH_TEGRA_2x_SOC | ||
48 | select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC | 61 | select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC |
49 | help | 62 | help |
50 | Support for nVidia Seaboard development platform. It will | 63 | Support for nVidia Seaboard development platform. It will |
@@ -52,25 +65,29 @@ config MACH_SEABOARD | |||
52 | have large similarities with the seaboard design. | 65 | have large similarities with the seaboard design. |
53 | 66 | ||
54 | config MACH_TEGRA_DT | 67 | config MACH_TEGRA_DT |
55 | bool "Generic Tegra board (FDT support)" | 68 | bool "Generic Tegra20 board (FDT support)" |
69 | depends on ARCH_TEGRA_2x_SOC | ||
56 | select USE_OF | 70 | select USE_OF |
57 | help | 71 | help |
58 | Support for generic nVidia Tegra boards using Flattened Device Tree | 72 | Support for generic NVIDIA Tegra20 boards using Flattened Device Tree |
59 | 73 | ||
60 | config MACH_TRIMSLICE | 74 | config MACH_TRIMSLICE |
61 | bool "TrimSlice board" | 75 | bool "TrimSlice board" |
76 | depends on ARCH_TEGRA_2x_SOC | ||
62 | select TEGRA_PCI | 77 | select TEGRA_PCI |
63 | help | 78 | help |
64 | Support for CompuLab TrimSlice platform | 79 | Support for CompuLab TrimSlice platform |
65 | 80 | ||
66 | config MACH_WARIO | 81 | config MACH_WARIO |
67 | bool "Wario board" | 82 | bool "Wario board" |
83 | depends on ARCH_TEGRA_2x_SOC | ||
68 | select MACH_SEABOARD | 84 | select MACH_SEABOARD |
69 | help | 85 | help |
70 | Support for the Wario version of Seaboard | 86 | Support for the Wario version of Seaboard |
71 | 87 | ||
72 | config MACH_VENTANA | 88 | config MACH_VENTANA |
73 | bool "Ventana board" | 89 | bool "Ventana board" |
90 | depends on ARCH_TEGRA_2x_SOC | ||
74 | select MACH_TEGRA_DT | 91 | select MACH_TEGRA_DT |
75 | help | 92 | help |
76 | Support for the nVidia Ventana development platform | 93 | Support for the nVidia Ventana development platform |
diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile index 5be8e9eefc9..e120ff54f66 100644 --- a/arch/arm/mach-tegra/Makefile +++ b/arch/arm/mach-tegra/Makefile | |||
@@ -1,3 +1,4 @@ | |||
1 | obj-y += board-pinmux.o | ||
1 | obj-y += common.o | 2 | obj-y += common.o |
2 | obj-y += devices.o | 3 | obj-y += devices.o |
3 | obj-y += io.o | 4 | obj-y += io.o |
@@ -5,12 +6,13 @@ obj-y += irq.o | |||
5 | obj-y += clock.o | 6 | obj-y += clock.o |
6 | obj-y += timer.o | 7 | obj-y += timer.o |
7 | obj-y += pinmux.o | 8 | obj-y += pinmux.o |
8 | obj-y += powergate.o | ||
9 | obj-y += fuse.o | 9 | obj-y += fuse.o |
10 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += clock.o | 10 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += powergate.o |
11 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_clocks.o | 11 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_clocks.o |
12 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_emc.o | 12 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_emc.o |
13 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += pinmux-t2-tables.o | 13 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += pinmux-tegra20-tables.o |
14 | obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += pinmux-tegra30-tables.o | ||
15 | obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += board-dt-tegra30.o | ||
14 | obj-$(CONFIG_SMP) += platsmp.o localtimer.o headsmp.o | 16 | obj-$(CONFIG_SMP) += platsmp.o localtimer.o headsmp.o |
15 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | 17 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o |
16 | obj-$(CONFIG_TEGRA_SYSTEM_DMA) += dma.o | 18 | obj-$(CONFIG_TEGRA_SYSTEM_DMA) += dma.o |
@@ -29,9 +31,11 @@ obj-$(CONFIG_MACH_PAZ00) += board-paz00-pinmux.o | |||
29 | obj-$(CONFIG_MACH_SEABOARD) += board-seaboard.o | 31 | obj-$(CONFIG_MACH_SEABOARD) += board-seaboard.o |
30 | obj-$(CONFIG_MACH_SEABOARD) += board-seaboard-pinmux.o | 32 | obj-$(CONFIG_MACH_SEABOARD) += board-seaboard-pinmux.o |
31 | 33 | ||
32 | obj-$(CONFIG_MACH_TEGRA_DT) += board-dt.o | 34 | obj-$(CONFIG_MACH_TEGRA_DT) += board-dt-tegra20.o |
33 | obj-$(CONFIG_MACH_TEGRA_DT) += board-harmony-pinmux.o | 35 | obj-$(CONFIG_MACH_TEGRA_DT) += board-harmony-pinmux.o |
34 | obj-$(CONFIG_MACH_TEGRA_DT) += board-seaboard-pinmux.o | 36 | obj-$(CONFIG_MACH_TEGRA_DT) += board-seaboard-pinmux.o |
37 | obj-$(CONFIG_MACH_TEGRA_DT) += board-paz00-pinmux.o | ||
38 | obj-$(CONFIG_MACH_TEGRA_DT) += board-trimslice-pinmux.o | ||
35 | 39 | ||
36 | obj-$(CONFIG_MACH_TRIMSLICE) += board-trimslice.o | 40 | obj-$(CONFIG_MACH_TRIMSLICE) += board-trimslice.o |
37 | obj-$(CONFIG_MACH_TRIMSLICE) += board-trimslice-pinmux.o | 41 | obj-$(CONFIG_MACH_TRIMSLICE) += board-trimslice-pinmux.o |
diff --git a/arch/arm/mach-tegra/Makefile.boot b/arch/arm/mach-tegra/Makefile.boot index bd12c9fb81e..9a82094092d 100644 --- a/arch/arm/mach-tegra/Makefile.boot +++ b/arch/arm/mach-tegra/Makefile.boot | |||
@@ -3,5 +3,8 @@ params_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00000100 | |||
3 | initrd_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00800000 | 3 | initrd_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00800000 |
4 | 4 | ||
5 | dtb-$(CONFIG_MACH_HARMONY) += tegra-harmony.dtb | 5 | dtb-$(CONFIG_MACH_HARMONY) += tegra-harmony.dtb |
6 | dtb-$(CONFIG_MACH_PAZ00) += tegra-paz00.dtb | ||
6 | dtb-$(CONFIG_MACH_SEABOARD) += tegra-seaboard.dtb | 7 | dtb-$(CONFIG_MACH_SEABOARD) += tegra-seaboard.dtb |
8 | dtb-$(CONFIG_MACH_TRIMSLICE) += tegra-trimslice.dtb | ||
7 | dtb-$(CONFIG_MACH_VENTANA) += tegra-ventana.dtb | 9 | dtb-$(CONFIG_MACH_VENTANA) += tegra-ventana.dtb |
10 | dtb-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra-cardhu.dtb | ||
diff --git a/arch/arm/mach-tegra/board-dt.c b/arch/arm/mach-tegra/board-dt-tegra20.c index e417a8383db..c2ff8e02010 100644 --- a/arch/arm/mach-tegra/board-dt.c +++ b/arch/arm/mach-tegra/board-dt-tegra20.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <asm/mach/arch.h> | 37 | #include <asm/mach/arch.h> |
38 | #include <asm/mach/time.h> | 38 | #include <asm/mach/time.h> |
39 | #include <asm/setup.h> | 39 | #include <asm/setup.h> |
40 | #include <asm/hardware/gic.h> | ||
40 | 41 | ||
41 | #include <mach/iomap.h> | 42 | #include <mach/iomap.h> |
42 | #include <mach/irqs.h> | 43 | #include <mach/irqs.h> |
@@ -47,10 +48,14 @@ | |||
47 | #include "devices.h" | 48 | #include "devices.h" |
48 | 49 | ||
49 | void harmony_pinmux_init(void); | 50 | void harmony_pinmux_init(void); |
51 | void paz00_pinmux_init(void); | ||
50 | void seaboard_pinmux_init(void); | 52 | void seaboard_pinmux_init(void); |
53 | void trimslice_pinmux_init(void); | ||
51 | void ventana_pinmux_init(void); | 54 | void ventana_pinmux_init(void); |
52 | 55 | ||
53 | struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { | 56 | struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { |
57 | OF_DEV_AUXDATA("nvidia,tegra20-pinmux", TEGRA_APB_MISC_BASE + 0x14, "tegra-pinmux", NULL), | ||
58 | OF_DEV_AUXDATA("nvidia,tegra20-gpio", TEGRA_GPIO_BASE, "tegra-gpio", NULL), | ||
54 | OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC1_BASE, "sdhci-tegra.0", NULL), | 59 | OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC1_BASE, "sdhci-tegra.0", NULL), |
55 | OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC2_BASE, "sdhci-tegra.1", NULL), | 60 | OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC2_BASE, "sdhci-tegra.1", NULL), |
56 | OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC3_BASE, "sdhci-tegra.2", NULL), | 61 | OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC3_BASE, "sdhci-tegra.2", NULL), |
@@ -60,14 +65,28 @@ struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { | |||
60 | OF_DEV_AUXDATA("nvidia,tegra20-i2c", TEGRA_I2C3_BASE, "tegra-i2c.2", NULL), | 65 | OF_DEV_AUXDATA("nvidia,tegra20-i2c", TEGRA_I2C3_BASE, "tegra-i2c.2", NULL), |
61 | OF_DEV_AUXDATA("nvidia,tegra20-i2c", TEGRA_DVC_BASE, "tegra-i2c.3", NULL), | 66 | OF_DEV_AUXDATA("nvidia,tegra20-i2c", TEGRA_DVC_BASE, "tegra-i2c.3", NULL), |
62 | OF_DEV_AUXDATA("nvidia,tegra20-i2s", TEGRA_I2S1_BASE, "tegra-i2s.0", NULL), | 67 | OF_DEV_AUXDATA("nvidia,tegra20-i2s", TEGRA_I2S1_BASE, "tegra-i2s.0", NULL), |
63 | OF_DEV_AUXDATA("nvidia,tegra20-i2s", TEGRA_I2S1_BASE, "tegra-i2s.1", NULL), | 68 | OF_DEV_AUXDATA("nvidia,tegra20-i2s", TEGRA_I2S2_BASE, "tegra-i2s.1", NULL), |
64 | OF_DEV_AUXDATA("nvidia,tegra20-das", TEGRA_APB_MISC_DAS_BASE, "tegra-das", NULL), | 69 | OF_DEV_AUXDATA("nvidia,tegra20-das", TEGRA_APB_MISC_DAS_BASE, "tegra-das", NULL), |
70 | OF_DEV_AUXDATA("nvidia,tegra20-ehci", TEGRA_USB_BASE, "tegra-ehci.0", | ||
71 | &tegra_ehci1_device.dev.platform_data), | ||
72 | OF_DEV_AUXDATA("nvidia,tegra20-ehci", TEGRA_USB2_BASE, "tegra-ehci.1", | ||
73 | &tegra_ehci2_device.dev.platform_data), | ||
74 | OF_DEV_AUXDATA("nvidia,tegra20-ehci", TEGRA_USB3_BASE, "tegra-ehci.2", | ||
75 | &tegra_ehci3_device.dev.platform_data), | ||
65 | {} | 76 | {} |
66 | }; | 77 | }; |
67 | 78 | ||
68 | static __initdata struct tegra_clk_init_table tegra_dt_clk_init_table[] = { | 79 | static __initdata struct tegra_clk_init_table tegra_dt_clk_init_table[] = { |
69 | /* name parent rate enabled */ | 80 | /* name parent rate enabled */ |
70 | { "uartd", "pll_p", 216000000, true }, | 81 | { "uartd", "pll_p", 216000000, true }, |
82 | { "usbd", "clk_m", 12000000, false }, | ||
83 | { "usb2", "clk_m", 12000000, false }, | ||
84 | { "usb3", "clk_m", 12000000, false }, | ||
85 | { "pll_a", "pll_p_out1", 56448000, true }, | ||
86 | { "pll_a_out0", "pll_a", 11289600, true }, | ||
87 | { "cdev1", NULL, 0, true }, | ||
88 | { "i2s1", "pll_a_out0", 11289600, false}, | ||
89 | { "i2s2", "pll_a_out0", 11289600, false}, | ||
71 | { NULL, NULL, 0, 0}, | 90 | { NULL, NULL, 0, 0}, |
72 | }; | 91 | }; |
73 | 92 | ||
@@ -76,39 +95,23 @@ static struct of_device_id tegra_dt_match_table[] __initdata = { | |||
76 | {} | 95 | {} |
77 | }; | 96 | }; |
78 | 97 | ||
79 | static struct of_device_id tegra_dt_gic_match[] __initdata = { | ||
80 | { .compatible = "nvidia,tegra20-gic", }, | ||
81 | {} | ||
82 | }; | ||
83 | |||
84 | static struct { | 98 | static struct { |
85 | char *machine; | 99 | char *machine; |
86 | void (*init)(void); | 100 | void (*init)(void); |
87 | } pinmux_configs[] = { | 101 | } pinmux_configs[] = { |
102 | { "compulab,trimslice", trimslice_pinmux_init }, | ||
88 | { "nvidia,harmony", harmony_pinmux_init }, | 103 | { "nvidia,harmony", harmony_pinmux_init }, |
104 | { "compal,paz00", paz00_pinmux_init }, | ||
89 | { "nvidia,seaboard", seaboard_pinmux_init }, | 105 | { "nvidia,seaboard", seaboard_pinmux_init }, |
90 | { "nvidia,ventana", ventana_pinmux_init }, | 106 | { "nvidia,ventana", ventana_pinmux_init }, |
91 | }; | 107 | }; |
92 | 108 | ||
93 | static void __init tegra_dt_init(void) | 109 | static void __init tegra_dt_init(void) |
94 | { | 110 | { |
95 | struct device_node *node; | ||
96 | int i; | 111 | int i; |
97 | 112 | ||
98 | node = of_find_matching_node_by_address(NULL, tegra_dt_gic_match, | ||
99 | TEGRA_ARM_INT_DIST_BASE); | ||
100 | if (node) | ||
101 | irq_domain_add_simple(node, INT_GIC_BASE); | ||
102 | |||
103 | tegra_clk_init_from_table(tegra_dt_clk_init_table); | 113 | tegra_clk_init_from_table(tegra_dt_clk_init_table); |
104 | 114 | ||
105 | /* | ||
106 | * Finished with the static registrations now; fill in the missing | ||
107 | * devices | ||
108 | */ | ||
109 | of_platform_populate(NULL, tegra_dt_match_table, | ||
110 | tegra20_auxdata_lookup, NULL); | ||
111 | |||
112 | for (i = 0; i < ARRAY_SIZE(pinmux_configs); i++) { | 115 | for (i = 0; i < ARRAY_SIZE(pinmux_configs); i++) { |
113 | if (of_machine_is_compatible(pinmux_configs[i].machine)) { | 116 | if (of_machine_is_compatible(pinmux_configs[i].machine)) { |
114 | pinmux_configs[i].init(); | 117 | pinmux_configs[i].init(); |
@@ -118,22 +121,31 @@ static void __init tegra_dt_init(void) | |||
118 | 121 | ||
119 | WARN(i == ARRAY_SIZE(pinmux_configs), | 122 | WARN(i == ARRAY_SIZE(pinmux_configs), |
120 | "Unknown platform! Pinmuxing not initialized\n"); | 123 | "Unknown platform! Pinmuxing not initialized\n"); |
124 | |||
125 | /* | ||
126 | * Finished with the static registrations now; fill in the missing | ||
127 | * devices | ||
128 | */ | ||
129 | of_platform_populate(NULL, tegra_dt_match_table, | ||
130 | tegra20_auxdata_lookup, NULL); | ||
121 | } | 131 | } |
122 | 132 | ||
123 | static const char * tegra_dt_board_compat[] = { | 133 | static const char *tegra20_dt_board_compat[] = { |
134 | "compulab,trimslice", | ||
124 | "nvidia,harmony", | 135 | "nvidia,harmony", |
136 | "compal,paz00", | ||
125 | "nvidia,seaboard", | 137 | "nvidia,seaboard", |
126 | "nvidia,ventana", | 138 | "nvidia,ventana", |
127 | NULL | 139 | NULL |
128 | }; | 140 | }; |
129 | 141 | ||
130 | DT_MACHINE_START(TEGRA_DT, "nVidia Tegra (Flattened Device Tree)") | 142 | DT_MACHINE_START(TEGRA_DT, "nVidia Tegra20 (Flattened Device Tree)") |
131 | .map_io = tegra_map_common_io, | 143 | .map_io = tegra_map_common_io, |
132 | .init_early = tegra_init_early, | 144 | .init_early = tegra20_init_early, |
133 | .init_irq = tegra_init_irq, | 145 | .init_irq = tegra_dt_init_irq, |
134 | .handle_irq = gic_handle_irq, | 146 | .handle_irq = gic_handle_irq, |
135 | .timer = &tegra_timer, | 147 | .timer = &tegra_timer, |
136 | .init_machine = tegra_dt_init, | 148 | .init_machine = tegra_dt_init, |
137 | .restart = tegra_assert_system_reset, | 149 | .restart = tegra_assert_system_reset, |
138 | .dt_compat = tegra_dt_board_compat, | 150 | .dt_compat = tegra20_dt_board_compat, |
139 | MACHINE_END | 151 | MACHINE_END |
diff --git a/arch/arm/mach-tegra/board-dt-tegra30.c b/arch/arm/mach-tegra/board-dt-tegra30.c new file mode 100644 index 00000000000..3c197e2440b --- /dev/null +++ b/arch/arm/mach-tegra/board-dt-tegra30.c | |||
@@ -0,0 +1,63 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/board-dt-tegra30.c | ||
3 | * | ||
4 | * NVIDIA Tegra30 device tree board support | ||
5 | * | ||
6 | * Copyright (C) 2011 NVIDIA Corporation | ||
7 | * | ||
8 | * Derived from: | ||
9 | * | ||
10 | * arch/arm/mach-tegra/board-dt-tegra20.c | ||
11 | * | ||
12 | * Copyright (C) 2010 Secret Lab Technologies, Ltd. | ||
13 | * Copyright (C) 2010 Google, Inc. | ||
14 | * | ||
15 | * This software is licensed under the terms of the GNU General Public | ||
16 | * License version 2, as published by the Free Software Foundation, and | ||
17 | * may be copied, distributed, and modified under those terms. | ||
18 | * | ||
19 | * This program is distributed in the hope that it will be useful, | ||
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
22 | * GNU General Public License for more details. | ||
23 | * | ||
24 | */ | ||
25 | |||
26 | #include <linux/kernel.h> | ||
27 | #include <linux/of.h> | ||
28 | #include <linux/of_address.h> | ||
29 | #include <linux/of_fdt.h> | ||
30 | #include <linux/of_irq.h> | ||
31 | #include <linux/of_platform.h> | ||
32 | |||
33 | #include <asm/mach/arch.h> | ||
34 | #include <asm/hardware/gic.h> | ||
35 | |||
36 | #include "board.h" | ||
37 | |||
38 | static struct of_device_id tegra_dt_match_table[] __initdata = { | ||
39 | { .compatible = "simple-bus", }, | ||
40 | {} | ||
41 | }; | ||
42 | |||
43 | static void __init tegra30_dt_init(void) | ||
44 | { | ||
45 | of_platform_populate(NULL, tegra_dt_match_table, | ||
46 | NULL, NULL); | ||
47 | } | ||
48 | |||
49 | static const char *tegra30_dt_board_compat[] = { | ||
50 | "nvidia,cardhu", | ||
51 | NULL | ||
52 | }; | ||
53 | |||
54 | DT_MACHINE_START(TEGRA30_DT, "NVIDIA Tegra30 (Flattened Device Tree)") | ||
55 | .map_io = tegra_map_common_io, | ||
56 | .init_early = tegra30_init_early, | ||
57 | .init_irq = tegra_dt_init_irq, | ||
58 | .handle_irq = gic_handle_irq, | ||
59 | .timer = &tegra_timer, | ||
60 | .init_machine = tegra30_dt_init, | ||
61 | .restart = tegra_assert_system_reset, | ||
62 | .dt_compat = tegra30_dt_board_compat, | ||
63 | MACHINE_END | ||
diff --git a/arch/arm/mach-tegra/board-harmony-pcie.c b/arch/arm/mach-tegra/board-harmony-pcie.c index 6db7d699ef1..33c4fedab84 100644 --- a/arch/arm/mach-tegra/board-harmony-pcie.c +++ b/arch/arm/mach-tegra/board-harmony-pcie.c | |||
@@ -22,7 +22,6 @@ | |||
22 | 22 | ||
23 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
24 | 24 | ||
25 | #include <mach/pinmux.h> | ||
26 | #include "board.h" | 25 | #include "board.h" |
27 | #include "board-harmony.h" | 26 | #include "board-harmony.h" |
28 | 27 | ||
@@ -48,10 +47,6 @@ static int __init harmony_pcie_init(void) | |||
48 | 47 | ||
49 | regulator_enable(regulator); | 48 | regulator_enable(regulator); |
50 | 49 | ||
51 | tegra_pinmux_set_tristate(TEGRA_PINGROUP_GPV, TEGRA_TRI_NORMAL); | ||
52 | tegra_pinmux_set_tristate(TEGRA_PINGROUP_SLXA, TEGRA_TRI_NORMAL); | ||
53 | tegra_pinmux_set_tristate(TEGRA_PINGROUP_SLXK, TEGRA_TRI_NORMAL); | ||
54 | |||
55 | err = tegra_pcie_init(true, true); | 50 | err = tegra_pcie_init(true, true); |
56 | if (err) | 51 | if (err) |
57 | goto err_pcie; | 52 | goto err_pcie; |
@@ -59,10 +54,6 @@ static int __init harmony_pcie_init(void) | |||
59 | return 0; | 54 | return 0; |
60 | 55 | ||
61 | err_pcie: | 56 | err_pcie: |
62 | tegra_pinmux_set_tristate(TEGRA_PINGROUP_GPV, TEGRA_TRI_TRISTATE); | ||
63 | tegra_pinmux_set_tristate(TEGRA_PINGROUP_SLXA, TEGRA_TRI_TRISTATE); | ||
64 | tegra_pinmux_set_tristate(TEGRA_PINGROUP_SLXK, TEGRA_TRI_TRISTATE); | ||
65 | |||
66 | regulator_disable(regulator); | 57 | regulator_disable(regulator); |
67 | regulator_put(regulator); | 58 | regulator_put(regulator); |
68 | err_reg: | 59 | err_reg: |
diff --git a/arch/arm/mach-tegra/board-harmony-pinmux.c b/arch/arm/mach-tegra/board-harmony-pinmux.c index 7a4a26d5174..465808c8ac0 100644 --- a/arch/arm/mach-tegra/board-harmony-pinmux.c +++ b/arch/arm/mach-tegra/board-harmony-pinmux.c | |||
@@ -19,10 +19,11 @@ | |||
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | 20 | ||
21 | #include <mach/pinmux.h> | 21 | #include <mach/pinmux.h> |
22 | #include <mach/pinmux-tegra20.h> | ||
22 | 23 | ||
23 | #include "gpio-names.h" | 24 | #include "gpio-names.h" |
24 | #include "board-harmony.h" | 25 | #include "board-harmony.h" |
25 | #include "devices.h" | 26 | #include "board-pinmux.h" |
26 | 27 | ||
27 | static struct tegra_pingroup_config harmony_pinmux[] = { | 28 | static struct tegra_pingroup_config harmony_pinmux[] = { |
28 | {TEGRA_PINGROUP_ATA, TEGRA_MUX_IDE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 29 | {TEGRA_PINGROUP_ATA, TEGRA_MUX_IDE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
@@ -143,11 +144,6 @@ static struct tegra_pingroup_config harmony_pinmux[] = { | |||
143 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 144 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
144 | }; | 145 | }; |
145 | 146 | ||
146 | static struct platform_device *pinmux_devices[] = { | ||
147 | &tegra_gpio_device, | ||
148 | &tegra_pinmux_device, | ||
149 | }; | ||
150 | |||
151 | static struct tegra_gpio_table gpio_table[] = { | 147 | static struct tegra_gpio_table gpio_table[] = { |
152 | { .gpio = TEGRA_GPIO_SD2_CD, .enable = true }, | 148 | { .gpio = TEGRA_GPIO_SD2_CD, .enable = true }, |
153 | { .gpio = TEGRA_GPIO_SD2_WP, .enable = true }, | 149 | { .gpio = TEGRA_GPIO_SD2_WP, .enable = true }, |
@@ -161,13 +157,14 @@ static struct tegra_gpio_table gpio_table[] = { | |||
161 | { .gpio = TEGRA_GPIO_EXT_MIC_EN, .enable = true }, | 157 | { .gpio = TEGRA_GPIO_EXT_MIC_EN, .enable = true }, |
162 | }; | 158 | }; |
163 | 159 | ||
160 | static struct tegra_board_pinmux_conf conf = { | ||
161 | .pgs = harmony_pinmux, | ||
162 | .pg_count = ARRAY_SIZE(harmony_pinmux), | ||
163 | .gpios = gpio_table, | ||
164 | .gpio_count = ARRAY_SIZE(gpio_table), | ||
165 | }; | ||
166 | |||
164 | void harmony_pinmux_init(void) | 167 | void harmony_pinmux_init(void) |
165 | { | 168 | { |
166 | if (!of_machine_is_compatible("nvidia,tegra20")) | 169 | tegra_board_pinmux_init(&conf, NULL); |
167 | platform_add_devices(pinmux_devices, | ||
168 | ARRAY_SIZE(pinmux_devices)); | ||
169 | |||
170 | tegra_pinmux_config_table(harmony_pinmux, ARRAY_SIZE(harmony_pinmux)); | ||
171 | |||
172 | tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table)); | ||
173 | } | 170 | } |
diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c index 70ee674131f..a0f9634f672 100644 --- a/arch/arm/mach-tegra/board-harmony.c +++ b/arch/arm/mach-tegra/board-harmony.c | |||
@@ -186,7 +186,7 @@ MACHINE_START(HARMONY, "harmony") | |||
186 | .atag_offset = 0x100, | 186 | .atag_offset = 0x100, |
187 | .fixup = tegra_harmony_fixup, | 187 | .fixup = tegra_harmony_fixup, |
188 | .map_io = tegra_map_common_io, | 188 | .map_io = tegra_map_common_io, |
189 | .init_early = tegra_init_early, | 189 | .init_early = tegra20_init_early, |
190 | .init_irq = tegra_init_irq, | 190 | .init_irq = tegra_init_irq, |
191 | .handle_irq = gic_handle_irq, | 191 | .handle_irq = gic_handle_irq, |
192 | .timer = &tegra_timer, | 192 | .timer = &tegra_timer, |
diff --git a/arch/arm/mach-tegra/board-paz00-pinmux.c b/arch/arm/mach-tegra/board-paz00-pinmux.c index be30e215f4b..c775572dcea 100644 --- a/arch/arm/mach-tegra/board-paz00-pinmux.c +++ b/arch/arm/mach-tegra/board-paz00-pinmux.c | |||
@@ -19,10 +19,11 @@ | |||
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | 20 | ||
21 | #include <mach/pinmux.h> | 21 | #include <mach/pinmux.h> |
22 | #include <mach/pinmux-tegra20.h> | ||
22 | 23 | ||
23 | #include "gpio-names.h" | 24 | #include "gpio-names.h" |
24 | #include "board-paz00.h" | 25 | #include "board-paz00.h" |
25 | #include "devices.h" | 26 | #include "board-pinmux.h" |
26 | 27 | ||
27 | static struct tegra_pingroup_config paz00_pinmux[] = { | 28 | static struct tegra_pingroup_config paz00_pinmux[] = { |
28 | {TEGRA_PINGROUP_ATA, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 29 | {TEGRA_PINGROUP_ATA, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
@@ -30,7 +31,7 @@ static struct tegra_pingroup_config paz00_pinmux[] = { | |||
30 | {TEGRA_PINGROUP_ATC, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 31 | {TEGRA_PINGROUP_ATC, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
31 | {TEGRA_PINGROUP_ATD, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 32 | {TEGRA_PINGROUP_ATD, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
32 | {TEGRA_PINGROUP_ATE, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 33 | {TEGRA_PINGROUP_ATE, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
33 | {TEGRA_PINGROUP_CDEV1, TEGRA_MUX_PLLA_OUT, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_TRISTATE}, | 34 | {TEGRA_PINGROUP_CDEV1, TEGRA_MUX_PLLA_OUT, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
34 | {TEGRA_PINGROUP_CDEV2, TEGRA_MUX_PLLP_OUT4, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, | 35 | {TEGRA_PINGROUP_CDEV2, TEGRA_MUX_PLLP_OUT4, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, |
35 | {TEGRA_PINGROUP_CRTP, TEGRA_MUX_CRT, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 36 | {TEGRA_PINGROUP_CRTP, TEGRA_MUX_CRT, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
36 | {TEGRA_PINGROUP_CSUS, TEGRA_MUX_PLLC_OUT1, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_TRISTATE}, | 37 | {TEGRA_PINGROUP_CSUS, TEGRA_MUX_PLLC_OUT1, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_TRISTATE}, |
@@ -143,11 +144,6 @@ static struct tegra_pingroup_config paz00_pinmux[] = { | |||
143 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 144 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
144 | }; | 145 | }; |
145 | 146 | ||
146 | static struct platform_device *pinmux_devices[] = { | ||
147 | &tegra_gpio_device, | ||
148 | &tegra_pinmux_device, | ||
149 | }; | ||
150 | |||
151 | static struct tegra_gpio_table gpio_table[] = { | 147 | static struct tegra_gpio_table gpio_table[] = { |
152 | { .gpio = TEGRA_GPIO_SD1_CD, .enable = true }, | 148 | { .gpio = TEGRA_GPIO_SD1_CD, .enable = true }, |
153 | { .gpio = TEGRA_GPIO_SD1_WP, .enable = true }, | 149 | { .gpio = TEGRA_GPIO_SD1_WP, .enable = true }, |
@@ -158,13 +154,14 @@ static struct tegra_gpio_table gpio_table[] = { | |||
158 | { .gpio = TEGRA_WIFI_LED, .enable = true }, | 154 | { .gpio = TEGRA_WIFI_LED, .enable = true }, |
159 | }; | 155 | }; |
160 | 156 | ||
157 | static struct tegra_board_pinmux_conf conf = { | ||
158 | .pgs = paz00_pinmux, | ||
159 | .pg_count = ARRAY_SIZE(paz00_pinmux), | ||
160 | .gpios = gpio_table, | ||
161 | .gpio_count = ARRAY_SIZE(gpio_table), | ||
162 | }; | ||
163 | |||
161 | void paz00_pinmux_init(void) | 164 | void paz00_pinmux_init(void) |
162 | { | 165 | { |
163 | if (!of_machine_is_compatible("nvidia,tegra20")) | 166 | tegra_board_pinmux_init(&conf, NULL); |
164 | platform_add_devices(pinmux_devices, | ||
165 | ARRAY_SIZE(pinmux_devices)); | ||
166 | |||
167 | tegra_pinmux_config_table(paz00_pinmux, ARRAY_SIZE(paz00_pinmux)); | ||
168 | |||
169 | tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table)); | ||
170 | } | 167 | } |
diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegra/board-paz00.c index 33d6205ad30..fcf4f377b1d 100644 --- a/arch/arm/mach-tegra/board-paz00.c +++ b/arch/arm/mach-tegra/board-paz00.c | |||
@@ -23,8 +23,10 @@ | |||
23 | #include <linux/serial_8250.h> | 23 | #include <linux/serial_8250.h> |
24 | #include <linux/clk.h> | 24 | #include <linux/clk.h> |
25 | #include <linux/dma-mapping.h> | 25 | #include <linux/dma-mapping.h> |
26 | #include <linux/gpio_keys.h> | ||
26 | #include <linux/pda_power.h> | 27 | #include <linux/pda_power.h> |
27 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | #include <linux/input.h> | ||
28 | #include <linux/i2c.h> | 30 | #include <linux/i2c.h> |
29 | #include <linux/gpio.h> | 31 | #include <linux/gpio.h> |
30 | #include <linux/rfkill-gpio.h> | 32 | #include <linux/rfkill-gpio.h> |
@@ -115,12 +117,37 @@ static struct platform_device leds_gpio = { | |||
115 | }, | 117 | }, |
116 | }; | 118 | }; |
117 | 119 | ||
120 | static struct gpio_keys_button paz00_gpio_keys_buttons[] = { | ||
121 | { | ||
122 | .code = KEY_POWER, | ||
123 | .gpio = TEGRA_GPIO_POWERKEY, | ||
124 | .active_low = 1, | ||
125 | .desc = "Power", | ||
126 | .type = EV_KEY, | ||
127 | .wakeup = 1, | ||
128 | }, | ||
129 | }; | ||
130 | |||
131 | static struct gpio_keys_platform_data paz00_gpio_keys = { | ||
132 | .buttons = paz00_gpio_keys_buttons, | ||
133 | .nbuttons = ARRAY_SIZE(paz00_gpio_keys_buttons), | ||
134 | }; | ||
135 | |||
136 | static struct platform_device gpio_keys_device = { | ||
137 | .name = "gpio-keys", | ||
138 | .id = -1, | ||
139 | .dev = { | ||
140 | .platform_data = &paz00_gpio_keys, | ||
141 | }, | ||
142 | }; | ||
143 | |||
118 | static struct platform_device *paz00_devices[] __initdata = { | 144 | static struct platform_device *paz00_devices[] __initdata = { |
119 | &debug_uart, | 145 | &debug_uart, |
120 | &tegra_sdhci_device4, | 146 | &tegra_sdhci_device4, |
121 | &tegra_sdhci_device1, | 147 | &tegra_sdhci_device1, |
122 | &wifi_rfkill_device, | 148 | &wifi_rfkill_device, |
123 | &leds_gpio, | 149 | &leds_gpio, |
150 | &gpio_keys_device, | ||
124 | }; | 151 | }; |
125 | 152 | ||
126 | static void paz00_i2c_init(void) | 153 | static void paz00_i2c_init(void) |
@@ -189,7 +216,7 @@ MACHINE_START(PAZ00, "Toshiba AC100 / Dynabook AZ") | |||
189 | .atag_offset = 0x100, | 216 | .atag_offset = 0x100, |
190 | .fixup = tegra_paz00_fixup, | 217 | .fixup = tegra_paz00_fixup, |
191 | .map_io = tegra_map_common_io, | 218 | .map_io = tegra_map_common_io, |
192 | .init_early = tegra_init_early, | 219 | .init_early = tegra20_init_early, |
193 | .init_irq = tegra_init_irq, | 220 | .init_irq = tegra_init_irq, |
194 | .handle_irq = gic_handle_irq, | 221 | .handle_irq = gic_handle_irq, |
195 | .timer = &tegra_timer, | 222 | .timer = &tegra_timer, |
diff --git a/arch/arm/mach-tegra/board-paz00.h b/arch/arm/mach-tegra/board-paz00.h index 8aff06eb58c..ffa83f580db 100644 --- a/arch/arm/mach-tegra/board-paz00.h +++ b/arch/arm/mach-tegra/board-paz00.h | |||
@@ -32,6 +32,9 @@ | |||
32 | #define TEGRA_WIFI_RST TEGRA_GPIO_PD1 | 32 | #define TEGRA_WIFI_RST TEGRA_GPIO_PD1 |
33 | #define TEGRA_WIFI_LED TEGRA_GPIO_PD0 | 33 | #define TEGRA_WIFI_LED TEGRA_GPIO_PD0 |
34 | 34 | ||
35 | /* WakeUp */ | ||
36 | #define TEGRA_GPIO_POWERKEY TEGRA_GPIO_PJ7 | ||
37 | |||
35 | void paz00_pinmux_init(void); | 38 | void paz00_pinmux_init(void); |
36 | 39 | ||
37 | #endif | 40 | #endif |
diff --git a/arch/arm/mach-tegra/board-pinmux.c b/arch/arm/mach-tegra/board-pinmux.c new file mode 100644 index 00000000000..adc3efe979b --- /dev/null +++ b/arch/arm/mach-tegra/board-pinmux.c | |||
@@ -0,0 +1,104 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #include <linux/device.h> | ||
16 | #include <linux/kernel.h> | ||
17 | #include <linux/notifier.h> | ||
18 | #include <linux/of.h> | ||
19 | #include <linux/string.h> | ||
20 | |||
21 | #include <mach/gpio-tegra.h> | ||
22 | #include <mach/pinmux.h> | ||
23 | |||
24 | #include "board-pinmux.h" | ||
25 | #include "devices.h" | ||
26 | |||
27 | struct tegra_board_pinmux_conf *confs[2]; | ||
28 | |||
29 | static void tegra_board_pinmux_setup_gpios(void) | ||
30 | { | ||
31 | int i; | ||
32 | |||
33 | for (i = 0; i < ARRAY_SIZE(confs); i++) { | ||
34 | if (!confs[i]) | ||
35 | continue; | ||
36 | |||
37 | tegra_gpio_config(confs[i]->gpios, confs[i]->gpio_count); | ||
38 | } | ||
39 | } | ||
40 | |||
41 | static void tegra_board_pinmux_setup_pinmux(void) | ||
42 | { | ||
43 | int i; | ||
44 | |||
45 | for (i = 0; i < ARRAY_SIZE(confs); i++) { | ||
46 | if (!confs[i]) | ||
47 | continue; | ||
48 | |||
49 | tegra_pinmux_config_table(confs[i]->pgs, confs[i]->pg_count); | ||
50 | |||
51 | if (confs[i]->drives) | ||
52 | tegra_drive_pinmux_config_table(confs[i]->drives, | ||
53 | confs[i]->drive_count); | ||
54 | } | ||
55 | } | ||
56 | |||
57 | static int tegra_board_pinmux_bus_notify(struct notifier_block *nb, | ||
58 | unsigned long event, void *vdev) | ||
59 | { | ||
60 | static bool had_gpio; | ||
61 | static bool had_pinmux; | ||
62 | |||
63 | struct device *dev = vdev; | ||
64 | const char *devname; | ||
65 | |||
66 | if (event != BUS_NOTIFY_BOUND_DRIVER) | ||
67 | return NOTIFY_DONE; | ||
68 | |||
69 | devname = dev_name(dev); | ||
70 | |||
71 | if (!had_gpio && !strcmp(devname, GPIO_DEV)) { | ||
72 | tegra_board_pinmux_setup_gpios(); | ||
73 | had_gpio = true; | ||
74 | } else if (!had_pinmux && !strcmp(devname, PINMUX_DEV)) { | ||
75 | tegra_board_pinmux_setup_pinmux(); | ||
76 | had_pinmux = true; | ||
77 | } | ||
78 | |||
79 | if (had_gpio && had_pinmux) | ||
80 | return NOTIFY_STOP_MASK; | ||
81 | else | ||
82 | return NOTIFY_DONE; | ||
83 | } | ||
84 | |||
85 | static struct notifier_block nb = { | ||
86 | .notifier_call = tegra_board_pinmux_bus_notify, | ||
87 | }; | ||
88 | |||
89 | static struct platform_device *devices[] = { | ||
90 | &tegra_gpio_device, | ||
91 | &tegra_pinmux_device, | ||
92 | }; | ||
93 | |||
94 | void tegra_board_pinmux_init(struct tegra_board_pinmux_conf *conf_a, | ||
95 | struct tegra_board_pinmux_conf *conf_b) | ||
96 | { | ||
97 | confs[0] = conf_a; | ||
98 | confs[1] = conf_b; | ||
99 | |||
100 | bus_register_notifier(&platform_bus_type, &nb); | ||
101 | |||
102 | if (!of_machine_is_compatible("nvidia,tegra20")) | ||
103 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
104 | } | ||
diff --git a/arch/arm/mach-tegra/board-pinmux.h b/arch/arm/mach-tegra/board-pinmux.h new file mode 100644 index 00000000000..4aac73546f5 --- /dev/null +++ b/arch/arm/mach-tegra/board-pinmux.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #ifndef __MACH_TEGRA_BOARD_PINMUX_H | ||
16 | #define __MACH_TEGRA_BOARD_PINMUX_H | ||
17 | |||
18 | #define GPIO_DEV "tegra-gpio" | ||
19 | #define PINMUX_DEV "tegra-pinmux" | ||
20 | |||
21 | struct tegra_pingroup_config; | ||
22 | struct tegra_gpio_table; | ||
23 | |||
24 | struct tegra_board_pinmux_conf { | ||
25 | struct tegra_pingroup_config *pgs; | ||
26 | int pg_count; | ||
27 | |||
28 | struct tegra_drive_pingroup_config *drives; | ||
29 | int drive_count; | ||
30 | |||
31 | struct tegra_gpio_table *gpios; | ||
32 | int gpio_count; | ||
33 | }; | ||
34 | |||
35 | void tegra_board_pinmux_init(struct tegra_board_pinmux_conf *conf_a, | ||
36 | struct tegra_board_pinmux_conf *conf_b); | ||
37 | |||
38 | #endif | ||
diff --git a/arch/arm/mach-tegra/board-seaboard-pinmux.c b/arch/arm/mach-tegra/board-seaboard-pinmux.c index b1c2972f62f..55e7e43a14a 100644 --- a/arch/arm/mach-tegra/board-seaboard-pinmux.c +++ b/arch/arm/mach-tegra/board-seaboard-pinmux.c | |||
@@ -19,11 +19,11 @@ | |||
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | 20 | ||
21 | #include <mach/pinmux.h> | 21 | #include <mach/pinmux.h> |
22 | #include <mach/pinmux-t2.h> | 22 | #include <mach/pinmux-tegra20.h> |
23 | 23 | ||
24 | #include "gpio-names.h" | 24 | #include "gpio-names.h" |
25 | #include "board-pinmux.h" | ||
25 | #include "board-seaboard.h" | 26 | #include "board-seaboard.h" |
26 | #include "devices.h" | ||
27 | 27 | ||
28 | #define DEFAULT_DRIVE(_name) \ | 28 | #define DEFAULT_DRIVE(_name) \ |
29 | { \ | 29 | { \ |
@@ -37,11 +37,11 @@ | |||
37 | .slew_falling = TEGRA_SLEW_SLOWEST, \ | 37 | .slew_falling = TEGRA_SLEW_SLOWEST, \ |
38 | } | 38 | } |
39 | 39 | ||
40 | static __initdata struct tegra_drive_pingroup_config seaboard_drive_pinmux[] = { | 40 | static struct tegra_drive_pingroup_config seaboard_drive_pinmux[] = { |
41 | DEFAULT_DRIVE(SDIO1), | 41 | DEFAULT_DRIVE(SDIO1), |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static __initdata struct tegra_pingroup_config seaboard_pinmux[] = { | 44 | static struct tegra_pingroup_config common_pinmux[] = { |
45 | {TEGRA_PINGROUP_ATA, TEGRA_MUX_IDE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 45 | {TEGRA_PINGROUP_ATA, TEGRA_MUX_IDE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
46 | {TEGRA_PINGROUP_ATB, TEGRA_MUX_SDIO4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 46 | {TEGRA_PINGROUP_ATB, TEGRA_MUX_SDIO4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
47 | {TEGRA_PINGROUP_ATC, TEGRA_MUX_NAND, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 47 | {TEGRA_PINGROUP_ATC, TEGRA_MUX_NAND, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
@@ -55,7 +55,6 @@ static __initdata struct tegra_pingroup_config seaboard_pinmux[] = { | |||
55 | {TEGRA_PINGROUP_DAP2, TEGRA_MUX_DAP2, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 55 | {TEGRA_PINGROUP_DAP2, TEGRA_MUX_DAP2, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
56 | {TEGRA_PINGROUP_DAP3, TEGRA_MUX_DAP3, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 56 | {TEGRA_PINGROUP_DAP3, TEGRA_MUX_DAP3, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
57 | {TEGRA_PINGROUP_DAP4, TEGRA_MUX_DAP4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 57 | {TEGRA_PINGROUP_DAP4, TEGRA_MUX_DAP4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
58 | {TEGRA_PINGROUP_DDC, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | ||
59 | {TEGRA_PINGROUP_DTA, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, | 58 | {TEGRA_PINGROUP_DTA, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, |
60 | {TEGRA_PINGROUP_DTB, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, | 59 | {TEGRA_PINGROUP_DTB, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, |
61 | {TEGRA_PINGROUP_DTC, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, | 60 | {TEGRA_PINGROUP_DTC, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, |
@@ -65,7 +64,6 @@ static __initdata struct tegra_pingroup_config seaboard_pinmux[] = { | |||
65 | {TEGRA_PINGROUP_GMA, TEGRA_MUX_SDIO4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 64 | {TEGRA_PINGROUP_GMA, TEGRA_MUX_SDIO4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
66 | {TEGRA_PINGROUP_GMB, TEGRA_MUX_GMI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, | 65 | {TEGRA_PINGROUP_GMB, TEGRA_MUX_GMI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, |
67 | {TEGRA_PINGROUP_GMC, TEGRA_MUX_UARTD, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 66 | {TEGRA_PINGROUP_GMC, TEGRA_MUX_UARTD, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
68 | {TEGRA_PINGROUP_GMD, TEGRA_MUX_SFLASH, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
69 | {TEGRA_PINGROUP_GME, TEGRA_MUX_SDIO4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 67 | {TEGRA_PINGROUP_GME, TEGRA_MUX_SDIO4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
70 | {TEGRA_PINGROUP_GPU, TEGRA_MUX_PWM, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 68 | {TEGRA_PINGROUP_GPU, TEGRA_MUX_PWM, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
71 | {TEGRA_PINGROUP_GPU7, TEGRA_MUX_RTCK, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 69 | {TEGRA_PINGROUP_GPU7, TEGRA_MUX_RTCK, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
@@ -108,13 +106,8 @@ static __initdata struct tegra_pingroup_config seaboard_pinmux[] = { | |||
108 | {TEGRA_PINGROUP_LM0, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 106 | {TEGRA_PINGROUP_LM0, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
109 | {TEGRA_PINGROUP_LM1, TEGRA_MUX_CRT, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 107 | {TEGRA_PINGROUP_LM1, TEGRA_MUX_CRT, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
110 | {TEGRA_PINGROUP_LPP, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 108 | {TEGRA_PINGROUP_LPP, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
111 | {TEGRA_PINGROUP_LPW0, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
112 | {TEGRA_PINGROUP_LPW1, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 109 | {TEGRA_PINGROUP_LPW1, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
113 | {TEGRA_PINGROUP_LPW2, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
114 | {TEGRA_PINGROUP_LSC0, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 110 | {TEGRA_PINGROUP_LSC0, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
115 | {TEGRA_PINGROUP_LSC1, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | ||
116 | {TEGRA_PINGROUP_LSCK, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | ||
117 | {TEGRA_PINGROUP_LSDA, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | ||
118 | {TEGRA_PINGROUP_LSDI, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 111 | {TEGRA_PINGROUP_LSDI, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
119 | {TEGRA_PINGROUP_LSPI, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 112 | {TEGRA_PINGROUP_LSPI, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
120 | {TEGRA_PINGROUP_LVP0, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 113 | {TEGRA_PINGROUP_LVP0, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
@@ -122,25 +115,19 @@ static __initdata struct tegra_pingroup_config seaboard_pinmux[] = { | |||
122 | {TEGRA_PINGROUP_LVS, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 115 | {TEGRA_PINGROUP_LVS, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
123 | {TEGRA_PINGROUP_OWC, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 116 | {TEGRA_PINGROUP_OWC, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
124 | {TEGRA_PINGROUP_PMC, TEGRA_MUX_PWR_ON, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 117 | {TEGRA_PINGROUP_PMC, TEGRA_MUX_PWR_ON, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
125 | {TEGRA_PINGROUP_PTA, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
126 | {TEGRA_PINGROUP_RM, TEGRA_MUX_I2C, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 118 | {TEGRA_PINGROUP_RM, TEGRA_MUX_I2C, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
127 | {TEGRA_PINGROUP_SDB, TEGRA_MUX_SDIO3, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 119 | {TEGRA_PINGROUP_SDB, TEGRA_MUX_SDIO3, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
128 | {TEGRA_PINGROUP_SDC, TEGRA_MUX_SDIO3, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 120 | {TEGRA_PINGROUP_SDC, TEGRA_MUX_SDIO3, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
129 | {TEGRA_PINGROUP_SDD, TEGRA_MUX_SDIO3, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 121 | {TEGRA_PINGROUP_SDD, TEGRA_MUX_SDIO3, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
130 | {TEGRA_PINGROUP_SDIO1, TEGRA_MUX_SDIO1, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, | 122 | {TEGRA_PINGROUP_SDIO1, TEGRA_MUX_SDIO1, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, |
131 | {TEGRA_PINGROUP_SLXA, TEGRA_MUX_PCIE, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, | 123 | {TEGRA_PINGROUP_SLXA, TEGRA_MUX_PCIE, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, |
132 | {TEGRA_PINGROUP_SLXC, TEGRA_MUX_SPDIF, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | ||
133 | {TEGRA_PINGROUP_SLXD, TEGRA_MUX_SPDIF, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 124 | {TEGRA_PINGROUP_SLXD, TEGRA_MUX_SPDIF, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
134 | {TEGRA_PINGROUP_SLXK, TEGRA_MUX_PCIE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
135 | {TEGRA_PINGROUP_SPDI, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 125 | {TEGRA_PINGROUP_SPDI, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
136 | {TEGRA_PINGROUP_SPDO, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 126 | {TEGRA_PINGROUP_SPDO, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
137 | {TEGRA_PINGROUP_SPIA, TEGRA_MUX_GMI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, | ||
138 | {TEGRA_PINGROUP_SPIB, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 127 | {TEGRA_PINGROUP_SPIB, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
139 | {TEGRA_PINGROUP_SPIC, TEGRA_MUX_GMI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, | ||
140 | {TEGRA_PINGROUP_SPID, TEGRA_MUX_SPI1, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 128 | {TEGRA_PINGROUP_SPID, TEGRA_MUX_SPI1, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
141 | {TEGRA_PINGROUP_SPIE, TEGRA_MUX_SPI1, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 129 | {TEGRA_PINGROUP_SPIE, TEGRA_MUX_SPI1, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
142 | {TEGRA_PINGROUP_SPIF, TEGRA_MUX_SPI1, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_TRISTATE}, | 130 | {TEGRA_PINGROUP_SPIF, TEGRA_MUX_SPI1, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_TRISTATE}, |
143 | {TEGRA_PINGROUP_SPIG, TEGRA_MUX_SPI2_ALT, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, | ||
144 | {TEGRA_PINGROUP_SPIH, TEGRA_MUX_SPI2_ALT, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, | 131 | {TEGRA_PINGROUP_SPIH, TEGRA_MUX_SPI2_ALT, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, |
145 | {TEGRA_PINGROUP_UAA, TEGRA_MUX_ULPI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, | 132 | {TEGRA_PINGROUP_UAA, TEGRA_MUX_ULPI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, |
146 | {TEGRA_PINGROUP_UAB, TEGRA_MUX_ULPI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, | 133 | {TEGRA_PINGROUP_UAB, TEGRA_MUX_ULPI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, |
@@ -160,13 +147,24 @@ static __initdata struct tegra_pingroup_config seaboard_pinmux[] = { | |||
160 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 147 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
161 | }; | 148 | }; |
162 | 149 | ||
163 | static __initdata struct tegra_pingroup_config ventana_pinmux[] = { | 150 | static struct tegra_pingroup_config seaboard_pinmux[] = { |
164 | {TEGRA_PINGROUP_DAP3, TEGRA_MUX_DAP3, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 151 | {TEGRA_PINGROUP_DDC, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
152 | {TEGRA_PINGROUP_GMD, TEGRA_MUX_SFLASH, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
153 | {TEGRA_PINGROUP_LPW0, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
154 | {TEGRA_PINGROUP_LPW2, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
155 | {TEGRA_PINGROUP_LSC1, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | ||
156 | {TEGRA_PINGROUP_LSCK, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | ||
157 | {TEGRA_PINGROUP_LSDA, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | ||
158 | {TEGRA_PINGROUP_PTA, TEGRA_MUX_HDMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
159 | {TEGRA_PINGROUP_SLXC, TEGRA_MUX_SPDIF, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | ||
160 | {TEGRA_PINGROUP_SLXK, TEGRA_MUX_PCIE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | ||
161 | {TEGRA_PINGROUP_SPIA, TEGRA_MUX_GMI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, | ||
162 | {TEGRA_PINGROUP_SPIC, TEGRA_MUX_GMI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, | ||
163 | {TEGRA_PINGROUP_SPIG, TEGRA_MUX_SPI2_ALT, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, | ||
164 | }; | ||
165 | |||
166 | static struct tegra_pingroup_config ventana_pinmux[] = { | ||
165 | {TEGRA_PINGROUP_DDC, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 167 | {TEGRA_PINGROUP_DDC, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
166 | {TEGRA_PINGROUP_DTA, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, | ||
167 | {TEGRA_PINGROUP_DTB, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, | ||
168 | {TEGRA_PINGROUP_DTC, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, | ||
169 | {TEGRA_PINGROUP_DTD, TEGRA_MUX_VI, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_NORMAL}, | ||
170 | {TEGRA_PINGROUP_GMD, TEGRA_MUX_SFLASH, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 168 | {TEGRA_PINGROUP_GMD, TEGRA_MUX_SFLASH, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
171 | {TEGRA_PINGROUP_LPW0, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 169 | {TEGRA_PINGROUP_LPW0, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
172 | {TEGRA_PINGROUP_LPW2, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 170 | {TEGRA_PINGROUP_LPW2, TEGRA_MUX_RSVD4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
@@ -181,65 +179,59 @@ static __initdata struct tegra_pingroup_config ventana_pinmux[] = { | |||
181 | {TEGRA_PINGROUP_SPIG, TEGRA_MUX_SPI2_ALT, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 179 | {TEGRA_PINGROUP_SPIG, TEGRA_MUX_SPI2_ALT, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
182 | }; | 180 | }; |
183 | 181 | ||
184 | static struct platform_device *pinmux_devices[] = { | ||
185 | &tegra_gpio_device, | ||
186 | &tegra_pinmux_device, | ||
187 | }; | ||
188 | |||
189 | static struct tegra_gpio_table common_gpio_table[] = { | 182 | static struct tegra_gpio_table common_gpio_table[] = { |
190 | { .gpio = TEGRA_GPIO_SD2_CD, .enable = true }, | 183 | { .gpio = TEGRA_GPIO_SD2_CD, .enable = true }, |
191 | { .gpio = TEGRA_GPIO_SD2_WP, .enable = true }, | 184 | { .gpio = TEGRA_GPIO_SD2_WP, .enable = true }, |
192 | { .gpio = TEGRA_GPIO_SD2_POWER, .enable = true }, | 185 | { .gpio = TEGRA_GPIO_SD2_POWER, .enable = true }, |
186 | { .gpio = TEGRA_GPIO_CDC_IRQ, .enable = true }, | ||
187 | }; | ||
188 | |||
189 | static struct tegra_gpio_table seaboard_gpio_table[] = { | ||
193 | { .gpio = TEGRA_GPIO_LIDSWITCH, .enable = true }, | 190 | { .gpio = TEGRA_GPIO_LIDSWITCH, .enable = true }, |
194 | { .gpio = TEGRA_GPIO_POWERKEY, .enable = true }, | 191 | { .gpio = TEGRA_GPIO_POWERKEY, .enable = true }, |
195 | { .gpio = TEGRA_GPIO_HP_DET, .enable = true }, | 192 | { .gpio = TEGRA_GPIO_HP_DET, .enable = true }, |
196 | { .gpio = TEGRA_GPIO_ISL29018_IRQ, .enable = true }, | 193 | { .gpio = TEGRA_GPIO_ISL29018_IRQ, .enable = true }, |
197 | { .gpio = TEGRA_GPIO_CDC_IRQ, .enable = true }, | ||
198 | { .gpio = TEGRA_GPIO_USB1, .enable = true }, | 194 | { .gpio = TEGRA_GPIO_USB1, .enable = true }, |
199 | }; | 195 | }; |
200 | 196 | ||
201 | static void __init update_pinmux(struct tegra_pingroup_config *newtbl, int size) | 197 | static struct tegra_gpio_table ventana_gpio_table[] = { |
202 | { | 198 | /* hp_det */ |
203 | int i, j; | 199 | { .gpio = TEGRA_GPIO_PW2, .enable = true }, |
204 | struct tegra_pingroup_config *new_pingroup, *base_pingroup; | 200 | /* int_mic_en */ |
205 | 201 | { .gpio = TEGRA_GPIO_PX0, .enable = true }, | |
206 | /* Update base seaboard pinmux table with secondary board | 202 | /* ext_mic_en */ |
207 | * specific pinmux table table. | 203 | { .gpio = TEGRA_GPIO_PX1, .enable = true }, |
208 | */ | 204 | }; |
209 | for (i = 0; i < size; i++) { | ||
210 | new_pingroup = &newtbl[i]; | ||
211 | for (j = 0; j < ARRAY_SIZE(seaboard_pinmux); j++) { | ||
212 | base_pingroup = &seaboard_pinmux[j]; | ||
213 | if (new_pingroup->pingroup == base_pingroup->pingroup) { | ||
214 | *base_pingroup = *new_pingroup; | ||
215 | break; | ||
216 | } | ||
217 | } | ||
218 | } | ||
219 | } | ||
220 | |||
221 | void __init seaboard_common_pinmux_init(void) | ||
222 | { | ||
223 | if (!of_machine_is_compatible("nvidia,tegra20")) | ||
224 | platform_add_devices(pinmux_devices, | ||
225 | ARRAY_SIZE(pinmux_devices)); | ||
226 | 205 | ||
227 | tegra_pinmux_config_table(seaboard_pinmux, ARRAY_SIZE(seaboard_pinmux)); | 206 | static struct tegra_board_pinmux_conf common_conf = { |
207 | .pgs = common_pinmux, | ||
208 | .pg_count = ARRAY_SIZE(common_pinmux), | ||
209 | .gpios = common_gpio_table, | ||
210 | .gpio_count = ARRAY_SIZE(common_gpio_table), | ||
211 | }; | ||
228 | 212 | ||
229 | tegra_drive_pinmux_config_table(seaboard_drive_pinmux, | 213 | static struct tegra_board_pinmux_conf seaboard_conf = { |
230 | ARRAY_SIZE(seaboard_drive_pinmux)); | 214 | .pgs = seaboard_pinmux, |
215 | .pg_count = ARRAY_SIZE(seaboard_pinmux), | ||
216 | .drives = seaboard_drive_pinmux, | ||
217 | .drive_count = ARRAY_SIZE(seaboard_drive_pinmux), | ||
218 | .gpios = seaboard_gpio_table, | ||
219 | .gpio_count = ARRAY_SIZE(seaboard_gpio_table), | ||
220 | }; | ||
231 | 221 | ||
232 | tegra_gpio_config(common_gpio_table, ARRAY_SIZE(common_gpio_table)); | 222 | static struct tegra_board_pinmux_conf ventana_conf = { |
233 | } | 223 | .pgs = ventana_pinmux, |
224 | .pg_count = ARRAY_SIZE(ventana_pinmux), | ||
225 | .gpios = ventana_gpio_table, | ||
226 | .gpio_count = ARRAY_SIZE(ventana_gpio_table), | ||
227 | }; | ||
234 | 228 | ||
235 | void __init seaboard_pinmux_init(void) | 229 | void seaboard_pinmux_init(void) |
236 | { | 230 | { |
237 | seaboard_common_pinmux_init(); | 231 | tegra_board_pinmux_init(&common_conf, &seaboard_conf); |
238 | } | 232 | } |
239 | 233 | ||
240 | void __init ventana_pinmux_init(void) | 234 | void ventana_pinmux_init(void) |
241 | { | 235 | { |
242 | update_pinmux(ventana_pinmux, ARRAY_SIZE(ventana_pinmux)); | 236 | tegra_board_pinmux_init(&common_conf, &ventana_conf); |
243 | seaboard_common_pinmux_init(); | ||
244 | } | 237 | } |
245 | |||
diff --git a/arch/arm/mach-tegra/board-seaboard.c b/arch/arm/mach-tegra/board-seaboard.c index c1599eb8e0c..cfc74d46a09 100644 --- a/arch/arm/mach-tegra/board-seaboard.c +++ b/arch/arm/mach-tegra/board-seaboard.c | |||
@@ -283,7 +283,7 @@ static void __init tegra_wario_init(void) | |||
283 | MACHINE_START(SEABOARD, "seaboard") | 283 | MACHINE_START(SEABOARD, "seaboard") |
284 | .atag_offset = 0x100, | 284 | .atag_offset = 0x100, |
285 | .map_io = tegra_map_common_io, | 285 | .map_io = tegra_map_common_io, |
286 | .init_early = tegra_init_early, | 286 | .init_early = tegra20_init_early, |
287 | .init_irq = tegra_init_irq, | 287 | .init_irq = tegra_init_irq, |
288 | .handle_irq = gic_handle_irq, | 288 | .handle_irq = gic_handle_irq, |
289 | .timer = &tegra_timer, | 289 | .timer = &tegra_timer, |
@@ -294,7 +294,7 @@ MACHINE_END | |||
294 | MACHINE_START(KAEN, "kaen") | 294 | MACHINE_START(KAEN, "kaen") |
295 | .atag_offset = 0x100, | 295 | .atag_offset = 0x100, |
296 | .map_io = tegra_map_common_io, | 296 | .map_io = tegra_map_common_io, |
297 | .init_early = tegra_init_early, | 297 | .init_early = tegra20_init_early, |
298 | .init_irq = tegra_init_irq, | 298 | .init_irq = tegra_init_irq, |
299 | .handle_irq = gic_handle_irq, | 299 | .handle_irq = gic_handle_irq, |
300 | .timer = &tegra_timer, | 300 | .timer = &tegra_timer, |
@@ -305,7 +305,7 @@ MACHINE_END | |||
305 | MACHINE_START(WARIO, "wario") | 305 | MACHINE_START(WARIO, "wario") |
306 | .atag_offset = 0x100, | 306 | .atag_offset = 0x100, |
307 | .map_io = tegra_map_common_io, | 307 | .map_io = tegra_map_common_io, |
308 | .init_early = tegra_init_early, | 308 | .init_early = tegra20_init_early, |
309 | .init_irq = tegra_init_irq, | 309 | .init_irq = tegra_init_irq, |
310 | .handle_irq = gic_handle_irq, | 310 | .handle_irq = gic_handle_irq, |
311 | .timer = &tegra_timer, | 311 | .timer = &tegra_timer, |
diff --git a/arch/arm/mach-tegra/board-trimslice-pinmux.c b/arch/arm/mach-tegra/board-trimslice-pinmux.c index 7ab719d46da..a21a2be57cb 100644 --- a/arch/arm/mach-tegra/board-trimslice-pinmux.c +++ b/arch/arm/mach-tegra/board-trimslice-pinmux.c | |||
@@ -19,12 +19,13 @@ | |||
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | 20 | ||
21 | #include <mach/pinmux.h> | 21 | #include <mach/pinmux.h> |
22 | #include <mach/pinmux-tegra20.h> | ||
22 | 23 | ||
23 | #include "gpio-names.h" | 24 | #include "gpio-names.h" |
25 | #include "board-pinmux.h" | ||
24 | #include "board-trimslice.h" | 26 | #include "board-trimslice.h" |
25 | #include "devices.h" | ||
26 | 27 | ||
27 | static __initdata struct tegra_pingroup_config trimslice_pinmux[] = { | 28 | static struct tegra_pingroup_config trimslice_pinmux[] = { |
28 | {TEGRA_PINGROUP_ATA, TEGRA_MUX_IDE, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 29 | {TEGRA_PINGROUP_ATA, TEGRA_MUX_IDE, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
29 | {TEGRA_PINGROUP_ATB, TEGRA_MUX_SDIO4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 30 | {TEGRA_PINGROUP_ATB, TEGRA_MUX_SDIO4, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
30 | {TEGRA_PINGROUP_ATC, TEGRA_MUX_NAND, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 31 | {TEGRA_PINGROUP_ATC, TEGRA_MUX_NAND, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
@@ -105,7 +106,7 @@ static __initdata struct tegra_pingroup_config trimslice_pinmux[] = { | |||
105 | {TEGRA_PINGROUP_LVS, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, | 106 | {TEGRA_PINGROUP_LVS, TEGRA_MUX_DISPLAYA, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, |
106 | {TEGRA_PINGROUP_OWC, TEGRA_MUX_RSVD2, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, | 107 | {TEGRA_PINGROUP_OWC, TEGRA_MUX_RSVD2, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE}, |
107 | {TEGRA_PINGROUP_PMC, TEGRA_MUX_PWR_ON, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 108 | {TEGRA_PINGROUP_PMC, TEGRA_MUX_PWR_ON, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
108 | {TEGRA_PINGROUP_PTA, TEGRA_MUX_RSVD3, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, | 109 | {TEGRA_PINGROUP_PTA, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE}, |
109 | {TEGRA_PINGROUP_RM, TEGRA_MUX_I2C, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, | 110 | {TEGRA_PINGROUP_RM, TEGRA_MUX_I2C, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, |
110 | {TEGRA_PINGROUP_SDB, TEGRA_MUX_PWM, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 111 | {TEGRA_PINGROUP_SDB, TEGRA_MUX_PWM, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
111 | {TEGRA_PINGROUP_SDC, TEGRA_MUX_PWM, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, | 112 | {TEGRA_PINGROUP_SDC, TEGRA_MUX_PWM, TEGRA_PUPD_PULL_UP, TEGRA_TRI_NORMAL}, |
@@ -143,11 +144,6 @@ static __initdata struct tegra_pingroup_config trimslice_pinmux[] = { | |||
143 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 144 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
144 | }; | 145 | }; |
145 | 146 | ||
146 | static struct platform_device *pinmux_devices[] = { | ||
147 | &tegra_gpio_device, | ||
148 | &tegra_pinmux_device, | ||
149 | }; | ||
150 | |||
151 | static struct tegra_gpio_table gpio_table[] = { | 147 | static struct tegra_gpio_table gpio_table[] = { |
152 | { .gpio = TRIMSLICE_GPIO_SD4_CD, .enable = true }, /* mmc4 cd */ | 148 | { .gpio = TRIMSLICE_GPIO_SD4_CD, .enable = true }, /* mmc4 cd */ |
153 | { .gpio = TRIMSLICE_GPIO_SD4_WP, .enable = true }, /* mmc4 wp */ | 149 | { .gpio = TRIMSLICE_GPIO_SD4_WP, .enable = true }, /* mmc4 wp */ |
@@ -156,11 +152,14 @@ static struct tegra_gpio_table gpio_table[] = { | |||
156 | { .gpio = TRIMSLICE_GPIO_USB2_RST, .enable = true }, /* USB2 PHY rst */ | 152 | { .gpio = TRIMSLICE_GPIO_USB2_RST, .enable = true }, /* USB2 PHY rst */ |
157 | }; | 153 | }; |
158 | 154 | ||
159 | void __init trimslice_pinmux_init(void) | 155 | static struct tegra_board_pinmux_conf conf = { |
156 | .pgs = trimslice_pinmux, | ||
157 | .pg_count = ARRAY_SIZE(trimslice_pinmux), | ||
158 | .gpios = gpio_table, | ||
159 | .gpio_count = ARRAY_SIZE(gpio_table), | ||
160 | }; | ||
161 | |||
162 | void trimslice_pinmux_init(void) | ||
160 | { | 163 | { |
161 | if (!of_machine_is_compatible("nvidia,tegra20")) | 164 | tegra_board_pinmux_init(&conf, NULL); |
162 | platform_add_devices(pinmux_devices, | ||
163 | ARRAY_SIZE(pinmux_devices)); | ||
164 | tegra_pinmux_config_table(trimslice_pinmux, ARRAY_SIZE(trimslice_pinmux)); | ||
165 | tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table)); | ||
166 | } | 165 | } |
diff --git a/arch/arm/mach-tegra/board-trimslice.c b/arch/arm/mach-tegra/board-trimslice.c index c242314a1db..cd52820a3e3 100644 --- a/arch/arm/mach-tegra/board-trimslice.c +++ b/arch/arm/mach-tegra/board-trimslice.c | |||
@@ -175,7 +175,7 @@ MACHINE_START(TRIMSLICE, "trimslice") | |||
175 | .atag_offset = 0x100, | 175 | .atag_offset = 0x100, |
176 | .fixup = tegra_trimslice_fixup, | 176 | .fixup = tegra_trimslice_fixup, |
177 | .map_io = tegra_map_common_io, | 177 | .map_io = tegra_map_common_io, |
178 | .init_early = tegra_init_early, | 178 | .init_early = tegra20_init_early, |
179 | .init_irq = tegra_init_irq, | 179 | .init_irq = tegra_init_irq, |
180 | .handle_irq = gic_handle_irq, | 180 | .handle_irq = gic_handle_irq, |
181 | .timer = &tegra_timer, | 181 | .timer = &tegra_timer, |
diff --git a/arch/arm/mach-tegra/board.h b/arch/arm/mach-tegra/board.h index 1d14df7eb7d..75d1543d77c 100644 --- a/arch/arm/mach-tegra/board.h +++ b/arch/arm/mach-tegra/board.h | |||
@@ -25,10 +25,11 @@ | |||
25 | 25 | ||
26 | void tegra_assert_system_reset(char mode, const char *cmd); | 26 | void tegra_assert_system_reset(char mode, const char *cmd); |
27 | 27 | ||
28 | void __init tegra_init_early(void); | 28 | void __init tegra20_init_early(void); |
29 | void __init tegra30_init_early(void); | ||
29 | void __init tegra_map_common_io(void); | 30 | void __init tegra_map_common_io(void); |
30 | void __init tegra_init_irq(void); | 31 | void __init tegra_init_irq(void); |
31 | void __init tegra_init_clock(void); | 32 | void __init tegra_dt_init_irq(void); |
32 | int __init tegra_pcie_init(bool init_port0, bool init_port1); | 33 | int __init tegra_pcie_init(bool init_port0, bool init_port1); |
33 | 34 | ||
34 | extern struct sys_timer tegra_timer; | 35 | extern struct sys_timer tegra_timer; |
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c index f8d41ffc0ca..8337068a4ab 100644 --- a/arch/arm/mach-tegra/clock.c +++ b/arch/arm/mach-tegra/clock.c | |||
@@ -387,35 +387,18 @@ EXPORT_SYMBOL(tegra_clk_init_from_table); | |||
387 | 387 | ||
388 | void tegra_periph_reset_deassert(struct clk *c) | 388 | void tegra_periph_reset_deassert(struct clk *c) |
389 | { | 389 | { |
390 | tegra2_periph_reset_deassert(c); | 390 | BUG_ON(!c->ops->reset); |
391 | c->ops->reset(c, false); | ||
391 | } | 392 | } |
392 | EXPORT_SYMBOL(tegra_periph_reset_deassert); | 393 | EXPORT_SYMBOL(tegra_periph_reset_deassert); |
393 | 394 | ||
394 | void tegra_periph_reset_assert(struct clk *c) | 395 | void tegra_periph_reset_assert(struct clk *c) |
395 | { | 396 | { |
396 | tegra2_periph_reset_assert(c); | 397 | BUG_ON(!c->ops->reset); |
398 | c->ops->reset(c, true); | ||
397 | } | 399 | } |
398 | EXPORT_SYMBOL(tegra_periph_reset_assert); | 400 | EXPORT_SYMBOL(tegra_periph_reset_assert); |
399 | 401 | ||
400 | void __init tegra_init_clock(void) | ||
401 | { | ||
402 | tegra2_init_clocks(); | ||
403 | } | ||
404 | |||
405 | /* | ||
406 | * The SDMMC controllers have extra bits in the clock source register that | ||
407 | * adjust the delay between the clock and data to compenstate for delays | ||
408 | * on the PCB. | ||
409 | */ | ||
410 | void tegra_sdmmc_tap_delay(struct clk *c, int delay) | ||
411 | { | ||
412 | unsigned long flags; | ||
413 | |||
414 | spin_lock_irqsave(&c->spinlock, flags); | ||
415 | tegra2_sdmmc_tap_delay(c, delay); | ||
416 | spin_unlock_irqrestore(&c->spinlock, flags); | ||
417 | } | ||
418 | |||
419 | #ifdef CONFIG_DEBUG_FS | 402 | #ifdef CONFIG_DEBUG_FS |
420 | 403 | ||
421 | static int __clk_lock_all_spinlocks(void) | 404 | static int __clk_lock_all_spinlocks(void) |
diff --git a/arch/arm/mach-tegra/clock.h b/arch/arm/mach-tegra/clock.h index 688316abc64..5c44106616c 100644 --- a/arch/arm/mach-tegra/clock.h +++ b/arch/arm/mach-tegra/clock.h | |||
@@ -146,15 +146,11 @@ struct tegra_clk_init_table { | |||
146 | }; | 146 | }; |
147 | 147 | ||
148 | void tegra2_init_clocks(void); | 148 | void tegra2_init_clocks(void); |
149 | void tegra2_periph_reset_deassert(struct clk *c); | ||
150 | void tegra2_periph_reset_assert(struct clk *c); | ||
151 | void clk_init(struct clk *clk); | 149 | void clk_init(struct clk *clk); |
152 | struct clk *tegra_get_clock_by_name(const char *name); | 150 | struct clk *tegra_get_clock_by_name(const char *name); |
153 | unsigned long clk_measure_input_freq(void); | ||
154 | int clk_reparent(struct clk *c, struct clk *parent); | 151 | int clk_reparent(struct clk *c, struct clk *parent); |
155 | void tegra_clk_init_from_table(struct tegra_clk_init_table *table); | 152 | void tegra_clk_init_from_table(struct tegra_clk_init_table *table); |
156 | unsigned long clk_get_rate_locked(struct clk *c); | 153 | unsigned long clk_get_rate_locked(struct clk *c); |
157 | int clk_set_rate_locked(struct clk *c, unsigned long rate); | 154 | int clk_set_rate_locked(struct clk *c, unsigned long rate); |
158 | void tegra2_sdmmc_tap_delay(struct clk *c, int delay); | ||
159 | 155 | ||
160 | #endif | 156 | #endif |
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index 20f396d740f..a2eb90169ae 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-tegra/board-harmony.c | 2 | * arch/arm/mach-tegra/common.c |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Google, Inc. | 4 | * Copyright (C) 2010 Google, Inc. |
5 | * | 5 | * |
@@ -21,8 +21,10 @@ | |||
21 | #include <linux/io.h> | 21 | #include <linux/io.h> |
22 | #include <linux/clk.h> | 22 | #include <linux/clk.h> |
23 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
24 | #include <linux/of_irq.h> | ||
24 | 25 | ||
25 | #include <asm/hardware/cache-l2x0.h> | 26 | #include <asm/hardware/cache-l2x0.h> |
27 | #include <asm/hardware/gic.h> | ||
26 | 28 | ||
27 | #include <mach/iomap.h> | 29 | #include <mach/iomap.h> |
28 | #include <mach/system.h> | 30 | #include <mach/system.h> |
@@ -31,18 +33,31 @@ | |||
31 | #include "clock.h" | 33 | #include "clock.h" |
32 | #include "fuse.h" | 34 | #include "fuse.h" |
33 | 35 | ||
36 | #ifdef CONFIG_OF | ||
37 | static const struct of_device_id tegra_dt_irq_match[] __initconst = { | ||
38 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init }, | ||
39 | { } | ||
40 | }; | ||
41 | |||
42 | void __init tegra_dt_init_irq(void) | ||
43 | { | ||
44 | tegra_init_irq(); | ||
45 | of_irq_init(tegra_dt_irq_match); | ||
46 | } | ||
47 | #endif | ||
48 | |||
34 | void tegra_assert_system_reset(char mode, const char *cmd) | 49 | void tegra_assert_system_reset(char mode, const char *cmd) |
35 | { | 50 | { |
36 | void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04); | 51 | void __iomem *reset = IO_ADDRESS(TEGRA_PMC_BASE + 0); |
37 | u32 reg; | 52 | u32 reg; |
38 | 53 | ||
39 | /* use *_related to avoid spinlock since caches are off */ | ||
40 | reg = readl_relaxed(reset); | 54 | reg = readl_relaxed(reset); |
41 | reg |= 0x04; | 55 | reg |= 0x10; |
42 | writel_relaxed(reg, reset); | 56 | writel_relaxed(reg, reset); |
43 | } | 57 | } |
44 | 58 | ||
45 | static __initdata struct tegra_clk_init_table common_clk_init_table[] = { | 59 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC |
60 | static __initdata struct tegra_clk_init_table tegra20_clk_init_table[] = { | ||
46 | /* name parent rate enabled */ | 61 | /* name parent rate enabled */ |
47 | { "clk_m", NULL, 0, true }, | 62 | { "clk_m", NULL, 0, true }, |
48 | { "pll_p", "clk_m", 216000000, true }, | 63 | { "pll_p", "clk_m", 216000000, true }, |
@@ -58,24 +73,38 @@ static __initdata struct tegra_clk_init_table common_clk_init_table[] = { | |||
58 | { "cpu", NULL, 0, true }, | 73 | { "cpu", NULL, 0, true }, |
59 | { NULL, NULL, 0, 0}, | 74 | { NULL, NULL, 0, 0}, |
60 | }; | 75 | }; |
76 | #endif | ||
61 | 77 | ||
62 | static void __init tegra_init_cache(void) | 78 | static void __init tegra_init_cache(u32 tag_latency, u32 data_latency) |
63 | { | 79 | { |
64 | #ifdef CONFIG_CACHE_L2X0 | 80 | #ifdef CONFIG_CACHE_L2X0 |
65 | void __iomem *p = IO_ADDRESS(TEGRA_ARM_PERIF_BASE) + 0x3000; | 81 | void __iomem *p = IO_ADDRESS(TEGRA_ARM_PERIF_BASE) + 0x3000; |
82 | u32 aux_ctrl, cache_type; | ||
83 | |||
84 | writel_relaxed(tag_latency, p + L2X0_TAG_LATENCY_CTRL); | ||
85 | writel_relaxed(data_latency, p + L2X0_DATA_LATENCY_CTRL); | ||
66 | 86 | ||
67 | writel_relaxed(0x331, p + L2X0_TAG_LATENCY_CTRL); | 87 | cache_type = readl(p + L2X0_CACHE_TYPE); |
68 | writel_relaxed(0x441, p + L2X0_DATA_LATENCY_CTRL); | 88 | aux_ctrl = (cache_type & 0x700) << (17-8); |
89 | aux_ctrl |= 0x6C000001; | ||
69 | 90 | ||
70 | l2x0_init(p, 0x6C080001, 0x8200c3fe); | 91 | l2x0_init(p, aux_ctrl, 0x8200c3fe); |
71 | #endif | 92 | #endif |
72 | 93 | ||
73 | } | 94 | } |
74 | 95 | ||
75 | void __init tegra_init_early(void) | 96 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC |
97 | void __init tegra20_init_early(void) | ||
76 | { | 98 | { |
77 | tegra_init_fuse(); | 99 | tegra_init_fuse(); |
78 | tegra_init_clock(); | 100 | tegra2_init_clocks(); |
79 | tegra_clk_init_from_table(common_clk_init_table); | 101 | tegra_clk_init_from_table(tegra20_clk_init_table); |
80 | tegra_init_cache(); | 102 | tegra_init_cache(0x331, 0x441); |
103 | } | ||
104 | #endif | ||
105 | #ifdef CONFIG_ARCH_TEGRA_3x_SOC | ||
106 | void __init tegra30_init_early(void) | ||
107 | { | ||
108 | tegra_init_cache(0x441, 0x551); | ||
81 | } | 109 | } |
110 | #endif | ||
diff --git a/arch/arm/mach-tegra/include/mach/clk.h b/arch/arm/mach-tegra/include/mach/clk.h index c8baf8f80d2..fc3ecb66de0 100644 --- a/arch/arm/mach-tegra/include/mach/clk.h +++ b/arch/arm/mach-tegra/include/mach/clk.h | |||
@@ -26,6 +26,6 @@ void tegra_periph_reset_deassert(struct clk *c); | |||
26 | void tegra_periph_reset_assert(struct clk *c); | 26 | void tegra_periph_reset_assert(struct clk *c); |
27 | 27 | ||
28 | unsigned long clk_get_rate_all_locked(struct clk *c); | 28 | unsigned long clk_get_rate_all_locked(struct clk *c); |
29 | void tegra_sdmmc_tap_delay(struct clk *c, int delay); | 29 | void tegra2_sdmmc_tap_delay(struct clk *c, int delay); |
30 | 30 | ||
31 | #endif | 31 | #endif |
diff --git a/arch/arm/mach-tegra/include/mach/irqs.h b/arch/arm/mach-tegra/include/mach/irqs.h index 73265af4dda..a2146cd6867 100644 --- a/arch/arm/mach-tegra/include/mach/irqs.h +++ b/arch/arm/mach-tegra/include/mach/irqs.h | |||
@@ -25,7 +25,6 @@ | |||
25 | 25 | ||
26 | #define IRQ_LOCALTIMER 29 | 26 | #define IRQ_LOCALTIMER 29 |
27 | 27 | ||
28 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | ||
29 | /* Primary Interrupt Controller */ | 28 | /* Primary Interrupt Controller */ |
30 | #define INT_PRI_BASE (INT_GIC_BASE + 32) | 29 | #define INT_PRI_BASE (INT_GIC_BASE + 32) |
31 | #define INT_TMR1 (INT_PRI_BASE + 0) | 30 | #define INT_TMR1 (INT_PRI_BASE + 0) |
@@ -178,6 +177,5 @@ | |||
178 | #define NR_BOARD_IRQS 32 | 177 | #define NR_BOARD_IRQS 32 |
179 | 178 | ||
180 | #define NR_IRQS (INT_BOARD_BASE + NR_BOARD_IRQS) | 179 | #define NR_IRQS (INT_BOARD_BASE + NR_BOARD_IRQS) |
181 | #endif | ||
182 | 180 | ||
183 | #endif | 181 | #endif |
diff --git a/arch/arm/mach-tegra/include/mach/pinmux-t2.h b/arch/arm/mach-tegra/include/mach/pinmux-tegra20.h index 4c262634726..6a40c1dbab1 100644 --- a/arch/arm/mach-tegra/include/mach/pinmux-t2.h +++ b/arch/arm/mach-tegra/include/mach/pinmux-tegra20.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-tegra/include/mach/pinmux-t2.h | 2 | * linux/arch/arm/mach-tegra/include/mach/pinmux-tegra20.h |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Google, Inc. | 4 | * Copyright (C) 2010 Google, Inc. |
5 | * | 5 | * |
@@ -14,8 +14,8 @@ | |||
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef __MACH_TEGRA_PINMUX_T2_H | 17 | #ifndef __MACH_TEGRA_PINMUX_TEGRA20_H |
18 | #define __MACH_TEGRA_PINMUX_T2_H | 18 | #define __MACH_TEGRA_PINMUX_TEGRA20_H |
19 | 19 | ||
20 | enum tegra_pingroup { | 20 | enum tegra_pingroup { |
21 | TEGRA_PINGROUP_ATA = 0, | 21 | TEGRA_PINGROUP_ATA = 0, |
diff --git a/arch/arm/mach-tegra/include/mach/pinmux-tegra30.h b/arch/arm/mach-tegra/include/mach/pinmux-tegra30.h new file mode 100644 index 00000000000..c1aee3eb2df --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/pinmux-tegra30.h | |||
@@ -0,0 +1,320 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-tegra/include/mach/pinmux-tegra30.h | ||
3 | * | ||
4 | * Copyright (C) 2010 Google, Inc. | ||
5 | * Copyright (C) 2010,2011 Nvidia, Inc. | ||
6 | * | ||
7 | * This software is licensed under the terms of the GNU General Public | ||
8 | * License version 2, as published by the Free Software Foundation, and | ||
9 | * may be copied, distributed, and modified under those terms. | ||
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 | */ | ||
17 | |||
18 | #ifndef __MACH_TEGRA_PINMUX_TEGRA30_H | ||
19 | #define __MACH_TEGRA_PINMUX_TEGRA30_H | ||
20 | |||
21 | enum tegra_pingroup { | ||
22 | TEGRA_PINGROUP_ULPI_DATA0 = 0, | ||
23 | TEGRA_PINGROUP_ULPI_DATA1, | ||
24 | TEGRA_PINGROUP_ULPI_DATA2, | ||
25 | TEGRA_PINGROUP_ULPI_DATA3, | ||
26 | TEGRA_PINGROUP_ULPI_DATA4, | ||
27 | TEGRA_PINGROUP_ULPI_DATA5, | ||
28 | TEGRA_PINGROUP_ULPI_DATA6, | ||
29 | TEGRA_PINGROUP_ULPI_DATA7, | ||
30 | TEGRA_PINGROUP_ULPI_CLK, | ||
31 | TEGRA_PINGROUP_ULPI_DIR, | ||
32 | TEGRA_PINGROUP_ULPI_NXT, | ||
33 | TEGRA_PINGROUP_ULPI_STP, | ||
34 | TEGRA_PINGROUP_DAP3_FS, | ||
35 | TEGRA_PINGROUP_DAP3_DIN, | ||
36 | TEGRA_PINGROUP_DAP3_DOUT, | ||
37 | TEGRA_PINGROUP_DAP3_SCLK, | ||
38 | TEGRA_PINGROUP_GPIO_PV0, | ||
39 | TEGRA_PINGROUP_GPIO_PV1, | ||
40 | TEGRA_PINGROUP_SDMMC1_CLK, | ||
41 | TEGRA_PINGROUP_SDMMC1_CMD, | ||
42 | TEGRA_PINGROUP_SDMMC1_DAT3, | ||
43 | TEGRA_PINGROUP_SDMMC1_DAT2, | ||
44 | TEGRA_PINGROUP_SDMMC1_DAT1, | ||
45 | TEGRA_PINGROUP_SDMMC1_DAT0, | ||
46 | TEGRA_PINGROUP_GPIO_PV2, | ||
47 | TEGRA_PINGROUP_GPIO_PV3, | ||
48 | TEGRA_PINGROUP_CLK2_OUT, | ||
49 | TEGRA_PINGROUP_CLK2_REQ, | ||
50 | TEGRA_PINGROUP_LCD_PWR1, | ||
51 | TEGRA_PINGROUP_LCD_PWR2, | ||
52 | TEGRA_PINGROUP_LCD_SDIN, | ||
53 | TEGRA_PINGROUP_LCD_SDOUT, | ||
54 | TEGRA_PINGROUP_LCD_WR_N, | ||
55 | TEGRA_PINGROUP_LCD_CS0_N, | ||
56 | TEGRA_PINGROUP_LCD_DC0, | ||
57 | TEGRA_PINGROUP_LCD_SCK, | ||
58 | TEGRA_PINGROUP_LCD_PWR0, | ||
59 | TEGRA_PINGROUP_LCD_PCLK, | ||
60 | TEGRA_PINGROUP_LCD_DE, | ||
61 | TEGRA_PINGROUP_LCD_HSYNC, | ||
62 | TEGRA_PINGROUP_LCD_VSYNC, | ||
63 | TEGRA_PINGROUP_LCD_D0, | ||
64 | TEGRA_PINGROUP_LCD_D1, | ||
65 | TEGRA_PINGROUP_LCD_D2, | ||
66 | TEGRA_PINGROUP_LCD_D3, | ||
67 | TEGRA_PINGROUP_LCD_D4, | ||
68 | TEGRA_PINGROUP_LCD_D5, | ||
69 | TEGRA_PINGROUP_LCD_D6, | ||
70 | TEGRA_PINGROUP_LCD_D7, | ||
71 | TEGRA_PINGROUP_LCD_D8, | ||
72 | TEGRA_PINGROUP_LCD_D9, | ||
73 | TEGRA_PINGROUP_LCD_D10, | ||
74 | TEGRA_PINGROUP_LCD_D11, | ||
75 | TEGRA_PINGROUP_LCD_D12, | ||
76 | TEGRA_PINGROUP_LCD_D13, | ||
77 | TEGRA_PINGROUP_LCD_D14, | ||
78 | TEGRA_PINGROUP_LCD_D15, | ||
79 | TEGRA_PINGROUP_LCD_D16, | ||
80 | TEGRA_PINGROUP_LCD_D17, | ||
81 | TEGRA_PINGROUP_LCD_D18, | ||
82 | TEGRA_PINGROUP_LCD_D19, | ||
83 | TEGRA_PINGROUP_LCD_D20, | ||
84 | TEGRA_PINGROUP_LCD_D21, | ||
85 | TEGRA_PINGROUP_LCD_D22, | ||
86 | TEGRA_PINGROUP_LCD_D23, | ||
87 | TEGRA_PINGROUP_LCD_CS1_N, | ||
88 | TEGRA_PINGROUP_LCD_M1, | ||
89 | TEGRA_PINGROUP_LCD_DC1, | ||
90 | TEGRA_PINGROUP_HDMI_INT, | ||
91 | TEGRA_PINGROUP_DDC_SCL, | ||
92 | TEGRA_PINGROUP_DDC_SDA, | ||
93 | TEGRA_PINGROUP_CRT_HSYNC, | ||
94 | TEGRA_PINGROUP_CRT_VSYNC, | ||
95 | TEGRA_PINGROUP_VI_D0, | ||
96 | TEGRA_PINGROUP_VI_D1, | ||
97 | TEGRA_PINGROUP_VI_D2, | ||
98 | TEGRA_PINGROUP_VI_D3, | ||
99 | TEGRA_PINGROUP_VI_D4, | ||
100 | TEGRA_PINGROUP_VI_D5, | ||
101 | TEGRA_PINGROUP_VI_D6, | ||
102 | TEGRA_PINGROUP_VI_D7, | ||
103 | TEGRA_PINGROUP_VI_D8, | ||
104 | TEGRA_PINGROUP_VI_D9, | ||
105 | TEGRA_PINGROUP_VI_D10, | ||
106 | TEGRA_PINGROUP_VI_D11, | ||
107 | TEGRA_PINGROUP_VI_PCLK, | ||
108 | TEGRA_PINGROUP_VI_MCLK, | ||
109 | TEGRA_PINGROUP_VI_VSYNC, | ||
110 | TEGRA_PINGROUP_VI_HSYNC, | ||
111 | TEGRA_PINGROUP_UART2_RXD, | ||
112 | TEGRA_PINGROUP_UART2_TXD, | ||
113 | TEGRA_PINGROUP_UART2_RTS_N, | ||
114 | TEGRA_PINGROUP_UART2_CTS_N, | ||
115 | TEGRA_PINGROUP_UART3_TXD, | ||
116 | TEGRA_PINGROUP_UART3_RXD, | ||
117 | TEGRA_PINGROUP_UART3_CTS_N, | ||
118 | TEGRA_PINGROUP_UART3_RTS_N, | ||
119 | TEGRA_PINGROUP_GPIO_PU0, | ||
120 | TEGRA_PINGROUP_GPIO_PU1, | ||
121 | TEGRA_PINGROUP_GPIO_PU2, | ||
122 | TEGRA_PINGROUP_GPIO_PU3, | ||
123 | TEGRA_PINGROUP_GPIO_PU4, | ||
124 | TEGRA_PINGROUP_GPIO_PU5, | ||
125 | TEGRA_PINGROUP_GPIO_PU6, | ||
126 | TEGRA_PINGROUP_GEN1_I2C_SDA, | ||
127 | TEGRA_PINGROUP_GEN1_I2C_SCL, | ||
128 | TEGRA_PINGROUP_DAP4_FS, | ||
129 | TEGRA_PINGROUP_DAP4_DIN, | ||
130 | TEGRA_PINGROUP_DAP4_DOUT, | ||
131 | TEGRA_PINGROUP_DAP4_SCLK, | ||
132 | TEGRA_PINGROUP_CLK3_OUT, | ||
133 | TEGRA_PINGROUP_CLK3_REQ, | ||
134 | TEGRA_PINGROUP_GMI_WP_N, | ||
135 | TEGRA_PINGROUP_GMI_IORDY, | ||
136 | TEGRA_PINGROUP_GMI_WAIT, | ||
137 | TEGRA_PINGROUP_GMI_ADV_N, | ||
138 | TEGRA_PINGROUP_GMI_CLK, | ||
139 | TEGRA_PINGROUP_GMI_CS0_N, | ||
140 | TEGRA_PINGROUP_GMI_CS1_N, | ||
141 | TEGRA_PINGROUP_GMI_CS2_N, | ||
142 | TEGRA_PINGROUP_GMI_CS3_N, | ||
143 | TEGRA_PINGROUP_GMI_CS4_N, | ||
144 | TEGRA_PINGROUP_GMI_CS6_N, | ||
145 | TEGRA_PINGROUP_GMI_CS7_N, | ||
146 | TEGRA_PINGROUP_GMI_AD0, | ||
147 | TEGRA_PINGROUP_GMI_AD1, | ||
148 | TEGRA_PINGROUP_GMI_AD2, | ||
149 | TEGRA_PINGROUP_GMI_AD3, | ||
150 | TEGRA_PINGROUP_GMI_AD4, | ||
151 | TEGRA_PINGROUP_GMI_AD5, | ||
152 | TEGRA_PINGROUP_GMI_AD6, | ||
153 | TEGRA_PINGROUP_GMI_AD7, | ||
154 | TEGRA_PINGROUP_GMI_AD8, | ||
155 | TEGRA_PINGROUP_GMI_AD9, | ||
156 | TEGRA_PINGROUP_GMI_AD10, | ||
157 | TEGRA_PINGROUP_GMI_AD11, | ||
158 | TEGRA_PINGROUP_GMI_AD12, | ||
159 | TEGRA_PINGROUP_GMI_AD13, | ||
160 | TEGRA_PINGROUP_GMI_AD14, | ||
161 | TEGRA_PINGROUP_GMI_AD15, | ||
162 | TEGRA_PINGROUP_GMI_A16, | ||
163 | TEGRA_PINGROUP_GMI_A17, | ||
164 | TEGRA_PINGROUP_GMI_A18, | ||
165 | TEGRA_PINGROUP_GMI_A19, | ||
166 | TEGRA_PINGROUP_GMI_WR_N, | ||
167 | TEGRA_PINGROUP_GMI_OE_N, | ||
168 | TEGRA_PINGROUP_GMI_DQS, | ||
169 | TEGRA_PINGROUP_GMI_RST_N, | ||
170 | TEGRA_PINGROUP_GEN2_I2C_SCL, | ||
171 | TEGRA_PINGROUP_GEN2_I2C_SDA, | ||
172 | TEGRA_PINGROUP_SDMMC4_CLK, | ||
173 | TEGRA_PINGROUP_SDMMC4_CMD, | ||
174 | TEGRA_PINGROUP_SDMMC4_DAT0, | ||
175 | TEGRA_PINGROUP_SDMMC4_DAT1, | ||
176 | TEGRA_PINGROUP_SDMMC4_DAT2, | ||
177 | TEGRA_PINGROUP_SDMMC4_DAT3, | ||
178 | TEGRA_PINGROUP_SDMMC4_DAT4, | ||
179 | TEGRA_PINGROUP_SDMMC4_DAT5, | ||
180 | TEGRA_PINGROUP_SDMMC4_DAT6, | ||
181 | TEGRA_PINGROUP_SDMMC4_DAT7, | ||
182 | TEGRA_PINGROUP_SDMMC4_RST_N, | ||
183 | TEGRA_PINGROUP_CAM_MCLK, | ||
184 | TEGRA_PINGROUP_GPIO_PCC1, | ||
185 | TEGRA_PINGROUP_GPIO_PBB0, | ||
186 | TEGRA_PINGROUP_CAM_I2C_SCL, | ||
187 | TEGRA_PINGROUP_CAM_I2C_SDA, | ||
188 | TEGRA_PINGROUP_GPIO_PBB3, | ||
189 | TEGRA_PINGROUP_GPIO_PBB4, | ||
190 | TEGRA_PINGROUP_GPIO_PBB5, | ||
191 | TEGRA_PINGROUP_GPIO_PBB6, | ||
192 | TEGRA_PINGROUP_GPIO_PBB7, | ||
193 | TEGRA_PINGROUP_GPIO_PCC2, | ||
194 | TEGRA_PINGROUP_JTAG_RTCK, | ||
195 | TEGRA_PINGROUP_PWR_I2C_SCL, | ||
196 | TEGRA_PINGROUP_PWR_I2C_SDA, | ||
197 | TEGRA_PINGROUP_KB_ROW0, | ||
198 | TEGRA_PINGROUP_KB_ROW1, | ||
199 | TEGRA_PINGROUP_KB_ROW2, | ||
200 | TEGRA_PINGROUP_KB_ROW3, | ||
201 | TEGRA_PINGROUP_KB_ROW4, | ||
202 | TEGRA_PINGROUP_KB_ROW5, | ||
203 | TEGRA_PINGROUP_KB_ROW6, | ||
204 | TEGRA_PINGROUP_KB_ROW7, | ||
205 | TEGRA_PINGROUP_KB_ROW8, | ||
206 | TEGRA_PINGROUP_KB_ROW9, | ||
207 | TEGRA_PINGROUP_KB_ROW10, | ||
208 | TEGRA_PINGROUP_KB_ROW11, | ||
209 | TEGRA_PINGROUP_KB_ROW12, | ||
210 | TEGRA_PINGROUP_KB_ROW13, | ||
211 | TEGRA_PINGROUP_KB_ROW14, | ||
212 | TEGRA_PINGROUP_KB_ROW15, | ||
213 | TEGRA_PINGROUP_KB_COL0, | ||
214 | TEGRA_PINGROUP_KB_COL1, | ||
215 | TEGRA_PINGROUP_KB_COL2, | ||
216 | TEGRA_PINGROUP_KB_COL3, | ||
217 | TEGRA_PINGROUP_KB_COL4, | ||
218 | TEGRA_PINGROUP_KB_COL5, | ||
219 | TEGRA_PINGROUP_KB_COL6, | ||
220 | TEGRA_PINGROUP_KB_COL7, | ||
221 | TEGRA_PINGROUP_CLK_32K_OUT, | ||
222 | TEGRA_PINGROUP_SYS_CLK_REQ, | ||
223 | TEGRA_PINGROUP_CORE_PWR_REQ, | ||
224 | TEGRA_PINGROUP_CPU_PWR_REQ, | ||
225 | TEGRA_PINGROUP_PWR_INT_N, | ||
226 | TEGRA_PINGROUP_CLK_32K_IN, | ||
227 | TEGRA_PINGROUP_OWR, | ||
228 | TEGRA_PINGROUP_DAP1_FS, | ||
229 | TEGRA_PINGROUP_DAP1_DIN, | ||
230 | TEGRA_PINGROUP_DAP1_DOUT, | ||
231 | TEGRA_PINGROUP_DAP1_SCLK, | ||
232 | TEGRA_PINGROUP_CLK1_REQ, | ||
233 | TEGRA_PINGROUP_CLK1_OUT, | ||
234 | TEGRA_PINGROUP_SPDIF_IN, | ||
235 | TEGRA_PINGROUP_SPDIF_OUT, | ||
236 | TEGRA_PINGROUP_DAP2_FS, | ||
237 | TEGRA_PINGROUP_DAP2_DIN, | ||
238 | TEGRA_PINGROUP_DAP2_DOUT, | ||
239 | TEGRA_PINGROUP_DAP2_SCLK, | ||
240 | TEGRA_PINGROUP_SPI2_MOSI, | ||
241 | TEGRA_PINGROUP_SPI2_MISO, | ||
242 | TEGRA_PINGROUP_SPI2_CS0_N, | ||
243 | TEGRA_PINGROUP_SPI2_SCK, | ||
244 | TEGRA_PINGROUP_SPI1_MOSI, | ||
245 | TEGRA_PINGROUP_SPI1_SCK, | ||
246 | TEGRA_PINGROUP_SPI1_CS0_N, | ||
247 | TEGRA_PINGROUP_SPI1_MISO, | ||
248 | TEGRA_PINGROUP_SPI2_CS1_N, | ||
249 | TEGRA_PINGROUP_SPI2_CS2_N, | ||
250 | TEGRA_PINGROUP_SDMMC3_CLK, | ||
251 | TEGRA_PINGROUP_SDMMC3_CMD, | ||
252 | TEGRA_PINGROUP_SDMMC3_DAT0, | ||
253 | TEGRA_PINGROUP_SDMMC3_DAT1, | ||
254 | TEGRA_PINGROUP_SDMMC3_DAT2, | ||
255 | TEGRA_PINGROUP_SDMMC3_DAT3, | ||
256 | TEGRA_PINGROUP_SDMMC3_DAT4, | ||
257 | TEGRA_PINGROUP_SDMMC3_DAT5, | ||
258 | TEGRA_PINGROUP_SDMMC3_DAT6, | ||
259 | TEGRA_PINGROUP_SDMMC3_DAT7, | ||
260 | TEGRA_PINGROUP_PEX_L0_PRSNT_N, | ||
261 | TEGRA_PINGROUP_PEX_L0_RST_N, | ||
262 | TEGRA_PINGROUP_PEX_L0_CLKREQ_N, | ||
263 | TEGRA_PINGROUP_PEX_WAKE_N, | ||
264 | TEGRA_PINGROUP_PEX_L1_PRSNT_N, | ||
265 | TEGRA_PINGROUP_PEX_L1_RST_N, | ||
266 | TEGRA_PINGROUP_PEX_L1_CLKREQ_N, | ||
267 | TEGRA_PINGROUP_PEX_L2_PRSNT_N, | ||
268 | TEGRA_PINGROUP_PEX_L2_RST_N, | ||
269 | TEGRA_PINGROUP_PEX_L2_CLKREQ_N, | ||
270 | TEGRA_PINGROUP_HDMI_CEC, | ||
271 | TEGRA_MAX_PINGROUP, | ||
272 | }; | ||
273 | |||
274 | enum tegra_drive_pingroup { | ||
275 | TEGRA_DRIVE_PINGROUP_AO1 = 0, | ||
276 | TEGRA_DRIVE_PINGROUP_AO2, | ||
277 | TEGRA_DRIVE_PINGROUP_AT1, | ||
278 | TEGRA_DRIVE_PINGROUP_AT2, | ||
279 | TEGRA_DRIVE_PINGROUP_AT3, | ||
280 | TEGRA_DRIVE_PINGROUP_AT4, | ||
281 | TEGRA_DRIVE_PINGROUP_AT5, | ||
282 | TEGRA_DRIVE_PINGROUP_CDEV1, | ||
283 | TEGRA_DRIVE_PINGROUP_CDEV2, | ||
284 | TEGRA_DRIVE_PINGROUP_CSUS, | ||
285 | TEGRA_DRIVE_PINGROUP_DAP1, | ||
286 | TEGRA_DRIVE_PINGROUP_DAP2, | ||
287 | TEGRA_DRIVE_PINGROUP_DAP3, | ||
288 | TEGRA_DRIVE_PINGROUP_DAP4, | ||
289 | TEGRA_DRIVE_PINGROUP_DBG, | ||
290 | TEGRA_DRIVE_PINGROUP_LCD1, | ||
291 | TEGRA_DRIVE_PINGROUP_LCD2, | ||
292 | TEGRA_DRIVE_PINGROUP_SDIO2, | ||
293 | TEGRA_DRIVE_PINGROUP_SDIO3, | ||
294 | TEGRA_DRIVE_PINGROUP_SPI, | ||
295 | TEGRA_DRIVE_PINGROUP_UAA, | ||
296 | TEGRA_DRIVE_PINGROUP_UAB, | ||
297 | TEGRA_DRIVE_PINGROUP_UART2, | ||
298 | TEGRA_DRIVE_PINGROUP_UART3, | ||
299 | TEGRA_DRIVE_PINGROUP_VI1, | ||
300 | TEGRA_DRIVE_PINGROUP_SDIO1, | ||
301 | TEGRA_DRIVE_PINGROUP_CRT, | ||
302 | TEGRA_DRIVE_PINGROUP_DDC, | ||
303 | TEGRA_DRIVE_PINGROUP_GMA, | ||
304 | TEGRA_DRIVE_PINGROUP_GMB, | ||
305 | TEGRA_DRIVE_PINGROUP_GMC, | ||
306 | TEGRA_DRIVE_PINGROUP_GMD, | ||
307 | TEGRA_DRIVE_PINGROUP_GME, | ||
308 | TEGRA_DRIVE_PINGROUP_GMF, | ||
309 | TEGRA_DRIVE_PINGROUP_GMG, | ||
310 | TEGRA_DRIVE_PINGROUP_GMH, | ||
311 | TEGRA_DRIVE_PINGROUP_OWR, | ||
312 | TEGRA_DRIVE_PINGROUP_UAD, | ||
313 | TEGRA_DRIVE_PINGROUP_GPV, | ||
314 | TEGRA_DRIVE_PINGROUP_DEV3, | ||
315 | TEGRA_DRIVE_PINGROUP_CEC, | ||
316 | TEGRA_MAX_DRIVE_PINGROUP, | ||
317 | }; | ||
318 | |||
319 | #endif | ||
320 | |||
diff --git a/arch/arm/mach-tegra/include/mach/pinmux.h b/arch/arm/mach-tegra/include/mach/pinmux.h index bb7dfdb6120..055f1792c8f 100644 --- a/arch/arm/mach-tegra/include/mach/pinmux.h +++ b/arch/arm/mach-tegra/include/mach/pinmux.h | |||
@@ -2,6 +2,7 @@ | |||
2 | * linux/arch/arm/mach-tegra/include/mach/pinmux.h | 2 | * linux/arch/arm/mach-tegra/include/mach/pinmux.h |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Google, Inc. | 4 | * Copyright (C) 2010 Google, Inc. |
5 | * Copyright (C) 2010,2011 Nvidia, Inc. | ||
5 | * | 6 | * |
6 | * This software is licensed under the terms of the GNU General Public | 7 | * This software is licensed under the terms of the GNU General Public |
7 | * License version 2, as published by the Free Software Foundation, and | 8 | * License version 2, as published by the Free Software Foundation, and |
@@ -17,18 +18,13 @@ | |||
17 | #ifndef __MACH_TEGRA_PINMUX_H | 18 | #ifndef __MACH_TEGRA_PINMUX_H |
18 | #define __MACH_TEGRA_PINMUX_H | 19 | #define __MACH_TEGRA_PINMUX_H |
19 | 20 | ||
20 | #if defined(CONFIG_ARCH_TEGRA_2x_SOC) | ||
21 | #include "pinmux-t2.h" | ||
22 | #else | ||
23 | #error "Undefined Tegra architecture" | ||
24 | #endif | ||
25 | |||
26 | enum tegra_mux_func { | 21 | enum tegra_mux_func { |
27 | TEGRA_MUX_RSVD = 0x8000, | 22 | TEGRA_MUX_RSVD = 0x8000, |
28 | TEGRA_MUX_RSVD1 = 0x8000, | 23 | TEGRA_MUX_RSVD1 = 0x8000, |
29 | TEGRA_MUX_RSVD2 = 0x8001, | 24 | TEGRA_MUX_RSVD2 = 0x8001, |
30 | TEGRA_MUX_RSVD3 = 0x8002, | 25 | TEGRA_MUX_RSVD3 = 0x8002, |
31 | TEGRA_MUX_RSVD4 = 0x8003, | 26 | TEGRA_MUX_RSVD4 = 0x8003, |
27 | TEGRA_MUX_INVALID = 0x4000, | ||
32 | TEGRA_MUX_NONE = -1, | 28 | TEGRA_MUX_NONE = -1, |
33 | TEGRA_MUX_AHB_CLK, | 29 | TEGRA_MUX_AHB_CLK, |
34 | TEGRA_MUX_APB_CLK, | 30 | TEGRA_MUX_APB_CLK, |
@@ -90,6 +86,49 @@ enum tegra_mux_func { | |||
90 | TEGRA_MUX_VI, | 86 | TEGRA_MUX_VI, |
91 | TEGRA_MUX_VI_SENSOR_CLK, | 87 | TEGRA_MUX_VI_SENSOR_CLK, |
92 | TEGRA_MUX_XIO, | 88 | TEGRA_MUX_XIO, |
89 | TEGRA_MUX_BLINK, | ||
90 | TEGRA_MUX_CEC, | ||
91 | TEGRA_MUX_CLK12, | ||
92 | TEGRA_MUX_DAP, | ||
93 | TEGRA_MUX_DAPSDMMC2, | ||
94 | TEGRA_MUX_DDR, | ||
95 | TEGRA_MUX_DEV3, | ||
96 | TEGRA_MUX_DTV, | ||
97 | TEGRA_MUX_VI_ALT1, | ||
98 | TEGRA_MUX_VI_ALT2, | ||
99 | TEGRA_MUX_VI_ALT3, | ||
100 | TEGRA_MUX_EMC_DLL, | ||
101 | TEGRA_MUX_EXTPERIPH1, | ||
102 | TEGRA_MUX_EXTPERIPH2, | ||
103 | TEGRA_MUX_EXTPERIPH3, | ||
104 | TEGRA_MUX_GMI_ALT, | ||
105 | TEGRA_MUX_HDA, | ||
106 | TEGRA_MUX_HSI, | ||
107 | TEGRA_MUX_I2C4, | ||
108 | TEGRA_MUX_I2C5, | ||
109 | TEGRA_MUX_I2CPWR, | ||
110 | TEGRA_MUX_I2S0, | ||
111 | TEGRA_MUX_I2S1, | ||
112 | TEGRA_MUX_I2S2, | ||
113 | TEGRA_MUX_I2S3, | ||
114 | TEGRA_MUX_I2S4, | ||
115 | TEGRA_MUX_NAND_ALT, | ||
116 | TEGRA_MUX_POPSDIO4, | ||
117 | TEGRA_MUX_POPSDMMC4, | ||
118 | TEGRA_MUX_PWM0, | ||
119 | TEGRA_MUX_PWM1, | ||
120 | TEGRA_MUX_PWM2, | ||
121 | TEGRA_MUX_PWM3, | ||
122 | TEGRA_MUX_SATA, | ||
123 | TEGRA_MUX_SPI5, | ||
124 | TEGRA_MUX_SPI6, | ||
125 | TEGRA_MUX_SYSCLK, | ||
126 | TEGRA_MUX_VGP1, | ||
127 | TEGRA_MUX_VGP2, | ||
128 | TEGRA_MUX_VGP3, | ||
129 | TEGRA_MUX_VGP4, | ||
130 | TEGRA_MUX_VGP5, | ||
131 | TEGRA_MUX_VGP6, | ||
93 | TEGRA_MUX_SAFE, | 132 | TEGRA_MUX_SAFE, |
94 | TEGRA_MAX_MUX, | 133 | TEGRA_MAX_MUX, |
95 | }; | 134 | }; |
@@ -105,6 +144,11 @@ enum tegra_tristate { | |||
105 | TEGRA_TRI_TRISTATE = 1, | 144 | TEGRA_TRI_TRISTATE = 1, |
106 | }; | 145 | }; |
107 | 146 | ||
147 | enum tegra_pin_io { | ||
148 | TEGRA_PIN_OUTPUT = 0, | ||
149 | TEGRA_PIN_INPUT = 1, | ||
150 | }; | ||
151 | |||
108 | enum tegra_vddio { | 152 | enum tegra_vddio { |
109 | TEGRA_VDDIO_BB = 0, | 153 | TEGRA_VDDIO_BB = 0, |
110 | TEGRA_VDDIO_LCD, | 154 | TEGRA_VDDIO_LCD, |
@@ -115,10 +159,16 @@ enum tegra_vddio { | |||
115 | TEGRA_VDDIO_SYS, | 159 | TEGRA_VDDIO_SYS, |
116 | TEGRA_VDDIO_AUDIO, | 160 | TEGRA_VDDIO_AUDIO, |
117 | TEGRA_VDDIO_SD, | 161 | TEGRA_VDDIO_SD, |
162 | TEGRA_VDDIO_CAM, | ||
163 | TEGRA_VDDIO_GMI, | ||
164 | TEGRA_VDDIO_PEXCTL, | ||
165 | TEGRA_VDDIO_SDMMC1, | ||
166 | TEGRA_VDDIO_SDMMC3, | ||
167 | TEGRA_VDDIO_SDMMC4, | ||
118 | }; | 168 | }; |
119 | 169 | ||
120 | struct tegra_pingroup_config { | 170 | struct tegra_pingroup_config { |
121 | enum tegra_pingroup pingroup; | 171 | int pingroup; |
122 | enum tegra_mux_func func; | 172 | enum tegra_mux_func func; |
123 | enum tegra_pullupdown pupd; | 173 | enum tegra_pullupdown pupd; |
124 | enum tegra_tristate tristate; | 174 | enum tegra_tristate tristate; |
@@ -187,7 +237,7 @@ enum tegra_schmitt { | |||
187 | }; | 237 | }; |
188 | 238 | ||
189 | struct tegra_drive_pingroup_config { | 239 | struct tegra_drive_pingroup_config { |
190 | enum tegra_drive_pingroup pingroup; | 240 | int pingroup; |
191 | enum tegra_hsm hsm; | 241 | enum tegra_hsm hsm; |
192 | enum tegra_schmitt schmitt; | 242 | enum tegra_schmitt schmitt; |
193 | enum tegra_drive drive; | 243 | enum tegra_drive drive; |
@@ -208,6 +258,7 @@ struct tegra_pingroup_desc { | |||
208 | int funcs[4]; | 258 | int funcs[4]; |
209 | int func_safe; | 259 | int func_safe; |
210 | int vddio; | 260 | int vddio; |
261 | enum tegra_pin_io io_default; | ||
211 | s16 tri_bank; /* Register bank the tri_reg exists within */ | 262 | s16 tri_bank; /* Register bank the tri_reg exists within */ |
212 | s16 mux_bank; /* Register bank the mux_reg exists within */ | 263 | s16 mux_bank; /* Register bank the mux_reg exists within */ |
213 | s16 pupd_bank; /* Register bank the pupd_reg exists within */ | 264 | s16 pupd_bank; /* Register bank the pupd_reg exists within */ |
@@ -217,15 +268,23 @@ struct tegra_pingroup_desc { | |||
217 | s8 tri_bit; /* offset into the TRISTATE_REG_* register bit */ | 268 | s8 tri_bit; /* offset into the TRISTATE_REG_* register bit */ |
218 | s8 mux_bit; /* offset into the PIN_MUX_CTL_* register bit */ | 269 | s8 mux_bit; /* offset into the PIN_MUX_CTL_* register bit */ |
219 | s8 pupd_bit; /* offset into the PULL_UPDOWN_REG_* register bit */ | 270 | s8 pupd_bit; /* offset into the PULL_UPDOWN_REG_* register bit */ |
271 | s8 lock_bit; /* offset of the LOCK bit into mux register bit */ | ||
272 | s8 od_bit; /* offset of the OD bit into mux register bit */ | ||
273 | s8 ioreset_bit; /* offset of the IO_RESET bit into mux register bit */ | ||
220 | }; | 274 | }; |
221 | 275 | ||
222 | extern const struct tegra_pingroup_desc tegra_soc_pingroups[]; | 276 | typedef void (*pinmux_init) (const struct tegra_pingroup_desc **pg, |
223 | extern const struct tegra_drive_pingroup_desc tegra_soc_drive_pingroups[]; | 277 | int *pg_max, const struct tegra_drive_pingroup_desc **pgdrive, |
278 | int *pgdrive_max); | ||
224 | 279 | ||
225 | int tegra_pinmux_set_tristate(enum tegra_pingroup pg, | 280 | void tegra20_pinmux_init(const struct tegra_pingroup_desc **pg, int *pg_max, |
226 | enum tegra_tristate tristate); | 281 | const struct tegra_drive_pingroup_desc **pgdrive, int *pgdrive_max); |
227 | int tegra_pinmux_set_pullupdown(enum tegra_pingroup pg, | 282 | |
228 | enum tegra_pullupdown pupd); | 283 | void tegra30_pinmux_init(const struct tegra_pingroup_desc **pg, int *pg_max, |
284 | const struct tegra_drive_pingroup_desc **pgdrive, int *pgdrive_max); | ||
285 | |||
286 | int tegra_pinmux_set_tristate(int pg, enum tegra_tristate tristate); | ||
287 | int tegra_pinmux_set_pullupdown(int pg, enum tegra_pullupdown pupd); | ||
229 | 288 | ||
230 | void tegra_pinmux_config_table(const struct tegra_pingroup_config *config, | 289 | void tegra_pinmux_config_table(const struct tegra_pingroup_config *config, |
231 | int len); | 290 | int len); |
@@ -241,4 +300,3 @@ void tegra_pinmux_config_tristate_table(const struct tegra_pingroup_config *conf | |||
241 | void tegra_pinmux_config_pullupdown_table(const struct tegra_pingroup_config *config, | 300 | void tegra_pinmux_config_pullupdown_table(const struct tegra_pingroup_config *config, |
242 | int len, enum tegra_pullupdown pupd); | 301 | int len, enum tegra_pullupdown pupd); |
243 | #endif | 302 | #endif |
244 | |||
diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c index 8ad82af6a29..4e1afcd54fa 100644 --- a/arch/arm/mach-tegra/irq.c +++ b/arch/arm/mach-tegra/irq.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/irq.h> | 22 | #include <linux/irq.h> |
23 | #include <linux/io.h> | 23 | #include <linux/io.h> |
24 | #include <linux/of.h> | ||
24 | 25 | ||
25 | #include <asm/hardware/gic.h> | 26 | #include <asm/hardware/gic.h> |
26 | 27 | ||
@@ -125,6 +126,11 @@ void __init tegra_init_irq(void) | |||
125 | gic_arch_extn.irq_unmask = tegra_unmask; | 126 | gic_arch_extn.irq_unmask = tegra_unmask; |
126 | gic_arch_extn.irq_retrigger = tegra_retrigger; | 127 | gic_arch_extn.irq_retrigger = tegra_retrigger; |
127 | 128 | ||
128 | gic_init(0, 29, IO_ADDRESS(TEGRA_ARM_INT_DIST_BASE), | 129 | /* |
129 | IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x100)); | 130 | * Check if there is a devicetree present, since the GIC will be |
131 | * initialized elsewhere under DT. | ||
132 | */ | ||
133 | if (!of_have_populated_dt()) | ||
134 | gic_init(0, 29, IO_ADDRESS(TEGRA_ARM_INT_DIST_BASE), | ||
135 | IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x100)); | ||
130 | } | 136 | } |
diff --git a/arch/arm/mach-tegra/pcie.c b/arch/arm/mach-tegra/pcie.c index 97ef3e55dfd..ec63c6b2b6b 100644 --- a/arch/arm/mach-tegra/pcie.c +++ b/arch/arm/mach-tegra/pcie.c | |||
@@ -37,7 +37,6 @@ | |||
37 | #include <asm/sizes.h> | 37 | #include <asm/sizes.h> |
38 | #include <asm/mach/pci.h> | 38 | #include <asm/mach/pci.h> |
39 | 39 | ||
40 | #include <mach/pinmux.h> | ||
41 | #include <mach/iomap.h> | 40 | #include <mach/iomap.h> |
42 | #include <mach/clk.h> | 41 | #include <mach/clk.h> |
43 | #include <mach/powergate.h> | 42 | #include <mach/powergate.h> |
diff --git a/arch/arm/mach-tegra/pinmux-t2-tables.c b/arch/arm/mach-tegra/pinmux-tegra20-tables.c index a0dc2bc28ed..734add1280b 100644 --- a/arch/arm/mach-tegra/pinmux-t2-tables.c +++ b/arch/arm/mach-tegra/pinmux-tegra20-tables.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-tegra/pinmux-t2-tables.c | 2 | * linux/arch/arm/mach-tegra/pinmux-tegra20-tables.c |
3 | * | 3 | * |
4 | * Common pinmux configurations for Tegra 2 SoCs | 4 | * Common pinmux configurations for Tegra20 SoCs |
5 | * | 5 | * |
6 | * Copyright (C) 2010 NVIDIA Corporation | 6 | * Copyright (C) 2010 NVIDIA Corporation |
7 | * | 7 | * |
@@ -29,6 +29,7 @@ | |||
29 | 29 | ||
30 | #include <mach/iomap.h> | 30 | #include <mach/iomap.h> |
31 | #include <mach/pinmux.h> | 31 | #include <mach/pinmux.h> |
32 | #include <mach/pinmux-tegra20.h> | ||
32 | #include <mach/suspend.h> | 33 | #include <mach/suspend.h> |
33 | 34 | ||
34 | #define TRISTATE_REG_A 0x14 | 35 | #define TRISTATE_REG_A 0x14 |
@@ -43,7 +44,7 @@ | |||
43 | .reg = ((r) - PINGROUP_REG_A) \ | 44 | .reg = ((r) - PINGROUP_REG_A) \ |
44 | } | 45 | } |
45 | 46 | ||
46 | const struct tegra_drive_pingroup_desc tegra_soc_drive_pingroups[TEGRA_MAX_DRIVE_PINGROUP] = { | 47 | static const struct tegra_drive_pingroup_desc tegra_soc_drive_pingroups[TEGRA_MAX_DRIVE_PINGROUP] = { |
47 | DRIVE_PINGROUP(AO1, 0x868), | 48 | DRIVE_PINGROUP(AO1, 0x868), |
48 | DRIVE_PINGROUP(AO2, 0x86c), | 49 | DRIVE_PINGROUP(AO2, 0x86c), |
49 | DRIVE_PINGROUP(AT1, 0x870), | 50 | DRIVE_PINGROUP(AT1, 0x870), |
@@ -105,9 +106,13 @@ const struct tegra_drive_pingroup_desc tegra_soc_drive_pingroups[TEGRA_MAX_DRIVE | |||
105 | .pupd_bank = 2, \ | 106 | .pupd_bank = 2, \ |
106 | .pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A), \ | 107 | .pupd_reg = ((pupd_r) - PULLUPDOWN_REG_A), \ |
107 | .pupd_bit = pupd_b, \ | 108 | .pupd_bit = pupd_b, \ |
109 | .lock_bit = -1, \ | ||
110 | .od_bit = -1, \ | ||
111 | .ioreset_bit = -1, \ | ||
112 | .io_default = -1, \ | ||
108 | } | 113 | } |
109 | 114 | ||
110 | const struct tegra_pingroup_desc tegra_soc_pingroups[TEGRA_MAX_PINGROUP] = { | 115 | static const struct tegra_pingroup_desc tegra_soc_pingroups[TEGRA_MAX_PINGROUP] = { |
111 | PINGROUP(ATA, NAND, IDE, NAND, GMI, RSVD, IDE, 0x14, 0, 0x80, 24, 0xA0, 0), | 116 | PINGROUP(ATA, NAND, IDE, NAND, GMI, RSVD, IDE, 0x14, 0, 0x80, 24, 0xA0, 0), |
112 | PINGROUP(ATB, NAND, IDE, NAND, GMI, SDIO4, IDE, 0x14, 1, 0x80, 16, 0xA0, 2), | 117 | PINGROUP(ATB, NAND, IDE, NAND, GMI, SDIO4, IDE, 0x14, 1, 0x80, 16, 0xA0, 2), |
113 | PINGROUP(ATC, NAND, IDE, NAND, GMI, SDIO4, IDE, 0x14, 2, 0x80, 22, 0xA0, 4), | 118 | PINGROUP(ATC, NAND, IDE, NAND, GMI, SDIO4, IDE, 0x14, 2, 0x80, 22, 0xA0, 4), |
@@ -226,3 +231,14 @@ const struct tegra_pingroup_desc tegra_soc_pingroups[TEGRA_MAX_PINGROUP] = { | |||
226 | PINGROUP(XM2C, DDR, RSVD, RSVD, RSVD, RSVD, RSVD, -1, -1, -1, -1, 0xA8, 30), | 231 | PINGROUP(XM2C, DDR, RSVD, RSVD, RSVD, RSVD, RSVD, -1, -1, -1, -1, 0xA8, 30), |
227 | PINGROUP(XM2D, DDR, RSVD, RSVD, RSVD, RSVD, RSVD, -1, -1, -1, -1, 0xA8, 28), | 232 | PINGROUP(XM2D, DDR, RSVD, RSVD, RSVD, RSVD, RSVD, -1, -1, -1, -1, 0xA8, 28), |
228 | }; | 233 | }; |
234 | |||
235 | void __devinit tegra20_pinmux_init(const struct tegra_pingroup_desc **pg, | ||
236 | int *pg_max, const struct tegra_drive_pingroup_desc **pgdrive, | ||
237 | int *pgdrive_max) | ||
238 | { | ||
239 | *pg = tegra_soc_pingroups; | ||
240 | *pg_max = TEGRA_MAX_PINGROUP; | ||
241 | *pgdrive = tegra_soc_drive_pingroups; | ||
242 | *pgdrive_max = TEGRA_MAX_DRIVE_PINGROUP; | ||
243 | } | ||
244 | |||
diff --git a/arch/arm/mach-tegra/pinmux-tegra30-tables.c b/arch/arm/mach-tegra/pinmux-tegra30-tables.c new file mode 100644 index 00000000000..14fc0e4c1c4 --- /dev/null +++ b/arch/arm/mach-tegra/pinmux-tegra30-tables.c | |||
@@ -0,0 +1,376 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-tegra/pinmux-tegra30-tables.c | ||
3 | * | ||
4 | * Common pinmux configurations for Tegra30 SoCs | ||
5 | * | ||
6 | * Copyright (C) 2010,2011 NVIDIA Corporation | ||
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; either version 2 of the License. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
13 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
14 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
15 | * more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License along | ||
18 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
20 | */ | ||
21 | |||
22 | #include <linux/kernel.h> | ||
23 | #include <linux/errno.h> | ||
24 | #include <linux/spinlock.h> | ||
25 | #include <linux/io.h> | ||
26 | #include <linux/init.h> | ||
27 | #include <linux/string.h> | ||
28 | |||
29 | #include <mach/iomap.h> | ||
30 | #include <mach/pinmux.h> | ||
31 | #include <mach/pinmux-tegra30.h> | ||
32 | #include <mach/suspend.h> | ||
33 | |||
34 | #define PINGROUP_REG_A 0x868 | ||
35 | #define MUXCTL_REG_A 0x3000 | ||
36 | |||
37 | #define DRIVE_PINGROUP(pg_name, r) \ | ||
38 | [TEGRA_DRIVE_PINGROUP_ ## pg_name] = { \ | ||
39 | .name = #pg_name, \ | ||
40 | .reg_bank = 0, \ | ||
41 | .reg = ((r) - PINGROUP_REG_A) \ | ||
42 | } | ||
43 | |||
44 | static const struct tegra_drive_pingroup_desc tegra_soc_drive_pingroups[TEGRA_MAX_DRIVE_PINGROUP] = { | ||
45 | DRIVE_PINGROUP(AO1, 0x868), | ||
46 | DRIVE_PINGROUP(AO2, 0x86c), | ||
47 | DRIVE_PINGROUP(AT1, 0x870), | ||
48 | DRIVE_PINGROUP(AT2, 0x874), | ||
49 | DRIVE_PINGROUP(AT3, 0x878), | ||
50 | DRIVE_PINGROUP(AT4, 0x87c), | ||
51 | DRIVE_PINGROUP(AT5, 0x880), | ||
52 | DRIVE_PINGROUP(CDEV1, 0x884), | ||
53 | DRIVE_PINGROUP(CDEV2, 0x888), | ||
54 | DRIVE_PINGROUP(CSUS, 0x88c), | ||
55 | DRIVE_PINGROUP(DAP1, 0x890), | ||
56 | DRIVE_PINGROUP(DAP2, 0x894), | ||
57 | DRIVE_PINGROUP(DAP3, 0x898), | ||
58 | DRIVE_PINGROUP(DAP4, 0x89c), | ||
59 | DRIVE_PINGROUP(DBG, 0x8a0), | ||
60 | DRIVE_PINGROUP(LCD1, 0x8a4), | ||
61 | DRIVE_PINGROUP(LCD2, 0x8a8), | ||
62 | DRIVE_PINGROUP(SDIO2, 0x8ac), | ||
63 | DRIVE_PINGROUP(SDIO3, 0x8b0), | ||
64 | DRIVE_PINGROUP(SPI, 0x8b4), | ||
65 | DRIVE_PINGROUP(UAA, 0x8b8), | ||
66 | DRIVE_PINGROUP(UAB, 0x8bc), | ||
67 | DRIVE_PINGROUP(UART2, 0x8c0), | ||
68 | DRIVE_PINGROUP(UART3, 0x8c4), | ||
69 | DRIVE_PINGROUP(VI1, 0x8c8), | ||
70 | DRIVE_PINGROUP(SDIO1, 0x8ec), | ||
71 | DRIVE_PINGROUP(CRT, 0x8f8), | ||
72 | DRIVE_PINGROUP(DDC, 0x8fc), | ||
73 | DRIVE_PINGROUP(GMA, 0x900), | ||
74 | DRIVE_PINGROUP(GMB, 0x904), | ||
75 | DRIVE_PINGROUP(GMC, 0x908), | ||
76 | DRIVE_PINGROUP(GMD, 0x90c), | ||
77 | DRIVE_PINGROUP(GME, 0x910), | ||
78 | DRIVE_PINGROUP(GMF, 0x914), | ||
79 | DRIVE_PINGROUP(GMG, 0x918), | ||
80 | DRIVE_PINGROUP(GMH, 0x91c), | ||
81 | DRIVE_PINGROUP(OWR, 0x920), | ||
82 | DRIVE_PINGROUP(UAD, 0x924), | ||
83 | DRIVE_PINGROUP(GPV, 0x928), | ||
84 | DRIVE_PINGROUP(DEV3, 0x92c), | ||
85 | DRIVE_PINGROUP(CEC, 0x938), | ||
86 | }; | ||
87 | |||
88 | #define PINGROUP(pg_name, vdd, f0, f1, f2, f3, fs, iod, reg) \ | ||
89 | [TEGRA_PINGROUP_ ## pg_name] = { \ | ||
90 | .name = #pg_name, \ | ||
91 | .vddio = TEGRA_VDDIO_ ## vdd, \ | ||
92 | .funcs = { \ | ||
93 | TEGRA_MUX_ ## f0, \ | ||
94 | TEGRA_MUX_ ## f1, \ | ||
95 | TEGRA_MUX_ ## f2, \ | ||
96 | TEGRA_MUX_ ## f3, \ | ||
97 | }, \ | ||
98 | .func_safe = TEGRA_MUX_ ## fs, \ | ||
99 | .tri_bank = 1, \ | ||
100 | .tri_reg = ((reg) - MUXCTL_REG_A), \ | ||
101 | .tri_bit = 4, \ | ||
102 | .mux_bank = 1, \ | ||
103 | .mux_reg = ((reg) - MUXCTL_REG_A), \ | ||
104 | .mux_bit = 0, \ | ||
105 | .pupd_bank = 1, \ | ||
106 | .pupd_reg = ((reg) - MUXCTL_REG_A), \ | ||
107 | .pupd_bit = 2, \ | ||
108 | .io_default = TEGRA_PIN_ ## iod, \ | ||
109 | .od_bit = 6, \ | ||
110 | .lock_bit = 7, \ | ||
111 | .ioreset_bit = 8, \ | ||
112 | } | ||
113 | |||
114 | static const struct tegra_pingroup_desc tegra_soc_pingroups[TEGRA_MAX_PINGROUP] = { | ||
115 | /* NAME VDD f0 f1 f2 f3 fSafe io reg */ | ||
116 | PINGROUP(ULPI_DATA0, BB, SPI3, HSI, UARTA, ULPI, RSVD, INPUT, 0x3000), | ||
117 | PINGROUP(ULPI_DATA1, BB, SPI3, HSI, UARTA, ULPI, RSVD, INPUT, 0x3004), | ||
118 | PINGROUP(ULPI_DATA2, BB, SPI3, HSI, UARTA, ULPI, RSVD, INPUT, 0x3008), | ||
119 | PINGROUP(ULPI_DATA3, BB, SPI3, HSI, UARTA, ULPI, RSVD, INPUT, 0x300c), | ||
120 | PINGROUP(ULPI_DATA4, BB, SPI2, HSI, UARTA, ULPI, RSVD, INPUT, 0x3010), | ||
121 | PINGROUP(ULPI_DATA5, BB, SPI2, HSI, UARTA, ULPI, RSVD, INPUT, 0x3014), | ||
122 | PINGROUP(ULPI_DATA6, BB, SPI2, HSI, UARTA, ULPI, RSVD, INPUT, 0x3018), | ||
123 | PINGROUP(ULPI_DATA7, BB, SPI2, HSI, UARTA, ULPI, RSVD, INPUT, 0x301c), | ||
124 | PINGROUP(ULPI_CLK, BB, SPI1, RSVD, UARTD, ULPI, RSVD, INPUT, 0x3020), | ||
125 | PINGROUP(ULPI_DIR, BB, SPI1, RSVD, UARTD, ULPI, RSVD, INPUT, 0x3024), | ||
126 | PINGROUP(ULPI_NXT, BB, SPI1, RSVD, UARTD, ULPI, RSVD, INPUT, 0x3028), | ||
127 | PINGROUP(ULPI_STP, BB, SPI1, RSVD, UARTD, ULPI, RSVD, INPUT, 0x302c), | ||
128 | PINGROUP(DAP3_FS, BB, I2S2, RSVD1, DISPLAYA, DISPLAYB, RSVD, INPUT, 0x3030), | ||
129 | PINGROUP(DAP3_DIN, BB, I2S2, RSVD1, DISPLAYA, DISPLAYB, RSVD, INPUT, 0x3034), | ||
130 | PINGROUP(DAP3_DOUT, BB, I2S2, RSVD1, DISPLAYA, DISPLAYB, RSVD, INPUT, 0x3038), | ||
131 | PINGROUP(DAP3_SCLK, BB, I2S2, RSVD1, DISPLAYA, DISPLAYB, RSVD, INPUT, 0x303c), | ||
132 | PINGROUP(GPIO_PV0, BB, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3040), | ||
133 | PINGROUP(GPIO_PV1, BB, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3044), | ||
134 | PINGROUP(SDMMC1_CLK, SDMMC1, SDIO1, RSVD1, RSVD2, INVALID, RSVD, INPUT, 0x3048), | ||
135 | PINGROUP(SDMMC1_CMD, SDMMC1, SDIO1, RSVD1, RSVD2, INVALID, RSVD, INPUT, 0x304c), | ||
136 | PINGROUP(SDMMC1_DAT3, SDMMC1, SDIO1, RSVD1, UARTE, INVALID, RSVD, INPUT, 0x3050), | ||
137 | PINGROUP(SDMMC1_DAT2, SDMMC1, SDIO1, RSVD1, UARTE, INVALID, RSVD, INPUT, 0x3054), | ||
138 | PINGROUP(SDMMC1_DAT1, SDMMC1, SDIO1, RSVD1, UARTE, INVALID, RSVD, INPUT, 0x3058), | ||
139 | PINGROUP(SDMMC1_DAT0, SDMMC1, SDIO1, RSVD1, UARTE, INVALID, RSVD, INPUT, 0x305c), | ||
140 | PINGROUP(GPIO_PV2, SDMMC1, OWR, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3060), | ||
141 | PINGROUP(GPIO_PV3, SDMMC1, INVALID, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3064), | ||
142 | PINGROUP(CLK2_OUT, SDMMC1, EXTPERIPH2, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3068), | ||
143 | PINGROUP(CLK2_REQ, SDMMC1, DAP, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x306c), | ||
144 | PINGROUP(LCD_PWR1, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3070), | ||
145 | PINGROUP(LCD_PWR2, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x3074), | ||
146 | PINGROUP(LCD_SDIN, LCD, DISPLAYA, DISPLAYB, SPI5, RSVD, RSVD, OUTPUT, 0x3078), | ||
147 | PINGROUP(LCD_SDOUT, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x307c), | ||
148 | PINGROUP(LCD_WR_N, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x3080), | ||
149 | PINGROUP(LCD_CS0_N, LCD, DISPLAYA, DISPLAYB, SPI5, RSVD, RSVD, OUTPUT, 0x3084), | ||
150 | PINGROUP(LCD_DC0, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3088), | ||
151 | PINGROUP(LCD_SCK, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x308c), | ||
152 | PINGROUP(LCD_PWR0, LCD, DISPLAYA, DISPLAYB, SPI5, INVALID, RSVD, OUTPUT, 0x3090), | ||
153 | PINGROUP(LCD_PCLK, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3094), | ||
154 | PINGROUP(LCD_DE, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3098), | ||
155 | PINGROUP(LCD_HSYNC, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x309c), | ||
156 | PINGROUP(LCD_VSYNC, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30a0), | ||
157 | PINGROUP(LCD_D0, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30a4), | ||
158 | PINGROUP(LCD_D1, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30a8), | ||
159 | PINGROUP(LCD_D2, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30ac), | ||
160 | PINGROUP(LCD_D3, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30b0), | ||
161 | PINGROUP(LCD_D4, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30b4), | ||
162 | PINGROUP(LCD_D5, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30b8), | ||
163 | PINGROUP(LCD_D6, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30bc), | ||
164 | PINGROUP(LCD_D7, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30c0), | ||
165 | PINGROUP(LCD_D8, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30c4), | ||
166 | PINGROUP(LCD_D9, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30c8), | ||
167 | PINGROUP(LCD_D10, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30cc), | ||
168 | PINGROUP(LCD_D11, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30d0), | ||
169 | PINGROUP(LCD_D12, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30d4), | ||
170 | PINGROUP(LCD_D13, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30d8), | ||
171 | PINGROUP(LCD_D14, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30dc), | ||
172 | PINGROUP(LCD_D15, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30e0), | ||
173 | PINGROUP(LCD_D16, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30e4), | ||
174 | PINGROUP(LCD_D17, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30e8), | ||
175 | PINGROUP(LCD_D18, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30ec), | ||
176 | PINGROUP(LCD_D19, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30f0), | ||
177 | PINGROUP(LCD_D20, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30f4), | ||
178 | PINGROUP(LCD_D21, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30f8), | ||
179 | PINGROUP(LCD_D22, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x30fc), | ||
180 | PINGROUP(LCD_D23, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3100), | ||
181 | PINGROUP(LCD_CS1_N, LCD, DISPLAYA, DISPLAYB, SPI5, RSVD2, RSVD, OUTPUT, 0x3104), | ||
182 | PINGROUP(LCD_M1, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x3108), | ||
183 | PINGROUP(LCD_DC1, LCD, DISPLAYA, DISPLAYB, RSVD1, RSVD2, RSVD, OUTPUT, 0x310c), | ||
184 | PINGROUP(HDMI_INT, LCD, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3110), | ||
185 | PINGROUP(DDC_SCL, LCD, I2C4, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3114), | ||
186 | PINGROUP(DDC_SDA, LCD, I2C4, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3118), | ||
187 | PINGROUP(CRT_HSYNC, LCD, CRT, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x311c), | ||
188 | PINGROUP(CRT_VSYNC, LCD, CRT, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3120), | ||
189 | PINGROUP(VI_D0, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x3124), | ||
190 | PINGROUP(VI_D1, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3128), | ||
191 | PINGROUP(VI_D2, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x312c), | ||
192 | PINGROUP(VI_D3, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3130), | ||
193 | PINGROUP(VI_D4, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3134), | ||
194 | PINGROUP(VI_D5, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3138), | ||
195 | PINGROUP(VI_D6, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x313c), | ||
196 | PINGROUP(VI_D7, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3140), | ||
197 | PINGROUP(VI_D8, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3144), | ||
198 | PINGROUP(VI_D9, VI, INVALID, SDIO2, VI, RSVD1, RSVD, INPUT, 0x3148), | ||
199 | PINGROUP(VI_D10, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x314c), | ||
200 | PINGROUP(VI_D11, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x3150), | ||
201 | PINGROUP(VI_PCLK, VI, RSVD1, SDIO2, VI, RSVD2, RSVD, INPUT, 0x3154), | ||
202 | PINGROUP(VI_MCLK, VI, VI, INVALID, INVALID, INVALID, RSVD, INPUT, 0x3158), | ||
203 | PINGROUP(VI_VSYNC, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x315c), | ||
204 | PINGROUP(VI_HSYNC, VI, INVALID, RSVD1, VI, RSVD2, RSVD, INPUT, 0x3160), | ||
205 | PINGROUP(UART2_RXD, UART, IRDA, SPDIF, UARTA, SPI4, RSVD, INPUT, 0x3164), | ||
206 | PINGROUP(UART2_TXD, UART, IRDA, SPDIF, UARTA, SPI4, RSVD, INPUT, 0x3168), | ||
207 | PINGROUP(UART2_RTS_N, UART, UARTA, UARTB, GMI, SPI4, RSVD, INPUT, 0x316c), | ||
208 | PINGROUP(UART2_CTS_N, UART, UARTA, UARTB, GMI, SPI4, RSVD, INPUT, 0x3170), | ||
209 | PINGROUP(UART3_TXD, UART, UARTC, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x3174), | ||
210 | PINGROUP(UART3_RXD, UART, UARTC, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x3178), | ||
211 | PINGROUP(UART3_CTS_N, UART, UARTC, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x317c), | ||
212 | PINGROUP(UART3_RTS_N, UART, UARTC, PWM0, GMI, RSVD2, RSVD, INPUT, 0x3180), | ||
213 | PINGROUP(GPIO_PU0, UART, OWR, UARTA, GMI, RSVD1, RSVD, INPUT, 0x3184), | ||
214 | PINGROUP(GPIO_PU1, UART, RSVD1, UARTA, GMI, RSVD2, RSVD, INPUT, 0x3188), | ||
215 | PINGROUP(GPIO_PU2, UART, RSVD1, UARTA, GMI, RSVD2, RSVD, INPUT, 0x318c), | ||
216 | PINGROUP(GPIO_PU3, UART, PWM0, UARTA, GMI, RSVD1, RSVD, INPUT, 0x3190), | ||
217 | PINGROUP(GPIO_PU4, UART, PWM1, UARTA, GMI, RSVD1, RSVD, INPUT, 0x3194), | ||
218 | PINGROUP(GPIO_PU5, UART, PWM2, UARTA, GMI, RSVD1, RSVD, INPUT, 0x3198), | ||
219 | PINGROUP(GPIO_PU6, UART, PWM3, UARTA, GMI, RSVD1, RSVD, INPUT, 0x319c), | ||
220 | PINGROUP(GEN1_I2C_SDA, UART, I2C, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x31a0), | ||
221 | PINGROUP(GEN1_I2C_SCL, UART, I2C, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x31a4), | ||
222 | PINGROUP(DAP4_FS, UART, I2S3, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x31a8), | ||
223 | PINGROUP(DAP4_DIN, UART, I2S3, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x31ac), | ||
224 | PINGROUP(DAP4_DOUT, UART, I2S3, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x31b0), | ||
225 | PINGROUP(DAP4_SCLK, UART, I2S3, RSVD1, GMI, RSVD2, RSVD, INPUT, 0x31b4), | ||
226 | PINGROUP(CLK3_OUT, UART, EXTPERIPH3, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x31b8), | ||
227 | PINGROUP(CLK3_REQ, UART, DEV3, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x31bc), | ||
228 | PINGROUP(GMI_WP_N, GMI, RSVD1, NAND, GMI, GMI_ALT, RSVD, INPUT, 0x31c0), | ||
229 | PINGROUP(GMI_IORDY, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31c4), | ||
230 | PINGROUP(GMI_WAIT, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31c8), | ||
231 | PINGROUP(GMI_ADV_N, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31cc), | ||
232 | PINGROUP(GMI_CLK, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31d0), | ||
233 | PINGROUP(GMI_CS0_N, GMI, RSVD1, NAND, GMI, INVALID, RSVD, INPUT, 0x31d4), | ||
234 | PINGROUP(GMI_CS1_N, GMI, RSVD1, NAND, GMI, DTV, RSVD, INPUT, 0x31d8), | ||
235 | PINGROUP(GMI_CS2_N, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31dc), | ||
236 | PINGROUP(GMI_CS3_N, GMI, RSVD1, NAND, GMI, GMI_ALT, RSVD, INPUT, 0x31e0), | ||
237 | PINGROUP(GMI_CS4_N, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31e4), | ||
238 | PINGROUP(GMI_CS6_N, GMI, NAND, NAND_ALT, GMI, SATA, RSVD, INPUT, 0x31e8), | ||
239 | PINGROUP(GMI_CS7_N, GMI, NAND, NAND_ALT, GMI, GMI_ALT, RSVD, INPUT, 0x31ec), | ||
240 | PINGROUP(GMI_AD0, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31f0), | ||
241 | PINGROUP(GMI_AD1, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31f4), | ||
242 | PINGROUP(GMI_AD2, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31f8), | ||
243 | PINGROUP(GMI_AD3, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x31fc), | ||
244 | PINGROUP(GMI_AD4, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3200), | ||
245 | PINGROUP(GMI_AD5, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3204), | ||
246 | PINGROUP(GMI_AD6, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3208), | ||
247 | PINGROUP(GMI_AD7, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x320c), | ||
248 | PINGROUP(GMI_AD8, GMI, PWM0, NAND, GMI, RSVD2, RSVD, INPUT, 0x3210), | ||
249 | PINGROUP(GMI_AD9, GMI, PWM1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3214), | ||
250 | PINGROUP(GMI_AD10, GMI, PWM2, NAND, GMI, RSVD2, RSVD, INPUT, 0x3218), | ||
251 | PINGROUP(GMI_AD11, GMI, PWM3, NAND, GMI, RSVD2, RSVD, INPUT, 0x321c), | ||
252 | PINGROUP(GMI_AD12, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3220), | ||
253 | PINGROUP(GMI_AD13, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3224), | ||
254 | PINGROUP(GMI_AD14, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x3228), | ||
255 | PINGROUP(GMI_AD15, GMI, RSVD1, NAND, GMI, RSVD2, RSVD, INPUT, 0x322c), | ||
256 | PINGROUP(GMI_A16, GMI, UARTD, SPI4, GMI, GMI_ALT, RSVD, INPUT, 0x3230), | ||
257 | PINGROUP(GMI_A17, GMI, UARTD, SPI4, GMI, INVALID, RSVD, INPUT, 0x3234), | ||
258 | PINGROUP(GMI_A18, GMI, UARTD, SPI4, GMI, INVALID, RSVD, INPUT, 0x3238), | ||
259 | PINGROUP(GMI_A19, GMI, UARTD, SPI4, GMI, RSVD3, RSVD, INPUT, 0x323c), | ||
260 | PINGROUP(GMI_WR_N, GMI, RSVD1, NAND, GMI, RSVD3, RSVD, INPUT, 0x3240), | ||
261 | PINGROUP(GMI_OE_N, GMI, RSVD1, NAND, GMI, RSVD3, RSVD, INPUT, 0x3244), | ||
262 | PINGROUP(GMI_DQS, GMI, RSVD1, NAND, GMI, RSVD3, RSVD, INPUT, 0x3248), | ||
263 | PINGROUP(GMI_RST_N, GMI, NAND, NAND_ALT, GMI, RSVD3, RSVD, INPUT, 0x324c), | ||
264 | PINGROUP(GEN2_I2C_SCL, GMI, I2C2, INVALID, GMI, RSVD3, RSVD, INPUT, 0x3250), | ||
265 | PINGROUP(GEN2_I2C_SDA, GMI, I2C2, INVALID, GMI, RSVD3, RSVD, INPUT, 0x3254), | ||
266 | PINGROUP(SDMMC4_CLK, SDMMC4, INVALID, NAND, GMI, SDIO4, RSVD, INPUT, 0x3258), | ||
267 | PINGROUP(SDMMC4_CMD, SDMMC4, I2C3, NAND, GMI, SDIO4, RSVD, INPUT, 0x325c), | ||
268 | PINGROUP(SDMMC4_DAT0, SDMMC4, UARTE, SPI3, GMI, SDIO4, RSVD, INPUT, 0x3260), | ||
269 | PINGROUP(SDMMC4_DAT1, SDMMC4, UARTE, SPI3, GMI, SDIO4, RSVD, INPUT, 0x3264), | ||
270 | PINGROUP(SDMMC4_DAT2, SDMMC4, UARTE, SPI3, GMI, SDIO4, RSVD, INPUT, 0x3268), | ||
271 | PINGROUP(SDMMC4_DAT3, SDMMC4, UARTE, SPI3, GMI, SDIO4, RSVD, INPUT, 0x326c), | ||
272 | PINGROUP(SDMMC4_DAT4, SDMMC4, I2C3, I2S4, GMI, SDIO4, RSVD, INPUT, 0x3270), | ||
273 | PINGROUP(SDMMC4_DAT5, SDMMC4, VGP3, I2S4, GMI, SDIO4, RSVD, INPUT, 0x3274), | ||
274 | PINGROUP(SDMMC4_DAT6, SDMMC4, VGP4, I2S4, GMI, SDIO4, RSVD, INPUT, 0x3278), | ||
275 | PINGROUP(SDMMC4_DAT7, SDMMC4, VGP5, I2S4, GMI, SDIO4, RSVD, INPUT, 0x327c), | ||
276 | PINGROUP(SDMMC4_RST_N, SDMMC4, VGP6, RSVD1, RSVD2, POPSDMMC4, RSVD, INPUT, 0x3280), | ||
277 | PINGROUP(CAM_MCLK, CAM, VI, INVALID, VI_ALT2, POPSDMMC4, RSVD, INPUT, 0x3284), | ||
278 | PINGROUP(GPIO_PCC1, CAM, I2S4, RSVD1, RSVD2, POPSDMMC4, RSVD, INPUT, 0x3288), | ||
279 | PINGROUP(GPIO_PBB0, CAM, I2S4, RSVD1, RSVD2, POPSDMMC4, RSVD, INPUT, 0x328c), | ||
280 | PINGROUP(CAM_I2C_SCL, CAM, INVALID, I2C3, RSVD2, POPSDMMC4, RSVD, INPUT, 0x3290), | ||
281 | PINGROUP(CAM_I2C_SDA, CAM, INVALID, I2C3, RSVD2, POPSDMMC4, RSVD, INPUT, 0x3294), | ||
282 | PINGROUP(GPIO_PBB3, CAM, VGP3, DISPLAYA, DISPLAYB, POPSDMMC4, RSVD, INPUT, 0x3298), | ||
283 | PINGROUP(GPIO_PBB4, CAM, VGP4, DISPLAYA, DISPLAYB, POPSDMMC4, RSVD, INPUT, 0x329c), | ||
284 | PINGROUP(GPIO_PBB5, CAM, VGP5, DISPLAYA, DISPLAYB, POPSDMMC4, RSVD, INPUT, 0x32a0), | ||
285 | PINGROUP(GPIO_PBB6, CAM, VGP6, DISPLAYA, DISPLAYB, POPSDMMC4, RSVD, INPUT, 0x32a4), | ||
286 | PINGROUP(GPIO_PBB7, CAM, I2S4, RSVD1, RSVD2, POPSDMMC4, RSVD, INPUT, 0x32a8), | ||
287 | PINGROUP(GPIO_PCC2, CAM, I2S4, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x32ac), | ||
288 | PINGROUP(JTAG_RTCK, SYS, RTCK, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x32b0), | ||
289 | PINGROUP(PWR_I2C_SCL, SYS, I2CPWR, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x32b4), | ||
290 | PINGROUP(PWR_I2C_SDA, SYS, I2CPWR, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x32b8), | ||
291 | PINGROUP(KB_ROW0, SYS, KBC, INVALID, RSVD2, RSVD3, RSVD, INPUT, 0x32bc), | ||
292 | PINGROUP(KB_ROW1, SYS, KBC, INVALID, RSVD2, RSVD3, RSVD, INPUT, 0x32c0), | ||
293 | PINGROUP(KB_ROW2, SYS, KBC, INVALID, RSVD2, RSVD3, RSVD, INPUT, 0x32c4), | ||
294 | PINGROUP(KB_ROW3, SYS, KBC, INVALID, RSVD2, INVALID, RSVD, INPUT, 0x32c8), | ||
295 | PINGROUP(KB_ROW4, SYS, KBC, INVALID, TRACE, RSVD3, RSVD, INPUT, 0x32cc), | ||
296 | PINGROUP(KB_ROW5, SYS, KBC, INVALID, TRACE, OWR, RSVD, INPUT, 0x32d0), | ||
297 | PINGROUP(KB_ROW6, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32d4), | ||
298 | PINGROUP(KB_ROW7, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32d8), | ||
299 | PINGROUP(KB_ROW8, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32dc), | ||
300 | PINGROUP(KB_ROW9, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32e0), | ||
301 | PINGROUP(KB_ROW10, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32e4), | ||
302 | PINGROUP(KB_ROW11, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32e8), | ||
303 | PINGROUP(KB_ROW12, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32ec), | ||
304 | PINGROUP(KB_ROW13, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32f0), | ||
305 | PINGROUP(KB_ROW14, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32f4), | ||
306 | PINGROUP(KB_ROW15, SYS, KBC, INVALID, SDIO2, INVALID, RSVD, INPUT, 0x32f8), | ||
307 | PINGROUP(KB_COL0, SYS, KBC, INVALID, TRACE, INVALID, RSVD, INPUT, 0x32fc), | ||
308 | PINGROUP(KB_COL1, SYS, KBC, INVALID, TRACE, INVALID, RSVD, INPUT, 0x3300), | ||
309 | PINGROUP(KB_COL2, SYS, KBC, INVALID, TRACE, RSVD, RSVD, INPUT, 0x3304), | ||
310 | PINGROUP(KB_COL3, SYS, KBC, INVALID, TRACE, RSVD, RSVD, INPUT, 0x3308), | ||
311 | PINGROUP(KB_COL4, SYS, KBC, INVALID, TRACE, RSVD, RSVD, INPUT, 0x330c), | ||
312 | PINGROUP(KB_COL5, SYS, KBC, INVALID, TRACE, RSVD, RSVD, INPUT, 0x3310), | ||
313 | PINGROUP(KB_COL6, SYS, KBC, INVALID, TRACE, INVALID, RSVD, INPUT, 0x3314), | ||
314 | PINGROUP(KB_COL7, SYS, KBC, INVALID, TRACE, INVALID, RSVD, INPUT, 0x3318), | ||
315 | PINGROUP(CLK_32K_OUT, SYS, BLINK, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x331c), | ||
316 | PINGROUP(SYS_CLK_REQ, SYS, SYSCLK, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x3320), | ||
317 | PINGROUP(CORE_PWR_REQ, SYS, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3324), | ||
318 | PINGROUP(CPU_PWR_REQ, SYS, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3328), | ||
319 | PINGROUP(PWR_INT_N, SYS, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x332c), | ||
320 | PINGROUP(CLK_32K_IN, SYS, RSVD, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3330), | ||
321 | PINGROUP(OWR, SYS, OWR, RSVD, RSVD, RSVD, RSVD, INPUT, 0x3334), | ||
322 | PINGROUP(DAP1_FS, AUDIO, I2S0, HDA, GMI, SDIO2, RSVD, INPUT, 0x3338), | ||
323 | PINGROUP(DAP1_DIN, AUDIO, I2S0, HDA, GMI, SDIO2, RSVD, INPUT, 0x333c), | ||
324 | PINGROUP(DAP1_DOUT, AUDIO, I2S0, HDA, GMI, SDIO2, RSVD, INPUT, 0x3340), | ||
325 | PINGROUP(DAP1_SCLK, AUDIO, I2S0, HDA, GMI, SDIO2, RSVD, INPUT, 0x3344), | ||
326 | PINGROUP(CLK1_REQ, AUDIO, DAP, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x3348), | ||
327 | PINGROUP(CLK1_OUT, AUDIO, EXTPERIPH1, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x334c), | ||
328 | PINGROUP(SPDIF_IN, AUDIO, SPDIF, HDA, INVALID, DAPSDMMC2, RSVD, INPUT, 0x3350), | ||
329 | PINGROUP(SPDIF_OUT, AUDIO, SPDIF, RSVD1, INVALID, DAPSDMMC2, RSVD, INPUT, 0x3354), | ||
330 | PINGROUP(DAP2_FS, AUDIO, I2S1, HDA, RSVD2, GMI, RSVD, INPUT, 0x3358), | ||
331 | PINGROUP(DAP2_DIN, AUDIO, I2S1, HDA, RSVD2, GMI, RSVD, INPUT, 0x335c), | ||
332 | PINGROUP(DAP2_DOUT, AUDIO, I2S1, HDA, RSVD2, GMI, RSVD, INPUT, 0x3360), | ||
333 | PINGROUP(DAP2_SCLK, AUDIO, I2S1, HDA, RSVD2, GMI, RSVD, INPUT, 0x3364), | ||
334 | PINGROUP(SPI2_MOSI, AUDIO, SPI6, SPI2, INVALID, GMI, RSVD, INPUT, 0x3368), | ||
335 | PINGROUP(SPI2_MISO, AUDIO, SPI6, SPI2, INVALID, GMI, RSVD, INPUT, 0x336c), | ||
336 | PINGROUP(SPI2_CS0_N, AUDIO, SPI6, SPI2, INVALID, GMI, RSVD, INPUT, 0x3370), | ||
337 | PINGROUP(SPI2_SCK, AUDIO, SPI6, SPI2, INVALID, GMI, RSVD, INPUT, 0x3374), | ||
338 | PINGROUP(SPI1_MOSI, AUDIO, SPI2, SPI1, INVALID, GMI, RSVD, INPUT, 0x3378), | ||
339 | PINGROUP(SPI1_SCK, AUDIO, SPI2, SPI1, INVALID, GMI, RSVD, INPUT, 0x337c), | ||
340 | PINGROUP(SPI1_CS0_N, AUDIO, SPI2, SPI1, INVALID, GMI, RSVD, INPUT, 0x3380), | ||
341 | PINGROUP(SPI1_MISO, AUDIO, INVALID, SPI1, INVALID, RSVD3, RSVD, INPUT, 0x3384), | ||
342 | PINGROUP(SPI2_CS1_N, AUDIO, INVALID, SPI2, INVALID, INVALID, RSVD, INPUT, 0x3388), | ||
343 | PINGROUP(SPI2_CS2_N, AUDIO, INVALID, SPI2, INVALID, INVALID, RSVD, INPUT, 0x338c), | ||
344 | PINGROUP(SDMMC3_CLK, SDMMC3, UARTA, PWM2, SDIO3, INVALID, RSVD, INPUT, 0x3390), | ||
345 | PINGROUP(SDMMC3_CMD, SDMMC3, UARTA, PWM3, SDIO3, INVALID, RSVD, INPUT, 0x3394), | ||
346 | PINGROUP(SDMMC3_DAT0, SDMMC3, RSVD, RSVD1, SDIO3, INVALID, RSVD, INPUT, 0x3398), | ||
347 | PINGROUP(SDMMC3_DAT1, SDMMC3, RSVD, RSVD1, SDIO3, INVALID, RSVD, INPUT, 0x339c), | ||
348 | PINGROUP(SDMMC3_DAT2, SDMMC3, RSVD, PWM1, SDIO3, INVALID, RSVD, INPUT, 0x33a0), | ||
349 | PINGROUP(SDMMC3_DAT3, SDMMC3, RSVD, PWM0, SDIO3, INVALID, RSVD, INPUT, 0x33a4), | ||
350 | PINGROUP(SDMMC3_DAT4, SDMMC3, PWM1, INVALID, SDIO3, INVALID, RSVD, INPUT, 0x33a8), | ||
351 | PINGROUP(SDMMC3_DAT5, SDMMC3, PWM0, INVALID, SDIO3, INVALID, RSVD, INPUT, 0x33ac), | ||
352 | PINGROUP(SDMMC3_DAT6, SDMMC3, SPDIF, INVALID, SDIO3, INVALID, RSVD, INPUT, 0x33b0), | ||
353 | PINGROUP(SDMMC3_DAT7, SDMMC3, SPDIF, INVALID, SDIO3, INVALID, RSVD, INPUT, 0x33b4), | ||
354 | PINGROUP(PEX_L0_PRSNT_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33b8), | ||
355 | PINGROUP(PEX_L0_RST_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33bc), | ||
356 | PINGROUP(PEX_L0_CLKREQ_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33c0), | ||
357 | PINGROUP(PEX_WAKE_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33c4), | ||
358 | PINGROUP(PEX_L1_PRSNT_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33c8), | ||
359 | PINGROUP(PEX_L1_RST_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33cc), | ||
360 | PINGROUP(PEX_L1_CLKREQ_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33d0), | ||
361 | PINGROUP(PEX_L2_PRSNT_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33d4), | ||
362 | PINGROUP(PEX_L2_RST_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33d8), | ||
363 | PINGROUP(PEX_L2_CLKREQ_N, PEXCTL, PCIE, HDA, RSVD2, RSVD3, RSVD, INPUT, 0x33dc), | ||
364 | PINGROUP(HDMI_CEC, SYS, CEC, RSVD1, RSVD2, RSVD3, RSVD, INPUT, 0x33e0), | ||
365 | }; | ||
366 | |||
367 | void __devinit tegra30_pinmux_init(const struct tegra_pingroup_desc **pg, | ||
368 | int *pg_max, const struct tegra_drive_pingroup_desc **pgdrive, | ||
369 | int *pgdrive_max) | ||
370 | { | ||
371 | *pg = tegra_soc_pingroups; | ||
372 | *pg_max = TEGRA_MAX_PINGROUP; | ||
373 | *pgdrive = tegra_soc_drive_pingroups; | ||
374 | *pgdrive_max = TEGRA_MAX_DRIVE_PINGROUP; | ||
375 | } | ||
376 | |||
diff --git a/arch/arm/mach-tegra/pinmux.c b/arch/arm/mach-tegra/pinmux.c index 1d201650d7a..ac35d2b7685 100644 --- a/arch/arm/mach-tegra/pinmux.c +++ b/arch/arm/mach-tegra/pinmux.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/spinlock.h> | 21 | #include <linux/spinlock.h> |
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/of_device.h> | ||
24 | 25 | ||
25 | #include <mach/iomap.h> | 26 | #include <mach/iomap.h> |
26 | #include <mach/pinmux.h> | 27 | #include <mach/pinmux.h> |
@@ -33,8 +34,10 @@ | |||
33 | #define SLWR(reg) (((reg) >> 28) & 0x3) | 34 | #define SLWR(reg) (((reg) >> 28) & 0x3) |
34 | #define SLWF(reg) (((reg) >> 30) & 0x3) | 35 | #define SLWF(reg) (((reg) >> 30) & 0x3) |
35 | 36 | ||
36 | static const struct tegra_pingroup_desc *const pingroups = tegra_soc_pingroups; | 37 | static const struct tegra_pingroup_desc *pingroups; |
37 | static const struct tegra_drive_pingroup_desc *const drive_pingroups = tegra_soc_drive_pingroups; | 38 | static const struct tegra_drive_pingroup_desc *drive_pingroups; |
39 | static int pingroup_max; | ||
40 | static int drive_max; | ||
38 | 41 | ||
39 | static char *tegra_mux_names[TEGRA_MAX_MUX] = { | 42 | static char *tegra_mux_names[TEGRA_MAX_MUX] = { |
40 | [TEGRA_MUX_AHB_CLK] = "AHB_CLK", | 43 | [TEGRA_MUX_AHB_CLK] = "AHB_CLK", |
@@ -97,6 +100,49 @@ static char *tegra_mux_names[TEGRA_MAX_MUX] = { | |||
97 | [TEGRA_MUX_VI] = "VI", | 100 | [TEGRA_MUX_VI] = "VI", |
98 | [TEGRA_MUX_VI_SENSOR_CLK] = "VI_SENSOR_CLK", | 101 | [TEGRA_MUX_VI_SENSOR_CLK] = "VI_SENSOR_CLK", |
99 | [TEGRA_MUX_XIO] = "XIO", | 102 | [TEGRA_MUX_XIO] = "XIO", |
103 | [TEGRA_MUX_BLINK] = "BLINK", | ||
104 | [TEGRA_MUX_CEC] = "CEC", | ||
105 | [TEGRA_MUX_CLK12] = "CLK12", | ||
106 | [TEGRA_MUX_DAP] = "DAP", | ||
107 | [TEGRA_MUX_DAPSDMMC2] = "DAPSDMMC2", | ||
108 | [TEGRA_MUX_DDR] = "DDR", | ||
109 | [TEGRA_MUX_DEV3] = "DEV3", | ||
110 | [TEGRA_MUX_DTV] = "DTV", | ||
111 | [TEGRA_MUX_VI_ALT1] = "VI_ALT1", | ||
112 | [TEGRA_MUX_VI_ALT2] = "VI_ALT2", | ||
113 | [TEGRA_MUX_VI_ALT3] = "VI_ALT3", | ||
114 | [TEGRA_MUX_EMC_DLL] = "EMC_DLL", | ||
115 | [TEGRA_MUX_EXTPERIPH1] = "EXTPERIPH1", | ||
116 | [TEGRA_MUX_EXTPERIPH2] = "EXTPERIPH2", | ||
117 | [TEGRA_MUX_EXTPERIPH3] = "EXTPERIPH3", | ||
118 | [TEGRA_MUX_GMI_ALT] = "GMI_ALT", | ||
119 | [TEGRA_MUX_HDA] = "HDA", | ||
120 | [TEGRA_MUX_HSI] = "HSI", | ||
121 | [TEGRA_MUX_I2C4] = "I2C4", | ||
122 | [TEGRA_MUX_I2C5] = "I2C5", | ||
123 | [TEGRA_MUX_I2CPWR] = "I2CPWR", | ||
124 | [TEGRA_MUX_I2S0] = "I2S0", | ||
125 | [TEGRA_MUX_I2S1] = "I2S1", | ||
126 | [TEGRA_MUX_I2S2] = "I2S2", | ||
127 | [TEGRA_MUX_I2S3] = "I2S3", | ||
128 | [TEGRA_MUX_I2S4] = "I2S4", | ||
129 | [TEGRA_MUX_NAND_ALT] = "NAND_ALT", | ||
130 | [TEGRA_MUX_POPSDIO4] = "POPSDIO4", | ||
131 | [TEGRA_MUX_POPSDMMC4] = "POPSDMMC4", | ||
132 | [TEGRA_MUX_PWM0] = "PWM0", | ||
133 | [TEGRA_MUX_PWM1] = "PWM2", | ||
134 | [TEGRA_MUX_PWM2] = "PWM2", | ||
135 | [TEGRA_MUX_PWM3] = "PWM3", | ||
136 | [TEGRA_MUX_SATA] = "SATA", | ||
137 | [TEGRA_MUX_SPI5] = "SPI5", | ||
138 | [TEGRA_MUX_SPI6] = "SPI6", | ||
139 | [TEGRA_MUX_SYSCLK] = "SYSCLK", | ||
140 | [TEGRA_MUX_VGP1] = "VGP1", | ||
141 | [TEGRA_MUX_VGP2] = "VGP2", | ||
142 | [TEGRA_MUX_VGP3] = "VGP3", | ||
143 | [TEGRA_MUX_VGP4] = "VGP4", | ||
144 | [TEGRA_MUX_VGP5] = "VGP5", | ||
145 | [TEGRA_MUX_VGP6] = "VGP6", | ||
100 | [TEGRA_MUX_SAFE] = "<safe>", | 146 | [TEGRA_MUX_SAFE] = "<safe>", |
101 | }; | 147 | }; |
102 | 148 | ||
@@ -116,9 +162,9 @@ static const char *tegra_slew_names[TEGRA_MAX_SLEW] = { | |||
116 | 162 | ||
117 | static DEFINE_SPINLOCK(mux_lock); | 163 | static DEFINE_SPINLOCK(mux_lock); |
118 | 164 | ||
119 | static const char *pingroup_name(enum tegra_pingroup pg) | 165 | static const char *pingroup_name(int pg) |
120 | { | 166 | { |
121 | if (pg < 0 || pg >= TEGRA_MAX_PINGROUP) | 167 | if (pg < 0 || pg >= pingroup_max) |
122 | return "<UNKNOWN>"; | 168 | return "<UNKNOWN>"; |
123 | 169 | ||
124 | return pingroups[pg].name; | 170 | return pingroups[pg].name; |
@@ -189,10 +235,10 @@ static int tegra_pinmux_set_func(const struct tegra_pingroup_config *config) | |||
189 | int i; | 235 | int i; |
190 | unsigned long reg; | 236 | unsigned long reg; |
191 | unsigned long flags; | 237 | unsigned long flags; |
192 | enum tegra_pingroup pg = config->pingroup; | 238 | int pg = config->pingroup; |
193 | enum tegra_mux_func func = config->func; | 239 | enum tegra_mux_func func = config->func; |
194 | 240 | ||
195 | if (pg < 0 || pg >= TEGRA_MAX_PINGROUP) | 241 | if (pg < 0 || pg >= pingroup_max) |
196 | return -ERANGE; | 242 | return -ERANGE; |
197 | 243 | ||
198 | if (pingroups[pg].mux_reg < 0) | 244 | if (pingroups[pg].mux_reg < 0) |
@@ -230,13 +276,12 @@ static int tegra_pinmux_set_func(const struct tegra_pingroup_config *config) | |||
230 | return 0; | 276 | return 0; |
231 | } | 277 | } |
232 | 278 | ||
233 | int tegra_pinmux_set_tristate(enum tegra_pingroup pg, | 279 | int tegra_pinmux_set_tristate(int pg, enum tegra_tristate tristate) |
234 | enum tegra_tristate tristate) | ||
235 | { | 280 | { |
236 | unsigned long reg; | 281 | unsigned long reg; |
237 | unsigned long flags; | 282 | unsigned long flags; |
238 | 283 | ||
239 | if (pg < 0 || pg >= TEGRA_MAX_PINGROUP) | 284 | if (pg < 0 || pg >= pingroup_max) |
240 | return -ERANGE; | 285 | return -ERANGE; |
241 | 286 | ||
242 | if (pingroups[pg].tri_reg < 0) | 287 | if (pingroups[pg].tri_reg < 0) |
@@ -255,13 +300,12 @@ int tegra_pinmux_set_tristate(enum tegra_pingroup pg, | |||
255 | return 0; | 300 | return 0; |
256 | } | 301 | } |
257 | 302 | ||
258 | int tegra_pinmux_set_pullupdown(enum tegra_pingroup pg, | 303 | int tegra_pinmux_set_pullupdown(int pg, enum tegra_pullupdown pupd) |
259 | enum tegra_pullupdown pupd) | ||
260 | { | 304 | { |
261 | unsigned long reg; | 305 | unsigned long reg; |
262 | unsigned long flags; | 306 | unsigned long flags; |
263 | 307 | ||
264 | if (pg < 0 || pg >= TEGRA_MAX_PINGROUP) | 308 | if (pg < 0 || pg >= pingroup_max) |
265 | return -ERANGE; | 309 | return -ERANGE; |
266 | 310 | ||
267 | if (pingroups[pg].pupd_reg < 0) | 311 | if (pingroups[pg].pupd_reg < 0) |
@@ -287,7 +331,7 @@ int tegra_pinmux_set_pullupdown(enum tegra_pingroup pg, | |||
287 | 331 | ||
288 | static void tegra_pinmux_config_pingroup(const struct tegra_pingroup_config *config) | 332 | static void tegra_pinmux_config_pingroup(const struct tegra_pingroup_config *config) |
289 | { | 333 | { |
290 | enum tegra_pingroup pingroup = config->pingroup; | 334 | int pingroup = config->pingroup; |
291 | enum tegra_mux_func func = config->func; | 335 | enum tegra_mux_func func = config->func; |
292 | enum tegra_pullupdown pupd = config->pupd; | 336 | enum tegra_pullupdown pupd = config->pupd; |
293 | enum tegra_tristate tristate = config->tristate; | 337 | enum tegra_tristate tristate = config->tristate; |
@@ -323,9 +367,9 @@ void tegra_pinmux_config_table(const struct tegra_pingroup_config *config, int l | |||
323 | tegra_pinmux_config_pingroup(&config[i]); | 367 | tegra_pinmux_config_pingroup(&config[i]); |
324 | } | 368 | } |
325 | 369 | ||
326 | static const char *drive_pinmux_name(enum tegra_drive_pingroup pg) | 370 | static const char *drive_pinmux_name(int pg) |
327 | { | 371 | { |
328 | if (pg < 0 || pg >= TEGRA_MAX_DRIVE_PINGROUP) | 372 | if (pg < 0 || pg >= drive_max) |
329 | return "<UNKNOWN>"; | 373 | return "<UNKNOWN>"; |
330 | 374 | ||
331 | return drive_pingroups[pg].name; | 375 | return drive_pingroups[pg].name; |
@@ -352,12 +396,11 @@ static const char *slew_name(unsigned long val) | |||
352 | return tegra_slew_names[val]; | 396 | return tegra_slew_names[val]; |
353 | } | 397 | } |
354 | 398 | ||
355 | static int tegra_drive_pinmux_set_hsm(enum tegra_drive_pingroup pg, | 399 | static int tegra_drive_pinmux_set_hsm(int pg, enum tegra_hsm hsm) |
356 | enum tegra_hsm hsm) | ||
357 | { | 400 | { |
358 | unsigned long flags; | 401 | unsigned long flags; |
359 | u32 reg; | 402 | u32 reg; |
360 | if (pg < 0 || pg >= TEGRA_MAX_DRIVE_PINGROUP) | 403 | if (pg < 0 || pg >= drive_max) |
361 | return -ERANGE; | 404 | return -ERANGE; |
362 | 405 | ||
363 | if (hsm != TEGRA_HSM_ENABLE && hsm != TEGRA_HSM_DISABLE) | 406 | if (hsm != TEGRA_HSM_ENABLE && hsm != TEGRA_HSM_DISABLE) |
@@ -377,12 +420,11 @@ static int tegra_drive_pinmux_set_hsm(enum tegra_drive_pingroup pg, | |||
377 | return 0; | 420 | return 0; |
378 | } | 421 | } |
379 | 422 | ||
380 | static int tegra_drive_pinmux_set_schmitt(enum tegra_drive_pingroup pg, | 423 | static int tegra_drive_pinmux_set_schmitt(int pg, enum tegra_schmitt schmitt) |
381 | enum tegra_schmitt schmitt) | ||
382 | { | 424 | { |
383 | unsigned long flags; | 425 | unsigned long flags; |
384 | u32 reg; | 426 | u32 reg; |
385 | if (pg < 0 || pg >= TEGRA_MAX_DRIVE_PINGROUP) | 427 | if (pg < 0 || pg >= drive_max) |
386 | return -ERANGE; | 428 | return -ERANGE; |
387 | 429 | ||
388 | if (schmitt != TEGRA_SCHMITT_ENABLE && schmitt != TEGRA_SCHMITT_DISABLE) | 430 | if (schmitt != TEGRA_SCHMITT_ENABLE && schmitt != TEGRA_SCHMITT_DISABLE) |
@@ -402,12 +444,11 @@ static int tegra_drive_pinmux_set_schmitt(enum tegra_drive_pingroup pg, | |||
402 | return 0; | 444 | return 0; |
403 | } | 445 | } |
404 | 446 | ||
405 | static int tegra_drive_pinmux_set_drive(enum tegra_drive_pingroup pg, | 447 | static int tegra_drive_pinmux_set_drive(int pg, enum tegra_drive drive) |
406 | enum tegra_drive drive) | ||
407 | { | 448 | { |
408 | unsigned long flags; | 449 | unsigned long flags; |
409 | u32 reg; | 450 | u32 reg; |
410 | if (pg < 0 || pg >= TEGRA_MAX_DRIVE_PINGROUP) | 451 | if (pg < 0 || pg >= drive_max) |
411 | return -ERANGE; | 452 | return -ERANGE; |
412 | 453 | ||
413 | if (drive < 0 || drive >= TEGRA_MAX_DRIVE) | 454 | if (drive < 0 || drive >= TEGRA_MAX_DRIVE) |
@@ -425,12 +466,12 @@ static int tegra_drive_pinmux_set_drive(enum tegra_drive_pingroup pg, | |||
425 | return 0; | 466 | return 0; |
426 | } | 467 | } |
427 | 468 | ||
428 | static int tegra_drive_pinmux_set_pull_down(enum tegra_drive_pingroup pg, | 469 | static int tegra_drive_pinmux_set_pull_down(int pg, |
429 | enum tegra_pull_strength pull_down) | 470 | enum tegra_pull_strength pull_down) |
430 | { | 471 | { |
431 | unsigned long flags; | 472 | unsigned long flags; |
432 | u32 reg; | 473 | u32 reg; |
433 | if (pg < 0 || pg >= TEGRA_MAX_DRIVE_PINGROUP) | 474 | if (pg < 0 || pg >= drive_max) |
434 | return -ERANGE; | 475 | return -ERANGE; |
435 | 476 | ||
436 | if (pull_down < 0 || pull_down >= TEGRA_MAX_PULL) | 477 | if (pull_down < 0 || pull_down >= TEGRA_MAX_PULL) |
@@ -448,12 +489,12 @@ static int tegra_drive_pinmux_set_pull_down(enum tegra_drive_pingroup pg, | |||
448 | return 0; | 489 | return 0; |
449 | } | 490 | } |
450 | 491 | ||
451 | static int tegra_drive_pinmux_set_pull_up(enum tegra_drive_pingroup pg, | 492 | static int tegra_drive_pinmux_set_pull_up(int pg, |
452 | enum tegra_pull_strength pull_up) | 493 | enum tegra_pull_strength pull_up) |
453 | { | 494 | { |
454 | unsigned long flags; | 495 | unsigned long flags; |
455 | u32 reg; | 496 | u32 reg; |
456 | if (pg < 0 || pg >= TEGRA_MAX_DRIVE_PINGROUP) | 497 | if (pg < 0 || pg >= drive_max) |
457 | return -ERANGE; | 498 | return -ERANGE; |
458 | 499 | ||
459 | if (pull_up < 0 || pull_up >= TEGRA_MAX_PULL) | 500 | if (pull_up < 0 || pull_up >= TEGRA_MAX_PULL) |
@@ -471,12 +512,12 @@ static int tegra_drive_pinmux_set_pull_up(enum tegra_drive_pingroup pg, | |||
471 | return 0; | 512 | return 0; |
472 | } | 513 | } |
473 | 514 | ||
474 | static int tegra_drive_pinmux_set_slew_rising(enum tegra_drive_pingroup pg, | 515 | static int tegra_drive_pinmux_set_slew_rising(int pg, |
475 | enum tegra_slew slew_rising) | 516 | enum tegra_slew slew_rising) |
476 | { | 517 | { |
477 | unsigned long flags; | 518 | unsigned long flags; |
478 | u32 reg; | 519 | u32 reg; |
479 | if (pg < 0 || pg >= TEGRA_MAX_DRIVE_PINGROUP) | 520 | if (pg < 0 || pg >= drive_max) |
480 | return -ERANGE; | 521 | return -ERANGE; |
481 | 522 | ||
482 | if (slew_rising < 0 || slew_rising >= TEGRA_MAX_SLEW) | 523 | if (slew_rising < 0 || slew_rising >= TEGRA_MAX_SLEW) |
@@ -494,12 +535,12 @@ static int tegra_drive_pinmux_set_slew_rising(enum tegra_drive_pingroup pg, | |||
494 | return 0; | 535 | return 0; |
495 | } | 536 | } |
496 | 537 | ||
497 | static int tegra_drive_pinmux_set_slew_falling(enum tegra_drive_pingroup pg, | 538 | static int tegra_drive_pinmux_set_slew_falling(int pg, |
498 | enum tegra_slew slew_falling) | 539 | enum tegra_slew slew_falling) |
499 | { | 540 | { |
500 | unsigned long flags; | 541 | unsigned long flags; |
501 | u32 reg; | 542 | u32 reg; |
502 | if (pg < 0 || pg >= TEGRA_MAX_DRIVE_PINGROUP) | 543 | if (pg < 0 || pg >= drive_max) |
503 | return -ERANGE; | 544 | return -ERANGE; |
504 | 545 | ||
505 | if (slew_falling < 0 || slew_falling >= TEGRA_MAX_SLEW) | 546 | if (slew_falling < 0 || slew_falling >= TEGRA_MAX_SLEW) |
@@ -517,7 +558,7 @@ static int tegra_drive_pinmux_set_slew_falling(enum tegra_drive_pingroup pg, | |||
517 | return 0; | 558 | return 0; |
518 | } | 559 | } |
519 | 560 | ||
520 | static void tegra_drive_pinmux_config_pingroup(enum tegra_drive_pingroup pingroup, | 561 | static void tegra_drive_pinmux_config_pingroup(int pingroup, |
521 | enum tegra_hsm hsm, | 562 | enum tegra_hsm hsm, |
522 | enum tegra_schmitt schmitt, | 563 | enum tegra_schmitt schmitt, |
523 | enum tegra_drive drive, | 564 | enum tegra_drive drive, |
@@ -596,7 +637,7 @@ void tegra_pinmux_set_safe_pinmux_table(const struct tegra_pingroup_config *conf | |||
596 | for (i = 0; i < len; i++) { | 637 | for (i = 0; i < len; i++) { |
597 | int err; | 638 | int err; |
598 | c = config[i]; | 639 | c = config[i]; |
599 | if (c.pingroup < 0 || c.pingroup >= TEGRA_MAX_PINGROUP) { | 640 | if (c.pingroup < 0 || c.pingroup >= pingroup_max) { |
600 | WARN_ON(1); | 641 | WARN_ON(1); |
601 | continue; | 642 | continue; |
602 | } | 643 | } |
@@ -617,7 +658,7 @@ void tegra_pinmux_config_pinmux_table(const struct tegra_pingroup_config *config | |||
617 | for (i = 0; i < len; i++) { | 658 | for (i = 0; i < len; i++) { |
618 | int err; | 659 | int err; |
619 | if (config[i].pingroup < 0 || | 660 | if (config[i].pingroup < 0 || |
620 | config[i].pingroup >= TEGRA_MAX_PINGROUP) { | 661 | config[i].pingroup >= pingroup_max) { |
621 | WARN_ON(1); | 662 | WARN_ON(1); |
622 | continue; | 663 | continue; |
623 | } | 664 | } |
@@ -635,7 +676,7 @@ void tegra_pinmux_config_tristate_table(const struct tegra_pingroup_config *conf | |||
635 | { | 676 | { |
636 | int i; | 677 | int i; |
637 | int err; | 678 | int err; |
638 | enum tegra_pingroup pingroup; | 679 | int pingroup; |
639 | 680 | ||
640 | for (i = 0; i < len; i++) { | 681 | for (i = 0; i < len; i++) { |
641 | pingroup = config[i].pingroup; | 682 | pingroup = config[i].pingroup; |
@@ -654,7 +695,7 @@ void tegra_pinmux_config_pullupdown_table(const struct tegra_pingroup_config *co | |||
654 | { | 695 | { |
655 | int i; | 696 | int i; |
656 | int err; | 697 | int err; |
657 | enum tegra_pingroup pingroup; | 698 | int pingroup; |
658 | 699 | ||
659 | for (i = 0; i < len; i++) { | 700 | for (i = 0; i < len; i++) { |
660 | pingroup = config[i].pingroup; | 701 | pingroup = config[i].pingroup; |
@@ -668,11 +709,36 @@ void tegra_pinmux_config_pullupdown_table(const struct tegra_pingroup_config *co | |||
668 | } | 709 | } |
669 | } | 710 | } |
670 | 711 | ||
712 | static struct of_device_id tegra_pinmux_of_match[] __devinitdata = { | ||
713 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | ||
714 | { .compatible = "nvidia,tegra20-pinmux", tegra20_pinmux_init }, | ||
715 | #endif | ||
716 | #ifdef CONFIG_ARCH_TEGRA_3x_SOC | ||
717 | { .compatible = "nvidia,tegra30-pinmux", tegra30_pinmux_init }, | ||
718 | #endif | ||
719 | { }, | ||
720 | }; | ||
721 | |||
671 | static int __devinit tegra_pinmux_probe(struct platform_device *pdev) | 722 | static int __devinit tegra_pinmux_probe(struct platform_device *pdev) |
672 | { | 723 | { |
673 | struct resource *res; | 724 | struct resource *res; |
674 | int i; | 725 | int i; |
675 | int config_bad = 0; | 726 | int config_bad = 0; |
727 | const struct of_device_id *match; | ||
728 | |||
729 | match = of_match_device(tegra_pinmux_of_match, &pdev->dev); | ||
730 | |||
731 | if (match) | ||
732 | ((pinmux_init)(match->data))(&pingroups, &pingroup_max, | ||
733 | &drive_pingroups, &drive_max); | ||
734 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | ||
735 | else | ||
736 | /* no device tree available, so we must be on tegra20 */ | ||
737 | tegra20_pinmux_init(&pingroups, &pingroup_max, | ||
738 | &drive_pingroups, &drive_max); | ||
739 | #else | ||
740 | pr_warn("non Tegra20 platform requires pinmux devicetree node\n"); | ||
741 | #endif | ||
676 | 742 | ||
677 | for (i = 0; ; i++) { | 743 | for (i = 0; ; i++) { |
678 | res = platform_get_resource(pdev, IORESOURCE_MEM, i); | 744 | res = platform_get_resource(pdev, IORESOURCE_MEM, i); |
@@ -681,7 +747,7 @@ static int __devinit tegra_pinmux_probe(struct platform_device *pdev) | |||
681 | } | 747 | } |
682 | nbanks = i; | 748 | nbanks = i; |
683 | 749 | ||
684 | for (i = 0; i < TEGRA_MAX_PINGROUP; i++) { | 750 | for (i = 0; i < pingroup_max; i++) { |
685 | if (pingroups[i].tri_bank >= nbanks) { | 751 | if (pingroups[i].tri_bank >= nbanks) { |
686 | dev_err(&pdev->dev, "pingroup %d: bad tri_bank\n", i); | 752 | dev_err(&pdev->dev, "pingroup %d: bad tri_bank\n", i); |
687 | config_bad = 1; | 753 | config_bad = 1; |
@@ -698,7 +764,7 @@ static int __devinit tegra_pinmux_probe(struct platform_device *pdev) | |||
698 | } | 764 | } |
699 | } | 765 | } |
700 | 766 | ||
701 | for (i = 0; i < TEGRA_MAX_DRIVE_PINGROUP; i++) { | 767 | for (i = 0; i < drive_max; i++) { |
702 | if (drive_pingroups[i].reg_bank >= nbanks) { | 768 | if (drive_pingroups[i].reg_bank >= nbanks) { |
703 | dev_err(&pdev->dev, | 769 | dev_err(&pdev->dev, |
704 | "drive pingroup %d: bad reg_bank\n", i); | 770 | "drive pingroup %d: bad reg_bank\n", i); |
@@ -741,11 +807,6 @@ static int __devinit tegra_pinmux_probe(struct platform_device *pdev) | |||
741 | return 0; | 807 | return 0; |
742 | } | 808 | } |
743 | 809 | ||
744 | static struct of_device_id tegra_pinmux_of_match[] __devinitdata = { | ||
745 | { .compatible = "nvidia,tegra20-pinmux", }, | ||
746 | { }, | ||
747 | }; | ||
748 | |||
749 | static struct platform_driver tegra_pinmux_driver = { | 810 | static struct platform_driver tegra_pinmux_driver = { |
750 | .driver = { | 811 | .driver = { |
751 | .name = "tegra-pinmux", | 812 | .name = "tegra-pinmux", |
@@ -779,7 +840,7 @@ static int dbg_pinmux_show(struct seq_file *s, void *unused) | |||
779 | int i; | 840 | int i; |
780 | int len; | 841 | int len; |
781 | 842 | ||
782 | for (i = 0; i < TEGRA_MAX_PINGROUP; i++) { | 843 | for (i = 0; i < pingroup_max; i++) { |
783 | unsigned long reg; | 844 | unsigned long reg; |
784 | unsigned long tri; | 845 | unsigned long tri; |
785 | unsigned long mux; | 846 | unsigned long mux; |
@@ -850,7 +911,7 @@ static int dbg_drive_pinmux_show(struct seq_file *s, void *unused) | |||
850 | int i; | 911 | int i; |
851 | int len; | 912 | int len; |
852 | 913 | ||
853 | for (i = 0; i < TEGRA_MAX_DRIVE_PINGROUP; i++) { | 914 | for (i = 0; i < drive_max; i++) { |
854 | u32 reg; | 915 | u32 reg; |
855 | 916 | ||
856 | seq_printf(s, "\t{TEGRA_DRIVE_PINGROUP_%s", | 917 | seq_printf(s, "\t{TEGRA_DRIVE_PINGROUP_%s", |
diff --git a/arch/arm/mach-tegra/tegra2_clocks.c b/arch/arm/mach-tegra/tegra2_clocks.c index 371869d8ea0..ff9e6b6c046 100644 --- a/arch/arm/mach-tegra/tegra2_clocks.c +++ b/arch/arm/mach-tegra/tegra2_clocks.c | |||
@@ -174,7 +174,7 @@ static int tegra_periph_clk_enable_refcount[3 * 32]; | |||
174 | #define pmc_readl(reg) \ | 174 | #define pmc_readl(reg) \ |
175 | __raw_readl(reg_pmc_base + (reg)) | 175 | __raw_readl(reg_pmc_base + (reg)) |
176 | 176 | ||
177 | unsigned long clk_measure_input_freq(void) | 177 | static unsigned long clk_measure_input_freq(void) |
178 | { | 178 | { |
179 | u32 clock_autodetect; | 179 | u32 clock_autodetect; |
180 | clk_writel(OSC_FREQ_DET_TRIG | 1, OSC_FREQ_DET); | 180 | clk_writel(OSC_FREQ_DET_TRIG | 1, OSC_FREQ_DET); |
@@ -278,18 +278,6 @@ static struct clk_ops tegra_clk_m_ops = { | |||
278 | .disable = tegra2_clk_m_disable, | 278 | .disable = tegra2_clk_m_disable, |
279 | }; | 279 | }; |
280 | 280 | ||
281 | void tegra2_periph_reset_assert(struct clk *c) | ||
282 | { | ||
283 | BUG_ON(!c->ops->reset); | ||
284 | c->ops->reset(c, true); | ||
285 | } | ||
286 | |||
287 | void tegra2_periph_reset_deassert(struct clk *c) | ||
288 | { | ||
289 | BUG_ON(!c->ops->reset); | ||
290 | c->ops->reset(c, false); | ||
291 | } | ||
292 | |||
293 | /* super clock functions */ | 281 | /* super clock functions */ |
294 | /* "super clocks" on tegra have two-stage muxes and a clock skipping | 282 | /* "super clocks" on tegra have two-stage muxes and a clock skipping |
295 | * super divider. We will ignore the clock skipping divider, since we | 283 | * super divider. We will ignore the clock skipping divider, since we |
@@ -1132,6 +1120,9 @@ static struct clk_ops tegra_periph_clk_ops = { | |||
1132 | void tegra2_sdmmc_tap_delay(struct clk *c, int delay) | 1120 | void tegra2_sdmmc_tap_delay(struct clk *c, int delay) |
1133 | { | 1121 | { |
1134 | u32 reg; | 1122 | u32 reg; |
1123 | unsigned long flags; | ||
1124 | |||
1125 | spin_lock_irqsave(&c->spinlock, flags); | ||
1135 | 1126 | ||
1136 | delay = clamp(delay, 0, 15); | 1127 | delay = clamp(delay, 0, 15); |
1137 | reg = clk_readl(c->reg); | 1128 | reg = clk_readl(c->reg); |
@@ -1139,6 +1130,8 @@ void tegra2_sdmmc_tap_delay(struct clk *c, int delay) | |||
1139 | reg |= SDMMC_CLK_INT_FB_SEL; | 1130 | reg |= SDMMC_CLK_INT_FB_SEL; |
1140 | reg |= delay << SDMMC_CLK_INT_FB_DLY_SHIFT; | 1131 | reg |= delay << SDMMC_CLK_INT_FB_DLY_SHIFT; |
1141 | clk_writel(reg, c->reg); | 1132 | clk_writel(reg, c->reg); |
1133 | |||
1134 | spin_unlock_irqrestore(&c->spinlock, flags); | ||
1142 | } | 1135 | } |
1143 | 1136 | ||
1144 | /* External memory controller clock ops */ | 1137 | /* External memory controller clock ops */ |
diff --git a/arch/arm/mach-tegra/timer.c b/arch/arm/mach-tegra/timer.c index 732c724008b..1d1acda4f3e 100644 --- a/arch/arm/mach-tegra/timer.c +++ b/arch/arm/mach-tegra/timer.c | |||
@@ -165,20 +165,28 @@ static struct irqaction tegra_timer_irq = { | |||
165 | static void __init tegra_init_timer(void) | 165 | static void __init tegra_init_timer(void) |
166 | { | 166 | { |
167 | struct clk *clk; | 167 | struct clk *clk; |
168 | unsigned long rate = clk_measure_input_freq(); | 168 | unsigned long rate; |
169 | int ret; | 169 | int ret; |
170 | 170 | ||
171 | clk = clk_get_sys("timer", NULL); | 171 | clk = clk_get_sys("timer", NULL); |
172 | BUG_ON(IS_ERR(clk)); | 172 | if (IS_ERR(clk)) { |
173 | clk_enable(clk); | 173 | pr_warn("Unable to get timer clock." |
174 | " Assuming 12Mhz input clock.\n"); | ||
175 | rate = 12000000; | ||
176 | } else { | ||
177 | clk_enable(clk); | ||
178 | rate = clk_get_rate(clk); | ||
179 | } | ||
174 | 180 | ||
175 | /* | 181 | /* |
176 | * rtc registers are used by read_persistent_clock, keep the rtc clock | 182 | * rtc registers are used by read_persistent_clock, keep the rtc clock |
177 | * enabled | 183 | * enabled |
178 | */ | 184 | */ |
179 | clk = clk_get_sys("rtc-tegra", NULL); | 185 | clk = clk_get_sys("rtc-tegra", NULL); |
180 | BUG_ON(IS_ERR(clk)); | 186 | if (IS_ERR(clk)) |
181 | clk_enable(clk); | 187 | pr_warn("Unable to get rtc-tegra clock\n"); |
188 | else | ||
189 | clk_enable(clk); | ||
182 | 190 | ||
183 | #ifdef CONFIG_HAVE_ARM_TWD | 191 | #ifdef CONFIG_HAVE_ARM_TWD |
184 | twd_base = IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x600); | 192 | twd_base = IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x600); |
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx25.h b/arch/arm/plat-mxc/include/mach/iomux-mx25.h index bf64e1e594e..f0726d48df2 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mx25.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mx25.h | |||
@@ -265,16 +265,20 @@ | |||
265 | #define MX25_PAD_CSI_D2__CSI_D2 IOMUX_PAD(0x318, 0x120, 0x10, 0, 0, NO_PAD_CTRL) | 265 | #define MX25_PAD_CSI_D2__CSI_D2 IOMUX_PAD(0x318, 0x120, 0x10, 0, 0, NO_PAD_CTRL) |
266 | #define MX25_PAD_CSI_D2__UART5_RXD_MUX IOMUX_PAD(0x318, 0x120, 0x11, 0x578, 1, NO_PAD_CTRL) | 266 | #define MX25_PAD_CSI_D2__UART5_RXD_MUX IOMUX_PAD(0x318, 0x120, 0x11, 0x578, 1, NO_PAD_CTRL) |
267 | #define MX25_PAD_CSI_D2__GPIO_1_27 IOMUX_PAD(0x318, 0x120, 0x15, 0, 0, NO_PAD_CTRL) | 267 | #define MX25_PAD_CSI_D2__GPIO_1_27 IOMUX_PAD(0x318, 0x120, 0x15, 0, 0, NO_PAD_CTRL) |
268 | #define MX25_PAD_CSI_D2__CSPI3_MOSI IOMUX_PAD(0x318, 0x120, 0x17, 0, 0, NO_PAD_CTRL) | ||
268 | 269 | ||
269 | #define MX25_PAD_CSI_D3__CSI_D3 IOMUX_PAD(0x31c, 0x124, 0x10, 0, 0, NO_PAD_CTRL) | 270 | #define MX25_PAD_CSI_D3__CSI_D3 IOMUX_PAD(0x31c, 0x124, 0x10, 0, 0, NO_PAD_CTRL) |
270 | #define MX25_PAD_CSI_D3__GPIO_1_28 IOMUX_PAD(0x31c, 0x124, 0x15, 0, 0, NO_PAD_CTRL) | 271 | #define MX25_PAD_CSI_D3__GPIO_1_28 IOMUX_PAD(0x31c, 0x124, 0x15, 0, 0, NO_PAD_CTRL) |
272 | #define MX25_PAD_CSI_D3__CSPI3_MISO IOMUX_PAD(0x31c, 0x124, 0x17, 0x4b4, 1, NO_PAD_CTRL) | ||
271 | 273 | ||
272 | #define MX25_PAD_CSI_D4__CSI_D4 IOMUX_PAD(0x320, 0x128, 0x10, 0, 0, NO_PAD_CTRL) | 274 | #define MX25_PAD_CSI_D4__CSI_D4 IOMUX_PAD(0x320, 0x128, 0x10, 0, 0, NO_PAD_CTRL) |
273 | #define MX25_PAD_CSI_D4__UART5_RTS IOMUX_PAD(0x320, 0x128, 0x11, 0x574, 1, NO_PAD_CTRL) | 275 | #define MX25_PAD_CSI_D4__UART5_RTS IOMUX_PAD(0x320, 0x128, 0x11, 0x574, 1, NO_PAD_CTRL) |
274 | #define MX25_PAD_CSI_D4__GPIO_1_29 IOMUX_PAD(0x320, 0x128, 0x15, 0, 0, NO_PAD_CTRL) | 276 | #define MX25_PAD_CSI_D4__GPIO_1_29 IOMUX_PAD(0x320, 0x128, 0x15, 0, 0, NO_PAD_CTRL) |
277 | #define MX25_PAD_CSI_D4__CSPI3_SCLK IOMUX_PAD(0x320, 0x128, 0x17, 0, 0, NO_PAD_CTRL) | ||
275 | 278 | ||
276 | #define MX25_PAD_CSI_D5__CSI_D5 IOMUX_PAD(0x324, 0x12c, 0x10, 0, 0, NO_PAD_CTRL) | 279 | #define MX25_PAD_CSI_D5__CSI_D5 IOMUX_PAD(0x324, 0x12c, 0x10, 0, 0, NO_PAD_CTRL) |
277 | #define MX25_PAD_CSI_D5__GPIO_1_30 IOMUX_PAD(0x324, 0x12c, 0x15, 0, 0, NO_PAD_CTRL) | 280 | #define MX25_PAD_CSI_D5__GPIO_1_30 IOMUX_PAD(0x324, 0x12c, 0x15, 0, 0, NO_PAD_CTRL) |
281 | #define MX25_PAD_CSI_D5__CSPI3_RDY IOMUX_PAD(0x324, 0x12c, 0x17, 0, 0, NO_PAD_CTRL) | ||
278 | 282 | ||
279 | #define MX25_PAD_CSI_D6__CSI_D6 IOMUX_PAD(0x328, 0x130, 0x10, 0, 0, NO_PAD_CTRL) | 283 | #define MX25_PAD_CSI_D6__CSI_D6 IOMUX_PAD(0x328, 0x130, 0x10, 0, 0, NO_PAD_CTRL) |
280 | #define MX25_PAD_CSI_D6__GPIO_1_31 IOMUX_PAD(0x328, 0x130, 0x15, 0, 0, NO_PAD_CTRL) | 284 | #define MX25_PAD_CSI_D6__GPIO_1_31 IOMUX_PAD(0x328, 0x130, 0x15, 0, 0, NO_PAD_CTRL) |
diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile index 3df04d944e4..9a584614e7e 100644 --- a/arch/arm/plat-omap/Makefile +++ b/arch/arm/plat-omap/Makefile | |||
@@ -19,7 +19,6 @@ obj-$(CONFIG_ARCH_OMAP4) += omap_device.o | |||
19 | 19 | ||
20 | obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o | 20 | obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o |
21 | 21 | ||
22 | obj-$(CONFIG_CPU_FREQ) += cpu-omap.o | ||
23 | obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o | 22 | obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o |
24 | obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o | 23 | obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o |
25 | obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o | 24 | obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o |
diff --git a/arch/arm/plat-omap/include/plat/am33xx.h b/arch/arm/plat-omap/include/plat/am33xx.h new file mode 100644 index 00000000000..06c19bb7bca --- /dev/null +++ b/arch/arm/plat-omap/include/plat/am33xx.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file contains the address info for various AM33XX modules. | ||
3 | * | ||
4 | * Copyright (C) 2011 Texas Instruments, Inc. - http://www.ti.com/ | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License as | ||
8 | * published by the Free Software Foundation version 2. | ||
9 | * | ||
10 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
11 | * kind, whether express or implied; without even the implied warranty | ||
12 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | */ | ||
15 | |||
16 | #ifndef __ASM_ARCH_AM33XX_H | ||
17 | #define __ASM_ARCH_AM33XX_H | ||
18 | |||
19 | #define L4_SLOW_AM33XX_BASE 0x48000000 | ||
20 | |||
21 | #define AM33XX_SCM_BASE 0x44E10000 | ||
22 | #define AM33XX_CTRL_BASE AM33XX_SCM_BASE | ||
23 | #define AM33XX_PRCM_BASE 0x44E00000 | ||
24 | |||
25 | #endif /* __ASM_ARCH_AM33XX_H */ | ||
diff --git a/arch/arm/plat-omap/include/plat/clock.h b/arch/arm/plat-omap/include/plat/clock.h index eb73ab40e95..240a7b9fd94 100644 --- a/arch/arm/plat-omap/include/plat/clock.h +++ b/arch/arm/plat-omap/include/plat/clock.h | |||
@@ -59,6 +59,8 @@ struct clkops { | |||
59 | #define RATE_IN_4430 (1 << 5) | 59 | #define RATE_IN_4430 (1 << 5) |
60 | #define RATE_IN_TI816X (1 << 6) | 60 | #define RATE_IN_TI816X (1 << 6) |
61 | #define RATE_IN_4460 (1 << 7) | 61 | #define RATE_IN_4460 (1 << 7) |
62 | #define RATE_IN_AM33XX (1 << 8) | ||
63 | #define RATE_IN_TI814X (1 << 9) | ||
62 | 64 | ||
63 | #define RATE_IN_24XX (RATE_IN_242X | RATE_IN_243X) | 65 | #define RATE_IN_24XX (RATE_IN_242X | RATE_IN_243X) |
64 | #define RATE_IN_34XX (RATE_IN_3430ES1 | RATE_IN_3430ES2PLUS) | 66 | #define RATE_IN_34XX (RATE_IN_3430ES1 | RATE_IN_3430ES2PLUS) |
@@ -84,7 +86,7 @@ struct clkops { | |||
84 | struct clksel_rate { | 86 | struct clksel_rate { |
85 | u32 val; | 87 | u32 val; |
86 | u8 div; | 88 | u8 div; |
87 | u8 flags; | 89 | u16 flags; |
88 | }; | 90 | }; |
89 | 91 | ||
90 | /** | 92 | /** |
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index 408a12f7920..6b51086fce1 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h | |||
@@ -69,6 +69,7 @@ unsigned int omap_rev(void); | |||
69 | * cpu_is_omap343x(): True for OMAP3430 | 69 | * cpu_is_omap343x(): True for OMAP3430 |
70 | * cpu_is_omap443x(): True for OMAP4430 | 70 | * cpu_is_omap443x(): True for OMAP4430 |
71 | * cpu_is_omap446x(): True for OMAP4460 | 71 | * cpu_is_omap446x(): True for OMAP4460 |
72 | * cpu_is_omap447x(): True for OMAP4470 | ||
72 | */ | 73 | */ |
73 | #define GET_OMAP_CLASS (omap_rev() & 0xff) | 74 | #define GET_OMAP_CLASS (omap_rev() & 0xff) |
74 | 75 | ||
@@ -78,6 +79,22 @@ static inline int is_omap ##class (void) \ | |||
78 | return (GET_OMAP_CLASS == (id)) ? 1 : 0; \ | 79 | return (GET_OMAP_CLASS == (id)) ? 1 : 0; \ |
79 | } | 80 | } |
80 | 81 | ||
82 | #define GET_AM_CLASS ((omap_rev() >> 24) & 0xff) | ||
83 | |||
84 | #define IS_AM_CLASS(class, id) \ | ||
85 | static inline int is_am ##class (void) \ | ||
86 | { \ | ||
87 | return (GET_AM_CLASS == (id)) ? 1 : 0; \ | ||
88 | } | ||
89 | |||
90 | #define GET_TI_CLASS ((omap_rev() >> 24) & 0xff) | ||
91 | |||
92 | #define IS_TI_CLASS(class, id) \ | ||
93 | static inline int is_ti ##class (void) \ | ||
94 | { \ | ||
95 | return (GET_TI_CLASS == (id)) ? 1 : 0; \ | ||
96 | } | ||
97 | |||
81 | #define GET_OMAP_SUBCLASS ((omap_rev() >> 20) & 0x0fff) | 98 | #define GET_OMAP_SUBCLASS ((omap_rev() >> 20) & 0x0fff) |
82 | 99 | ||
83 | #define IS_OMAP_SUBCLASS(subclass, id) \ | 100 | #define IS_OMAP_SUBCLASS(subclass, id) \ |
@@ -92,12 +109,21 @@ static inline int is_ti ##subclass (void) \ | |||
92 | return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \ | 109 | return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \ |
93 | } | 110 | } |
94 | 111 | ||
112 | #define IS_AM_SUBCLASS(subclass, id) \ | ||
113 | static inline int is_am ##subclass (void) \ | ||
114 | { \ | ||
115 | return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \ | ||
116 | } | ||
117 | |||
95 | IS_OMAP_CLASS(7xx, 0x07) | 118 | IS_OMAP_CLASS(7xx, 0x07) |
96 | IS_OMAP_CLASS(15xx, 0x15) | 119 | IS_OMAP_CLASS(15xx, 0x15) |
97 | IS_OMAP_CLASS(16xx, 0x16) | 120 | IS_OMAP_CLASS(16xx, 0x16) |
98 | IS_OMAP_CLASS(24xx, 0x24) | 121 | IS_OMAP_CLASS(24xx, 0x24) |
99 | IS_OMAP_CLASS(34xx, 0x34) | 122 | IS_OMAP_CLASS(34xx, 0x34) |
100 | IS_OMAP_CLASS(44xx, 0x44) | 123 | IS_OMAP_CLASS(44xx, 0x44) |
124 | IS_AM_CLASS(33xx, 0x33) | ||
125 | |||
126 | IS_TI_CLASS(81xx, 0x81) | ||
101 | 127 | ||
102 | IS_OMAP_SUBCLASS(242x, 0x242) | 128 | IS_OMAP_SUBCLASS(242x, 0x242) |
103 | IS_OMAP_SUBCLASS(243x, 0x243) | 129 | IS_OMAP_SUBCLASS(243x, 0x243) |
@@ -105,8 +131,11 @@ IS_OMAP_SUBCLASS(343x, 0x343) | |||
105 | IS_OMAP_SUBCLASS(363x, 0x363) | 131 | IS_OMAP_SUBCLASS(363x, 0x363) |
106 | IS_OMAP_SUBCLASS(443x, 0x443) | 132 | IS_OMAP_SUBCLASS(443x, 0x443) |
107 | IS_OMAP_SUBCLASS(446x, 0x446) | 133 | IS_OMAP_SUBCLASS(446x, 0x446) |
134 | IS_OMAP_SUBCLASS(447x, 0x447) | ||
108 | 135 | ||
109 | IS_TI_SUBCLASS(816x, 0x816) | 136 | IS_TI_SUBCLASS(816x, 0x816) |
137 | IS_TI_SUBCLASS(814x, 0x814) | ||
138 | IS_AM_SUBCLASS(335x, 0x335) | ||
110 | 139 | ||
111 | #define cpu_is_omap7xx() 0 | 140 | #define cpu_is_omap7xx() 0 |
112 | #define cpu_is_omap15xx() 0 | 141 | #define cpu_is_omap15xx() 0 |
@@ -116,10 +145,15 @@ IS_TI_SUBCLASS(816x, 0x816) | |||
116 | #define cpu_is_omap243x() 0 | 145 | #define cpu_is_omap243x() 0 |
117 | #define cpu_is_omap34xx() 0 | 146 | #define cpu_is_omap34xx() 0 |
118 | #define cpu_is_omap343x() 0 | 147 | #define cpu_is_omap343x() 0 |
148 | #define cpu_is_ti81xx() 0 | ||
119 | #define cpu_is_ti816x() 0 | 149 | #define cpu_is_ti816x() 0 |
150 | #define cpu_is_ti814x() 0 | ||
151 | #define cpu_is_am33xx() 0 | ||
152 | #define cpu_is_am335x() 0 | ||
120 | #define cpu_is_omap44xx() 0 | 153 | #define cpu_is_omap44xx() 0 |
121 | #define cpu_is_omap443x() 0 | 154 | #define cpu_is_omap443x() 0 |
122 | #define cpu_is_omap446x() 0 | 155 | #define cpu_is_omap446x() 0 |
156 | #define cpu_is_omap447x() 0 | ||
123 | 157 | ||
124 | #if defined(MULTI_OMAP1) | 158 | #if defined(MULTI_OMAP1) |
125 | # if defined(CONFIG_ARCH_OMAP730) | 159 | # if defined(CONFIG_ARCH_OMAP730) |
@@ -322,7 +356,11 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
322 | # undef cpu_is_omap3530 | 356 | # undef cpu_is_omap3530 |
323 | # undef cpu_is_omap3505 | 357 | # undef cpu_is_omap3505 |
324 | # undef cpu_is_omap3517 | 358 | # undef cpu_is_omap3517 |
359 | # undef cpu_is_ti81xx | ||
325 | # undef cpu_is_ti816x | 360 | # undef cpu_is_ti816x |
361 | # undef cpu_is_ti814x | ||
362 | # undef cpu_is_am33xx | ||
363 | # undef cpu_is_am335x | ||
326 | # define cpu_is_omap3430() is_omap3430() | 364 | # define cpu_is_omap3430() is_omap3430() |
327 | # define cpu_is_omap3503() (cpu_is_omap3430() && \ | 365 | # define cpu_is_omap3503() (cpu_is_omap3430() && \ |
328 | (!omap3_has_iva()) && \ | 366 | (!omap3_has_iva()) && \ |
@@ -339,16 +377,22 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
339 | !omap3_has_sgx()) | 377 | !omap3_has_sgx()) |
340 | # undef cpu_is_omap3630 | 378 | # undef cpu_is_omap3630 |
341 | # define cpu_is_omap3630() is_omap363x() | 379 | # define cpu_is_omap3630() is_omap363x() |
380 | # define cpu_is_ti81xx() is_ti81xx() | ||
342 | # define cpu_is_ti816x() is_ti816x() | 381 | # define cpu_is_ti816x() is_ti816x() |
382 | # define cpu_is_ti814x() is_ti814x() | ||
383 | # define cpu_is_am33xx() is_am33xx() | ||
384 | # define cpu_is_am335x() is_am335x() | ||
343 | #endif | 385 | #endif |
344 | 386 | ||
345 | # if defined(CONFIG_ARCH_OMAP4) | 387 | # if defined(CONFIG_ARCH_OMAP4) |
346 | # undef cpu_is_omap44xx | 388 | # undef cpu_is_omap44xx |
347 | # undef cpu_is_omap443x | 389 | # undef cpu_is_omap443x |
348 | # undef cpu_is_omap446x | 390 | # undef cpu_is_omap446x |
391 | # undef cpu_is_omap447x | ||
349 | # define cpu_is_omap44xx() is_omap44xx() | 392 | # define cpu_is_omap44xx() is_omap44xx() |
350 | # define cpu_is_omap443x() is_omap443x() | 393 | # define cpu_is_omap443x() is_omap443x() |
351 | # define cpu_is_omap446x() is_omap446x() | 394 | # define cpu_is_omap446x() is_omap446x() |
395 | # define cpu_is_omap447x() is_omap447x() | ||
352 | # endif | 396 | # endif |
353 | 397 | ||
354 | /* Macros to detect if we have OMAP1 or OMAP2 */ | 398 | /* Macros to detect if we have OMAP1 or OMAP2 */ |
@@ -386,15 +430,27 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
386 | #define TI8168_REV_ES1_0 TI816X_CLASS | 430 | #define TI8168_REV_ES1_0 TI816X_CLASS |
387 | #define TI8168_REV_ES1_1 (TI816X_CLASS | (0x1 << 8)) | 431 | #define TI8168_REV_ES1_1 (TI816X_CLASS | (0x1 << 8)) |
388 | 432 | ||
433 | #define TI814X_CLASS 0x81400034 | ||
434 | #define TI8148_REV_ES1_0 TI814X_CLASS | ||
435 | #define TI8148_REV_ES2_0 (TI814X_CLASS | (0x1 << 8)) | ||
436 | #define TI8148_REV_ES2_1 (TI814X_CLASS | (0x2 << 8)) | ||
437 | |||
438 | #define AM335X_CLASS 0x33500034 | ||
439 | #define AM335X_REV_ES1_0 AM335X_CLASS | ||
440 | |||
389 | #define OMAP443X_CLASS 0x44300044 | 441 | #define OMAP443X_CLASS 0x44300044 |
390 | #define OMAP4430_REV_ES1_0 (OMAP443X_CLASS | (0x10 << 8)) | 442 | #define OMAP4430_REV_ES1_0 (OMAP443X_CLASS | (0x10 << 8)) |
391 | #define OMAP4430_REV_ES2_0 (OMAP443X_CLASS | (0x20 << 8)) | 443 | #define OMAP4430_REV_ES2_0 (OMAP443X_CLASS | (0x20 << 8)) |
392 | #define OMAP4430_REV_ES2_1 (OMAP443X_CLASS | (0x21 << 8)) | 444 | #define OMAP4430_REV_ES2_1 (OMAP443X_CLASS | (0x21 << 8)) |
393 | #define OMAP4430_REV_ES2_2 (OMAP443X_CLASS | (0x22 << 8)) | 445 | #define OMAP4430_REV_ES2_2 (OMAP443X_CLASS | (0x22 << 8)) |
446 | #define OMAP4430_REV_ES2_3 (OMAP443X_CLASS | (0x23 << 8)) | ||
394 | 447 | ||
395 | #define OMAP446X_CLASS 0x44600044 | 448 | #define OMAP446X_CLASS 0x44600044 |
396 | #define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8)) | 449 | #define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8)) |
397 | 450 | ||
451 | #define OMAP447X_CLASS 0x44700044 | ||
452 | #define OMAP4470_REV_ES1_0 (OMAP447X_CLASS | (0x10 << 8)) | ||
453 | |||
398 | void omap2_check_revision(void); | 454 | void omap2_check_revision(void); |
399 | 455 | ||
400 | /* | 456 | /* |
diff --git a/arch/arm/plat-omap/include/plat/hardware.h b/arch/arm/plat-omap/include/plat/hardware.h index e87efe1499b..e897978371c 100644 --- a/arch/arm/plat-omap/include/plat/hardware.h +++ b/arch/arm/plat-omap/include/plat/hardware.h | |||
@@ -286,6 +286,7 @@ | |||
286 | #include <plat/omap24xx.h> | 286 | #include <plat/omap24xx.h> |
287 | #include <plat/omap34xx.h> | 287 | #include <plat/omap34xx.h> |
288 | #include <plat/omap44xx.h> | 288 | #include <plat/omap44xx.h> |
289 | #include <plat/ti816x.h> | 289 | #include <plat/ti81xx.h> |
290 | #include <plat/am33xx.h> | ||
290 | 291 | ||
291 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ | 292 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ |
diff --git a/arch/arm/plat-omap/include/plat/io.h b/arch/arm/plat-omap/include/plat/io.h index 1234944a4da..0696bae1818 100644 --- a/arch/arm/plat-omap/include/plat/io.h +++ b/arch/arm/plat-omap/include/plat/io.h | |||
@@ -73,6 +73,9 @@ | |||
73 | #define OMAP4_L3_IO_OFFSET 0xb4000000 | 73 | #define OMAP4_L3_IO_OFFSET 0xb4000000 |
74 | #define OMAP4_L3_IO_ADDRESS(pa) IOMEM((pa) + OMAP4_L3_IO_OFFSET) /* L3 */ | 74 | #define OMAP4_L3_IO_ADDRESS(pa) IOMEM((pa) + OMAP4_L3_IO_OFFSET) /* L3 */ |
75 | 75 | ||
76 | #define AM33XX_L4_WK_IO_OFFSET 0xb5000000 | ||
77 | #define AM33XX_L4_WK_IO_ADDRESS(pa) IOMEM((pa) + AM33XX_L4_WK_IO_OFFSET) | ||
78 | |||
76 | #define OMAP4_L3_PER_IO_OFFSET 0xb1100000 | 79 | #define OMAP4_L3_PER_IO_OFFSET 0xb1100000 |
77 | #define OMAP4_L3_PER_IO_ADDRESS(pa) IOMEM((pa) + OMAP4_L3_PER_IO_OFFSET) | 80 | #define OMAP4_L3_PER_IO_ADDRESS(pa) IOMEM((pa) + OMAP4_L3_PER_IO_OFFSET) |
78 | 81 | ||
@@ -154,6 +157,15 @@ | |||
154 | #define L4_34XX_SIZE SZ_4M /* 1MB of 128MB used, want 1MB sect */ | 157 | #define L4_34XX_SIZE SZ_4M /* 1MB of 128MB used, want 1MB sect */ |
155 | 158 | ||
156 | /* | 159 | /* |
160 | * ---------------------------------------------------------------------------- | ||
161 | * AM33XX specific IO mapping | ||
162 | * ---------------------------------------------------------------------------- | ||
163 | */ | ||
164 | #define L4_WK_AM33XX_PHYS L4_WK_AM33XX_BASE | ||
165 | #define L4_WK_AM33XX_VIRT (L4_WK_AM33XX_PHYS + AM33XX_L4_WK_IO_OFFSET) | ||
166 | #define L4_WK_AM33XX_SIZE SZ_4M /* 1MB of 128MB used, want 1MB sect */ | ||
167 | |||
168 | /* | ||
157 | * Need to look at the Size 4M for L4. | 169 | * Need to look at the Size 4M for L4. |
158 | * VPOM3430 was not working for Int controller | 170 | * VPOM3430 was not working for Int controller |
159 | */ | 171 | */ |
diff --git a/arch/arm/plat-omap/include/plat/omap34xx.h b/arch/arm/plat-omap/include/plat/omap34xx.h index b9e85886b9d..0d818acf391 100644 --- a/arch/arm/plat-omap/include/plat/omap34xx.h +++ b/arch/arm/plat-omap/include/plat/omap34xx.h | |||
@@ -35,6 +35,8 @@ | |||
35 | #define L4_EMU_34XX_BASE 0x54000000 | 35 | #define L4_EMU_34XX_BASE 0x54000000 |
36 | #define L3_34XX_BASE 0x68000000 | 36 | #define L3_34XX_BASE 0x68000000 |
37 | 37 | ||
38 | #define L4_WK_AM33XX_BASE 0x44C00000 | ||
39 | |||
38 | #define OMAP3430_32KSYNCT_BASE 0x48320000 | 40 | #define OMAP3430_32KSYNCT_BASE 0x48320000 |
39 | #define OMAP3430_CM_BASE 0x48004800 | 41 | #define OMAP3430_CM_BASE 0x48004800 |
40 | #define OMAP3430_PRM_BASE 0x48306800 | 42 | #define OMAP3430_PRM_BASE 0x48306800 |
diff --git a/arch/arm/plat-omap/include/plat/serial.h b/arch/arm/plat-omap/include/plat/serial.h index 1ab9fd6abe6..6975ee3f521 100644 --- a/arch/arm/plat-omap/include/plat/serial.h +++ b/arch/arm/plat-omap/include/plat/serial.h | |||
@@ -51,10 +51,10 @@ | |||
51 | #define OMAP4_UART3_BASE 0x48020000 | 51 | #define OMAP4_UART3_BASE 0x48020000 |
52 | #define OMAP4_UART4_BASE 0x4806e000 | 52 | #define OMAP4_UART4_BASE 0x4806e000 |
53 | 53 | ||
54 | /* TI816X serial ports */ | 54 | /* TI81XX serial ports */ |
55 | #define TI816X_UART1_BASE 0x48020000 | 55 | #define TI81XX_UART1_BASE 0x48020000 |
56 | #define TI816X_UART2_BASE 0x48022000 | 56 | #define TI81XX_UART2_BASE 0x48022000 |
57 | #define TI816X_UART3_BASE 0x48024000 | 57 | #define TI81XX_UART3_BASE 0x48024000 |
58 | 58 | ||
59 | /* AM3505/3517 UART4 */ | 59 | /* AM3505/3517 UART4 */ |
60 | #define AM35XX_UART4_BASE 0x4809E000 /* Only on AM3505/3517 */ | 60 | #define AM35XX_UART4_BASE 0x4809E000 /* Only on AM3505/3517 */ |
@@ -89,9 +89,9 @@ | |||
89 | #define OMAP4UART2 OMAP2UART2 | 89 | #define OMAP4UART2 OMAP2UART2 |
90 | #define OMAP4UART3 43 | 90 | #define OMAP4UART3 43 |
91 | #define OMAP4UART4 44 | 91 | #define OMAP4UART4 44 |
92 | #define TI816XUART1 81 | 92 | #define TI81XXUART1 81 |
93 | #define TI816XUART2 82 | 93 | #define TI81XXUART2 82 |
94 | #define TI816XUART3 83 | 94 | #define TI81XXUART3 83 |
95 | #define ZOOM_UART 95 /* Only on zoom2/3 */ | 95 | #define ZOOM_UART 95 /* Only on zoom2/3 */ |
96 | 96 | ||
97 | /* This is only used by 8250.c for omap1510 */ | 97 | /* This is only used by 8250.c for omap1510 */ |
diff --git a/arch/arm/plat-omap/include/plat/ti816x.h b/arch/arm/plat-omap/include/plat/ti81xx.h index 50510f5dda1..8f9843f7842 100644 --- a/arch/arm/plat-omap/include/plat/ti816x.h +++ b/arch/arm/plat-omap/include/plat/ti81xx.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * This file contains the address data for various TI816X modules. | 2 | * This file contains the address data for various TI81XX modules. |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ | 4 | * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ |
5 | * | 5 | * |
@@ -13,15 +13,15 @@ | |||
13 | * GNU General Public License for more details. | 13 | * GNU General Public License for more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifndef __ASM_ARCH_TI816X_H | 16 | #ifndef __ASM_ARCH_TI81XX_H |
17 | #define __ASM_ARCH_TI816X_H | 17 | #define __ASM_ARCH_TI81XX_H |
18 | 18 | ||
19 | #define L4_SLOW_TI816X_BASE 0x48000000 | 19 | #define L4_SLOW_TI81XX_BASE 0x48000000 |
20 | 20 | ||
21 | #define TI816X_SCM_BASE 0x48140000 | 21 | #define TI81XX_SCM_BASE 0x48140000 |
22 | #define TI816X_CTRL_BASE TI816X_SCM_BASE | 22 | #define TI81XX_CTRL_BASE TI81XX_SCM_BASE |
23 | #define TI816X_PRCM_BASE 0x48180000 | 23 | #define TI81XX_PRCM_BASE 0x48180000 |
24 | 24 | ||
25 | #define TI816X_ARM_INTC_BASE 0x48200000 | 25 | #define TI81XX_ARM_INTC_BASE 0x48200000 |
26 | 26 | ||
27 | #endif /* __ASM_ARCH_TI816X_H */ | 27 | #endif /* __ASM_ARCH_TI81XX_H */ |
diff --git a/arch/arm/plat-omap/include/plat/uncompress.h b/arch/arm/plat-omap/include/plat/uncompress.h index 2f472e989ec..6ee90495ca4 100644 --- a/arch/arm/plat-omap/include/plat/uncompress.h +++ b/arch/arm/plat-omap/include/plat/uncompress.h | |||
@@ -99,9 +99,9 @@ static inline void flush(void) | |||
99 | #define DEBUG_LL_ZOOM(mach) \ | 99 | #define DEBUG_LL_ZOOM(mach) \ |
100 | _DEBUG_LL_ENTRY(mach, ZOOM_UART_BASE, ZOOM_PORT_SHIFT, ZOOM_UART) | 100 | _DEBUG_LL_ENTRY(mach, ZOOM_UART_BASE, ZOOM_PORT_SHIFT, ZOOM_UART) |
101 | 101 | ||
102 | #define DEBUG_LL_TI816X(p, mach) \ | 102 | #define DEBUG_LL_TI81XX(p, mach) \ |
103 | _DEBUG_LL_ENTRY(mach, TI816X_UART##p##_BASE, OMAP_PORT_SHIFT, \ | 103 | _DEBUG_LL_ENTRY(mach, TI81XX_UART##p##_BASE, OMAP_PORT_SHIFT, \ |
104 | TI816XUART##p) | 104 | TI81XXUART##p) |
105 | 105 | ||
106 | static inline void __arch_decomp_setup(unsigned long arch_id) | 106 | static inline void __arch_decomp_setup(unsigned long arch_id) |
107 | { | 107 | { |
@@ -177,7 +177,10 @@ static inline void __arch_decomp_setup(unsigned long arch_id) | |||
177 | DEBUG_LL_ZOOM(omap_zoom3); | 177 | DEBUG_LL_ZOOM(omap_zoom3); |
178 | 178 | ||
179 | /* TI8168 base boards using UART3 */ | 179 | /* TI8168 base boards using UART3 */ |
180 | DEBUG_LL_TI816X(3, ti8168evm); | 180 | DEBUG_LL_TI81XX(3, ti8168evm); |
181 | |||
182 | /* TI8148 base boards using UART1 */ | ||
183 | DEBUG_LL_TI81XX(1, ti8148evm); | ||
181 | 184 | ||
182 | } while (0); | 185 | } while (0); |
183 | } | 186 | } |
diff --git a/arch/arm/plat-omap/include/plat/usb.h b/arch/arm/plat-omap/include/plat/usb.h index 17d3c939775..c616385f27b 100644 --- a/arch/arm/plat-omap/include/plat/usb.h +++ b/arch/arm/plat-omap/include/plat/usb.h | |||
@@ -114,6 +114,7 @@ extern void am35x_musb_reset(void); | |||
114 | extern void am35x_musb_phy_power(u8 on); | 114 | extern void am35x_musb_phy_power(u8 on); |
115 | extern void am35x_musb_clear_irq(void); | 115 | extern void am35x_musb_clear_irq(void); |
116 | extern void am35x_set_mode(u8 musb_mode); | 116 | extern void am35x_set_mode(u8 musb_mode); |
117 | extern void ti81xx_musb_phy_power(u8 on); | ||
117 | 118 | ||
118 | /* | 119 | /* |
119 | * FIXME correct answer depends on hmc_mode, | 120 | * FIXME correct answer depends on hmc_mode, |
@@ -273,6 +274,37 @@ static inline void omap2_usbfs_init(struct omap_usb_config *pdata) | |||
273 | #define CONF2_OTGPWRDN (1 << 2) | 274 | #define CONF2_OTGPWRDN (1 << 2) |
274 | #define CONF2_DATPOL (1 << 1) | 275 | #define CONF2_DATPOL (1 << 1) |
275 | 276 | ||
277 | /* TI81XX specific definitions */ | ||
278 | #define USBCTRL0 0x620 | ||
279 | #define USBSTAT0 0x624 | ||
280 | |||
281 | /* TI816X PHY controls bits */ | ||
282 | #define TI816X_USBPHY0_NORMAL_MODE (1 << 0) | ||
283 | #define TI816X_USBPHY_REFCLK_OSC (1 << 8) | ||
284 | |||
285 | /* TI814X PHY controls bits */ | ||
286 | #define USBPHY_CM_PWRDN (1 << 0) | ||
287 | #define USBPHY_OTG_PWRDN (1 << 1) | ||
288 | #define USBPHY_CHGDET_DIS (1 << 2) | ||
289 | #define USBPHY_CHGDET_RSTRT (1 << 3) | ||
290 | #define USBPHY_SRCONDM (1 << 4) | ||
291 | #define USBPHY_SINKONDP (1 << 5) | ||
292 | #define USBPHY_CHGISINK_EN (1 << 6) | ||
293 | #define USBPHY_CHGVSRC_EN (1 << 7) | ||
294 | #define USBPHY_DMPULLUP (1 << 8) | ||
295 | #define USBPHY_DPPULLUP (1 << 9) | ||
296 | #define USBPHY_CDET_EXTCTL (1 << 10) | ||
297 | #define USBPHY_GPIO_MODE (1 << 12) | ||
298 | #define USBPHY_DPOPBUFCTL (1 << 13) | ||
299 | #define USBPHY_DMOPBUFCTL (1 << 14) | ||
300 | #define USBPHY_DPINPUT (1 << 15) | ||
301 | #define USBPHY_DMINPUT (1 << 16) | ||
302 | #define USBPHY_DPGPIO_PD (1 << 17) | ||
303 | #define USBPHY_DMGPIO_PD (1 << 18) | ||
304 | #define USBPHY_OTGVDET_EN (1 << 19) | ||
305 | #define USBPHY_OTGSESSEND_EN (1 << 20) | ||
306 | #define USBPHY_DATA_POLARITY (1 << 23) | ||
307 | |||
276 | #if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_USB) | 308 | #if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_USB) |
277 | u32 omap1_usb0_init(unsigned nwires, unsigned is_device); | 309 | u32 omap1_usb0_init(unsigned nwires, unsigned is_device); |
278 | u32 omap1_usb1_init(unsigned nwires); | 310 | u32 omap1_usb1_init(unsigned nwires); |
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig index 160eea15a6e..6a2abe67c8b 100644 --- a/arch/arm/plat-samsung/Kconfig +++ b/arch/arm/plat-samsung/Kconfig | |||
@@ -88,12 +88,20 @@ config S5P_GPIO_DRVSTR | |||
88 | 88 | ||
89 | config SAMSUNG_GPIO_EXTRA | 89 | config SAMSUNG_GPIO_EXTRA |
90 | int "Number of additional GPIO pins" | 90 | int "Number of additional GPIO pins" |
91 | default 128 if SAMSUNG_GPIO_EXTRA128 | ||
92 | default 64 if SAMSUNG_GPIO_EXTRA64 | ||
91 | default 0 | 93 | default 0 |
92 | help | 94 | help |
93 | Use additional GPIO space in addition to the GPIO's the SOC | 95 | Use additional GPIO space in addition to the GPIO's the SOC |
94 | provides. This allows expanding the GPIO space for use with | 96 | provides. This allows expanding the GPIO space for use with |
95 | GPIO expanders. | 97 | GPIO expanders. |
96 | 98 | ||
99 | config SAMSUNG_GPIO_EXTRA64 | ||
100 | bool | ||
101 | |||
102 | config SAMSUNG_GPIO_EXTRA128 | ||
103 | bool | ||
104 | |||
97 | config S3C_GPIO_SPACE | 105 | config S3C_GPIO_SPACE |
98 | int "Space between gpio banks" | 106 | int "Space between gpio banks" |
99 | default 0 | 107 | default 0 |