Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-3.2/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra into fixes

+27 -12
+1 -2
arch/arm/boot/dts/tegra-ventana.dts
··· 22 22 sdhci@c8000400 { 23 23 cd-gpios = <&gpio 69 0>; /* gpio PI5 */ 24 24 wp-gpios = <&gpio 57 0>; /* gpio PH1 */ 25 - power-gpios = <&gpio 155 0>; /* gpio PT3 */ 25 + power-gpios = <&gpio 70 0>; /* gpio PI6 */ 26 26 }; 27 27 28 28 sdhci@c8000600 { 29 - power-gpios = <&gpio 70 0>; /* gpio PI6 */ 30 29 support-8bit; 31 30 }; 32 31 };
+7 -6
arch/arm/mach-tegra/board-dt.c
··· 101 101 102 102 tegra_clk_init_from_table(tegra_dt_clk_init_table); 103 103 104 + /* 105 + * Finished with the static registrations now; fill in the missing 106 + * devices 107 + */ 108 + of_platform_populate(NULL, tegra_dt_match_table, 109 + tegra20_auxdata_lookup, NULL); 110 + 104 111 for (i = 0; i < ARRAY_SIZE(pinmux_configs); i++) { 105 112 if (of_machine_is_compatible(pinmux_configs[i].machine)) { 106 113 pinmux_configs[i].init(); ··· 117 110 118 111 WARN(i == ARRAY_SIZE(pinmux_configs), 119 112 "Unknown platform! Pinmuxing not initialized\n"); 120 - 121 - /* 122 - * Finished with the static registrations now; fill in the missing 123 - * devices 124 - */ 125 - of_platform_populate(NULL, tegra_dt_match_table, tegra20_auxdata_lookup, NULL); 126 113 } 127 114 128 115 static const char * tegra_dt_board_compat[] = {
+5 -1
arch/arm/mach-tegra/board-harmony-pinmux.c
··· 16 16 17 17 #include <linux/kernel.h> 18 18 #include <linux/gpio.h> 19 + #include <linux/of.h> 20 + 19 21 #include <mach/pinmux.h> 20 22 21 23 #include "gpio-names.h" ··· 163 161 164 162 void harmony_pinmux_init(void) 165 163 { 166 - platform_add_devices(pinmux_devices, ARRAY_SIZE(pinmux_devices)); 164 + if (!of_machine_is_compatible("nvidia,tegra20")) 165 + platform_add_devices(pinmux_devices, 166 + ARRAY_SIZE(pinmux_devices)); 167 167 168 168 tegra_pinmux_config_table(harmony_pinmux, ARRAY_SIZE(harmony_pinmux)); 169 169
+5 -1
arch/arm/mach-tegra/board-paz00-pinmux.c
··· 16 16 17 17 #include <linux/kernel.h> 18 18 #include <linux/gpio.h> 19 + #include <linux/of.h> 20 + 19 21 #include <mach/pinmux.h> 20 22 21 23 #include "gpio-names.h" ··· 160 158 161 159 void paz00_pinmux_init(void) 162 160 { 163 - platform_add_devices(pinmux_devices, ARRAY_SIZE(pinmux_devices)); 161 + if (!of_machine_is_compatible("nvidia,tegra20")) 162 + platform_add_devices(pinmux_devices, 163 + ARRAY_SIZE(pinmux_devices)); 164 164 165 165 tegra_pinmux_config_table(paz00_pinmux, ARRAY_SIZE(paz00_pinmux)); 166 166
+5 -1
arch/arm/mach-tegra/board-seaboard-pinmux.c
··· 16 16 #include <linux/kernel.h> 17 17 #include <linux/init.h> 18 18 #include <linux/gpio.h> 19 + #include <linux/of.h> 19 20 20 21 #include <mach/pinmux.h> 21 22 #include <mach/pinmux-t2.h> ··· 192 191 { .gpio = TEGRA_GPIO_SD2_POWER, .enable = true }, 193 192 { .gpio = TEGRA_GPIO_LIDSWITCH, .enable = true }, 194 193 { .gpio = TEGRA_GPIO_POWERKEY, .enable = true }, 194 + { .gpio = TEGRA_GPIO_HP_DET, .enable = true }, 195 195 { .gpio = TEGRA_GPIO_ISL29018_IRQ, .enable = true }, 196 196 { .gpio = TEGRA_GPIO_CDC_IRQ, .enable = true }, 197 197 { .gpio = TEGRA_GPIO_USB1, .enable = true }, ··· 220 218 221 219 void __init seaboard_common_pinmux_init(void) 222 220 { 223 - platform_add_devices(pinmux_devices, ARRAY_SIZE(pinmux_devices)); 221 + if (!of_machine_is_compatible("nvidia,tegra20")) 222 + platform_add_devices(pinmux_devices, 223 + ARRAY_SIZE(pinmux_devices)); 224 224 225 225 tegra_pinmux_config_table(seaboard_pinmux, ARRAY_SIZE(seaboard_pinmux)); 226 226
+4 -1
arch/arm/mach-tegra/board-trimslice-pinmux.c
··· 16 16 #include <linux/gpio.h> 17 17 #include <linux/kernel.h> 18 18 #include <linux/init.h> 19 + #include <linux/of.h> 19 20 20 21 #include <mach/pinmux.h> 21 22 ··· 158 157 159 158 void __init trimslice_pinmux_init(void) 160 159 { 161 - platform_add_devices(pinmux_devices, ARRAY_SIZE(pinmux_devices)); 160 + if (!of_machine_is_compatible("nvidia,tegra20")) 161 + platform_add_devices(pinmux_devices, 162 + ARRAY_SIZE(pinmux_devices)); 162 163 tegra_pinmux_config_table(trimslice_pinmux, ARRAY_SIZE(trimslice_pinmux)); 163 164 tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table)); 164 165 }