diff options
author | Olof Johansson <olof@lixom.net> | 2015-01-23 16:54:30 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2015-01-23 16:54:30 -0500 |
commit | b2cb793c2c08987a1106f1b629170b269aae6a10 (patch) | |
tree | bd3ad0647a389daaeca7731bddf47acbe54ddef7 | |
parent | 2b5901895833341fd7171273104eca67492c33f9 (diff) | |
parent | a52d209336f8fc7483a8c7f4a8a7d2a8e1692a6c (diff) |
Merge tag 'pxa-for-3.20' of https://github.com/rjarzmik/linux into next/fixes-non-critical
Merge "pxa for v3.20" from Robert Jarzmik:
arm: pxa: pxa for v3.20
This update deals mostly with regulator updates for fixing all the
cases where a default regulator is needed, with non device-tree
platforms. There's also a kconfig fix for device-tree pxa.
It should be noticed that all interrupts numbers were shifted by
16 (number of legacy interrupts).
* tag 'pxa-for-3.20' of https://github.com/rjarzmik/linux:
hx4700: regulator: declare full constraints
ARM: pxa: add regulator_has_full_constraints to spitz board file
ARM: pxa: add regulator_has_full_constraints to poodle board file
ARM: pxa: add regulator_has_full_constraints to corgi board file
ARM: pxa: arbitrarily set first interrupt number
arm: pxa: fix pxa27x device-tree support kconfig
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/mach-pxa/Kconfig | 6 | ||||
-rw-r--r-- | arch/arm/mach-pxa/corgi.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-pxa/hx4700.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/irqs.h | 9 | ||||
-rw-r--r-- | arch/arm/mach-pxa/poodle.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 2 |
6 files changed, 11 insertions, 13 deletions
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 83efe914bf7d..8896e71586f5 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
@@ -6,7 +6,6 @@ comment "Intel/Marvell Dev Platforms (sorted by hardware release time)" | |||
6 | 6 | ||
7 | config MACH_PXA27X_DT | 7 | config MACH_PXA27X_DT |
8 | bool "Support PXA27x platforms from device tree" | 8 | bool "Support PXA27x platforms from device tree" |
9 | select CPU_PXA27x | ||
10 | select POWER_SUPPLY | 9 | select POWER_SUPPLY |
11 | select PXA27x | 10 | select PXA27x |
12 | select USE_OF | 11 | select USE_OF |
@@ -84,14 +83,12 @@ config ARCH_VIPER | |||
84 | select I2C_GPIO if I2C=y | 83 | select I2C_GPIO if I2C=y |
85 | select ISA | 84 | select ISA |
86 | select PXA25x | 85 | select PXA25x |
87 | select PXA_HAVE_ISA_IRQS | ||
88 | 86 | ||
89 | config MACH_ARCOM_ZEUS | 87 | config MACH_ARCOM_ZEUS |
90 | bool "Arcom/Eurotech ZEUS SBC" | 88 | bool "Arcom/Eurotech ZEUS SBC" |
91 | select ARCOM_PCMCIA | 89 | select ARCOM_PCMCIA |
92 | select ISA | 90 | select ISA |
93 | select PXA27x | 91 | select PXA27x |
94 | select PXA_HAVE_ISA_IRQS | ||
95 | 92 | ||
96 | config MACH_BALLOON3 | 93 | config MACH_BALLOON3 |
97 | bool "Balloon 3 board" | 94 | bool "Balloon 3 board" |
@@ -691,9 +688,6 @@ config SHARPSL_PM_MAX1111 | |||
691 | select SPI | 688 | select SPI |
692 | select SPI_MASTER | 689 | select SPI_MASTER |
693 | 690 | ||
694 | config PXA_HAVE_ISA_IRQS | ||
695 | bool | ||
696 | |||
697 | config PXA310_ULPI | 691 | config PXA310_ULPI |
698 | bool | 692 | bool |
699 | 693 | ||
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 06022b235730..89f790dda93e 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
27 | #include <linux/i2c/pxa-i2c.h> | 27 | #include <linux/i2c/pxa-i2c.h> |
28 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | #include <linux/regulator/machine.h> | ||
29 | #include <linux/spi/spi.h> | 30 | #include <linux/spi/spi.h> |
30 | #include <linux/spi/ads7846.h> | 31 | #include <linux/spi/ads7846.h> |
31 | #include <linux/spi/corgi_lcd.h> | 32 | #include <linux/spi/corgi_lcd.h> |
@@ -752,6 +753,8 @@ static void __init corgi_init(void) | |||
752 | sharpsl_nand_partitions[1].size = 53 * 1024 * 1024; | 753 | sharpsl_nand_partitions[1].size = 53 * 1024 * 1024; |
753 | 754 | ||
754 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 755 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
756 | |||
757 | regulator_has_full_constraints(); | ||
755 | } | 758 | } |
756 | 759 | ||
757 | static void __init fixup_corgi(struct tag *tags, char **cmdline) | 760 | static void __init fixup_corgi(struct tag *tags, char **cmdline) |
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index c66ad4edc5e3..5fb41ad6e3bc 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -893,6 +893,8 @@ static void __init hx4700_init(void) | |||
893 | mdelay(10); | 893 | mdelay(10); |
894 | gpio_set_value(GPIO71_HX4700_ASIC3_nRESET, 1); | 894 | gpio_set_value(GPIO71_HX4700_ASIC3_nRESET, 1); |
895 | mdelay(10); | 895 | mdelay(10); |
896 | |||
897 | regulator_has_full_constraints(); | ||
896 | } | 898 | } |
897 | 899 | ||
898 | MACHINE_START(H4700, "HP iPAQ HX4700") | 900 | MACHINE_START(H4700, "HP iPAQ HX4700") |
diff --git a/arch/arm/mach-pxa/include/mach/irqs.h b/arch/arm/mach-pxa/include/mach/irqs.h index 48c2fd851686..83e04d4e72a8 100644 --- a/arch/arm/mach-pxa/include/mach/irqs.h +++ b/arch/arm/mach-pxa/include/mach/irqs.h | |||
@@ -12,14 +12,9 @@ | |||
12 | #ifndef __ASM_MACH_IRQS_H | 12 | #ifndef __ASM_MACH_IRQS_H |
13 | #define __ASM_MACH_IRQS_H | 13 | #define __ASM_MACH_IRQS_H |
14 | 14 | ||
15 | #ifdef CONFIG_PXA_HAVE_ISA_IRQS | 15 | #include <asm/irq.h> |
16 | #define PXA_ISA_IRQ(x) (x) | ||
17 | #define PXA_ISA_IRQ_NUM (16) | ||
18 | #else | ||
19 | #define PXA_ISA_IRQ_NUM (0) | ||
20 | #endif | ||
21 | 16 | ||
22 | #define PXA_IRQ(x) (PXA_ISA_IRQ_NUM + (x)) | 17 | #define PXA_IRQ(x) (NR_IRQS_LEGACY + (x)) |
23 | 18 | ||
24 | #define IRQ_SSP3 PXA_IRQ(0) /* SSP3 service request */ | 19 | #define IRQ_SSP3 PXA_IRQ(0) /* SSP3 service request */ |
25 | #define IRQ_MSL PXA_IRQ(1) /* MSL Interface interrupt */ | 20 | #define IRQ_MSL PXA_IRQ(1) /* MSL Interface interrupt */ |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 29019beae591..195b1121c8f1 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/gpio.h> | 25 | #include <linux/gpio.h> |
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
27 | #include <linux/i2c/pxa-i2c.h> | 27 | #include <linux/i2c/pxa-i2c.h> |
28 | #include <linux/regulator/machine.h> | ||
28 | #include <linux/spi/spi.h> | 29 | #include <linux/spi/spi.h> |
29 | #include <linux/spi/ads7846.h> | 30 | #include <linux/spi/ads7846.h> |
30 | #include <linux/spi/pxa2xx_spi.h> | 31 | #include <linux/spi/pxa2xx_spi.h> |
@@ -455,6 +456,7 @@ static void __init poodle_init(void) | |||
455 | pxa_set_i2c_info(NULL); | 456 | pxa_set_i2c_info(NULL); |
456 | i2c_register_board_info(0, ARRAY_AND_SIZE(poodle_i2c_devices)); | 457 | i2c_register_board_info(0, ARRAY_AND_SIZE(poodle_i2c_devices)); |
457 | poodle_init_spi(); | 458 | poodle_init_spi(); |
459 | regulator_has_full_constraints(); | ||
458 | } | 460 | } |
459 | 461 | ||
460 | static void __init fixup_poodle(struct tag *tags, char **cmdline) | 462 | static void __init fixup_poodle(struct tag *tags, char **cmdline) |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 962a7f31f596..f4e2e2719580 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -979,6 +979,8 @@ static void __init spitz_init(void) | |||
979 | spitz_nand_init(); | 979 | spitz_nand_init(); |
980 | spitz_i2c_init(); | 980 | spitz_i2c_init(); |
981 | spitz_audio_init(); | 981 | spitz_audio_init(); |
982 | |||
983 | regulator_has_full_constraints(); | ||
982 | } | 984 | } |
983 | 985 | ||
984 | static void __init spitz_fixup(struct tag *tags, char **cmdline) | 986 | static void __init spitz_fixup(struct tag *tags, char **cmdline) |