aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-vt8500/devices-wm8505.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-vt8500/devices-wm8505.c')
-rw-r--r--arch/arm/mach-vt8500/devices-wm8505.c103
1 files changed, 0 insertions, 103 deletions
diff --git a/arch/arm/mach-vt8500/devices-wm8505.c b/arch/arm/mach-vt8500/devices-wm8505.c
deleted file mode 100644
index c810454178dc..000000000000
--- a/arch/arm/mach-vt8500/devices-wm8505.c
+++ /dev/null
@@ -1,103 +0,0 @@
1/* linux/arch/arm/mach-vt8500/devices-wm8505.c
2 *
3 * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
4 *
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 */
15
16#include <linux/platform_device.h>
17
18#include <mach/wm8505_regs.h>
19#include <mach/wm8505_irqs.h>
20#include <mach/i8042.h>
21#include "devices.h"
22
23void __init wm8505_set_resources(void)
24{
25 struct resource tmp[3];
26
27 tmp[0] = wmt_mmio_res(WM8505_GOVR_BASE, SZ_512);
28 wmt_res_add(&vt8500_device_wm8505_fb, tmp, 1);
29
30 tmp[0] = wmt_mmio_res(WM8505_UART0_BASE, 0x1040);
31 tmp[1] = wmt_irq_res(IRQ_UART0);
32 wmt_res_add(&vt8500_device_uart0, tmp, 2);
33
34 tmp[0] = wmt_mmio_res(WM8505_UART1_BASE, 0x1040);
35 tmp[1] = wmt_irq_res(IRQ_UART1);
36 wmt_res_add(&vt8500_device_uart1, tmp, 2);
37
38 tmp[0] = wmt_mmio_res(WM8505_UART2_BASE, 0x1040);
39 tmp[1] = wmt_irq_res(IRQ_UART2);
40 wmt_res_add(&vt8500_device_uart2, tmp, 2);
41
42 tmp[0] = wmt_mmio_res(WM8505_UART3_BASE, 0x1040);
43 tmp[1] = wmt_irq_res(IRQ_UART3);
44 wmt_res_add(&vt8500_device_uart3, tmp, 2);
45
46 tmp[0] = wmt_mmio_res(WM8505_UART4_BASE, 0x1040);
47 tmp[1] = wmt_irq_res(IRQ_UART4);
48 wmt_res_add(&vt8500_device_uart4, tmp, 2);
49
50 tmp[0] = wmt_mmio_res(WM8505_UART5_BASE, 0x1040);
51 tmp[1] = wmt_irq_res(IRQ_UART5);
52 wmt_res_add(&vt8500_device_uart5, tmp, 2);
53
54 tmp[0] = wmt_mmio_res(WM8505_EHCI_BASE, SZ_512);
55 tmp[1] = wmt_irq_res(IRQ_EHCI);
56 wmt_res_add(&vt8500_device_ehci, tmp, 2);
57
58 tmp[0] = wmt_mmio_res(WM8505_UHCI_BASE, SZ_512);
59 tmp[1] = wmt_irq_res(IRQ_UHCI);
60 wmt_res_add(&vt8500_device_uhci, tmp, 2);
61
62 tmp[0] = wmt_mmio_res(WM8505_GEGEA_BASE, SZ_256);
63 wmt_res_add(&vt8500_device_ge_rops, tmp, 1);
64
65 tmp[0] = wmt_mmio_res(WM8505_PWM_BASE, 0x44);
66 wmt_res_add(&vt8500_device_pwm, tmp, 1);
67
68 tmp[0] = wmt_mmio_res(WM8505_RTC_BASE, 0x2c);
69 tmp[1] = wmt_irq_res(IRQ_RTC);
70 tmp[2] = wmt_irq_res(IRQ_RTCSM);
71 wmt_res_add(&vt8500_device_rtc, tmp, 3);
72}
73
74static void __init wm8505_set_externs(void)
75{
76 /* Non-resource-aware stuff */
77 wmt_ic_base = WM8505_IC_BASE;
78 wmt_sic_base = WM8505_SIC_BASE;
79 wmt_gpio_base = WM8505_GPIO_BASE;
80 wmt_pmc_base = WM8505_PMC_BASE;
81 wmt_i8042_base = WM8505_PS2_BASE;
82
83 wmt_nr_irqs = WM8505_NR_IRQS;
84 wmt_timer_irq = IRQ_PMCOS0;
85 wmt_gpio_ext_irq[0] = IRQ_EXT0;
86 wmt_gpio_ext_irq[1] = IRQ_EXT1;
87 wmt_gpio_ext_irq[2] = IRQ_EXT2;
88 wmt_gpio_ext_irq[3] = IRQ_EXT3;
89 wmt_gpio_ext_irq[4] = IRQ_EXT4;
90 wmt_gpio_ext_irq[5] = IRQ_EXT5;
91 wmt_gpio_ext_irq[6] = IRQ_EXT6;
92 wmt_gpio_ext_irq[7] = IRQ_EXT7;
93 wmt_i8042_kbd_irq = IRQ_PS2KBD;
94 wmt_i8042_aux_irq = IRQ_PS2MOUSE;
95}
96
97void __init wm8505_map_io(void)
98{
99 iotable_init(wmt_io_desc, ARRAY_SIZE(wmt_io_desc));
100
101 /* Should be done before interrupts and timers are initialized */
102 wm8505_set_externs();
103}