diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2010-05-03 03:46:51 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-05-04 12:50:06 -0400 |
commit | 591d8dd71cc265465ac706ac11e5f613c6181a43 (patch) | |
tree | 8304dacd18915ba63279413e7cd77c456a1fee98 /arch/arm/mach-ux500/cpu-db5500.c | |
parent | cb165c52561fd5947747fdbdb0c7ad22c6138175 (diff) |
ARM: 6090/1: ux500: add U5500 support
Add basic support for the U5500 platform.
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ux500/cpu-db5500.c')
-rw-r--r-- | arch/arm/mach-ux500/cpu-db5500.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/cpu-db5500.c b/arch/arm/mach-ux500/cpu-db5500.c new file mode 100644 index 000000000000..6a3ac4539f16 --- /dev/null +++ b/arch/arm/mach-ux500/cpu-db5500.c | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | * Copyright (C) ST-Ericsson SA 2010 | ||
3 | * | ||
4 | * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson | ||
5 | * License terms: GNU General Public License (GPL) version 2 | ||
6 | */ | ||
7 | |||
8 | #include <linux/platform_device.h> | ||
9 | #include <linux/amba/bus.h> | ||
10 | #include <linux/io.h> | ||
11 | |||
12 | #include <asm/mach/map.h> | ||
13 | |||
14 | #include <mach/hardware.h> | ||
15 | #include <mach/devices.h> | ||
16 | #include <mach/setup.h> | ||
17 | |||
18 | static struct map_desc u5500_io_desc[] __initdata = { | ||
19 | __IO_DEV_DESC(U5500_GPIO0_BASE, SZ_4K), | ||
20 | __IO_DEV_DESC(U5500_GPIO1_BASE, SZ_4K), | ||
21 | __IO_DEV_DESC(U5500_GPIO2_BASE, SZ_4K), | ||
22 | __IO_DEV_DESC(U5500_GPIO3_BASE, SZ_4K), | ||
23 | __IO_DEV_DESC(U5500_GPIO4_BASE, SZ_4K), | ||
24 | }; | ||
25 | |||
26 | static struct platform_device *u5500_platform_devs[] __initdata = { | ||
27 | &u5500_gpio_devs[0], | ||
28 | &u5500_gpio_devs[1], | ||
29 | &u5500_gpio_devs[2], | ||
30 | &u5500_gpio_devs[3], | ||
31 | &u5500_gpio_devs[4], | ||
32 | &u5500_gpio_devs[5], | ||
33 | &u5500_gpio_devs[6], | ||
34 | &u5500_gpio_devs[7], | ||
35 | }; | ||
36 | |||
37 | void __init u5500_map_io(void) | ||
38 | { | ||
39 | ux500_map_io(); | ||
40 | |||
41 | iotable_init(u5500_io_desc, ARRAY_SIZE(u5500_io_desc)); | ||
42 | } | ||
43 | |||
44 | void __init u5500_init_devices(void) | ||
45 | { | ||
46 | ux500_init_devices(); | ||
47 | |||
48 | platform_add_devices(u5500_platform_devs, | ||
49 | ARRAY_SIZE(u5500_platform_devs)); | ||
50 | } | ||