aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2018-06-02 04:19:38 -0400
committerOlof Johansson <olof@lixom.net>2018-06-02 04:19:38 -0400
commit30a04c1e32cad5723cb67926ce2926b85670cd4b (patch)
tree4071477e277c069f289937faf598f743998938a7
parentffd831a3fc0bebacfbd0f4735345e4c350291e38 (diff)
parentc1c14f8954c6d1cb9867024618e93687d9d035ba (diff)
Merge tag 'pxa-for-4.18' of https://github.com/rjarzmik/linux into next/soc
This is is the pxa changes for v4.18 cycle : - change to phase out at24 eeprom platform data - add a missing wakeup pin on pxa320 SoCs * tag 'pxa-for-4.18' of https://github.com/rjarzmik/linux: ARM: pxa3xx: enable external wakeup pins ARM: pxa: stargate2: use device properties for at24 eeprom Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm/mach-pxa/pxa3xx.c4
-rw-r--r--arch/arm/mach-pxa/stargate2.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index 4b8a0df8ea57..8c64f93b669b 100644
--- a/arch/arm/mach-pxa/pxa3xx.c
+++ b/arch/arm/mach-pxa/pxa3xx.c
@@ -446,6 +446,10 @@ static int __init pxa3xx_init(void)
446 446
447 pxa3xx_init_pm(); 447 pxa3xx_init_pm();
448 448
449 enable_irq_wake(IRQ_WAKEUP0);
450 if (cpu_is_pxa320())
451 enable_irq_wake(IRQ_WAKEUP1);
452
449 register_syscore_ops(&pxa_irq_syscore_ops); 453 register_syscore_ops(&pxa_irq_syscore_ops);
450 register_syscore_ops(&pxa3xx_mfp_syscore_ops); 454 register_syscore_ops(&pxa3xx_mfp_syscore_ops);
451 455
diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c
index df62bb23dbee..bbea5fa9a140 100644
--- a/arch/arm/mach-pxa/stargate2.c
+++ b/arch/arm/mach-pxa/stargate2.c
@@ -27,11 +27,11 @@
27 27
28#include <linux/platform_data/i2c-pxa.h> 28#include <linux/platform_data/i2c-pxa.h>
29#include <linux/platform_data/pcf857x.h> 29#include <linux/platform_data/pcf857x.h>
30#include <linux/platform_data/at24.h>
31#include <linux/smc91x.h> 30#include <linux/smc91x.h>
32#include <linux/gpio/machine.h> 31#include <linux/gpio/machine.h>
33#include <linux/gpio.h> 32#include <linux/gpio.h>
34#include <linux/leds.h> 33#include <linux/leds.h>
34#include <linux/property.h>
35 35
36#include <asm/types.h> 36#include <asm/types.h>
37#include <asm/setup.h> 37#include <asm/setup.h>
@@ -795,9 +795,9 @@ static struct pcf857x_platform_data platform_data_pcf857x = {
795 .context = NULL, 795 .context = NULL,
796}; 796};
797 797
798static struct at24_platform_data pca9500_eeprom_pdata = { 798static const struct property_entry pca9500_eeprom_properties[] = {
799 .byte_len = 256, 799 PROPERTY_ENTRY_U32("pagesize", 4),
800 .page_size = 4, 800 { }
801}; 801};
802 802
803/** 803/**
@@ -935,7 +935,7 @@ static struct i2c_board_info __initdata stargate2_i2c_board_info[] = {
935 }, { 935 }, {
936 .type = "24c02", 936 .type = "24c02",
937 .addr = 0x57, 937 .addr = 0x57,
938 .platform_data = &pca9500_eeprom_pdata, 938 .properties = pca9500_eeprom_properties,
939 }, { 939 }, {
940 .type = "max1238", 940 .type = "max1238",
941 .addr = 0x35, 941 .addr = 0x35,