diff options
Diffstat (limited to 'arch/arm/mach-s5pv210')
-rw-r--r-- | arch/arm/mach-s5pv210/Kconfig | 9 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/cpu.c | 22 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/dev-onenand.c | 55 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/include/mach/debug-macro.S | 11 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/include/mach/map.h | 11 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkc110.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkv210.c | 2 |
10 files changed, 33 insertions, 88 deletions
diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index d3a38955c741..5315fec3db86 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig | |||
@@ -53,11 +53,6 @@ config S5PV210_SETUP_SDHCI_GPIO | |||
53 | help | 53 | help |
54 | Common setup code for SDHCI gpio. | 54 | Common setup code for SDHCI gpio. |
55 | 55 | ||
56 | config S5PC110_DEV_ONENAND | ||
57 | bool | ||
58 | help | ||
59 | Compile in platform device definition for OneNAND1 controller | ||
60 | |||
61 | menu "S5PC110 Machines" | 56 | menu "S5PC110 Machines" |
62 | 57 | ||
63 | config MACH_AQUILA | 58 | config MACH_AQUILA |
@@ -71,7 +66,7 @@ config MACH_AQUILA | |||
71 | select S3C_DEV_HSMMC | 66 | select S3C_DEV_HSMMC |
72 | select S3C_DEV_HSMMC1 | 67 | select S3C_DEV_HSMMC1 |
73 | select S3C_DEV_HSMMC2 | 68 | select S3C_DEV_HSMMC2 |
74 | select S5PC110_DEV_ONENAND | 69 | select S5P_DEV_ONENAND |
75 | select S5PV210_SETUP_FB_24BPP | 70 | select S5PV210_SETUP_FB_24BPP |
76 | select S5PV210_SETUP_SDHCI | 71 | select S5PV210_SETUP_SDHCI |
77 | help | 72 | help |
@@ -88,7 +83,7 @@ config MACH_GONI | |||
88 | select S3C_DEV_HSMMC | 83 | select S3C_DEV_HSMMC |
89 | select S3C_DEV_HSMMC1 | 84 | select S3C_DEV_HSMMC1 |
90 | select S3C_DEV_HSMMC2 | 85 | select S3C_DEV_HSMMC2 |
91 | select S5PC110_DEV_ONENAND | 86 | select S5P_DEV_ONENAND |
92 | select S5PV210_SETUP_FB_24BPP | 87 | select S5PV210_SETUP_FB_24BPP |
93 | select S5PV210_SETUP_SDHCI | 88 | select S5PV210_SETUP_SDHCI |
94 | help | 89 | help |
diff --git a/arch/arm/mach-s5pv210/Makefile b/arch/arm/mach-s5pv210/Makefile index 05048c5aa4c6..704548912408 100644 --- a/arch/arm/mach-s5pv210/Makefile +++ b/arch/arm/mach-s5pv210/Makefile | |||
@@ -26,7 +26,6 @@ obj-$(CONFIG_MACH_GONI) += mach-goni.o | |||
26 | 26 | ||
27 | obj-y += dev-audio.o | 27 | obj-y += dev-audio.o |
28 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o | 28 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o |
29 | obj-$(CONFIG_S5PC110_DEV_ONENAND) += dev-onenand.o | ||
30 | 29 | ||
31 | obj-$(CONFIG_S5PV210_SETUP_FB_24BPP) += setup-fb-24bpp.o | 30 | obj-$(CONFIG_S5PV210_SETUP_FB_24BPP) += setup-fb-24bpp.o |
32 | obj-$(CONFIG_S5PV210_SETUP_I2C1) += setup-i2c1.o | 31 | obj-$(CONFIG_S5PV210_SETUP_I2C1) += setup-i2c1.o |
diff --git a/arch/arm/mach-s5pv210/cpu.c b/arch/arm/mach-s5pv210/cpu.c index 245b82b53df4..2f16bfc0a116 100644 --- a/arch/arm/mach-s5pv210/cpu.c +++ b/arch/arm/mach-s5pv210/cpu.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* linux/arch/arm/mach-s5pv210/cpu.c | 1 | /* linux/arch/arm/mach-s5pv210/cpu.c |
2 | * | 2 | * |
3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | 3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. |
4 | * http://www.samsung.com/ | 4 | * http://www.samsung.com |
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 |
@@ -51,6 +51,21 @@ static struct map_desc s5pv210_iodesc[] __initdata = { | |||
51 | .length = SZ_4K, | 51 | .length = SZ_4K, |
52 | .type = MT_DEVICE, | 52 | .type = MT_DEVICE, |
53 | }, { | 53 | }, { |
54 | .virtual = (unsigned long)S5P_VA_GPIO, | ||
55 | .pfn = __phys_to_pfn(S5PV210_PA_GPIO), | ||
56 | .length = SZ_4K, | ||
57 | .type = MT_DEVICE, | ||
58 | }, { | ||
59 | .virtual = (unsigned long)VA_VIC0, | ||
60 | .pfn = __phys_to_pfn(S5PV210_PA_VIC0), | ||
61 | .length = SZ_16K, | ||
62 | .type = MT_DEVICE, | ||
63 | }, { | ||
64 | .virtual = (unsigned long)VA_VIC1, | ||
65 | .pfn = __phys_to_pfn(S5PV210_PA_VIC1), | ||
66 | .length = SZ_16K, | ||
67 | .type = MT_DEVICE, | ||
68 | }, { | ||
54 | .virtual = (unsigned long)VA_VIC2, | 69 | .virtual = (unsigned long)VA_VIC2, |
55 | .pfn = __phys_to_pfn(S5PV210_PA_VIC2), | 70 | .pfn = __phys_to_pfn(S5PV210_PA_VIC2), |
56 | .length = SZ_16K, | 71 | .length = SZ_16K, |
@@ -61,6 +76,11 @@ static struct map_desc s5pv210_iodesc[] __initdata = { | |||
61 | .length = SZ_16K, | 76 | .length = SZ_16K, |
62 | .type = MT_DEVICE, | 77 | .type = MT_DEVICE, |
63 | }, { | 78 | }, { |
79 | .virtual = (unsigned long)S3C_VA_UART, | ||
80 | .pfn = __phys_to_pfn(S3C_PA_UART), | ||
81 | .length = SZ_512K, | ||
82 | .type = MT_DEVICE, | ||
83 | }, { | ||
64 | .virtual = (unsigned long)S5P_VA_SROMC, | 84 | .virtual = (unsigned long)S5P_VA_SROMC, |
65 | .pfn = __phys_to_pfn(S5PV210_PA_SROMC), | 85 | .pfn = __phys_to_pfn(S5PV210_PA_SROMC), |
66 | .length = SZ_4K, | 86 | .length = SZ_4K, |
diff --git a/arch/arm/mach-s5pv210/dev-onenand.c b/arch/arm/mach-s5pv210/dev-onenand.c deleted file mode 100644 index f8ede33ee82b..000000000000 --- a/arch/arm/mach-s5pv210/dev-onenand.c +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-s5pv210/dev-onenand.c | ||
3 | * | ||
4 | * Copyright (c) 2008-2010 Samsung Electronics | ||
5 | * Kyungmin Park <kyungmin.park@samsung.com> | ||
6 | * | ||
7 | * S5PC110 series device definition for OneNAND devices | ||
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 | #include <linux/kernel.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/mtd/mtd.h> | ||
17 | #include <linux/mtd/onenand.h> | ||
18 | |||
19 | #include <mach/irqs.h> | ||
20 | #include <mach/map.h> | ||
21 | |||
22 | static struct resource s5pc110_onenand_resources[] = { | ||
23 | [0] = { | ||
24 | .start = S5PC110_PA_ONENAND, | ||
25 | .end = S5PC110_PA_ONENAND + SZ_128K - 1, | ||
26 | .flags = IORESOURCE_MEM, | ||
27 | }, | ||
28 | [1] = { | ||
29 | .start = S5PC110_PA_ONENAND_DMA, | ||
30 | .end = S5PC110_PA_ONENAND_DMA + SZ_8K - 1, | ||
31 | .flags = IORESOURCE_MEM, | ||
32 | }, | ||
33 | [2] = { | ||
34 | .start = IRQ_ONENAND_AUDI, | ||
35 | .end = IRQ_ONENAND_AUDI, | ||
36 | .flags = IORESOURCE_IRQ, | ||
37 | }, | ||
38 | }; | ||
39 | |||
40 | struct platform_device s5pc110_device_onenand = { | ||
41 | .name = "s5pc110-onenand", | ||
42 | .id = -1, | ||
43 | .num_resources = ARRAY_SIZE(s5pc110_onenand_resources), | ||
44 | .resource = s5pc110_onenand_resources, | ||
45 | }; | ||
46 | |||
47 | void s5pc110_onenand_set_platdata(struct onenand_platform_data *pdata) | ||
48 | { | ||
49 | struct onenand_platform_data *pd; | ||
50 | |||
51 | pd = kmemdup(pdata, sizeof(struct onenand_platform_data), GFP_KERNEL); | ||
52 | if (!pd) | ||
53 | printk(KERN_ERR "%s: no memory for platform data\n", __func__); | ||
54 | s5pc110_device_onenand.dev.platform_data = pd; | ||
55 | } | ||
diff --git a/arch/arm/mach-s5pv210/include/mach/debug-macro.S b/arch/arm/mach-s5pv210/include/mach/debug-macro.S index 7872f5c3dfc2..169fe654a59e 100644 --- a/arch/arm/mach-s5pv210/include/mach/debug-macro.S +++ b/arch/arm/mach-s5pv210/include/mach/debug-macro.S | |||
@@ -21,13 +21,12 @@ | |||
21 | * aligned and add in the offset when we load the value here. | 21 | * aligned and add in the offset when we load the value here. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | .macro addruart, rx, tmp | 24 | .macro addruart, rp, rv |
25 | mrc p15, 0, \rx, c1, c0 | 25 | ldr \rp, = S3C_PA_UART |
26 | tst \rx, #1 | 26 | ldr \rv, = S3C_VA_UART |
27 | ldreq \rx, = S3C_PA_UART | ||
28 | ldrne \rx, = S3C_VA_UART | ||
29 | #if CONFIG_DEBUG_S3C_UART != 0 | 27 | #if CONFIG_DEBUG_S3C_UART != 0 |
30 | add \rx, \rx, #(0x400 * CONFIG_DEBUG_S3C_UART) | 28 | add \rp, \rp, #(0x400 * CONFIG_DEBUG_S3C_UART) |
29 | add \rv, \rv, #(0x400 * CONFIG_DEBUG_S3C_UART) | ||
31 | #endif | 30 | #endif |
32 | .endm | 31 | .endm |
33 | 32 | ||
diff --git a/arch/arm/mach-s5pv210/include/mach/map.h b/arch/arm/mach-s5pv210/include/mach/map.h index dd4fb6bf14b5..bd9afd52466a 100644 --- a/arch/arm/mach-s5pv210/include/mach/map.h +++ b/arch/arm/mach-s5pv210/include/mach/map.h | |||
@@ -17,7 +17,10 @@ | |||
17 | #include <plat/map-s5p.h> | 17 | #include <plat/map-s5p.h> |
18 | 18 | ||
19 | #define S5PC110_PA_ONENAND (0xB0000000) | 19 | #define S5PC110_PA_ONENAND (0xB0000000) |
20 | #define S5P_PA_ONENAND S5PC110_PA_ONENAND | ||
21 | |||
20 | #define S5PC110_PA_ONENAND_DMA (0xB0600000) | 22 | #define S5PC110_PA_ONENAND_DMA (0xB0600000) |
23 | #define S5P_PA_ONENAND_DMA S5PC110_PA_ONENAND_DMA | ||
21 | 24 | ||
22 | #define S5PV210_PA_CHIPID (0xE0000000) | 25 | #define S5PV210_PA_CHIPID (0xE0000000) |
23 | #define S5P_PA_CHIPID S5PV210_PA_CHIPID | 26 | #define S5P_PA_CHIPID S5PV210_PA_CHIPID |
@@ -26,7 +29,6 @@ | |||
26 | #define S5P_PA_SYSCON S5PV210_PA_SYSCON | 29 | #define S5P_PA_SYSCON S5PV210_PA_SYSCON |
27 | 30 | ||
28 | #define S5PV210_PA_GPIO (0xE0200000) | 31 | #define S5PV210_PA_GPIO (0xE0200000) |
29 | #define S5P_PA_GPIO S5PV210_PA_GPIO | ||
30 | 32 | ||
31 | /* SPI */ | 33 | /* SPI */ |
32 | #define S5PV210_PA_SPI0 0xE1300000 | 34 | #define S5PV210_PA_SPI0 0xE1300000 |
@@ -72,16 +74,9 @@ | |||
72 | #define S5PV210_PA_HSMMC(x) (0xEB000000 + ((x) * 0x100000)) | 74 | #define S5PV210_PA_HSMMC(x) (0xEB000000 + ((x) * 0x100000)) |
73 | 75 | ||
74 | #define S5PV210_PA_VIC0 (0xF2000000) | 76 | #define S5PV210_PA_VIC0 (0xF2000000) |
75 | #define S5P_PA_VIC0 S5PV210_PA_VIC0 | ||
76 | |||
77 | #define S5PV210_PA_VIC1 (0xF2100000) | 77 | #define S5PV210_PA_VIC1 (0xF2100000) |
78 | #define S5P_PA_VIC1 S5PV210_PA_VIC1 | ||
79 | |||
80 | #define S5PV210_PA_VIC2 (0xF2200000) | 78 | #define S5PV210_PA_VIC2 (0xF2200000) |
81 | #define S5P_PA_VIC2 S5PV210_PA_VIC2 | ||
82 | |||
83 | #define S5PV210_PA_VIC3 (0xF2300000) | 79 | #define S5PV210_PA_VIC3 (0xF2300000) |
84 | #define S5P_PA_VIC3 S5PV210_PA_VIC3 | ||
85 | 80 | ||
86 | #define S5PV210_PA_SDRAM (0x20000000) | 81 | #define S5PV210_PA_SDRAM (0x20000000) |
87 | #define S5P_PA_SDRAM S5PV210_PA_SDRAM | 82 | #define S5P_PA_SDRAM S5PV210_PA_SDRAM |
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index 0dda8012d6b2..00883087363c 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
@@ -477,7 +477,7 @@ static struct platform_device *aquila_devices[] __initdata = { | |||
477 | &aquila_i2c_gpio_pmic, | 477 | &aquila_i2c_gpio_pmic, |
478 | &aquila_device_gpiokeys, | 478 | &aquila_device_gpiokeys, |
479 | &s3c_device_fb, | 479 | &s3c_device_fb, |
480 | &s5pc110_device_onenand, | 480 | &s5p_device_onenand, |
481 | &s3c_device_hsmmc0, | 481 | &s3c_device_hsmmc0, |
482 | &s3c_device_hsmmc1, | 482 | &s3c_device_hsmmc1, |
483 | &s3c_device_hsmmc2, | 483 | &s3c_device_hsmmc2, |
@@ -516,8 +516,6 @@ MACHINE_START(AQUILA, "Aquila") | |||
516 | /* Maintainers: | 516 | /* Maintainers: |
517 | Marek Szyprowski <m.szyprowski@samsung.com> | 517 | Marek Szyprowski <m.szyprowski@samsung.com> |
518 | Kyungmin Park <kyungmin.park@samsung.com> */ | 518 | Kyungmin Park <kyungmin.park@samsung.com> */ |
519 | .phys_io = S3C_PA_UART & 0xfff00000, | ||
520 | .io_pg_offst = (((u32)S3C_VA_UART) >> 18) & 0xfffc, | ||
521 | .boot_params = S5P_PA_SDRAM + 0x100, | 519 | .boot_params = S5P_PA_SDRAM + 0x100, |
522 | .init_irq = s5pv210_init_irq, | 520 | .init_irq = s5pv210_init_irq, |
523 | .map_io = aquila_map_io, | 521 | .map_io = aquila_map_io, |
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index 53754d7d364e..d9ecf57fc2a5 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -456,7 +456,7 @@ static void goni_setup_sdhci(void) | |||
456 | 456 | ||
457 | static struct platform_device *goni_devices[] __initdata = { | 457 | static struct platform_device *goni_devices[] __initdata = { |
458 | &s3c_device_fb, | 458 | &s3c_device_fb, |
459 | &s5pc110_device_onenand, | 459 | &s5p_device_onenand, |
460 | &goni_i2c_gpio_pmic, | 460 | &goni_i2c_gpio_pmic, |
461 | &goni_device_gpiokeys, | 461 | &goni_device_gpiokeys, |
462 | &s5p_device_fimc0, | 462 | &s5p_device_fimc0, |
@@ -491,8 +491,6 @@ static void __init goni_machine_init(void) | |||
491 | 491 | ||
492 | MACHINE_START(GONI, "GONI") | 492 | MACHINE_START(GONI, "GONI") |
493 | /* Maintainers: Kyungmin Park <kyungmin.park@samsung.com> */ | 493 | /* Maintainers: Kyungmin Park <kyungmin.park@samsung.com> */ |
494 | .phys_io = S3C_PA_UART & 0xfff00000, | ||
495 | .io_pg_offst = (((u32)S3C_VA_UART) >> 18) & 0xfffc, | ||
496 | .boot_params = S5P_PA_SDRAM + 0x100, | 494 | .boot_params = S5P_PA_SDRAM + 0x100, |
497 | .init_irq = s5pv210_init_irq, | 495 | .init_irq = s5pv210_init_irq, |
498 | .map_io = goni_map_io, | 496 | .map_io = goni_map_io, |
diff --git a/arch/arm/mach-s5pv210/mach-smdkc110.c b/arch/arm/mach-s5pv210/mach-smdkc110.c index 8211bb87c54b..cea9bca79d88 100644 --- a/arch/arm/mach-s5pv210/mach-smdkc110.c +++ b/arch/arm/mach-s5pv210/mach-smdkc110.c | |||
@@ -127,8 +127,6 @@ static void __init smdkc110_machine_init(void) | |||
127 | 127 | ||
128 | MACHINE_START(SMDKC110, "SMDKC110") | 128 | MACHINE_START(SMDKC110, "SMDKC110") |
129 | /* Maintainer: Kukjin Kim <kgene.kim@samsung.com> */ | 129 | /* Maintainer: Kukjin Kim <kgene.kim@samsung.com> */ |
130 | .phys_io = S3C_PA_UART & 0xfff00000, | ||
131 | .io_pg_offst = (((u32)S3C_VA_UART) >> 18) & 0xfffc, | ||
132 | .boot_params = S5P_PA_SDRAM + 0x100, | 130 | .boot_params = S5P_PA_SDRAM + 0x100, |
133 | .init_irq = s5pv210_init_irq, | 131 | .init_irq = s5pv210_init_irq, |
134 | .map_io = smdkc110_map_io, | 132 | .map_io = smdkc110_map_io, |
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index fbbc0a3c3738..83189ae9da9a 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
@@ -165,8 +165,6 @@ static void __init smdkv210_machine_init(void) | |||
165 | 165 | ||
166 | MACHINE_START(SMDKV210, "SMDKV210") | 166 | MACHINE_START(SMDKV210, "SMDKV210") |
167 | /* Maintainer: Kukjin Kim <kgene.kim@samsung.com> */ | 167 | /* Maintainer: Kukjin Kim <kgene.kim@samsung.com> */ |
168 | .phys_io = S3C_PA_UART & 0xfff00000, | ||
169 | .io_pg_offst = (((u32)S3C_VA_UART) >> 18) & 0xfffc, | ||
170 | .boot_params = S5P_PA_SDRAM + 0x100, | 168 | .boot_params = S5P_PA_SDRAM + 0x100, |
171 | .init_irq = s5pv210_init_irq, | 169 | .init_irq = s5pv210_init_irq, |
172 | .map_io = smdkv210_map_io, | 170 | .map_io = smdkv210_map_io, |