diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-09-02 08:21:44 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-09-12 12:39:50 -0400 |
commit | abf3878047a92716704942d2a00917927004798b (patch) | |
tree | 72681206c687c3e75c25e5fc7b769773bf3b50c1 /arch | |
parent | 084bb5bc00c19ec32b45f44d11ba6a0ca2514ec3 (diff) |
ARM: 8136/1: sa1100: add Micro ASIC platform device
This adds the Atmel Micro ASIC platform device and selects it
by default for h3100 and h3600.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-sa1100/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-sa1100/h3xxx.c | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/Kconfig b/arch/arm/mach-sa1100/Kconfig index 04f9784ff0ed..c6f6ed1cbed0 100644 --- a/arch/arm/mach-sa1100/Kconfig +++ b/arch/arm/mach-sa1100/Kconfig | |||
@@ -58,6 +58,7 @@ config SA1100_H3100 | |||
58 | bool "Compaq iPAQ H3100" | 58 | bool "Compaq iPAQ H3100" |
59 | select ARM_SA1110_CPUFREQ | 59 | select ARM_SA1110_CPUFREQ |
60 | select HTC_EGPIO | 60 | select HTC_EGPIO |
61 | select MFD_IPAQ_MICRO | ||
61 | help | 62 | help |
62 | Say Y here if you intend to run this kernel on the Compaq iPAQ | 63 | Say Y here if you intend to run this kernel on the Compaq iPAQ |
63 | H3100 handheld computer. Information about this machine and the | 64 | H3100 handheld computer. Information about this machine and the |
@@ -69,6 +70,7 @@ config SA1100_H3600 | |||
69 | bool "Compaq iPAQ H3600/H3700" | 70 | bool "Compaq iPAQ H3600/H3700" |
70 | select ARM_SA1110_CPUFREQ | 71 | select ARM_SA1110_CPUFREQ |
71 | select HTC_EGPIO | 72 | select HTC_EGPIO |
73 | select MFD_IPAQ_MICRO | ||
72 | help | 74 | help |
73 | Say Y here if you intend to run this kernel on the Compaq iPAQ | 75 | Say Y here if you intend to run this kernel on the Compaq iPAQ |
74 | H3600 handheld computer. Information about this machine and the | 76 | H3600 handheld computer. Information about this machine and the |
diff --git a/arch/arm/mach-sa1100/h3xxx.c b/arch/arm/mach-sa1100/h3xxx.c index c79bf467fb7f..b1d4faa12f9a 100644 --- a/arch/arm/mach-sa1100/h3xxx.c +++ b/arch/arm/mach-sa1100/h3xxx.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/mach/map.h> | 25 | #include <asm/mach/map.h> |
26 | 26 | ||
27 | #include <mach/h3xxx.h> | 27 | #include <mach/h3xxx.h> |
28 | #include <mach/irqs.h> | ||
28 | 29 | ||
29 | #include "generic.h" | 30 | #include "generic.h" |
30 | 31 | ||
@@ -244,9 +245,23 @@ static struct platform_device h3xxx_keys = { | |||
244 | }, | 245 | }, |
245 | }; | 246 | }; |
246 | 247 | ||
248 | static struct resource h3xxx_micro_resources[] = { | ||
249 | DEFINE_RES_MEM(0x80010000, SZ_4K), | ||
250 | DEFINE_RES_MEM(0x80020000, SZ_4K), | ||
251 | DEFINE_RES_IRQ(IRQ_Ser1UART), | ||
252 | }; | ||
253 | |||
254 | struct platform_device h3xxx_micro_asic = { | ||
255 | .name = "ipaq-h3xxx-micro", | ||
256 | .id = -1, | ||
257 | .resource = h3xxx_micro_resources, | ||
258 | .num_resources = ARRAY_SIZE(h3xxx_micro_resources), | ||
259 | }; | ||
260 | |||
247 | static struct platform_device *h3xxx_devices[] = { | 261 | static struct platform_device *h3xxx_devices[] = { |
248 | &h3xxx_egpio, | 262 | &h3xxx_egpio, |
249 | &h3xxx_keys, | 263 | &h3xxx_keys, |
264 | &h3xxx_micro_asic, | ||
250 | }; | 265 | }; |
251 | 266 | ||
252 | void __init h3xxx_mach_init(void) | 267 | void __init h3xxx_mach_init(void) |