diff options
Diffstat (limited to 'arch/arm/mach-s3c2410')
38 files changed, 357 insertions, 141 deletions
diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig index 3d4e9da3fa52..554731868b07 100644 --- a/arch/arm/mach-s3c2410/Kconfig +++ b/arch/arm/mach-s3c2410/Kconfig | |||
@@ -1,5 +1,3 @@ | |||
1 | # arch/arm/mach-s3c2410/Kconfig | ||
2 | # | ||
3 | # Copyright 2007 Simtec Electronics | 1 | # Copyright 2007 Simtec Electronics |
4 | # | 2 | # |
5 | # Licensed under GPLv2 | 3 | # Licensed under GPLv2 |
@@ -81,6 +79,14 @@ config ARCH_H1940 | |||
81 | help | 79 | help |
82 | Say Y here if you are using the HP IPAQ H1940 | 80 | Say Y here if you are using the HP IPAQ H1940 |
83 | 81 | ||
82 | config H1940BT | ||
83 | tristate "Control the state of H1940 bluetooth chip" | ||
84 | depends on ARCH_H1940 | ||
85 | select RFKILL | ||
86 | help | ||
87 | This is a simple driver that is able to control | ||
88 | the state of built in bluetooth chip on h1940. | ||
89 | |||
84 | config PM_H1940 | 90 | config PM_H1940 |
85 | bool | 91 | bool |
86 | help | 92 | help |
diff --git a/arch/arm/mach-s3c2410/Makefile b/arch/arm/mach-s3c2410/Makefile index 2ab5ba4b266f..0d468e96e83e 100644 --- a/arch/arm/mach-s3c2410/Makefile +++ b/arch/arm/mach-s3c2410/Makefile | |||
@@ -21,7 +21,8 @@ obj-$(CONFIG_S3C2410_PLLTABLE) += pll.o | |||
21 | # Machine support | 21 | # Machine support |
22 | 22 | ||
23 | obj-$(CONFIG_ARCH_SMDK2410) += mach-smdk2410.o | 23 | obj-$(CONFIG_ARCH_SMDK2410) += mach-smdk2410.o |
24 | obj-$(CONFIG_ARCH_H1940) += mach-h1940.o h1940-bluetooth.o | 24 | obj-$(CONFIG_ARCH_H1940) += mach-h1940.o |
25 | obj-$(CONFIG_H1940BT) += h1940-bluetooth.o | ||
25 | obj-$(CONFIG_PM_H1940) += pm-h1940.o | 26 | obj-$(CONFIG_PM_H1940) += pm-h1940.o |
26 | obj-$(CONFIG_MACH_N30) += mach-n30.o | 27 | obj-$(CONFIG_MACH_N30) += mach-n30.o |
27 | obj-$(CONFIG_ARCH_BAST) += mach-bast.o usb-simtec.o | 28 | obj-$(CONFIG_ARCH_BAST) += mach-bast.o usb-simtec.o |
diff --git a/arch/arm/mach-s3c2410/bast-irq.c b/arch/arm/mach-s3c2410/bast-irq.c index 9a37c87152b0..217b102866d0 100644 --- a/arch/arm/mach-s3c2410/bast-irq.c +++ b/arch/arm/mach-s3c2410/bast-irq.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/bast-irq.c | 1 | /* linux/arch/arm/mach-s3c2410/bast-irq.c |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2005 Simtec Electronics | 3 | * Copyright 2003-2005 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * http://www.simtec.co.uk/products/EB2410ITX/ | 6 | * http://www.simtec.co.uk/products/EB2410ITX/ |
@@ -141,7 +141,7 @@ static __init int bast_irq_init(void) | |||
141 | unsigned int i; | 141 | unsigned int i; |
142 | 142 | ||
143 | if (machine_is_bast()) { | 143 | if (machine_is_bast()) { |
144 | printk(KERN_INFO "BAST PC104 IRQ routing, (c) 2005 Simtec Electronics\n"); | 144 | printk(KERN_INFO "BAST PC104 IRQ routing, Copyright 2005 Simtec Electronics\n"); |
145 | 145 | ||
146 | /* zap all the IRQs */ | 146 | /* zap all the IRQs */ |
147 | 147 | ||
diff --git a/arch/arm/mach-s3c2410/cpu-freq.c b/arch/arm/mach-s3c2410/cpu-freq.c index 9d1186877d08..75189df995ae 100644 --- a/arch/arm/mach-s3c2410/cpu-freq.c +++ b/arch/arm/mach-s3c2410/cpu-freq.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/cpu-freq.c | 1 | /* linux/arch/arm/mach-s3c2410/cpu-freq.c |
2 | * | 2 | * |
3 | * Copyright (c) 2006,2008 Simtec Electronics | 3 | * Copyright (c) 2006-2008 Simtec Electronics |
4 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
5 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
6 | * | 6 | * |
diff --git a/arch/arm/mach-s3c2410/dma.c b/arch/arm/mach-s3c2410/dma.c index 63b753f56c64..0d8e043804c2 100644 --- a/arch/arm/mach-s3c2410/dma.c +++ b/arch/arm/mach-s3c2410/dma.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <mach/dma.h> | 21 | #include <mach/dma.h> |
22 | 22 | ||
23 | #include <plat/cpu.h> | 23 | #include <plat/cpu.h> |
24 | #include <plat/dma-plat.h> | 24 | #include <plat/dma-s3c24xx.h> |
25 | 25 | ||
26 | #include <plat/regs-serial.h> | 26 | #include <plat/regs-serial.h> |
27 | #include <mach/regs-gpio.h> | 27 | #include <mach/regs-gpio.h> |
diff --git a/arch/arm/mach-s3c2410/h1940-bluetooth.c b/arch/arm/mach-s3c2410/h1940-bluetooth.c index 5aabf117cbb0..a3f3c7b1ca38 100644 --- a/arch/arm/mach-s3c2410/h1940-bluetooth.c +++ b/arch/arm/mach-s3c2410/h1940-bluetooth.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/ctype.h> | 17 | #include <linux/ctype.h> |
18 | #include <linux/leds.h> | 18 | #include <linux/leds.h> |
19 | #include <linux/gpio.h> | 19 | #include <linux/gpio.h> |
20 | #include <linux/rfkill.h> | ||
20 | 21 | ||
21 | #include <mach/regs-gpio.h> | 22 | #include <mach/regs-gpio.h> |
22 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
@@ -24,21 +25,10 @@ | |||
24 | 25 | ||
25 | #define DRV_NAME "h1940-bt" | 26 | #define DRV_NAME "h1940-bt" |
26 | 27 | ||
27 | #ifdef CONFIG_LEDS_H1940 | ||
28 | DEFINE_LED_TRIGGER(bt_led_trigger); | ||
29 | #endif | ||
30 | |||
31 | static int state; | ||
32 | |||
33 | /* Bluetooth control */ | 28 | /* Bluetooth control */ |
34 | static void h1940bt_enable(int on) | 29 | static void h1940bt_enable(int on) |
35 | { | 30 | { |
36 | if (on) { | 31 | if (on) { |
37 | #ifdef CONFIG_LEDS_H1940 | ||
38 | /* flashing Blue */ | ||
39 | led_trigger_event(bt_led_trigger, LED_HALF); | ||
40 | #endif | ||
41 | |||
42 | /* Power on the chip */ | 32 | /* Power on the chip */ |
43 | h1940_latch_control(0, H1940_LATCH_BLUETOOTH_POWER); | 33 | h1940_latch_control(0, H1940_LATCH_BLUETOOTH_POWER); |
44 | /* Reset the chip */ | 34 | /* Reset the chip */ |
@@ -46,48 +36,31 @@ static void h1940bt_enable(int on) | |||
46 | s3c2410_gpio_setpin(S3C2410_GPH(1), 1); | 36 | s3c2410_gpio_setpin(S3C2410_GPH(1), 1); |
47 | mdelay(10); | 37 | mdelay(10); |
48 | s3c2410_gpio_setpin(S3C2410_GPH(1), 0); | 38 | s3c2410_gpio_setpin(S3C2410_GPH(1), 0); |
49 | |||
50 | state = 1; | ||
51 | } | 39 | } |
52 | else { | 40 | else { |
53 | #ifdef CONFIG_LEDS_H1940 | ||
54 | led_trigger_event(bt_led_trigger, 0); | ||
55 | #endif | ||
56 | |||
57 | s3c2410_gpio_setpin(S3C2410_GPH(1), 1); | 41 | s3c2410_gpio_setpin(S3C2410_GPH(1), 1); |
58 | mdelay(10); | 42 | mdelay(10); |
59 | s3c2410_gpio_setpin(S3C2410_GPH(1), 0); | 43 | s3c2410_gpio_setpin(S3C2410_GPH(1), 0); |
60 | mdelay(10); | 44 | mdelay(10); |
61 | h1940_latch_control(H1940_LATCH_BLUETOOTH_POWER, 0); | 45 | h1940_latch_control(H1940_LATCH_BLUETOOTH_POWER, 0); |
62 | |||
63 | state = 0; | ||
64 | } | 46 | } |
65 | } | 47 | } |
66 | 48 | ||
67 | static ssize_t h1940bt_show(struct device *dev, struct device_attribute *attr, char *buf) | 49 | static int h1940bt_set_block(void *data, bool blocked) |
68 | { | 50 | { |
69 | return snprintf(buf, PAGE_SIZE, "%d\n", state); | 51 | h1940bt_enable(!blocked); |
52 | return 0; | ||
70 | } | 53 | } |
71 | 54 | ||
72 | static ssize_t h1940bt_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 55 | static const struct rfkill_ops h1940bt_rfkill_ops = { |
73 | { | 56 | .set_block = h1940bt_set_block, |
74 | int new_state; | 57 | }; |
75 | char *endp; | ||
76 | |||
77 | new_state = simple_strtoul(buf, &endp, 0); | ||
78 | if (*endp && !isspace(*endp)) | ||
79 | return -EINVAL; | ||
80 | |||
81 | h1940bt_enable(new_state); | ||
82 | |||
83 | return count; | ||
84 | } | ||
85 | static DEVICE_ATTR(enable, 0644, | ||
86 | h1940bt_show, | ||
87 | h1940bt_store); | ||
88 | 58 | ||
89 | static int __init h1940bt_probe(struct platform_device *pdev) | 59 | static int __devinit h1940bt_probe(struct platform_device *pdev) |
90 | { | 60 | { |
61 | struct rfkill *rfk; | ||
62 | int ret = 0; | ||
63 | |||
91 | /* Configures BT serial port GPIOs */ | 64 | /* Configures BT serial port GPIOs */ |
92 | s3c2410_gpio_cfgpin(S3C2410_GPH(0), S3C2410_GPH0_nCTS0); | 65 | s3c2410_gpio_cfgpin(S3C2410_GPH(0), S3C2410_GPH0_nCTS0); |
93 | s3c2410_gpio_pullup(S3C2410_GPH(0), 1); | 66 | s3c2410_gpio_pullup(S3C2410_GPH(0), 1); |
@@ -98,21 +71,44 @@ static int __init h1940bt_probe(struct platform_device *pdev) | |||
98 | s3c2410_gpio_cfgpin(S3C2410_GPH(3), S3C2410_GPH3_RXD0); | 71 | s3c2410_gpio_cfgpin(S3C2410_GPH(3), S3C2410_GPH3_RXD0); |
99 | s3c2410_gpio_pullup(S3C2410_GPH(3), 1); | 72 | s3c2410_gpio_pullup(S3C2410_GPH(3), 1); |
100 | 73 | ||
101 | #ifdef CONFIG_LEDS_H1940 | ||
102 | led_trigger_register_simple("h1940-bluetooth", &bt_led_trigger); | ||
103 | #endif | ||
104 | 74 | ||
105 | /* disable BT by default */ | 75 | rfk = rfkill_alloc(DRV_NAME, &pdev->dev, RFKILL_TYPE_BLUETOOTH, |
106 | h1940bt_enable(0); | 76 | &h1940bt_rfkill_ops, NULL); |
77 | if (!rfk) { | ||
78 | ret = -ENOMEM; | ||
79 | goto err_rfk_alloc; | ||
80 | } | ||
81 | |||
82 | rfkill_set_led_trigger_name(rfk, "h1940-bluetooth"); | ||
83 | |||
84 | ret = rfkill_register(rfk); | ||
85 | if (ret) | ||
86 | goto err_rfkill; | ||
87 | |||
88 | platform_set_drvdata(pdev, rfk); | ||
89 | |||
90 | return 0; | ||
107 | 91 | ||
108 | return device_create_file(&pdev->dev, &dev_attr_enable); | 92 | err_rfkill: |
93 | rfkill_destroy(rfk); | ||
94 | err_rfk_alloc: | ||
95 | return ret; | ||
109 | } | 96 | } |
110 | 97 | ||
111 | static int h1940bt_remove(struct platform_device *pdev) | 98 | static int h1940bt_remove(struct platform_device *pdev) |
112 | { | 99 | { |
113 | #ifdef CONFIG_LEDS_H1940 | 100 | struct rfkill *rfk = platform_get_drvdata(pdev); |
114 | led_trigger_unregister_simple(bt_led_trigger); | 101 | |
115 | #endif | 102 | platform_set_drvdata(pdev, NULL); |
103 | |||
104 | if (rfk) { | ||
105 | rfkill_unregister(rfk); | ||
106 | rfkill_destroy(rfk); | ||
107 | } | ||
108 | rfk = NULL; | ||
109 | |||
110 | h1940bt_enable(0); | ||
111 | |||
116 | return 0; | 112 | return 0; |
117 | } | 113 | } |
118 | 114 | ||
diff --git a/arch/arm/mach-s3c2410/include/mach/bast-cpld.h b/arch/arm/mach-s3c2410/include/mach/bast-cpld.h index 20493b048360..bee2a7a932a0 100644 --- a/arch/arm/mach-s3c2410/include/mach/bast-cpld.h +++ b/arch/arm/mach-s3c2410/include/mach/bast-cpld.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/bast-cpld.h | 1 | /* arch/arm/mach-s3c2410/include/mach/bast-cpld.h |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2004 Simtec Electronics | 3 | * Copyright (c) 2003-2004 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * BAST - CPLD control constants | 6 | * BAST - CPLD control constants |
diff --git a/arch/arm/mach-s3c2410/include/mach/bast-irq.h b/arch/arm/mach-s3c2410/include/mach/bast-irq.h index 501c202b53cf..cac428c42e7f 100644 --- a/arch/arm/mach-s3c2410/include/mach/bast-irq.h +++ b/arch/arm/mach-s3c2410/include/mach/bast-irq.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/bast-irq.h | 1 | /* arch/arm/mach-s3c2410/include/mach/bast-irq.h |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2004 Simtec Electronics | 3 | * Copyright (c) 2003-2004 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * Machine BAST - IRQ Number definitions | 6 | * Machine BAST - IRQ Number definitions |
diff --git a/arch/arm/mach-s3c2410/include/mach/bast-map.h b/arch/arm/mach-s3c2410/include/mach/bast-map.h index c2c5baf07345..6e7dc9d0cf0e 100644 --- a/arch/arm/mach-s3c2410/include/mach/bast-map.h +++ b/arch/arm/mach-s3c2410/include/mach/bast-map.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/bast-map.h | 1 | /* arch/arm/mach-s3c2410/include/mach/bast-map.h |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2004 Simtec Electronics | 3 | * Copyright (c) 2003-2004 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * Machine BAST - Memory map definitions | 6 | * Machine BAST - Memory map definitions |
diff --git a/arch/arm/mach-s3c2410/include/mach/bast-pmu.h b/arch/arm/mach-s3c2410/include/mach/bast-pmu.h index 61684cb8ce59..4c38b39b741d 100644 --- a/arch/arm/mach-s3c2410/include/mach/bast-pmu.h +++ b/arch/arm/mach-s3c2410/include/mach/bast-pmu.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/bast-pmu.h | 1 | /* arch/arm/mach-s3c2410/include/mach/bast-pmu.h |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2004 Simtec Electronics | 3 | * Copyright (c) 2003-2004 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * Vincent Sanders <vince@simtec.co.uk> | 5 | * Vincent Sanders <vince@simtec.co.uk> |
6 | * | 6 | * |
diff --git a/arch/arm/mach-s3c2410/include/mach/debug-macro.S b/arch/arm/mach-s3c2410/include/mach/debug-macro.S index 4c29a89ad077..0eef78b4a6ed 100644 --- a/arch/arm/mach-s3c2410/include/mach/debug-macro.S +++ b/arch/arm/mach-s3c2410/include/mach/debug-macro.S | |||
@@ -19,7 +19,7 @@ | |||
19 | #define S3C2410_UART1_OFF (0x4000) | 19 | #define S3C2410_UART1_OFF (0x4000) |
20 | #define SHIFT_2440TXF (14-9) | 20 | #define SHIFT_2440TXF (14-9) |
21 | 21 | ||
22 | .macro addruart, rx | 22 | .macro addruart, rx, tmp |
23 | mrc p15, 0, \rx, c1, c0 | 23 | mrc p15, 0, \rx, c1, c0 |
24 | tst \rx, #1 | 24 | tst \rx, #1 |
25 | ldreq \rx, = S3C24XX_PA_UART | 25 | ldreq \rx, = S3C24XX_PA_UART |
diff --git a/arch/arm/mach-s3c2410/include/mach/dma.h b/arch/arm/mach-s3c2410/include/mach/dma.h index 92e2687009ea..08ac5f96c012 100644 --- a/arch/arm/mach-s3c2410/include/mach/dma.h +++ b/arch/arm/mach-s3c2410/include/mach/dma.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/dma.h | 1 | /* arch/arm/mach-s3c2410/include/mach/dma.h |
2 | * | 2 | * |
3 | * Copyright (C) 2003,2004,2006 Simtec Electronics | 3 | * Copyright (C) 2003-2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * Samsung S3C24XX DMA support | 6 | * Samsung S3C24XX DMA support |
diff --git a/arch/arm/mach-s3c2410/include/mach/gpio-fns.h b/arch/arm/mach-s3c2410/include/mach/gpio-fns.h index 801dff13858d..035a493952db 100644 --- a/arch/arm/mach-s3c2410/include/mach/gpio-fns.h +++ b/arch/arm/mach-s3c2410/include/mach/gpio-fns.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/gpio-fns.h | 1 | /* arch/arm/mach-s3c2410/include/mach/gpio-fns.h |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2009 Simtec Electronics | 3 | * Copyright (c) 2003-2009 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * S3C2410 - hardware | 6 | * S3C2410 - hardware |
diff --git a/arch/arm/mach-s3c2410/include/mach/gpio-core.h b/arch/arm/mach-s3c2410/include/mach/gpio-track.h index f8b879a7973c..acb259103808 100644 --- a/arch/arm/mach-s3c2410/include/mach/gpio-core.h +++ b/arch/arm/mach-s3c2410/include/mach/gpio-track.h | |||
@@ -15,7 +15,6 @@ | |||
15 | #ifndef __ASM_ARCH_GPIO_CORE_H | 15 | #ifndef __ASM_ARCH_GPIO_CORE_H |
16 | #define __ASM_ARCH_GPIO_CORE_H __FILE__ | 16 | #define __ASM_ARCH_GPIO_CORE_H __FILE__ |
17 | 17 | ||
18 | #include <plat/gpio-core.h> | ||
19 | #include <mach/regs-gpio.h> | 18 | #include <mach/regs-gpio.h> |
20 | 19 | ||
21 | extern struct s3c_gpio_chip s3c24xx_gpios[]; | 20 | extern struct s3c_gpio_chip s3c24xx_gpios[]; |
diff --git a/arch/arm/mach-s3c2410/include/mach/osiris-map.h b/arch/arm/mach-s3c2410/include/mach/osiris-map.h index 639eff523d4e..17380f848428 100644 --- a/arch/arm/mach-s3c2410/include/mach/osiris-map.h +++ b/arch/arm/mach-s3c2410/include/mach/osiris-map.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/osiris-map.h | 1 | /* arch/arm/mach-s3c2410/include/mach/osiris-map.h |
2 | * | 2 | * |
3 | * (c) 2005 Simtec Electronics | 3 | * Copyright 2005 Simtec Electronics |
4 | * http://www.simtec.co.uk/products/ | 4 | * http://www.simtec.co.uk/products/ |
5 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
6 | * | 6 | * |
diff --git a/arch/arm/mach-s3c2410/include/mach/pm-core.h b/arch/arm/mach-s3c2410/include/mach/pm-core.h new file mode 100644 index 000000000000..70a83b209e25 --- /dev/null +++ b/arch/arm/mach-s3c2410/include/mach/pm-core.h | |||
@@ -0,0 +1,64 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/include/pm-core.h | ||
2 | * | ||
3 | * Copyright 2008 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * http://armlinux.simtec.co.uk/ | ||
6 | * | ||
7 | * S3C24xx - PM core support for arch/arm/plat-s3c/pm.c | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | static inline void s3c_pm_debug_init_uart(void) | ||
15 | { | ||
16 | unsigned long tmp = __raw_readl(S3C2410_CLKCON); | ||
17 | |||
18 | /* re-start uart clocks */ | ||
19 | tmp |= S3C2410_CLKCON_UART0; | ||
20 | tmp |= S3C2410_CLKCON_UART1; | ||
21 | tmp |= S3C2410_CLKCON_UART2; | ||
22 | |||
23 | __raw_writel(tmp, S3C2410_CLKCON); | ||
24 | udelay(10); | ||
25 | } | ||
26 | |||
27 | static inline void s3c_pm_arch_prepare_irqs(void) | ||
28 | { | ||
29 | __raw_writel(s3c_irqwake_intmask, S3C2410_INTMSK); | ||
30 | __raw_writel(s3c_irqwake_eintmask, S3C2410_EINTMASK); | ||
31 | |||
32 | /* ack any outstanding external interrupts before we go to sleep */ | ||
33 | |||
34 | __raw_writel(__raw_readl(S3C2410_EINTPEND), S3C2410_EINTPEND); | ||
35 | __raw_writel(__raw_readl(S3C2410_INTPND), S3C2410_INTPND); | ||
36 | __raw_writel(__raw_readl(S3C2410_SRCPND), S3C2410_SRCPND); | ||
37 | |||
38 | } | ||
39 | |||
40 | static inline void s3c_pm_arch_stop_clocks(void) | ||
41 | { | ||
42 | __raw_writel(0x00, S3C2410_CLKCON); /* turn off clocks over sleep */ | ||
43 | } | ||
44 | |||
45 | static void s3c_pm_show_resume_irqs(int start, unsigned long which, | ||
46 | unsigned long mask); | ||
47 | |||
48 | static inline void s3c_pm_arch_show_resume_irqs(void) | ||
49 | { | ||
50 | S3C_PMDBG("post sleep: IRQs 0x%08x, 0x%08x\n", | ||
51 | __raw_readl(S3C2410_SRCPND), | ||
52 | __raw_readl(S3C2410_EINTPEND)); | ||
53 | |||
54 | s3c_pm_show_resume_irqs(IRQ_EINT0, __raw_readl(S3C2410_SRCPND), | ||
55 | s3c_irqwake_intmask); | ||
56 | |||
57 | s3c_pm_show_resume_irqs(IRQ_EINT4-4, __raw_readl(S3C2410_EINTPEND), | ||
58 | s3c_irqwake_eintmask); | ||
59 | } | ||
60 | |||
61 | static inline void s3c_pm_arch_update_uart(void __iomem *regs, | ||
62 | struct pm_uart_save *save) | ||
63 | { | ||
64 | } | ||
diff --git a/arch/arm/mach-s3c2410/include/mach/regs-clock.h b/arch/arm/mach-s3c2410/include/mach/regs-clock.h index 2a5d90e957fb..9a0d169be137 100644 --- a/arch/arm/mach-s3c2410/include/mach/regs-clock.h +++ b/arch/arm/mach-s3c2410/include/mach/regs-clock.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/regs-clock.h | 1 | /* arch/arm/mach-s3c2410/include/mach/regs-clock.h |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2004,2005,2006 Simtec Electronics <linux@simtec.co.uk> | 3 | * Copyright (c) 2003-2006 Simtec Electronics <linux@simtec.co.uk> |
4 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
diff --git a/arch/arm/mach-s3c2410/include/mach/regs-gpio.h b/arch/arm/mach-s3c2410/include/mach/regs-gpio.h index f6e8eec879c8..fd672f330bf2 100644 --- a/arch/arm/mach-s3c2410/include/mach/regs-gpio.h +++ b/arch/arm/mach-s3c2410/include/mach/regs-gpio.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/regs-gpio.h | 1 | /* arch/arm/mach-s3c2410/include/mach/regs-gpio.h |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2004 Simtec Electronics <linux@simtec.co.uk> | 3 | * Copyright (c) 2003-2004 Simtec Electronics <linux@simtec.co.uk> |
4 | * http://www.simtec.co.uk/products/SWLINUX/ | 4 | * http://www.simtec.co.uk/products/SWLINUX/ |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
@@ -406,31 +406,31 @@ | |||
406 | #define S3C2443_GPE5_SD1_CLK (0x02 << 10) | 406 | #define S3C2443_GPE5_SD1_CLK (0x02 << 10) |
407 | #define S3C2400_GPE5_EINT5 (0x02 << 10) | 407 | #define S3C2400_GPE5_EINT5 (0x02 << 10) |
408 | #define S3C2400_GPE5_TCLK1 (0x03 << 10) | 408 | #define S3C2400_GPE5_TCLK1 (0x03 << 10) |
409 | #define S3C2443_GPE5_AC_BITCLK (0x03 << 10) | ||
409 | 410 | ||
410 | #define S3C2410_GPE6_SDCMD (0x02 << 12) | 411 | #define S3C2410_GPE6_SDCMD (0x02 << 12) |
411 | #define S3C2443_GPE6_SD1_CMD (0x02 << 12) | 412 | #define S3C2443_GPE6_SD1_CMD (0x02 << 12) |
412 | #define S3C2443_GPE6_AC_BITCLK (0x03 << 12) | 413 | #define S3C2443_GPE6_AC_SDI (0x03 << 12) |
413 | #define S3C2400_GPE6_EINT6 (0x02 << 12) | 414 | #define S3C2400_GPE6_EINT6 (0x02 << 12) |
414 | 415 | ||
415 | #define S3C2410_GPE7_SDDAT0 (0x02 << 14) | 416 | #define S3C2410_GPE7_SDDAT0 (0x02 << 14) |
416 | #define S3C2443_GPE5_SD1_DAT0 (0x02 << 14) | 417 | #define S3C2443_GPE5_SD1_DAT0 (0x02 << 14) |
417 | #define S3C2443_GPE7_AC_SDI (0x03 << 14) | 418 | #define S3C2443_GPE7_AC_SDO (0x03 << 14) |
418 | #define S3C2400_GPE7_EINT7 (0x02 << 14) | 419 | #define S3C2400_GPE7_EINT7 (0x02 << 14) |
419 | 420 | ||
420 | #define S3C2410_GPE8_SDDAT1 (0x02 << 16) | 421 | #define S3C2410_GPE8_SDDAT1 (0x02 << 16) |
421 | #define S3C2443_GPE8_SD1_DAT1 (0x02 << 16) | 422 | #define S3C2443_GPE8_SD1_DAT1 (0x02 << 16) |
422 | #define S3C2443_GPE8_AC_SDO (0x03 << 16) | 423 | #define S3C2443_GPE8_AC_SYNC (0x03 << 16) |
423 | #define S3C2400_GPE8_nXDACK0 (0x02 << 16) | 424 | #define S3C2400_GPE8_nXDACK0 (0x02 << 16) |
424 | 425 | ||
425 | #define S3C2410_GPE9_SDDAT2 (0x02 << 18) | 426 | #define S3C2410_GPE9_SDDAT2 (0x02 << 18) |
426 | #define S3C2443_GPE9_SD1_DAT2 (0x02 << 18) | 427 | #define S3C2443_GPE9_SD1_DAT2 (0x02 << 18) |
427 | #define S3C2443_GPE9_AC_SYNC (0x03 << 18) | 428 | #define S3C2443_GPE9_AC_nRESET (0x03 << 18) |
428 | #define S3C2400_GPE9_nXDACK1 (0x02 << 18) | 429 | #define S3C2400_GPE9_nXDACK1 (0x02 << 18) |
429 | #define S3C2400_GPE9_nXBACK (0x03 << 18) | 430 | #define S3C2400_GPE9_nXBACK (0x03 << 18) |
430 | 431 | ||
431 | #define S3C2410_GPE10_SDDAT3 (0x02 << 20) | 432 | #define S3C2410_GPE10_SDDAT3 (0x02 << 20) |
432 | #define S3C2443_GPE10_SD1_DAT3 (0x02 << 20) | 433 | #define S3C2443_GPE10_SD1_DAT3 (0x02 << 20) |
433 | #define S3C2443_GPE10_AC_nRESET (0x03 << 20) | ||
434 | #define S3C2400_GPE10_nXDREQ0 (0x02 << 20) | 434 | #define S3C2400_GPE10_nXDREQ0 (0x02 << 20) |
435 | 435 | ||
436 | #define S3C2410_GPE11_SPIMISO0 (0x02 << 22) | 436 | #define S3C2410_GPE11_SPIMISO0 (0x02 << 22) |
diff --git a/arch/arm/mach-s3c2410/include/mach/regs-power.h b/arch/arm/mach-s3c2410/include/mach/regs-power.h index 2d36353f57d7..4932b87bdf3d 100644 --- a/arch/arm/mach-s3c2410/include/mach/regs-power.h +++ b/arch/arm/mach-s3c2410/include/mach/regs-power.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/regs-power.h | 1 | /* arch/arm/mach-s3c2410/include/mach/regs-power.h |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2004,2005,2006 Simtec Electronics <linux@simtec.co.uk> | 3 | * Copyright (c) 2003-2006 Simtec Electronics <linux@simtec.co.uk> |
4 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
diff --git a/arch/arm/mach-s3c2410/include/mach/regs-s3c2443-clock.h b/arch/arm/mach-s3c2410/include/mach/regs-s3c2443-clock.h index 6026d091a2fe..d87ebe0cb625 100644 --- a/arch/arm/mach-s3c2410/include/mach/regs-s3c2443-clock.h +++ b/arch/arm/mach-s3c2410/include/mach/regs-s3c2443-clock.h | |||
@@ -42,23 +42,14 @@ | |||
42 | 42 | ||
43 | #define S3C2443_PLLCON_OFF (1<<24) | 43 | #define S3C2443_PLLCON_OFF (1<<24) |
44 | 44 | ||
45 | #define S3C2443_CLKSRC_I2S_EXT (1<<14) | ||
46 | #define S3C2443_CLKSRC_I2S_EPLLDIV (0<<14) | ||
47 | #define S3C2443_CLKSRC_I2S_EPLLREF (2<<14) | ||
48 | #define S3C2443_CLKSRC_I2S_EPLLREF3 (3<<14) | ||
49 | #define S3C2443_CLKSRC_I2S_MASK (3<<14) | ||
50 | |||
51 | #define S3C2443_CLKSRC_EPLLREF_XTAL (2<<7) | 45 | #define S3C2443_CLKSRC_EPLLREF_XTAL (2<<7) |
52 | #define S3C2443_CLKSRC_EPLLREF_EXTCLK (3<<7) | 46 | #define S3C2443_CLKSRC_EPLLREF_EXTCLK (3<<7) |
53 | #define S3C2443_CLKSRC_EPLLREF_MPLLREF (0<<7) | 47 | #define S3C2443_CLKSRC_EPLLREF_MPLLREF (0<<7) |
54 | #define S3C2443_CLKSRC_EPLLREF_MPLLREF2 (1<<7) | 48 | #define S3C2443_CLKSRC_EPLLREF_MPLLREF2 (1<<7) |
55 | #define S3C2443_CLKSRC_EPLLREF_MASK (3<<7) | 49 | #define S3C2443_CLKSRC_EPLLREF_MASK (3<<7) |
56 | 50 | ||
57 | #define S3C2443_CLKSRC_ESYSCLK_EPLL (1<<6) | ||
58 | #define S3C2443_CLKSRC_MSYSCLK_MPLL (1<<4) | ||
59 | #define S3C2443_CLKSRC_EXTCLK_DIV (1<<3) | 51 | #define S3C2443_CLKSRC_EXTCLK_DIV (1<<3) |
60 | 52 | ||
61 | #define S3C2443_CLKDIV0_DVS (1<<13) | ||
62 | #define S3C2443_CLKDIV0_HALF_HCLK (1<<3) | 53 | #define S3C2443_CLKDIV0_HALF_HCLK (1<<3) |
63 | #define S3C2443_CLKDIV0_HALF_PCLK (1<<2) | 54 | #define S3C2443_CLKDIV0_HALF_PCLK (1<<2) |
64 | 55 | ||
@@ -81,28 +72,7 @@ | |||
81 | #define S3C2443_CLKDIV0_ARMDIV_12 (13<<9) | 72 | #define S3C2443_CLKDIV0_ARMDIV_12 (13<<9) |
82 | #define S3C2443_CLKDIV0_ARMDIV_16 (15<<9) | 73 | #define S3C2443_CLKDIV0_ARMDIV_16 (15<<9) |
83 | 74 | ||
84 | /* S3C2443_CLKDIV1 */ | 75 | /* S3C2443_CLKDIV1 removed, only used in clock.c code */ |
85 | |||
86 | #define S3C2443_CLKDIV1_CAMDIV_MASK (15<<26) | ||
87 | #define S3C2443_CLKDIV1_CAMDIV_SHIFT (26) | ||
88 | |||
89 | #define S3C2443_CLKDIV1_HSSPIDIV_MASK (3<<24) | ||
90 | #define S3C2443_CLKDIV1_HSSPIDIV_SHIFT (24) | ||
91 | |||
92 | #define S3C2443_CLKDIV1_DISPDIV_MASK (0xff<<16) | ||
93 | #define S3C2443_CLKDIV1_DISPDIV_SHIFT (16) | ||
94 | |||
95 | #define S3C2443_CLKDIV1_I2SDIV_MASK (15<<12) | ||
96 | #define S3C2443_CLKDIV1_I2SDIV_SHIFT (12) | ||
97 | |||
98 | #define S3C2443_CLKDIV1_UARTDIV_MASK (15<<8) | ||
99 | #define S3C2443_CLKDIV1_UARTDIV_SHIFT (8) | ||
100 | |||
101 | #define S3C2443_CLKDIV1_HSMMCDIV_MASK (3<<6) | ||
102 | #define S3C2443_CLKDIV1_HSMMCDIV_SHIFT (6) | ||
103 | |||
104 | #define S3C2443_CLKDIV1_USBHOSTDIV_MASK (3<<4) | ||
105 | #define S3C2443_CLKDIV1_USBHOSTDIV_SHIFT (4) | ||
106 | 76 | ||
107 | #define S3C2443_CLKCON_NAND | 77 | #define S3C2443_CLKCON_NAND |
108 | 78 | ||
diff --git a/arch/arm/mach-s3c2410/include/mach/spi-gpio.h b/arch/arm/mach-s3c2410/include/mach/spi-gpio.h index 980a099e209c..dcef2287cb38 100644 --- a/arch/arm/mach-s3c2410/include/mach/spi-gpio.h +++ b/arch/arm/mach-s3c2410/include/mach/spi-gpio.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * Copyright (c) 2006 Simtec Electronics | 3 | * Copyright (c) 2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * S3C2410 - SPI Controller platfrom_device info | 6 | * S3C2410 - SPI Controller platform_device info |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
diff --git a/arch/arm/mach-s3c2410/include/mach/spi.h b/arch/arm/mach-s3c2410/include/mach/spi.h index 193b39d654ed..4d9588373aa5 100644 --- a/arch/arm/mach-s3c2410/include/mach/spi.h +++ b/arch/arm/mach-s3c2410/include/mach/spi.h | |||
@@ -18,6 +18,8 @@ struct s3c2410_spi_info { | |||
18 | unsigned int num_cs; /* total chipselects */ | 18 | unsigned int num_cs; /* total chipselects */ |
19 | int bus_num; /* bus number to use. */ | 19 | int bus_num; /* bus number to use. */ |
20 | 20 | ||
21 | unsigned int use_fiq:1; /* use fiq */ | ||
22 | |||
21 | void (*gpio_setup)(struct s3c2410_spi_info *spi, int enable); | 23 | void (*gpio_setup)(struct s3c2410_spi_info *spi, int enable); |
22 | void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); | 24 | void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); |
23 | }; | 25 | }; |
diff --git a/arch/arm/mach-s3c2410/include/mach/timex.h b/arch/arm/mach-s3c2410/include/mach/timex.h new file mode 100644 index 000000000000..fe9ca1ffd51b --- /dev/null +++ b/arch/arm/mach-s3c2410/include/mach/timex.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/timex.h | ||
2 | * | ||
3 | * Copyright (c) 2003-2005 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * S3C2410 - time parameters | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef __ASM_ARCH_TIMEX_H | ||
14 | #define __ASM_ARCH_TIMEX_H | ||
15 | |||
16 | /* CLOCK_TICK_RATE needs to be evaluatable by the cpp, so making it | ||
17 | * a variable is useless. It seems as long as we make our timers an | ||
18 | * exact multiple of HZ, any value that makes a 1->1 correspondence | ||
19 | * for the time conversion functions to/from jiffies is acceptable. | ||
20 | */ | ||
21 | |||
22 | #define CLOCK_TICK_RATE 12000000 | ||
23 | |||
24 | #endif /* __ASM_ARCH_TIMEX_H */ | ||
diff --git a/arch/arm/mach-s3c2410/include/mach/ts.h b/arch/arm/mach-s3c2410/include/mach/ts.h new file mode 100644 index 000000000000..dc361700d695 --- /dev/null +++ b/arch/arm/mach-s3c2410/include/mach/ts.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* linux/include/asm/arch-s3c2410/ts.h | ||
2 | * | ||
3 | * Copyright (c) 2005 Arnaud Patard <arnaud.patard@rtp-net.org> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #ifndef __ASM_ARM_TS_H | ||
11 | #define __ASM_ARM_TS_H | ||
12 | |||
13 | struct s3c2410_ts_mach_info { | ||
14 | int delay; | ||
15 | int presc; | ||
16 | int oversampling_shift; | ||
17 | }; | ||
18 | |||
19 | extern void s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *); | ||
20 | |||
21 | #endif /* __ASM_ARM_TS_H */ | ||
diff --git a/arch/arm/mach-s3c2410/include/mach/uncompress.h b/arch/arm/mach-s3c2410/include/mach/uncompress.h index c9432103750d..72f756c5e504 100644 --- a/arch/arm/mach-s3c2410/include/mach/uncompress.h +++ b/arch/arm/mach-s3c2410/include/mach/uncompress.h | |||
@@ -1,7 +1,6 @@ | |||
1 | |||
2 | /* arch/arm/mach-s3c2410/include/mach/uncompress.h | 1 | /* arch/arm/mach-s3c2410/include/mach/uncompress.h |
3 | * | 2 | * |
4 | * Copyright (c) 2003, 2007 Simtec Electronics | 3 | * Copyright (c) 2003-2007 Simtec Electronics |
5 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
6 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
7 | * | 6 | * |
diff --git a/arch/arm/mach-s3c2410/include/mach/vmalloc.h b/arch/arm/mach-s3c2410/include/mach/vmalloc.h new file mode 100644 index 000000000000..315b0078a34d --- /dev/null +++ b/arch/arm/mach-s3c2410/include/mach/vmalloc.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/vmalloc.h | ||
2 | * | ||
3 | * from arch/arm/mach-iop3xx/include/mach/vmalloc.h | ||
4 | * | ||
5 | * Copyright (c) 2003 Simtec Electronics <linux@simtec.co.uk> | ||
6 | * http://www.simtec.co.uk/products/SWLINUX/ | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | * S3C2410 vmalloc definition | ||
13 | */ | ||
14 | |||
15 | #ifndef __ASM_ARCH_VMALLOC_H | ||
16 | #define __ASM_ARCH_VMALLOC_H | ||
17 | |||
18 | #define VMALLOC_END (0xE0000000) | ||
19 | |||
20 | #endif /* __ASM_ARCH_VMALLOC_H */ | ||
diff --git a/arch/arm/mach-s3c2410/include/mach/vr1000-irq.h b/arch/arm/mach-s3c2410/include/mach/vr1000-irq.h index f53f85b4ad8b..47add133b8ee 100644 --- a/arch/arm/mach-s3c2410/include/mach/vr1000-irq.h +++ b/arch/arm/mach-s3c2410/include/mach/vr1000-irq.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/vr1000-irq.h | 1 | /* arch/arm/mach-s3c2410/include/mach/vr1000-irq.h |
2 | * | 2 | * |
3 | * Copyright (c) 2003,2004 Simtec Electronics | 3 | * Copyright (c) 2003-2004 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * Machine VR1000 - IRQ Number definitions | 6 | * Machine VR1000 - IRQ Number definitions |
diff --git a/arch/arm/mach-s3c2410/mach-amlm5900.c b/arch/arm/mach-s3c2410/mach-amlm5900.c index 06a84adfb13f..7047317ed7f4 100644 --- a/arch/arm/mach-s3c2410/mach-amlm5900.c +++ b/arch/arm/mach-s3c2410/mach-amlm5900.c | |||
@@ -153,7 +153,7 @@ static struct platform_device *amlm5900_devices[] __initdata = { | |||
153 | &s3c_device_adc, | 153 | &s3c_device_adc, |
154 | &s3c_device_wdt, | 154 | &s3c_device_wdt, |
155 | &s3c_device_i2c0, | 155 | &s3c_device_i2c0, |
156 | &s3c_device_usb, | 156 | &s3c_device_ohci, |
157 | &s3c_device_rtc, | 157 | &s3c_device_rtc, |
158 | &s3c_device_usbgadget, | 158 | &s3c_device_usbgadget, |
159 | &s3c_device_sdi, | 159 | &s3c_device_sdi, |
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index 647c9adb018f..02b1b6220cba 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/mach-bast.c | 1 | /* linux/arch/arm/mach-s3c2410/mach-bast.c |
2 | * | 2 | * |
3 | * Copyright (c) 2003-2005,2008 Simtec Electronics | 3 | * Copyright 2003-2008 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * http://www.simtec.co.uk/products/EB2410ITX/ | 6 | * http://www.simtec.co.uk/products/EB2410ITX/ |
@@ -61,11 +61,12 @@ | |||
61 | #include <plat/devs.h> | 61 | #include <plat/devs.h> |
62 | #include <plat/cpu.h> | 62 | #include <plat/cpu.h> |
63 | #include <plat/cpu-freq.h> | 63 | #include <plat/cpu-freq.h> |
64 | #include <plat/audio-simtec.h> | ||
64 | 65 | ||
65 | #include "usb-simtec.h" | 66 | #include "usb-simtec.h" |
66 | #include "nor-simtec.h" | 67 | #include "nor-simtec.h" |
67 | 68 | ||
68 | #define COPYRIGHT ", (c) 2004-2005 Simtec Electronics" | 69 | #define COPYRIGHT ", Copyright 2004-2008 Simtec Electronics" |
69 | 70 | ||
70 | /* macros for virtual address mods for the io space entries */ | 71 | /* macros for virtual address mods for the io space entries */ |
71 | #define VA_C5(item) ((unsigned long)(item) + BAST_VAM_CS5) | 72 | #define VA_C5(item) ((unsigned long)(item) + BAST_VAM_CS5) |
@@ -247,7 +248,7 @@ static int chip0_map[] = { 1 }; | |||
247 | static int chip1_map[] = { 2 }; | 248 | static int chip1_map[] = { 2 }; |
248 | static int chip2_map[] = { 3 }; | 249 | static int chip2_map[] = { 3 }; |
249 | 250 | ||
250 | static struct mtd_partition bast_default_nand_part[] = { | 251 | static struct mtd_partition __initdata bast_default_nand_part[] = { |
251 | [0] = { | 252 | [0] = { |
252 | .name = "Boot Agent", | 253 | .name = "Boot Agent", |
253 | .size = SZ_16K, | 254 | .size = SZ_16K, |
@@ -273,11 +274,12 @@ static struct mtd_partition bast_default_nand_part[] = { | |||
273 | * socket. | 274 | * socket. |
274 | */ | 275 | */ |
275 | 276 | ||
276 | static struct s3c2410_nand_set bast_nand_sets[] = { | 277 | static struct s3c2410_nand_set __initdata bast_nand_sets[] = { |
277 | [0] = { | 278 | [0] = { |
278 | .name = "SmartMedia", | 279 | .name = "SmartMedia", |
279 | .nr_chips = 1, | 280 | .nr_chips = 1, |
280 | .nr_map = smartmedia_map, | 281 | .nr_map = smartmedia_map, |
282 | .options = NAND_SCAN_SILENT_NODEV, | ||
281 | .nr_partitions = ARRAY_SIZE(bast_default_nand_part), | 283 | .nr_partitions = ARRAY_SIZE(bast_default_nand_part), |
282 | .partitions = bast_default_nand_part, | 284 | .partitions = bast_default_nand_part, |
283 | }, | 285 | }, |
@@ -292,6 +294,7 @@ static struct s3c2410_nand_set bast_nand_sets[] = { | |||
292 | .name = "chip1", | 294 | .name = "chip1", |
293 | .nr_chips = 1, | 295 | .nr_chips = 1, |
294 | .nr_map = chip1_map, | 296 | .nr_map = chip1_map, |
297 | .options = NAND_SCAN_SILENT_NODEV, | ||
295 | .nr_partitions = ARRAY_SIZE(bast_default_nand_part), | 298 | .nr_partitions = ARRAY_SIZE(bast_default_nand_part), |
296 | .partitions = bast_default_nand_part, | 299 | .partitions = bast_default_nand_part, |
297 | }, | 300 | }, |
@@ -299,6 +302,7 @@ static struct s3c2410_nand_set bast_nand_sets[] = { | |||
299 | .name = "chip2", | 302 | .name = "chip2", |
300 | .nr_chips = 1, | 303 | .nr_chips = 1, |
301 | .nr_map = chip2_map, | 304 | .nr_map = chip2_map, |
305 | .options = NAND_SCAN_SILENT_NODEV, | ||
302 | .nr_partitions = ARRAY_SIZE(bast_default_nand_part), | 306 | .nr_partitions = ARRAY_SIZE(bast_default_nand_part), |
303 | .partitions = bast_default_nand_part, | 307 | .partitions = bast_default_nand_part, |
304 | } | 308 | } |
@@ -323,7 +327,7 @@ static void bast_nand_select(struct s3c2410_nand_set *set, int slot) | |||
323 | __raw_writeb(tmp, BAST_VA_CTRL2); | 327 | __raw_writeb(tmp, BAST_VA_CTRL2); |
324 | } | 328 | } |
325 | 329 | ||
326 | static struct s3c2410_platform_nand bast_nand_info = { | 330 | static struct s3c2410_platform_nand __initdata bast_nand_info = { |
327 | .tacls = 30, | 331 | .tacls = 30, |
328 | .twrph0 = 60, | 332 | .twrph0 = 60, |
329 | .twrph1 = 60, | 333 | .twrph1 = 60, |
@@ -580,7 +584,7 @@ static struct s3c_hwmon_pdata bast_hwmon_info = { | |||
580 | // cat /sys/devices/platform/s3c24xx-adc/s3c-hwmon/in_0 | 584 | // cat /sys/devices/platform/s3c24xx-adc/s3c-hwmon/in_0 |
581 | 585 | ||
582 | static struct platform_device *bast_devices[] __initdata = { | 586 | static struct platform_device *bast_devices[] __initdata = { |
583 | &s3c_device_usb, | 587 | &s3c_device_ohci, |
584 | &s3c_device_lcd, | 588 | &s3c_device_lcd, |
585 | &s3c_device_wdt, | 589 | &s3c_device_wdt, |
586 | &s3c_device_i2c0, | 590 | &s3c_device_i2c0, |
@@ -608,6 +612,11 @@ static struct s3c_cpufreq_board __initdata bast_cpufreq = { | |||
608 | .need_io = 1, | 612 | .need_io = 1, |
609 | }; | 613 | }; |
610 | 614 | ||
615 | static struct s3c24xx_audio_simtec_pdata __initdata bast_audio = { | ||
616 | .have_mic = 1, | ||
617 | .have_lout = 1, | ||
618 | }; | ||
619 | |||
611 | static void __init bast_map_io(void) | 620 | static void __init bast_map_io(void) |
612 | { | 621 | { |
613 | /* initialise the clocks */ | 622 | /* initialise the clocks */ |
@@ -625,7 +634,6 @@ static void __init bast_map_io(void) | |||
625 | 634 | ||
626 | s3c24xx_register_clocks(bast_clocks, ARRAY_SIZE(bast_clocks)); | 635 | s3c24xx_register_clocks(bast_clocks, ARRAY_SIZE(bast_clocks)); |
627 | 636 | ||
628 | s3c_device_nand.dev.platform_data = &bast_nand_info; | ||
629 | s3c_device_hwmon.dev.platform_data = &bast_hwmon_info; | 637 | s3c_device_hwmon.dev.platform_data = &bast_hwmon_info; |
630 | 638 | ||
631 | s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc)); | 639 | s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc)); |
@@ -639,6 +647,7 @@ static void __init bast_init(void) | |||
639 | sysdev_register(&bast_pm_sysdev); | 647 | sysdev_register(&bast_pm_sysdev); |
640 | 648 | ||
641 | s3c_i2c0_set_platdata(&bast_i2c_info); | 649 | s3c_i2c0_set_platdata(&bast_i2c_info); |
650 | s3c_nand_set_platdata(&bast_nand_info); | ||
642 | s3c24xx_fb_set_platdata(&bast_fb_info); | 651 | s3c24xx_fb_set_platdata(&bast_fb_info); |
643 | platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices)); | 652 | platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices)); |
644 | 653 | ||
@@ -647,6 +656,7 @@ static void __init bast_init(void) | |||
647 | 656 | ||
648 | usb_simtec_init(); | 657 | usb_simtec_init(); |
649 | nor_simtec_init(); | 658 | nor_simtec_init(); |
659 | simtec_audio_add(NULL, true, &bast_audio); | ||
650 | 660 | ||
651 | s3c_cpufreq_setboard(&bast_cpufreq); | 661 | s3c_cpufreq_setboard(&bast_cpufreq); |
652 | } | 662 | } |
diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c index d9cd5ddecf4a..fbedd0760941 100644 --- a/arch/arm/mach-s3c2410/mach-h1940.c +++ b/arch/arm/mach-s3c2410/mach-h1940.c | |||
@@ -21,6 +21,11 @@ | |||
21 | #include <linux/serial_core.h> | 21 | #include <linux/serial_core.h> |
22 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
23 | #include <linux/io.h> | 23 | #include <linux/io.h> |
24 | #include <linux/gpio.h> | ||
25 | #include <linux/pwm_backlight.h> | ||
26 | #include <video/platform_lcd.h> | ||
27 | |||
28 | #include <linux/mmc/host.h> | ||
24 | 29 | ||
25 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
26 | #include <asm/mach/map.h> | 31 | #include <asm/mach/map.h> |
@@ -32,12 +37,16 @@ | |||
32 | 37 | ||
33 | #include <plat/regs-serial.h> | 38 | #include <plat/regs-serial.h> |
34 | #include <mach/regs-lcd.h> | 39 | #include <mach/regs-lcd.h> |
35 | #include <mach/regs-gpio.h> | ||
36 | #include <mach/regs-clock.h> | 40 | #include <mach/regs-clock.h> |
37 | 41 | ||
42 | #include <mach/regs-gpio.h> | ||
43 | #include <mach/gpio-fns.h> | ||
44 | #include <mach/gpio-nrs.h> | ||
45 | |||
38 | #include <mach/h1940.h> | 46 | #include <mach/h1940.h> |
39 | #include <mach/h1940-latch.h> | 47 | #include <mach/h1940-latch.h> |
40 | #include <mach/fb.h> | 48 | #include <mach/fb.h> |
49 | #include <mach/ts.h> | ||
41 | #include <plat/udc.h> | 50 | #include <plat/udc.h> |
42 | #include <plat/iic.h> | 51 | #include <plat/iic.h> |
43 | 52 | ||
@@ -46,6 +55,7 @@ | |||
46 | #include <plat/cpu.h> | 55 | #include <plat/cpu.h> |
47 | #include <plat/pll.h> | 56 | #include <plat/pll.h> |
48 | #include <plat/pm.h> | 57 | #include <plat/pm.h> |
58 | #include <plat/mci.h> | ||
49 | 59 | ||
50 | static struct map_desc h1940_iodesc[] __initdata = { | 60 | static struct map_desc h1940_iodesc[] __initdata = { |
51 | [0] = { | 61 | [0] = { |
@@ -131,6 +141,11 @@ static struct s3c2410_udc_mach_info h1940_udc_cfg __initdata = { | |||
131 | .vbus_pin_inverted = 1, | 141 | .vbus_pin_inverted = 1, |
132 | }; | 142 | }; |
133 | 143 | ||
144 | static struct s3c2410_ts_mach_info h1940_ts_cfg __initdata = { | ||
145 | .delay = 10000, | ||
146 | .presc = 49, | ||
147 | .oversampling_shift = 2, | ||
148 | }; | ||
134 | 149 | ||
135 | /** | 150 | /** |
136 | * Set lcd on or off | 151 | * Set lcd on or off |
@@ -171,25 +186,105 @@ static struct s3c2410fb_mach_info h1940_fb_info __initdata = { | |||
171 | .gpdup_mask= 0xffffffff, | 186 | .gpdup_mask= 0xffffffff, |
172 | }; | 187 | }; |
173 | 188 | ||
174 | static struct platform_device s3c_device_leds = { | 189 | static struct platform_device h1940_device_leds = { |
175 | .name = "h1940-leds", | 190 | .name = "h1940-leds", |
176 | .id = -1, | 191 | .id = -1, |
177 | }; | 192 | }; |
178 | 193 | ||
179 | static struct platform_device s3c_device_bluetooth = { | 194 | static struct platform_device h1940_device_bluetooth = { |
180 | .name = "h1940-bt", | 195 | .name = "h1940-bt", |
181 | .id = -1, | 196 | .id = -1, |
182 | }; | 197 | }; |
183 | 198 | ||
199 | static struct s3c24xx_mci_pdata h1940_mmc_cfg __initdata = { | ||
200 | .gpio_detect = S3C2410_GPF(5), | ||
201 | .gpio_wprotect = S3C2410_GPH(8), | ||
202 | .set_power = NULL, | ||
203 | .ocr_avail = MMC_VDD_32_33, | ||
204 | }; | ||
205 | |||
206 | static int h1940_backlight_init(struct device *dev) | ||
207 | { | ||
208 | gpio_request(S3C2410_GPB(0), "Backlight"); | ||
209 | |||
210 | s3c2410_gpio_setpin(S3C2410_GPB(0), 0); | ||
211 | s3c2410_gpio_pullup(S3C2410_GPB(0), 0); | ||
212 | s3c2410_gpio_cfgpin(S3C2410_GPB(0), S3C2410_GPB0_TOUT0); | ||
213 | |||
214 | return 0; | ||
215 | } | ||
216 | |||
217 | static void h1940_backlight_exit(struct device *dev) | ||
218 | { | ||
219 | s3c2410_gpio_cfgpin(S3C2410_GPB(0), 1/*S3C2410_GPB0_OUTP*/); | ||
220 | } | ||
221 | |||
222 | static struct platform_pwm_backlight_data backlight_data = { | ||
223 | .pwm_id = 0, | ||
224 | .max_brightness = 100, | ||
225 | .dft_brightness = 50, | ||
226 | /* tcnt = 0x31 */ | ||
227 | .pwm_period_ns = 36296, | ||
228 | .init = h1940_backlight_init, | ||
229 | .exit = h1940_backlight_exit, | ||
230 | }; | ||
231 | |||
232 | static struct platform_device h1940_backlight = { | ||
233 | .name = "pwm-backlight", | ||
234 | .dev = { | ||
235 | .parent = &s3c_device_timer[0].dev, | ||
236 | .platform_data = &backlight_data, | ||
237 | }, | ||
238 | .id = -1, | ||
239 | }; | ||
240 | |||
241 | static void h1940_lcd_power_set(struct plat_lcd_data *pd, | ||
242 | unsigned int power) | ||
243 | { | ||
244 | int value; | ||
245 | |||
246 | if (!power) { | ||
247 | /* set to 3ec */ | ||
248 | s3c2410_gpio_setpin(S3C2410_GPC(0), 0); | ||
249 | /* wait for 3ac */ | ||
250 | do { | ||
251 | value = s3c2410_gpio_getpin(S3C2410_GPC(6)); | ||
252 | } while (value); | ||
253 | /* set to 38c */ | ||
254 | s3c2410_gpio_setpin(S3C2410_GPC(5), 0); | ||
255 | } else { | ||
256 | /* Set to 3ac */ | ||
257 | s3c2410_gpio_setpin(S3C2410_GPC(5), 1); | ||
258 | /* Set to 3ad */ | ||
259 | s3c2410_gpio_setpin(S3C2410_GPC(0), 1); | ||
260 | } | ||
261 | } | ||
262 | |||
263 | static struct plat_lcd_data h1940_lcd_power_data = { | ||
264 | .set_power = h1940_lcd_power_set, | ||
265 | }; | ||
266 | |||
267 | static struct platform_device h1940_lcd_powerdev = { | ||
268 | .name = "platform-lcd", | ||
269 | .dev.parent = &s3c_device_lcd.dev, | ||
270 | .dev.platform_data = &h1940_lcd_power_data, | ||
271 | }; | ||
272 | |||
184 | static struct platform_device *h1940_devices[] __initdata = { | 273 | static struct platform_device *h1940_devices[] __initdata = { |
185 | &s3c_device_usb, | 274 | &s3c_device_ts, |
275 | &s3c_device_ohci, | ||
186 | &s3c_device_lcd, | 276 | &s3c_device_lcd, |
187 | &s3c_device_wdt, | 277 | &s3c_device_wdt, |
188 | &s3c_device_i2c0, | 278 | &s3c_device_i2c0, |
189 | &s3c_device_iis, | 279 | &s3c_device_iis, |
190 | &s3c_device_usbgadget, | 280 | &s3c_device_usbgadget, |
191 | &s3c_device_leds, | 281 | &h1940_device_leds, |
192 | &s3c_device_bluetooth, | 282 | &h1940_device_bluetooth, |
283 | &s3c_device_sdi, | ||
284 | &s3c_device_rtc, | ||
285 | &s3c_device_timer[0], | ||
286 | &h1940_backlight, | ||
287 | &h1940_lcd_powerdev, | ||
193 | }; | 288 | }; |
194 | 289 | ||
195 | static void __init h1940_map_io(void) | 290 | static void __init h1940_map_io(void) |
@@ -216,7 +311,9 @@ static void __init h1940_init(void) | |||
216 | u32 tmp; | 311 | u32 tmp; |
217 | 312 | ||
218 | s3c24xx_fb_set_platdata(&h1940_fb_info); | 313 | s3c24xx_fb_set_platdata(&h1940_fb_info); |
314 | s3c24xx_mci_set_platdata(&h1940_mmc_cfg); | ||
219 | s3c24xx_udc_set_platdata(&h1940_udc_cfg); | 315 | s3c24xx_udc_set_platdata(&h1940_udc_cfg); |
316 | s3c24xx_ts_set_platdata(&h1940_ts_cfg); | ||
220 | s3c_i2c0_set_platdata(NULL); | 317 | s3c_i2c0_set_platdata(NULL); |
221 | 318 | ||
222 | /* Turn off suspend on both USB ports, and switch the | 319 | /* Turn off suspend on both USB ports, and switch the |
@@ -231,6 +328,11 @@ static void __init h1940_init(void) | |||
231 | | (0x03 << S3C24XX_PLLCON_SDIVSHIFT); | 328 | | (0x03 << S3C24XX_PLLCON_SDIVSHIFT); |
232 | writel(tmp, S3C2410_UPLLCON); | 329 | writel(tmp, S3C2410_UPLLCON); |
233 | 330 | ||
331 | gpio_request(S3C2410_GPC(0), "LCD power"); | ||
332 | gpio_request(S3C2410_GPC(5), "LCD power"); | ||
333 | gpio_request(S3C2410_GPC(6), "LCD power"); | ||
334 | |||
335 | |||
234 | platform_add_devices(h1940_devices, ARRAY_SIZE(h1940_devices)); | 336 | platform_add_devices(h1940_devices, ARRAY_SIZE(h1940_devices)); |
235 | } | 337 | } |
236 | 338 | ||
diff --git a/arch/arm/mach-s3c2410/mach-n30.c b/arch/arm/mach-s3c2410/mach-n30.c index 0f6ed61af415..684710f88142 100644 --- a/arch/arm/mach-s3c2410/mach-n30.c +++ b/arch/arm/mach-s3c2410/mach-n30.c | |||
@@ -322,7 +322,7 @@ static struct platform_device *n30_devices[] __initdata = { | |||
322 | &s3c_device_wdt, | 322 | &s3c_device_wdt, |
323 | &s3c_device_i2c0, | 323 | &s3c_device_i2c0, |
324 | &s3c_device_iis, | 324 | &s3c_device_iis, |
325 | &s3c_device_usb, | 325 | &s3c_device_ohci, |
326 | &s3c_device_usbgadget, | 326 | &s3c_device_usbgadget, |
327 | &n30_button_device, | 327 | &n30_button_device, |
328 | &n30_blue_led, | 328 | &n30_blue_led, |
@@ -338,7 +338,7 @@ static struct platform_device *n35_devices[] __initdata = { | |||
338 | &n35_button_device, | 338 | &n35_button_device, |
339 | }; | 339 | }; |
340 | 340 | ||
341 | static struct s3c2410_platform_i2c n30_i2ccfg = { | 341 | static struct s3c2410_platform_i2c __initdata n30_i2ccfg = { |
342 | .flags = 0, | 342 | .flags = 0, |
343 | .slave_addr = 0x10, | 343 | .slave_addr = 0x10, |
344 | .frequency = 10*1000, | 344 | .frequency = 10*1000, |
@@ -500,8 +500,8 @@ static void __init n30_init_irq(void) | |||
500 | static void __init n30_init(void) | 500 | static void __init n30_init(void) |
501 | { | 501 | { |
502 | s3c24xx_fb_set_platdata(&n30_fb_info); | 502 | s3c24xx_fb_set_platdata(&n30_fb_info); |
503 | s3c_device_i2c0.dev.platform_data = &n30_i2ccfg; | ||
504 | s3c24xx_udc_set_platdata(&n30_udc_cfg); | 503 | s3c24xx_udc_set_platdata(&n30_udc_cfg); |
504 | s3c_i2c0_set_platdata(&n30_i2ccfg); | ||
505 | 505 | ||
506 | /* Turn off suspend on both USB ports, and switch the | 506 | /* Turn off suspend on both USB ports, and switch the |
507 | * selectable USB port to USB device mode. */ | 507 | * selectable USB port to USB device mode. */ |
diff --git a/arch/arm/mach-s3c2410/mach-otom.c b/arch/arm/mach-s3c2410/mach-otom.c index f6c7261a4a12..d8c7f2efc1a7 100644 --- a/arch/arm/mach-s3c2410/mach-otom.c +++ b/arch/arm/mach-s3c2410/mach-otom.c | |||
@@ -92,7 +92,7 @@ static struct platform_device otom_device_nor = { | |||
92 | /* Standard OTOM devices */ | 92 | /* Standard OTOM devices */ |
93 | 93 | ||
94 | static struct platform_device *otom11_devices[] __initdata = { | 94 | static struct platform_device *otom11_devices[] __initdata = { |
95 | &s3c_device_usb, | 95 | &s3c_device_ohci, |
96 | &s3c_device_lcd, | 96 | &s3c_device_lcd, |
97 | &s3c_device_wdt, | 97 | &s3c_device_wdt, |
98 | &s3c_device_i2c0, | 98 | &s3c_device_i2c0, |
diff --git a/arch/arm/mach-s3c2410/mach-qt2410.c b/arch/arm/mach-s3c2410/mach-qt2410.c index 2cc9849eb448..92a4ec375d82 100644 --- a/arch/arm/mach-s3c2410/mach-qt2410.c +++ b/arch/arm/mach-s3c2410/mach-qt2410.c | |||
@@ -246,7 +246,7 @@ static struct platform_device qt2410_spi = { | |||
246 | /* Board devices */ | 246 | /* Board devices */ |
247 | 247 | ||
248 | static struct platform_device *qt2410_devices[] __initdata = { | 248 | static struct platform_device *qt2410_devices[] __initdata = { |
249 | &s3c_device_usb, | 249 | &s3c_device_ohci, |
250 | &s3c_device_lcd, | 250 | &s3c_device_lcd, |
251 | &s3c_device_wdt, | 251 | &s3c_device_wdt, |
252 | &s3c_device_i2c0, | 252 | &s3c_device_i2c0, |
@@ -258,7 +258,7 @@ static struct platform_device *qt2410_devices[] __initdata = { | |||
258 | &qt2410_led, | 258 | &qt2410_led, |
259 | }; | 259 | }; |
260 | 260 | ||
261 | static struct mtd_partition qt2410_nand_part[] = { | 261 | static struct mtd_partition __initdata qt2410_nand_part[] = { |
262 | [0] = { | 262 | [0] = { |
263 | .name = "U-Boot", | 263 | .name = "U-Boot", |
264 | .size = 0x30000, | 264 | .size = 0x30000, |
@@ -286,7 +286,7 @@ static struct mtd_partition qt2410_nand_part[] = { | |||
286 | }, | 286 | }, |
287 | }; | 287 | }; |
288 | 288 | ||
289 | static struct s3c2410_nand_set qt2410_nand_sets[] = { | 289 | static struct s3c2410_nand_set __initdata qt2410_nand_sets[] = { |
290 | [0] = { | 290 | [0] = { |
291 | .name = "NAND", | 291 | .name = "NAND", |
292 | .nr_chips = 1, | 292 | .nr_chips = 1, |
@@ -299,7 +299,7 @@ static struct s3c2410_nand_set qt2410_nand_sets[] = { | |||
299 | * chips and beyond. | 299 | * chips and beyond. |
300 | */ | 300 | */ |
301 | 301 | ||
302 | static struct s3c2410_platform_nand qt2410_nand_info = { | 302 | static struct s3c2410_platform_nand __initdata qt2410_nand_info = { |
303 | .tacls = 20, | 303 | .tacls = 20, |
304 | .twrph0 = 60, | 304 | .twrph0 = 60, |
305 | .twrph1 = 20, | 305 | .twrph1 = 20, |
@@ -331,7 +331,7 @@ static void __init qt2410_map_io(void) | |||
331 | 331 | ||
332 | static void __init qt2410_machine_init(void) | 332 | static void __init qt2410_machine_init(void) |
333 | { | 333 | { |
334 | s3c_device_nand.dev.platform_data = &qt2410_nand_info; | 334 | s3c_nand_set_platdata(&qt2410_nand_info); |
335 | 335 | ||
336 | switch (tft_type) { | 336 | switch (tft_type) { |
337 | case 'p': /* production */ | 337 | case 'p': /* production */ |
diff --git a/arch/arm/mach-s3c2410/mach-smdk2410.c b/arch/arm/mach-s3c2410/mach-smdk2410.c index c49126ccb1d5..452223042201 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2410.c +++ b/arch/arm/mach-s3c2410/mach-smdk2410.c | |||
@@ -87,7 +87,7 @@ static struct s3c2410_uartcfg smdk2410_uartcfgs[] __initdata = { | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | static struct platform_device *smdk2410_devices[] __initdata = { | 89 | static struct platform_device *smdk2410_devices[] __initdata = { |
90 | &s3c_device_usb, | 90 | &s3c_device_ohci, |
91 | &s3c_device_lcd, | 91 | &s3c_device_lcd, |
92 | &s3c_device_wdt, | 92 | &s3c_device_wdt, |
93 | &s3c_device_i2c0, | 93 | &s3c_device_i2c0, |
diff --git a/arch/arm/mach-s3c2410/mach-tct_hammer.c b/arch/arm/mach-s3c2410/mach-tct_hammer.c index 8fdb0430bd48..929164a8e9b1 100644 --- a/arch/arm/mach-s3c2410/mach-tct_hammer.c +++ b/arch/arm/mach-s3c2410/mach-tct_hammer.c | |||
@@ -129,7 +129,7 @@ static struct platform_device *tct_hammer_devices[] __initdata = { | |||
129 | &s3c_device_adc, | 129 | &s3c_device_adc, |
130 | &s3c_device_wdt, | 130 | &s3c_device_wdt, |
131 | &s3c_device_i2c0, | 131 | &s3c_device_i2c0, |
132 | &s3c_device_usb, | 132 | &s3c_device_ohci, |
133 | &s3c_device_rtc, | 133 | &s3c_device_rtc, |
134 | &s3c_device_usbgadget, | 134 | &s3c_device_usbgadget, |
135 | &s3c_device_sdi, | 135 | &s3c_device_sdi, |
diff --git a/arch/arm/mach-s3c2410/mach-vr1000.c b/arch/arm/mach-s3c2410/mach-vr1000.c index 1628cc773a2c..9051f0d31123 100644 --- a/arch/arm/mach-s3c2410/mach-vr1000.c +++ b/arch/arm/mach-s3c2410/mach-vr1000.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/mach-vr1000.c | 1 | /* linux/arch/arm/mach-s3c2410/mach-vr1000.c |
2 | * | 2 | * |
3 | * Copyright (c) 2003-2005,2008 Simtec Electronics | 3 | * Copyright (c) 2003-2008 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * Machine support for Thorcom VR1000 board. Designed for Thorcom by | 6 | * Machine support for Thorcom VR1000 board. Designed for Thorcom by |
@@ -49,6 +49,7 @@ | |||
49 | #include <plat/devs.h> | 49 | #include <plat/devs.h> |
50 | #include <plat/cpu.h> | 50 | #include <plat/cpu.h> |
51 | #include <plat/iic.h> | 51 | #include <plat/iic.h> |
52 | #include <plat/audio-simtec.h> | ||
52 | 53 | ||
53 | #include "usb-simtec.h" | 54 | #include "usb-simtec.h" |
54 | #include "nor-simtec.h" | 55 | #include "nor-simtec.h" |
@@ -333,7 +334,7 @@ static struct i2c_board_info vr1000_i2c_devs[] __initdata = { | |||
333 | /* devices for this board */ | 334 | /* devices for this board */ |
334 | 335 | ||
335 | static struct platform_device *vr1000_devices[] __initdata = { | 336 | static struct platform_device *vr1000_devices[] __initdata = { |
336 | &s3c_device_usb, | 337 | &s3c_device_ohci, |
337 | &s3c_device_lcd, | 338 | &s3c_device_lcd, |
338 | &s3c_device_wdt, | 339 | &s3c_device_wdt, |
339 | &s3c_device_i2c0, | 340 | &s3c_device_i2c0, |
@@ -393,6 +394,7 @@ static void __init vr1000_init(void) | |||
393 | ARRAY_SIZE(vr1000_i2c_devs)); | 394 | ARRAY_SIZE(vr1000_i2c_devs)); |
394 | 395 | ||
395 | nor_simtec_init(); | 396 | nor_simtec_init(); |
397 | simtec_audio_add(NULL, true, NULL); | ||
396 | } | 398 | } |
397 | 399 | ||
398 | MACHINE_START(VR1000, "Thorcom-VR1000") | 400 | MACHINE_START(VR1000, "Thorcom-VR1000") |
diff --git a/arch/arm/mach-s3c2410/pll.c b/arch/arm/mach-s3c2410/pll.c index f178c2fd9d85..8338865e11c0 100644 --- a/arch/arm/mach-s3c2410/pll.c +++ b/arch/arm/mach-s3c2410/pll.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* arch/arm/mach-s3c2410/pll.c | 1 | /* arch/arm/mach-s3c2410/pll.c |
2 | * | 2 | * |
3 | * Copyright (c) 2006,2007 Simtec Electronics | 3 | * Copyright (c) 2006-2007 Simtec Electronics |
4 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
5 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
6 | * Vincent Sanders <vince@arm.linux.org.uk> | 6 | * Vincent Sanders <vince@arm.linux.org.uk> |
diff --git a/arch/arm/mach-s3c2410/usb-simtec.c b/arch/arm/mach-s3c2410/usb-simtec.c index 50e25fc5f8ab..29bd3d987bec 100644 --- a/arch/arm/mach-s3c2410/usb-simtec.c +++ b/arch/arm/mach-s3c2410/usb-simtec.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/usb-simtec.c | 1 | /* linux/arch/arm/mach-s3c2410/usb-simtec.c |
2 | * | 2 | * |
3 | * Copyright (c) 2004,2005 Simtec Electronics | 3 | * Copyright 2004-2005 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * http://www.simtec.co.uk/products/EB2410ITX/ | 6 | * http://www.simtec.co.uk/products/EB2410ITX/ |
@@ -91,7 +91,7 @@ static void usb_simtec_enableoc(struct s3c2410_hcd_info *info, int on) | |||
91 | } | 91 | } |
92 | } | 92 | } |
93 | 93 | ||
94 | static struct s3c2410_hcd_info usb_simtec_info = { | 94 | static struct s3c2410_hcd_info usb_simtec_info __initdata = { |
95 | .port[0] = { | 95 | .port[0] = { |
96 | .flags = S3C_HCDFLG_USED | 96 | .flags = S3C_HCDFLG_USED |
97 | }, | 97 | }, |
@@ -108,7 +108,7 @@ int usb_simtec_init(void) | |||
108 | { | 108 | { |
109 | int ret; | 109 | int ret; |
110 | 110 | ||
111 | printk("USB Power Control, (c) 2004 Simtec Electronics\n"); | 111 | printk("USB Power Control, Copyright 2004 Simtec Electronics\n"); |
112 | 112 | ||
113 | ret = gpio_request(S3C2410_GPB(4), "USB power control"); | 113 | ret = gpio_request(S3C2410_GPB(4), "USB power control"); |
114 | if (ret < 0) { | 114 | if (ret < 0) { |
@@ -127,6 +127,6 @@ int usb_simtec_init(void) | |||
127 | gpio_direction_output(S3C2410_GPB(4), 1); | 127 | gpio_direction_output(S3C2410_GPB(4), 1); |
128 | gpio_direction_input(S3C2410_GPG(10)); | 128 | gpio_direction_input(S3C2410_GPG(10)); |
129 | 129 | ||
130 | s3c_device_usb.dev.platform_data = &usb_simtec_info; | 130 | s3c_ohci_set_platdata(&usb_simtec_info); |
131 | return 0; | 131 | return 0; |
132 | } | 132 | } |