Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: move Versatile CLCD helpers

This moves the Versatile-specific helper code and panel database
down into the drivers/video folder next to the CLCD driver
itself, preserving the config symbol but also moving the header
to platform data.

This is necessary to rid the Integrator of this final <plat/*>
inclusion dependency and get us one less user of the
plat-versatile folder.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: linux-fbdev@vger.kernel.org
Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+13 -12
-1
arch/arm/mach-integrator/Kconfig
··· 17 17 bool "Support Integrator/CP platform" 18 18 select ARCH_CINTEGRATOR 19 19 select ARM_TIMER_SP804 20 - select PLAT_VERSATILE_CLCD 21 20 select SERIAL_AMBA_PL011 if TTY 22 21 select SERIAL_AMBA_PL011_CONSOLE if TTY 23 22 select SOC_BUS
+1 -2
arch/arm/mach-integrator/integrator_cp.c
··· 18 18 #include <linux/amba/bus.h> 19 19 #include <linux/amba/kmi.h> 20 20 #include <linux/amba/clcd.h> 21 + #include <linux/platform_data/video-clcd-versatile.h> 21 22 #include <linux/amba/mmci.h> 22 23 #include <linux/io.h> 23 24 #include <linux/irqchip/versatile-fpga.h> ··· 36 35 #include <asm/mach/irq.h> 37 36 #include <asm/mach/map.h> 38 37 #include <asm/mach/time.h> 39 - 40 - #include <plat/clcd.h> 41 38 42 39 #include "hardware.h" 43 40 #include "cm.h"
+1 -1
arch/arm/mach-realview/core.c
··· 25 25 #include <linux/interrupt.h> 26 26 #include <linux/amba/bus.h> 27 27 #include <linux/amba/clcd.h> 28 + #include <linux/platform_data/video-clcd-versatile.h> 28 29 #include <linux/io.h> 29 30 #include <linux/smsc911x.h> 30 31 #include <linux/ata_platform.h> ··· 49 48 #include <mach/irqs.h> 50 49 #include <asm/hardware/timer-sp.h> 51 50 52 - #include <plat/clcd.h> 53 51 #include <plat/sched_clock.h> 54 52 55 53 #include "core.h"
+1 -1
arch/arm/mach-versatile/core.c
··· 28 28 #include <linux/of_platform.h> 29 29 #include <linux/amba/bus.h> 30 30 #include <linux/amba/clcd.h> 31 + #include <linux/platform_data/video-clcd-versatile.h> 31 32 #include <linux/amba/pl061.h> 32 33 #include <linux/amba/mmci.h> 33 34 #include <linux/amba/pl022.h> ··· 54 53 #include <mach/platform.h> 55 54 #include <asm/hardware/timer-sp.h> 56 55 57 - #include <plat/clcd.h> 58 56 #include <plat/sched_clock.h> 59 57 60 58 #include "core.h"
+1 -2
arch/arm/mach-vexpress/ct-ca9x4.c
··· 8 8 #include <linux/platform_device.h> 9 9 #include <linux/amba/bus.h> 10 10 #include <linux/amba/clcd.h> 11 + #include <linux/platform_data/video-clcd-versatile.h> 11 12 #include <linux/clkdev.h> 12 13 #include <linux/vexpress.h> 13 14 #include <linux/irqchip/arm-gic.h> ··· 29 28 30 29 #include <mach/motherboard.h> 31 30 #include <mach/irqs.h> 32 - 33 - #include <plat/clcd.h> 34 31 35 32 static struct map_desc ct_ca9x4_io_desc[] __initdata = { 36 33 {
-3
arch/arm/plat-versatile/Kconfig
··· 3 3 config PLAT_VERSATILE_CLOCK 4 4 bool 5 5 6 - config PLAT_VERSATILE_CLCD 7 - bool 8 - 9 6 config PLAT_VERSATILE_SCHED_CLOCK 10 7 def_bool y 11 8
-1
arch/arm/plat-versatile/Makefile
··· 1 1 ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include 2 2 3 3 obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o 4 - obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o 5 4 obj-$(CONFIG_PLAT_VERSATILE_SCHED_CLOCK) += sched-clock.o 6 5 obj-$(CONFIG_SMP) += headsmp.o platsmp.o
+1 -1
arch/arm/plat-versatile/clcd.c drivers/video/fbdev/amba-clcd-versatile.c
··· 2 2 #include <linux/dma-mapping.h> 3 3 #include <linux/amba/bus.h> 4 4 #include <linux/amba/clcd.h> 5 - #include <plat/clcd.h> 5 + #include <linux/platform_data/video-clcd-versatile.h> 6 6 7 7 static struct clcd_panel vga = { 8 8 .mode = {
arch/arm/plat-versatile/include/plat/clcd.h include/linux/platform_data/video-clcd-versatile.h
+7
drivers/video/fbdev/Kconfig
··· 290 290 here and read <file:Documentation/kbuild/modules.txt>. The module 291 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 300 config FB_ACORN 294 301 bool "Acorn VIDC support" 295 302 depends on (FB = y) && ARM && ARCH_ACORN
+1
drivers/video/fbdev/Makefile
··· 78 78 obj-$(CONFIG_FB_PVR2) += pvr2fb.o 79 79 obj-$(CONFIG_FB_VOODOO1) += sstfb.o 80 80 obj-$(CONFIG_FB_ARMCLCD) += amba-clcd.o 81 + obj-$(CONFIG_PLAT_VERSATILE_CLCD) += amba-clcd-versatile.o 81 82 obj-$(CONFIG_FB_GOLDFISH) += goldfishfb.o 82 83 obj-$(CONFIG_FB_68328) += 68328fb.o 83 84 obj-$(CONFIG_FB_GBE) += gbefb.o