diff options
-rw-r--r-- | arch/arm/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/integratorap.dts | 1 | ||||
-rw-r--r-- | arch/arm/mach-integrator/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-integrator/include/mach/memory.h | 34 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-realview/core.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-versatile/core.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-vexpress/ct-ca9x4.c | 3 | ||||
-rw-r--r-- | arch/arm/plat-versatile/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/plat-versatile/Makefile | 1 | ||||
-rw-r--r-- | drivers/video/fbdev/Kconfig | 7 | ||||
-rw-r--r-- | drivers/video/fbdev/Makefile | 1 | ||||
-rw-r--r-- | drivers/video/fbdev/amba-clcd-versatile.c (renamed from arch/arm/plat-versatile/clcd.c) | 2 | ||||
-rw-r--r-- | include/linux/platform_data/video-clcd-versatile.h (renamed from arch/arm/plat-versatile/include/plat/clcd.h) | 0 |
14 files changed, 14 insertions, 47 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 245058b3b0ef..06aab1024305 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -320,7 +320,6 @@ config ARCH_INTEGRATOR | |||
320 | select HAVE_TCM | 320 | select HAVE_TCM |
321 | select ICST | 321 | select ICST |
322 | select MULTI_IRQ_HANDLER | 322 | select MULTI_IRQ_HANDLER |
323 | select NEED_MACH_MEMORY_H | ||
324 | select PLAT_VERSATILE | 323 | select PLAT_VERSATILE |
325 | select SPARSE_IRQ | 324 | select SPARSE_IRQ |
326 | select USE_OF | 325 | select USE_OF |
diff --git a/arch/arm/boot/dts/integratorap.dts b/arch/arm/boot/dts/integratorap.dts index b10e6351da53..cf06e32ee108 100644 --- a/arch/arm/boot/dts/integratorap.dts +++ b/arch/arm/boot/dts/integratorap.dts | |||
@@ -8,6 +8,7 @@ | |||
8 | / { | 8 | / { |
9 | model = "ARM Integrator/AP"; | 9 | model = "ARM Integrator/AP"; |
10 | compatible = "arm,integrator-ap"; | 10 | compatible = "arm,integrator-ap"; |
11 | dma-ranges = <0x80000000 0x0 0x80000000>; | ||
11 | 12 | ||
12 | aliases { | 13 | aliases { |
13 | arm,timer-primary = &timer2; | 14 | arm,timer-primary = &timer2; |
diff --git a/arch/arm/mach-integrator/Kconfig b/arch/arm/mach-integrator/Kconfig index 64f8e2564a37..c455e974bbfe 100644 --- a/arch/arm/mach-integrator/Kconfig +++ b/arch/arm/mach-integrator/Kconfig | |||
@@ -17,7 +17,6 @@ config ARCH_INTEGRATOR_CP | |||
17 | bool "Support Integrator/CP platform" | 17 | bool "Support Integrator/CP platform" |
18 | select ARCH_CINTEGRATOR | 18 | select ARCH_CINTEGRATOR |
19 | select ARM_TIMER_SP804 | 19 | select ARM_TIMER_SP804 |
20 | select PLAT_VERSATILE_CLCD | ||
21 | select SERIAL_AMBA_PL011 if TTY | 20 | select SERIAL_AMBA_PL011 if TTY |
22 | select SERIAL_AMBA_PL011_CONSOLE if TTY | 21 | select SERIAL_AMBA_PL011_CONSOLE if TTY |
23 | select SOC_BUS | 22 | select SOC_BUS |
diff --git a/arch/arm/mach-integrator/include/mach/memory.h b/arch/arm/mach-integrator/include/mach/memory.h deleted file mode 100644 index 334d5e271889..000000000000 --- a/arch/arm/mach-integrator/include/mach/memory.h +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-integrator/include/mach/memory.h | ||
3 | * | ||
4 | * Copyright (C) 1999 ARM Limited | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | */ | ||
20 | #ifndef __ASM_ARCH_MEMORY_H | ||
21 | #define __ASM_ARCH_MEMORY_H | ||
22 | |||
23 | /* | ||
24 | * Physical DRAM offset. | ||
25 | */ | ||
26 | #define PLAT_PHYS_OFFSET UL(0x00000000) | ||
27 | |||
28 | #define BUS_OFFSET UL(0x80000000) | ||
29 | #define __virt_to_bus(x) ((x) - PAGE_OFFSET + BUS_OFFSET) | ||
30 | #define __bus_to_virt(x) ((x) - BUS_OFFSET + PAGE_OFFSET) | ||
31 | #define __pfn_to_bus(x) (__pfn_to_phys(x) + (BUS_OFFSET - PHYS_OFFSET)) | ||
32 | #define __bus_to_pfn(x) __phys_to_pfn((x) - (BUS_OFFSET - PHYS_OFFSET)) | ||
33 | |||
34 | #endif | ||
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 0e57f8f820a5..e39097068cf9 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/amba/bus.h> | 18 | #include <linux/amba/bus.h> |
19 | #include <linux/amba/kmi.h> | 19 | #include <linux/amba/kmi.h> |
20 | #include <linux/amba/clcd.h> | 20 | #include <linux/amba/clcd.h> |
21 | #include <linux/platform_data/video-clcd-versatile.h> | ||
21 | #include <linux/amba/mmci.h> | 22 | #include <linux/amba/mmci.h> |
22 | #include <linux/io.h> | 23 | #include <linux/io.h> |
23 | #include <linux/irqchip/versatile-fpga.h> | 24 | #include <linux/irqchip/versatile-fpga.h> |
@@ -36,8 +37,6 @@ | |||
36 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
37 | #include <asm/mach/time.h> | 38 | #include <asm/mach/time.h> |
38 | 39 | ||
39 | #include <plat/clcd.h> | ||
40 | |||
41 | #include "hardware.h" | 40 | #include "hardware.h" |
42 | #include "cm.h" | 41 | #include "cm.h" |
43 | #include "common.h" | 42 | #include "common.h" |
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 8c1b39a0caa0..850e506926df 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
26 | #include <linux/amba/bus.h> | 26 | #include <linux/amba/bus.h> |
27 | #include <linux/amba/clcd.h> | 27 | #include <linux/amba/clcd.h> |
28 | #include <linux/platform_data/video-clcd-versatile.h> | ||
28 | #include <linux/io.h> | 29 | #include <linux/io.h> |
29 | #include <linux/smsc911x.h> | 30 | #include <linux/smsc911x.h> |
30 | #include <linux/ata_platform.h> | 31 | #include <linux/ata_platform.h> |
@@ -48,7 +49,6 @@ | |||
48 | #include <mach/irqs.h> | 49 | #include <mach/irqs.h> |
49 | #include <asm/hardware/timer-sp.h> | 50 | #include <asm/hardware/timer-sp.h> |
50 | 51 | ||
51 | #include <plat/clcd.h> | ||
52 | #include <plat/sched_clock.h> | 52 | #include <plat/sched_clock.h> |
53 | 53 | ||
54 | #include "core.h" | 54 | #include "core.h" |
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index be83ba25f81b..08fb8c89f414 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/of_platform.h> | 28 | #include <linux/of_platform.h> |
29 | #include <linux/amba/bus.h> | 29 | #include <linux/amba/bus.h> |
30 | #include <linux/amba/clcd.h> | 30 | #include <linux/amba/clcd.h> |
31 | #include <linux/platform_data/video-clcd-versatile.h> | ||
31 | #include <linux/amba/pl061.h> | 32 | #include <linux/amba/pl061.h> |
32 | #include <linux/amba/mmci.h> | 33 | #include <linux/amba/mmci.h> |
33 | #include <linux/amba/pl022.h> | 34 | #include <linux/amba/pl022.h> |
@@ -53,7 +54,6 @@ | |||
53 | #include <mach/platform.h> | 54 | #include <mach/platform.h> |
54 | #include <asm/hardware/timer-sp.h> | 55 | #include <asm/hardware/timer-sp.h> |
55 | 56 | ||
56 | #include <plat/clcd.h> | ||
57 | #include <plat/sched_clock.h> | 57 | #include <plat/sched_clock.h> |
58 | 58 | ||
59 | #include "core.h" | 59 | #include "core.h" |
diff --git a/arch/arm/mach-vexpress/ct-ca9x4.c b/arch/arm/mach-vexpress/ct-ca9x4.c index 86150d7a2e7d..27bea049380a 100644 --- a/arch/arm/mach-vexpress/ct-ca9x4.c +++ b/arch/arm/mach-vexpress/ct-ca9x4.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <linux/platform_device.h> | 8 | #include <linux/platform_device.h> |
9 | #include <linux/amba/bus.h> | 9 | #include <linux/amba/bus.h> |
10 | #include <linux/amba/clcd.h> | 10 | #include <linux/amba/clcd.h> |
11 | #include <linux/platform_data/video-clcd-versatile.h> | ||
11 | #include <linux/clkdev.h> | 12 | #include <linux/clkdev.h> |
12 | #include <linux/vexpress.h> | 13 | #include <linux/vexpress.h> |
13 | #include <linux/irqchip/arm-gic.h> | 14 | #include <linux/irqchip/arm-gic.h> |
@@ -29,8 +30,6 @@ | |||
29 | #include <mach/motherboard.h> | 30 | #include <mach/motherboard.h> |
30 | #include <mach/irqs.h> | 31 | #include <mach/irqs.h> |
31 | 32 | ||
32 | #include <plat/clcd.h> | ||
33 | |||
34 | static struct map_desc ct_ca9x4_io_desc[] __initdata = { | 33 | static struct map_desc ct_ca9x4_io_desc[] __initdata = { |
35 | { | 34 | { |
36 | .virtual = V2T_PERIPH, | 35 | .virtual = V2T_PERIPH, |
diff --git a/arch/arm/plat-versatile/Kconfig b/arch/arm/plat-versatile/Kconfig index fce41e93b6a4..a301ca2c7d00 100644 --- a/arch/arm/plat-versatile/Kconfig +++ b/arch/arm/plat-versatile/Kconfig | |||
@@ -3,9 +3,6 @@ if PLAT_VERSATILE | |||
3 | config PLAT_VERSATILE_CLOCK | 3 | config PLAT_VERSATILE_CLOCK |
4 | bool | 4 | bool |
5 | 5 | ||
6 | config PLAT_VERSATILE_CLCD | ||
7 | bool | ||
8 | |||
9 | config PLAT_VERSATILE_SCHED_CLOCK | 6 | config PLAT_VERSATILE_SCHED_CLOCK |
10 | def_bool y | 7 | def_bool y |
11 | 8 | ||
diff --git a/arch/arm/plat-versatile/Makefile b/arch/arm/plat-versatile/Makefile index 2e0c472958ae..03c4900ac3f4 100644 --- a/arch/arm/plat-versatile/Makefile +++ b/arch/arm/plat-versatile/Makefile | |||
@@ -1,6 +1,5 @@ | |||
1 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include | 1 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include |
2 | 2 | ||
3 | obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o | 3 | obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o |
4 | obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o | ||
5 | obj-$(CONFIG_PLAT_VERSATILE_SCHED_CLOCK) += sched-clock.o | 4 | obj-$(CONFIG_PLAT_VERSATILE_SCHED_CLOCK) += sched-clock.o |
6 | obj-$(CONFIG_SMP) += headsmp.o platsmp.o | 5 | obj-$(CONFIG_SMP) += headsmp.o platsmp.o |
diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index 59c98bfd5a8a..5edc7a054e03 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig | |||
@@ -290,6 +290,13 @@ config FB_ARMCLCD | |||
290 | here and read <file:Documentation/kbuild/modules.txt>. The module | 290 | here and read <file:Documentation/kbuild/modules.txt>. The module |
291 | will be called amba-clcd. | 291 | will be called amba-clcd. |
292 | 292 | ||
293 | # Helper logic selected only by the ARM Versatile platform family. | ||
294 | config PLAT_VERSATILE_CLCD | ||
295 | depends on FB_ARMCLCD | ||
296 | depends on (PLAT_VERSATILE || ARCH_INTEGRATOR) | ||
297 | default y | ||
298 | bool | ||
299 | |||
293 | config FB_ACORN | 300 | config FB_ACORN |
294 | bool "Acorn VIDC support" | 301 | bool "Acorn VIDC support" |
295 | depends on (FB = y) && ARM && ARCH_ACORN | 302 | depends on (FB = y) && ARM && ARCH_ACORN |
diff --git a/drivers/video/fbdev/Makefile b/drivers/video/fbdev/Makefile index 0284f2a12538..0b2090d2e52e 100644 --- a/drivers/video/fbdev/Makefile +++ b/drivers/video/fbdev/Makefile | |||
@@ -78,6 +78,7 @@ obj-$(CONFIG_FB_ATMEL) += atmel_lcdfb.o | |||
78 | obj-$(CONFIG_FB_PVR2) += pvr2fb.o | 78 | obj-$(CONFIG_FB_PVR2) += pvr2fb.o |
79 | obj-$(CONFIG_FB_VOODOO1) += sstfb.o | 79 | obj-$(CONFIG_FB_VOODOO1) += sstfb.o |
80 | obj-$(CONFIG_FB_ARMCLCD) += amba-clcd.o | 80 | obj-$(CONFIG_FB_ARMCLCD) += amba-clcd.o |
81 | obj-$(CONFIG_PLAT_VERSATILE_CLCD) += amba-clcd-versatile.o | ||
81 | obj-$(CONFIG_FB_GOLDFISH) += goldfishfb.o | 82 | obj-$(CONFIG_FB_GOLDFISH) += goldfishfb.o |
82 | obj-$(CONFIG_FB_68328) += 68328fb.o | 83 | obj-$(CONFIG_FB_68328) += 68328fb.o |
83 | obj-$(CONFIG_FB_GBE) += gbefb.o | 84 | obj-$(CONFIG_FB_GBE) += gbefb.o |
diff --git a/arch/arm/plat-versatile/clcd.c b/drivers/video/fbdev/amba-clcd-versatile.c index 6628cc27efc5..7a8afcd4573e 100644 --- a/arch/arm/plat-versatile/clcd.c +++ b/drivers/video/fbdev/amba-clcd-versatile.c | |||
@@ -2,7 +2,7 @@ | |||
2 | #include <linux/dma-mapping.h> | 2 | #include <linux/dma-mapping.h> |
3 | #include <linux/amba/bus.h> | 3 | #include <linux/amba/bus.h> |
4 | #include <linux/amba/clcd.h> | 4 | #include <linux/amba/clcd.h> |
5 | #include <plat/clcd.h> | 5 | #include <linux/platform_data/video-clcd-versatile.h> |
6 | 6 | ||
7 | static struct clcd_panel vga = { | 7 | static struct clcd_panel vga = { |
8 | .mode = { | 8 | .mode = { |
diff --git a/arch/arm/plat-versatile/include/plat/clcd.h b/include/linux/platform_data/video-clcd-versatile.h index 6bb6a1d2019b..6bb6a1d2019b 100644 --- a/arch/arm/plat-versatile/include/plat/clcd.h +++ b/include/linux/platform_data/video-clcd-versatile.h | |||