diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 14:53:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 14:53:35 -0400 |
commit | dd58ecba48edf14be1a5f70120fcd3002277a74a (patch) | |
tree | 6185fbeefa169f7574288553bfb86060437fd57e /arch/arm/mach-imx | |
parent | 3f4a12210774eb31c3435a5bc21d57aa20647aeb (diff) | |
parent | 604f4498d08f2caa00acc6707eec8f5759996257 (diff) |
Merge branch 'next/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc
* 'next/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc: (35 commits)
ARM: msm: platsmp: determine number of CPU cores at boot time
ARM: Tegra: Seaboard: Fix I2C bus numbering for ADT7461
ARM: Tegra: Trimslice: Tri-state DAP3 pinmux
ARM: orion5x: fixup 5181 MPP mask check
ARM: mxs-dma: include <linux/dmaengine.h>
ARM: i.MX53: consistently use MX53_UART_PAD_CTRL for uart txd/rxd/rts/cts
ARM: i.MX53: UARTn_CTS pin should not change RTS input select
ARM: i.MX53: UARTn_TXD pin should not change RXD input select
ARM: mx25: Fix typo on CAN1_RX pad setting
iomux-mx53: add missing 'IOMUX_CONFIG_SION' for some I2C pad definitions
ARM: NUC93X: add UL suffix to VMALLOC_END to ensure it is properly typed
ARM: LPC32XXX: add UL suffix to VMALLOC_END to ensure it is properly typed
ARM: CNS3XXX: add UL suffix to VMALLOC_END to ensure it is properly typed
ARM: i.MX53: Fix IOMUX type o's
ARM i.MX dma: Fix burstsize settings
mach-mx5: fix the I2C clock parents
ARM: mxs/tx28: according to the TX28's datasheet D4-D7 are not used for MMC0
ARM i.MX23/28: platform-mxsfb: Add missing include of linux/dma-mapping.h
ARM: mx53: Fix some interrupts marked as reserved.
MXC: iomux-v3: correct NO_PAD_CTRL definition
...
Fix up trivial conflict in arch/arm/mach-imx/mach-mx31_3ds.c
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/mach-mx27_3ds.c | 29 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mx31_3ds.c | 10 |
2 files changed, 29 insertions, 10 deletions
diff --git a/arch/arm/mach-imx/mach-mx27_3ds.c b/arch/arm/mach-imx/mach-mx27_3ds.c index 117ce0a50f4e..eb663102376f 100644 --- a/arch/arm/mach-imx/mach-mx27_3ds.c +++ b/arch/arm/mach-imx/mach-mx27_3ds.c | |||
@@ -42,10 +42,11 @@ | |||
42 | 42 | ||
43 | #include "devices-imx27.h" | 43 | #include "devices-imx27.h" |
44 | 44 | ||
45 | #define SD1_EN_GPIO (GPIO_PORTB + 25) | 45 | #define SD1_EN_GPIO IMX_GPIO_NR(2, 25) |
46 | #define OTG_PHY_RESET_GPIO (GPIO_PORTB + 23) | 46 | #define OTG_PHY_RESET_GPIO IMX_GPIO_NR(2, 23) |
47 | #define SPI2_SS0 (GPIO_PORTD + 21) | 47 | #define SPI2_SS0 IMX_GPIO_NR(4, 21) |
48 | #define EXPIO_PARENT_INT (MXC_INTERNAL_IRQS + GPIO_PORTC + 28) | 48 | #define EXPIO_PARENT_INT gpio_to_irq(IMX_GPIO_NR(3, 28)) |
49 | #define PMIC_INT IMX_GPIO_NR(3, 14) | ||
49 | 50 | ||
50 | static const int mx27pdk_pins[] __initconst = { | 51 | static const int mx27pdk_pins[] __initconst = { |
51 | /* UART1 */ | 52 | /* UART1 */ |
@@ -98,9 +99,12 @@ static const int mx27pdk_pins[] __initconst = { | |||
98 | PD22_PF_CSPI2_SCLK, | 99 | PD22_PF_CSPI2_SCLK, |
99 | PD23_PF_CSPI2_MISO, | 100 | PD23_PF_CSPI2_MISO, |
100 | PD24_PF_CSPI2_MOSI, | 101 | PD24_PF_CSPI2_MOSI, |
102 | SPI2_SS0 | GPIO_GPIO | GPIO_OUT, | ||
101 | /* I2C1 */ | 103 | /* I2C1 */ |
102 | PD17_PF_I2C_DATA, | 104 | PD17_PF_I2C_DATA, |
103 | PD18_PF_I2C_CLK, | 105 | PD18_PF_I2C_CLK, |
106 | /* PMIC INT */ | ||
107 | PMIC_INT | GPIO_GPIO | GPIO_IN, | ||
104 | }; | 108 | }; |
105 | 109 | ||
106 | static const struct imxuart_platform_data uart_pdata __initconst = { | 110 | static const struct imxuart_platform_data uart_pdata __initconst = { |
@@ -193,6 +197,13 @@ static int __init mx27_3ds_otg_mode(char *options) | |||
193 | __setup("otg_mode=", mx27_3ds_otg_mode); | 197 | __setup("otg_mode=", mx27_3ds_otg_mode); |
194 | 198 | ||
195 | /* Regulators */ | 199 | /* Regulators */ |
200 | static struct regulator_init_data gpo_init = { | ||
201 | .constraints = { | ||
202 | .boot_on = 1, | ||
203 | .always_on = 1, | ||
204 | } | ||
205 | }; | ||
206 | |||
196 | static struct regulator_consumer_supply vmmc1_consumers[] = { | 207 | static struct regulator_consumer_supply vmmc1_consumers[] = { |
197 | REGULATOR_SUPPLY("lcd_2v8", NULL), | 208 | REGULATOR_SUPPLY("lcd_2v8", NULL), |
198 | }; | 209 | }; |
@@ -201,7 +212,9 @@ static struct regulator_init_data vmmc1_init = { | |||
201 | .constraints = { | 212 | .constraints = { |
202 | .min_uV = 2800000, | 213 | .min_uV = 2800000, |
203 | .max_uV = 2800000, | 214 | .max_uV = 2800000, |
204 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE, | 215 | .apply_uV = 1, |
216 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | ||
217 | REGULATOR_CHANGE_STATUS, | ||
205 | }, | 218 | }, |
206 | .num_consumer_supplies = ARRAY_SIZE(vmmc1_consumers), | 219 | .num_consumer_supplies = ARRAY_SIZE(vmmc1_consumers), |
207 | .consumer_supplies = vmmc1_consumers, | 220 | .consumer_supplies = vmmc1_consumers, |
@@ -228,6 +241,12 @@ static struct mc13xxx_regulator_init_data mx27_3ds_regulators[] = { | |||
228 | }, { | 241 | }, { |
229 | .id = MC13783_REG_VGEN, | 242 | .id = MC13783_REG_VGEN, |
230 | .init_data = &vgen_init, | 243 | .init_data = &vgen_init, |
244 | }, { | ||
245 | .id = MC13783_REG_GPO1, /* Turn on 1.8V */ | ||
246 | .init_data = &gpo_init, | ||
247 | }, { | ||
248 | .id = MC13783_REG_GPO3, /* Turn on 3.3V */ | ||
249 | .init_data = &gpo_init, | ||
231 | }, | 250 | }, |
232 | }; | 251 | }; |
233 | 252 | ||
diff --git a/arch/arm/mach-imx/mach-mx31_3ds.c b/arch/arm/mach-imx/mach-mx31_3ds.c index 441fbb83f39c..c20be7530927 100644 --- a/arch/arm/mach-imx/mach-mx31_3ds.c +++ b/arch/arm/mach-imx/mach-mx31_3ds.c | |||
@@ -54,11 +54,8 @@ static int mx31_3ds_pins[] = { | |||
54 | MX31_PIN_RXD1__RXD1, | 54 | MX31_PIN_RXD1__RXD1, |
55 | IOMUX_MODE(MX31_PIN_GPIO1_1, IOMUX_CONFIG_GPIO), | 55 | IOMUX_MODE(MX31_PIN_GPIO1_1, IOMUX_CONFIG_GPIO), |
56 | /*SPI0*/ | 56 | /*SPI0*/ |
57 | MX31_PIN_CSPI1_SCLK__SCLK, | 57 | IOMUX_MODE(MX31_PIN_DSR_DCE1, IOMUX_CONFIG_ALT1), |
58 | MX31_PIN_CSPI1_MOSI__MOSI, | 58 | IOMUX_MODE(MX31_PIN_RI_DCE1, IOMUX_CONFIG_ALT1), |
59 | MX31_PIN_CSPI1_MISO__MISO, | ||
60 | MX31_PIN_CSPI1_SPI_RDY__SPI_RDY, | ||
61 | MX31_PIN_CSPI1_SS2__SS2, /* CS for LCD */ | ||
62 | /* SPI 1 */ | 59 | /* SPI 1 */ |
63 | MX31_PIN_CSPI2_SCLK__SCLK, | 60 | MX31_PIN_CSPI2_SCLK__SCLK, |
64 | MX31_PIN_CSPI2_MOSI__MOSI, | 61 | MX31_PIN_CSPI2_MOSI__MOSI, |
@@ -692,6 +689,9 @@ static void __init mx31_3ds_init(void) | |||
692 | 689 | ||
693 | imx31_soc_init(); | 690 | imx31_soc_init(); |
694 | 691 | ||
692 | /* Configure SPI1 IOMUX */ | ||
693 | mxc_iomux_set_gpr(MUX_PGP_CSPI_BB, true); | ||
694 | |||
695 | mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins), | 695 | mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins), |
696 | "mx31_3ds"); | 696 | "mx31_3ds"); |
697 | 697 | ||