diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-08-24 09:16:48 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-14 05:18:10 -0400 |
commit | 293b2da1b61136813fc2764f43304c66ff8040e9 (patch) | |
tree | 0edb35568fa88f853da9c14cd789a8403cda1b9d /arch | |
parent | 2960ed3468773b1a0b2533dd7a562673cc799437 (diff) |
ARM: pxa: move platform_data definitions
Platform data for device drivers should be defined in
include/linux/platform_data/*.h, not in the architecture
and platform specific directories.
This moves such data out of the pxa include directories
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Paul Parsons <lost.distance@yahoo.com>
Acked-by: Vinod Koul <vinod.koul@linux.intel.com>
Acked-By: Stefan Schmidt <stefan@openezx.org>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Daniel Ribeiro <drwyrm@gmail.com>
Cc: Harald Welte <laforge@openezx.org>
Cc: Philipp Zabel <philipp.zabel@gmail.com>
Cc: Tomas Cech <sleep_walker@suse.cz>
Cc: Sergey Lapin <slapin@ossfans.org>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Dan Williams <djbw@fb.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Chris Ball <cjb@laptop.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Liam Girdwood <lrg@ti.com>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: openezx-devel@lists.openezx.org
Diffstat (limited to 'arch')
73 files changed, 174 insertions, 786 deletions
diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c index 223090b1444d..e5dba9c5dc54 100644 --- a/arch/arm/mach-mmp/aspenite.c +++ b/arch/arm/mach-mmp/aspenite.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <mach/irqs.h> | 27 | #include <mach/irqs.h> |
28 | #include <video/pxa168fb.h> | 28 | #include <video/pxa168fb.h> |
29 | #include <linux/input.h> | 29 | #include <linux/input.h> |
30 | #include <plat/pxa27x_keypad.h> | 30 | #include <linux/platform_data/keypad-pxa27x.h> |
31 | 31 | ||
32 | #include "common.h" | 32 | #include "common.h" |
33 | 33 | ||
diff --git a/arch/arm/mach-mmp/include/mach/mmp2.h b/arch/arm/mach-mmp/include/mach/mmp2.h index cba22fed2265..c4ca4d17194a 100644 --- a/arch/arm/mach-mmp/include/mach/mmp2.h +++ b/arch/arm/mach-mmp/include/mach/mmp2.h | |||
@@ -13,7 +13,7 @@ extern void mmp2_clear_pmic_int(void); | |||
13 | #include <linux/i2c.h> | 13 | #include <linux/i2c.h> |
14 | #include <linux/i2c/pxa-i2c.h> | 14 | #include <linux/i2c/pxa-i2c.h> |
15 | #include <mach/devices.h> | 15 | #include <mach/devices.h> |
16 | #include <mach/sram.h> | 16 | #include <linux/platform_data/dma-mmp_tdma.h> |
17 | 17 | ||
18 | extern struct pxa_device_desc mmp2_device_uart1; | 18 | extern struct pxa_device_desc mmp2_device_uart1; |
19 | extern struct pxa_device_desc mmp2_device_uart2; | 19 | extern struct pxa_device_desc mmp2_device_uart2; |
diff --git a/arch/arm/mach-mmp/include/mach/pxa168.h b/arch/arm/mach-mmp/include/mach/pxa168.h index 09dcd6e2b6a8..37632d964d50 100644 --- a/arch/arm/mach-mmp/include/mach/pxa168.h +++ b/arch/arm/mach-mmp/include/mach/pxa168.h | |||
@@ -11,9 +11,9 @@ extern void pxa168_clear_keypad_wakeup(void); | |||
11 | #include <linux/i2c.h> | 11 | #include <linux/i2c.h> |
12 | #include <linux/i2c/pxa-i2c.h> | 12 | #include <linux/i2c/pxa-i2c.h> |
13 | #include <mach/devices.h> | 13 | #include <mach/devices.h> |
14 | #include <plat/pxa3xx_nand.h> | 14 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
15 | #include <video/pxa168fb.h> | 15 | #include <video/pxa168fb.h> |
16 | #include <plat/pxa27x_keypad.h> | 16 | #include <linux/platform_data/keypad-pxa27x.h> |
17 | #include <mach/cputype.h> | 17 | #include <mach/cputype.h> |
18 | #include <linux/pxa168_eth.h> | 18 | #include <linux/pxa168_eth.h> |
19 | #include <linux/platform_data/mv_usb.h> | 19 | #include <linux/platform_data/mv_usb.h> |
diff --git a/arch/arm/mach-mmp/include/mach/pxa910.h b/arch/arm/mach-mmp/include/mach/pxa910.h index 793634c837ef..3b58a3b2d7df 100644 --- a/arch/arm/mach-mmp/include/mach/pxa910.h +++ b/arch/arm/mach-mmp/include/mach/pxa910.h | |||
@@ -9,7 +9,7 @@ extern void __init pxa910_init_irq(void); | |||
9 | #include <linux/i2c.h> | 9 | #include <linux/i2c.h> |
10 | #include <linux/i2c/pxa-i2c.h> | 10 | #include <linux/i2c/pxa-i2c.h> |
11 | #include <mach/devices.h> | 11 | #include <mach/devices.h> |
12 | #include <plat/pxa3xx_nand.h> | 12 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
13 | 13 | ||
14 | extern struct pxa_device_desc pxa910_device_uart1; | 14 | extern struct pxa_device_desc pxa910_device_uart1; |
15 | extern struct pxa_device_desc pxa910_device_uart2; | 15 | extern struct pxa_device_desc pxa910_device_uart2; |
diff --git a/arch/arm/mach-mmp/include/mach/sram.h b/arch/arm/mach-mmp/include/mach/sram.h deleted file mode 100644 index 239e0fc1bb1f..000000000000 --- a/arch/arm/mach-mmp/include/mach/sram.h +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-mmp/include/mach/sram.h | ||
3 | * | ||
4 | * SRAM Memory Management | ||
5 | * | ||
6 | * Copyright (c) 2011 Marvell Semiconductors Inc. | ||
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 | |||
14 | #ifndef __ASM_ARCH_SRAM_H | ||
15 | #define __ASM_ARCH_SRAM_H | ||
16 | |||
17 | #include <linux/genalloc.h> | ||
18 | |||
19 | /* ARBITRARY: SRAM allocations are multiples of this 2^N size */ | ||
20 | #define SRAM_GRANULARITY 512 | ||
21 | |||
22 | enum sram_type { | ||
23 | MMP_SRAM_UNDEFINED = 0, | ||
24 | MMP_ASRAM, | ||
25 | MMP_ISRAM, | ||
26 | }; | ||
27 | |||
28 | struct sram_platdata { | ||
29 | char *pool_name; | ||
30 | int granularity; | ||
31 | }; | ||
32 | |||
33 | extern struct gen_pool *sram_get_gpool(char *pool_name); | ||
34 | |||
35 | #endif /* __ASM_ARCH_SRAM_H */ | ||
diff --git a/arch/arm/mach-mmp/sram.c b/arch/arm/mach-mmp/sram.c index 4304f9519372..b4899b04e4a9 100644 --- a/arch/arm/mach-mmp/sram.c +++ b/arch/arm/mach-mmp/sram.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
23 | #include <linux/genalloc.h> | 23 | #include <linux/genalloc.h> |
24 | 24 | ||
25 | #include <mach/sram.h> | 25 | #include <linux/platform_data/dma-mmp_tdma.h> |
26 | 26 | ||
27 | struct sram_bank_info { | 27 | struct sram_bank_info { |
28 | char *pool_name; | 28 | char *pool_name; |
diff --git a/arch/arm/mach-mmp/teton_bga.c b/arch/arm/mach-mmp/teton_bga.c index 42bef6674ecf..dd30ea74785c 100644 --- a/arch/arm/mach-mmp/teton_bga.c +++ b/arch/arm/mach-mmp/teton_bga.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | #include <linux/gpio.h> | 18 | #include <linux/gpio.h> |
19 | #include <linux/input.h> | 19 | #include <linux/input.h> |
20 | #include <plat/pxa27x_keypad.h> | 20 | #include <linux/platform_data/keypad-pxa27x.h> |
21 | #include <linux/i2c.h> | 21 | #include <linux/i2c.h> |
22 | 22 | ||
23 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
diff --git a/arch/arm/mach-pxa/am200epd.c b/arch/arm/mach-pxa/am200epd.c index ccdac4b6a469..ffa6d811aad8 100644 --- a/arch/arm/mach-pxa/am200epd.c +++ b/arch/arm/mach-pxa/am200epd.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #include <mach/pxa25x.h> | 33 | #include <mach/pxa25x.h> |
34 | #include <mach/gumstix.h> | 34 | #include <mach/gumstix.h> |
35 | #include <mach/pxafb.h> | 35 | #include <linux/platform_data/video-pxafb.h> |
36 | 36 | ||
37 | #include "generic.h" | 37 | #include "generic.h" |
38 | 38 | ||
diff --git a/arch/arm/mach-pxa/am300epd.c b/arch/arm/mach-pxa/am300epd.c index 76c4b9494031..3dfec1ec462d 100644 --- a/arch/arm/mach-pxa/am300epd.c +++ b/arch/arm/mach-pxa/am300epd.c | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | #include <mach/gumstix.h> | 31 | #include <mach/gumstix.h> |
32 | #include <mach/mfp-pxa25x.h> | 32 | #include <mach/mfp-pxa25x.h> |
33 | #include <mach/pxafb.h> | 33 | #include <linux/platform_data/video-pxafb.h> |
34 | 34 | ||
35 | #include "generic.h" | 35 | #include "generic.h" |
36 | 36 | ||
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index 9244493dbcb7..208229342514 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c | |||
@@ -45,12 +45,12 @@ | |||
45 | #include <mach/pxa27x.h> | 45 | #include <mach/pxa27x.h> |
46 | #include <mach/balloon3.h> | 46 | #include <mach/balloon3.h> |
47 | #include <mach/audio.h> | 47 | #include <mach/audio.h> |
48 | #include <mach/pxafb.h> | 48 | #include <linux/platform_data/video-pxafb.h> |
49 | #include <mach/mmc.h> | 49 | #include <linux/platform_data/mmc-pxamci.h> |
50 | #include <mach/udc.h> | 50 | #include <mach/udc.h> |
51 | #include <mach/pxa27x-udc.h> | 51 | #include <mach/pxa27x-udc.h> |
52 | #include <mach/irda.h> | 52 | #include <linux/platform_data/irda-pxaficp.h> |
53 | #include <mach/ohci.h> | 53 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
54 | 54 | ||
55 | #include "generic.h" | 55 | #include "generic.h" |
56 | #include "devices.h" | 56 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/cm-x270.c b/arch/arm/mach-pxa/cm-x270.c index 431ef56700c4..2503db9e3253 100644 --- a/arch/arm/mach-pxa/cm-x270.c +++ b/arch/arm/mach-pxa/cm-x270.c | |||
@@ -22,8 +22,8 @@ | |||
22 | #include <linux/spi/libertas_spi.h> | 22 | #include <linux/spi/libertas_spi.h> |
23 | 23 | ||
24 | #include <mach/pxa27x.h> | 24 | #include <mach/pxa27x.h> |
25 | #include <mach/ohci.h> | 25 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
26 | #include <mach/mmc.h> | 26 | #include <linux/platform_data/mmc-pxamci.h> |
27 | 27 | ||
28 | #include "generic.h" | 28 | #include "generic.h" |
29 | 29 | ||
diff --git a/arch/arm/mach-pxa/cm-x2xx.c b/arch/arm/mach-pxa/cm-x2xx.c index 8fa4ad27edf3..fc3afc7cd366 100644 --- a/arch/arm/mach-pxa/cm-x2xx.c +++ b/arch/arm/mach-pxa/cm-x2xx.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <mach/pxa25x.h> | 24 | #include <mach/pxa25x.h> |
25 | #include <mach/pxa27x.h> | 25 | #include <mach/pxa27x.h> |
26 | #include <mach/audio.h> | 26 | #include <mach/audio.h> |
27 | #include <mach/pxafb.h> | 27 | #include <linux/platform_data/video-pxafb.h> |
28 | #include <mach/smemc.h> | 28 | #include <mach/smemc.h> |
29 | 29 | ||
30 | #include <asm/hardware/it8152.h> | 30 | #include <asm/hardware/it8152.h> |
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index 3e4e9fe2d462..cc2b23afcaaf 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c | |||
@@ -48,12 +48,12 @@ | |||
48 | 48 | ||
49 | #include <mach/pxa300.h> | 49 | #include <mach/pxa300.h> |
50 | #include <mach/pxa27x-udc.h> | 50 | #include <mach/pxa27x-udc.h> |
51 | #include <mach/pxafb.h> | 51 | #include <linux/platform_data/video-pxafb.h> |
52 | #include <mach/mmc.h> | 52 | #include <linux/platform_data/mmc-pxamci.h> |
53 | #include <mach/ohci.h> | 53 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
54 | #include <plat/pxa3xx_nand.h> | 54 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
55 | #include <mach/audio.h> | 55 | #include <mach/audio.h> |
56 | #include <mach/pxa3xx-u2d.h> | 56 | #include <linux/platform_data/usb-pxa3xx-ulpi.h> |
57 | 57 | ||
58 | #include <asm/mach/map.h> | 58 | #include <asm/mach/map.h> |
59 | 59 | ||
diff --git a/arch/arm/mach-pxa/colibri-evalboard.c b/arch/arm/mach-pxa/colibri-evalboard.c index d28e802e2448..8404b24240ea 100644 --- a/arch/arm/mach-pxa/colibri-evalboard.c +++ b/arch/arm/mach-pxa/colibri-evalboard.c | |||
@@ -23,8 +23,8 @@ | |||
23 | 23 | ||
24 | #include <mach/pxa27x.h> | 24 | #include <mach/pxa27x.h> |
25 | #include <mach/colibri.h> | 25 | #include <mach/colibri.h> |
26 | #include <mach/mmc.h> | 26 | #include <linux/platform_data/mmc-pxamci.h> |
27 | #include <mach/ohci.h> | 27 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
28 | #include <mach/pxa27x-udc.h> | 28 | #include <mach/pxa27x-udc.h> |
29 | 29 | ||
30 | #include "generic.h" | 30 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/colibri-pxa270-income.c b/arch/arm/mach-pxa/colibri-pxa270-income.c index 248804bb2c9d..2d4a7b4d5d78 100644 --- a/arch/arm/mach-pxa/colibri-pxa270-income.c +++ b/arch/arm/mach-pxa/colibri-pxa270-income.c | |||
@@ -27,11 +27,11 @@ | |||
27 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
28 | 28 | ||
29 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
30 | #include <mach/mmc.h> | 30 | #include <linux/platform_data/mmc-pxamci.h> |
31 | #include <mach/ohci.h> | 31 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
32 | #include <mach/pxa27x.h> | 32 | #include <mach/pxa27x.h> |
33 | #include <mach/pxa27x-udc.h> | 33 | #include <mach/pxa27x-udc.h> |
34 | #include <mach/pxafb.h> | 34 | #include <linux/platform_data/video-pxafb.h> |
35 | 35 | ||
36 | #include "devices.h" | 36 | #include "devices.h" |
37 | #include "generic.h" | 37 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/colibri-pxa300.c b/arch/arm/mach-pxa/colibri-pxa300.c index bb6def8ec979..a9c9c163dd95 100644 --- a/arch/arm/mach-pxa/colibri-pxa300.c +++ b/arch/arm/mach-pxa/colibri-pxa300.c | |||
@@ -24,8 +24,8 @@ | |||
24 | 24 | ||
25 | #include <mach/pxa300.h> | 25 | #include <mach/pxa300.h> |
26 | #include <mach/colibri.h> | 26 | #include <mach/colibri.h> |
27 | #include <mach/ohci.h> | 27 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
28 | #include <mach/pxafb.h> | 28 | #include <linux/platform_data/video-pxafb.h> |
29 | #include <mach/audio.h> | 29 | #include <mach/audio.h> |
30 | 30 | ||
31 | #include "generic.h" | 31 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/colibri-pxa320.c b/arch/arm/mach-pxa/colibri-pxa320.c index d88e7b37f1da..25515cd7e68f 100644 --- a/arch/arm/mach-pxa/colibri-pxa320.c +++ b/arch/arm/mach-pxa/colibri-pxa320.c | |||
@@ -25,8 +25,8 @@ | |||
25 | 25 | ||
26 | #include <mach/pxa320.h> | 26 | #include <mach/pxa320.h> |
27 | #include <mach/colibri.h> | 27 | #include <mach/colibri.h> |
28 | #include <mach/pxafb.h> | 28 | #include <linux/platform_data/video-pxafb.h> |
29 | #include <mach/ohci.h> | 29 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
30 | #include <mach/audio.h> | 30 | #include <mach/audio.h> |
31 | #include <mach/pxa27x-udc.h> | 31 | #include <mach/pxa27x-udc.h> |
32 | #include <mach/udc.h> | 32 | #include <mach/udc.h> |
diff --git a/arch/arm/mach-pxa/colibri-pxa3xx.c b/arch/arm/mach-pxa/colibri-pxa3xx.c index 68cc75fac219..8240291ab8cf 100644 --- a/arch/arm/mach-pxa/colibri-pxa3xx.c +++ b/arch/arm/mach-pxa/colibri-pxa3xx.c | |||
@@ -24,9 +24,9 @@ | |||
24 | #include <mach/pxa3xx-regs.h> | 24 | #include <mach/pxa3xx-regs.h> |
25 | #include <mach/mfp-pxa300.h> | 25 | #include <mach/mfp-pxa300.h> |
26 | #include <mach/colibri.h> | 26 | #include <mach/colibri.h> |
27 | #include <mach/mmc.h> | 27 | #include <linux/platform_data/mmc-pxamci.h> |
28 | #include <mach/pxafb.h> | 28 | #include <linux/platform_data/video-pxafb.h> |
29 | #include <plat/pxa3xx_nand.h> | 29 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
30 | 30 | ||
31 | #include "generic.h" | 31 | #include "generic.h" |
32 | #include "devices.h" | 32 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index c1fe32db4755..7c83f52c549c 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -46,8 +46,8 @@ | |||
46 | #include <asm/mach/irq.h> | 46 | #include <asm/mach/irq.h> |
47 | 47 | ||
48 | #include <mach/pxa25x.h> | 48 | #include <mach/pxa25x.h> |
49 | #include <mach/irda.h> | 49 | #include <linux/platform_data/irda-pxaficp.h> |
50 | #include <mach/mmc.h> | 50 | #include <linux/platform_data/mmc-pxamci.h> |
51 | #include <mach/udc.h> | 51 | #include <mach/udc.h> |
52 | #include <mach/corgi.h> | 52 | #include <mach/corgi.h> |
53 | #include <mach/sharpsl_pm.h> | 53 | #include <mach/sharpsl_pm.h> |
diff --git a/arch/arm/mach-pxa/csb726.c b/arch/arm/mach-pxa/csb726.c index 67f0de37f46e..7039f44b3647 100644 --- a/arch/arm/mach-pxa/csb726.c +++ b/arch/arm/mach-pxa/csb726.c | |||
@@ -23,8 +23,8 @@ | |||
23 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
24 | #include <mach/csb726.h> | 24 | #include <mach/csb726.h> |
25 | #include <mach/pxa27x.h> | 25 | #include <mach/pxa27x.h> |
26 | #include <mach/mmc.h> | 26 | #include <linux/platform_data/mmc-pxamci.h> |
27 | #include <mach/ohci.h> | 27 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
28 | #include <mach/audio.h> | 28 | #include <mach/audio.h> |
29 | #include <mach/smemc.h> | 29 | #include <mach/smemc.h> |
30 | 30 | ||
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 166eee5b8a70..e66bd1bf0163 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -8,17 +8,17 @@ | |||
8 | 8 | ||
9 | #include <asm/pmu.h> | 9 | #include <asm/pmu.h> |
10 | #include <mach/udc.h> | 10 | #include <mach/udc.h> |
11 | #include <mach/pxa3xx-u2d.h> | 11 | #include <linux/platform_data/usb-pxa3xx-ulpi.h> |
12 | #include <mach/pxafb.h> | 12 | #include <linux/platform_data/video-pxafb.h> |
13 | #include <mach/mmc.h> | 13 | #include <linux/platform_data/mmc-pxamci.h> |
14 | #include <mach/irda.h> | 14 | #include <linux/platform_data/irda-pxaficp.h> |
15 | #include <mach/irqs.h> | 15 | #include <mach/irqs.h> |
16 | #include <mach/ohci.h> | 16 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
17 | #include <plat/pxa27x_keypad.h> | 17 | #include <linux/platform_data/keypad-pxa27x.h> |
18 | #include <mach/camera.h> | 18 | #include <linux/platform_data/camera-pxa.h> |
19 | #include <mach/audio.h> | 19 | #include <mach/audio.h> |
20 | #include <mach/hardware.h> | 20 | #include <mach/hardware.h> |
21 | #include <plat/pxa3xx_nand.h> | 21 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
22 | 22 | ||
23 | #include "devices.h" | 23 | #include "devices.h" |
24 | #include "generic.h" | 24 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c index 97f82ad341bf..1b6411439ec8 100644 --- a/arch/arm/mach-pxa/em-x270.c +++ b/arch/arm/mach-pxa/em-x270.c | |||
@@ -42,11 +42,11 @@ | |||
42 | #include <mach/pxa27x.h> | 42 | #include <mach/pxa27x.h> |
43 | #include <mach/pxa27x-udc.h> | 43 | #include <mach/pxa27x-udc.h> |
44 | #include <mach/audio.h> | 44 | #include <mach/audio.h> |
45 | #include <mach/pxafb.h> | 45 | #include <linux/platform_data/video-pxafb.h> |
46 | #include <mach/ohci.h> | 46 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
47 | #include <mach/mmc.h> | 47 | #include <linux/platform_data/mmc-pxamci.h> |
48 | #include <plat/pxa27x_keypad.h> | 48 | #include <linux/platform_data/keypad-pxa27x.h> |
49 | #include <mach/camera.h> | 49 | #include <linux/platform_data/camera-pxa.h> |
50 | 50 | ||
51 | #include "generic.h" | 51 | #include "generic.h" |
52 | #include "devices.h" | 52 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index 4cb2391a782e..be2ee9bf5c6e 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c | |||
@@ -32,9 +32,9 @@ | |||
32 | #include <mach/eseries-gpio.h> | 32 | #include <mach/eseries-gpio.h> |
33 | #include <mach/eseries-irq.h> | 33 | #include <mach/eseries-irq.h> |
34 | #include <mach/audio.h> | 34 | #include <mach/audio.h> |
35 | #include <mach/pxafb.h> | 35 | #include <linux/platform_data/video-pxafb.h> |
36 | #include <mach/udc.h> | 36 | #include <mach/udc.h> |
37 | #include <mach/irda.h> | 37 | #include <linux/platform_data/irda-pxaficp.h> |
38 | 38 | ||
39 | #include "devices.h" | 39 | #include "devices.h" |
40 | #include "generic.h" | 40 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/ezx.c b/arch/arm/mach-pxa/ezx.c index 15ab2533667d..dc58fa0edb66 100644 --- a/arch/arm/mach-pxa/ezx.c +++ b/arch/arm/mach-pxa/ezx.c | |||
@@ -29,11 +29,11 @@ | |||
29 | #include <asm/mach/arch.h> | 29 | #include <asm/mach/arch.h> |
30 | 30 | ||
31 | #include <mach/pxa27x.h> | 31 | #include <mach/pxa27x.h> |
32 | #include <mach/pxafb.h> | 32 | #include <linux/platform_data/video-pxafb.h> |
33 | #include <mach/ohci.h> | 33 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
34 | #include <mach/hardware.h> | 34 | #include <mach/hardware.h> |
35 | #include <plat/pxa27x_keypad.h> | 35 | #include <linux/platform_data/keypad-pxa27x.h> |
36 | #include <mach/camera.h> | 36 | #include <linux/platform_data/camera-pxa.h> |
37 | 37 | ||
38 | #include "devices.h" | 38 | #include "devices.h" |
39 | #include "generic.h" | 39 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/gumstix.c b/arch/arm/mach-pxa/gumstix.c index e529a35a44ce..60755a6bb1c6 100644 --- a/arch/arm/mach-pxa/gumstix.c +++ b/arch/arm/mach-pxa/gumstix.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #include <asm/mach/flash.h> | 41 | #include <asm/mach/flash.h> |
42 | 42 | ||
43 | #include <mach/pxa25x.h> | 43 | #include <mach/pxa25x.h> |
44 | #include <mach/mmc.h> | 44 | #include <linux/platform_data/mmc-pxamci.h> |
45 | #include <mach/udc.h> | 45 | #include <mach/udc.h> |
46 | #include <mach/gumstix.h> | 46 | #include <mach/gumstix.h> |
47 | 47 | ||
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index e6311988add2..5ecbd17b5641 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | #include <mach/pxa27x.h> | 46 | #include <mach/pxa27x.h> |
47 | #include <mach/hx4700.h> | 47 | #include <mach/hx4700.h> |
48 | #include <mach/irda.h> | 48 | #include <linux/platform_data/irda-pxaficp.h> |
49 | 49 | ||
50 | #include <sound/ak4641.h> | 50 | #include <sound/ak4641.h> |
51 | #include <video/platform_lcd.h> | 51 | #include <video/platform_lcd.h> |
diff --git a/arch/arm/mach-pxa/idp.c b/arch/arm/mach-pxa/idp.c index 6ff466bd43e8..c36151940d17 100644 --- a/arch/arm/mach-pxa/idp.c +++ b/arch/arm/mach-pxa/idp.c | |||
@@ -33,9 +33,9 @@ | |||
33 | 33 | ||
34 | #include <mach/pxa25x.h> | 34 | #include <mach/pxa25x.h> |
35 | #include <mach/idp.h> | 35 | #include <mach/idp.h> |
36 | #include <mach/pxafb.h> | 36 | #include <linux/platform_data/video-pxafb.h> |
37 | #include <mach/bitfield.h> | 37 | #include <mach/bitfield.h> |
38 | #include <mach/mmc.h> | 38 | #include <linux/platform_data/mmc-pxamci.h> |
39 | 39 | ||
40 | #include "generic.h" | 40 | #include "generic.h" |
41 | #include "devices.h" | 41 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/include/mach/arcom-pcmcia.h b/arch/arm/mach-pxa/include/mach/arcom-pcmcia.h deleted file mode 100644 index d428be4db44c..000000000000 --- a/arch/arm/mach-pxa/include/mach/arcom-pcmcia.h +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | #ifndef __ARCOM_PCMCIA_H | ||
2 | #define __ARCOM_PCMCIA_H | ||
3 | |||
4 | struct arcom_pcmcia_pdata { | ||
5 | int cd_gpio; | ||
6 | int rdy_gpio; | ||
7 | int pwr_gpio; | ||
8 | void (*reset)(int state); | ||
9 | }; | ||
10 | |||
11 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/camera.h b/arch/arm/mach-pxa/include/mach/camera.h deleted file mode 100644 index 6709b1cd7c77..000000000000 --- a/arch/arm/mach-pxa/include/mach/camera.h +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | /* | ||
2 | camera.h - PXA camera driver header file | ||
3 | |||
4 | Copyright (C) 2003, Intel Corporation | ||
5 | Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de> | ||
6 | |||
7 | This program is free software; you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation; either version 2 of the License, or | ||
10 | (at your option) any later version. | ||
11 | |||
12 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | ||
16 | |||
17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program; if not, write to the Free Software | ||
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
20 | */ | ||
21 | |||
22 | #ifndef __ASM_ARCH_CAMERA_H_ | ||
23 | #define __ASM_ARCH_CAMERA_H_ | ||
24 | |||
25 | #define PXA_CAMERA_MASTER 1 | ||
26 | #define PXA_CAMERA_DATAWIDTH_4 2 | ||
27 | #define PXA_CAMERA_DATAWIDTH_5 4 | ||
28 | #define PXA_CAMERA_DATAWIDTH_8 8 | ||
29 | #define PXA_CAMERA_DATAWIDTH_9 0x10 | ||
30 | #define PXA_CAMERA_DATAWIDTH_10 0x20 | ||
31 | #define PXA_CAMERA_PCLK_EN 0x40 | ||
32 | #define PXA_CAMERA_MCLK_EN 0x80 | ||
33 | #define PXA_CAMERA_PCP 0x100 | ||
34 | #define PXA_CAMERA_HSP 0x200 | ||
35 | #define PXA_CAMERA_VSP 0x400 | ||
36 | |||
37 | struct pxacamera_platform_data { | ||
38 | unsigned long flags; | ||
39 | unsigned long mclk_10khz; | ||
40 | }; | ||
41 | |||
42 | extern void pxa_set_camera_info(struct pxacamera_platform_data *); | ||
43 | |||
44 | #endif /* __ASM_ARCH_CAMERA_H_ */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/irda.h b/arch/arm/mach-pxa/include/mach/irda.h deleted file mode 100644 index 3cd41f77dda4..000000000000 --- a/arch/arm/mach-pxa/include/mach/irda.h +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | #ifndef ASMARM_ARCH_IRDA_H | ||
2 | #define ASMARM_ARCH_IRDA_H | ||
3 | |||
4 | /* board specific transceiver capabilities */ | ||
5 | |||
6 | #define IR_OFF 1 | ||
7 | #define IR_SIRMODE 2 | ||
8 | #define IR_FIRMODE 4 | ||
9 | |||
10 | struct pxaficp_platform_data { | ||
11 | int transceiver_cap; | ||
12 | void (*transceiver_mode)(struct device *dev, int mode); | ||
13 | int (*startup)(struct device *dev); | ||
14 | void (*shutdown)(struct device *dev); | ||
15 | int gpio_pwdown; /* powerdown GPIO for the IrDA chip */ | ||
16 | bool gpio_pwdown_inverted; /* gpio_pwdown is inverted */ | ||
17 | }; | ||
18 | |||
19 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); | ||
20 | |||
21 | #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x) | ||
22 | void pxa2xx_transceiver_mode(struct device *dev, int mode); | ||
23 | #endif | ||
24 | |||
25 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/mmc.h b/arch/arm/mach-pxa/include/mach/mmc.h deleted file mode 100644 index 9eb515bb799d..000000000000 --- a/arch/arm/mach-pxa/include/mach/mmc.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | #ifndef ASMARM_ARCH_MMC_H | ||
2 | #define ASMARM_ARCH_MMC_H | ||
3 | |||
4 | #include <linux/mmc/host.h> | ||
5 | #include <linux/interrupt.h> | ||
6 | |||
7 | struct device; | ||
8 | struct mmc_host; | ||
9 | |||
10 | struct pxamci_platform_data { | ||
11 | unsigned int ocr_mask; /* available voltages */ | ||
12 | unsigned long detect_delay_ms; /* delay in millisecond before detecting cards after interrupt */ | ||
13 | int (*init)(struct device *, irq_handler_t , void *); | ||
14 | int (*get_ro)(struct device *); | ||
15 | void (*setpower)(struct device *, unsigned int); | ||
16 | void (*exit)(struct device *, void *); | ||
17 | int gpio_card_detect; /* gpio detecting card insertion */ | ||
18 | int gpio_card_ro; /* gpio detecting read only toggle */ | ||
19 | bool gpio_card_ro_invert; /* gpio ro is inverted */ | ||
20 | int gpio_power; /* gpio powering up MMC bus */ | ||
21 | bool gpio_power_invert; /* gpio power is inverted */ | ||
22 | }; | ||
23 | |||
24 | extern void pxa_set_mci_info(struct pxamci_platform_data *info); | ||
25 | extern void pxa3xx_set_mci2_info(struct pxamci_platform_data *info); | ||
26 | extern void pxa3xx_set_mci3_info(struct pxamci_platform_data *info); | ||
27 | |||
28 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/ohci.h b/arch/arm/mach-pxa/include/mach/ohci.h deleted file mode 100644 index 95b6e2a6e514..000000000000 --- a/arch/arm/mach-pxa/include/mach/ohci.h +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | #ifndef ASMARM_ARCH_OHCI_H | ||
2 | #define ASMARM_ARCH_OHCI_H | ||
3 | |||
4 | struct device; | ||
5 | |||
6 | struct pxaohci_platform_data { | ||
7 | int (*init)(struct device *); | ||
8 | void (*exit)(struct device *); | ||
9 | |||
10 | unsigned long flags; | ||
11 | #define ENABLE_PORT1 (1 << 0) | ||
12 | #define ENABLE_PORT2 (1 << 1) | ||
13 | #define ENABLE_PORT3 (1 << 2) | ||
14 | #define ENABLE_PORT_ALL (ENABLE_PORT1 | ENABLE_PORT2 | ENABLE_PORT3) | ||
15 | |||
16 | #define POWER_SENSE_LOW (1 << 3) | ||
17 | #define POWER_CONTROL_LOW (1 << 4) | ||
18 | #define NO_OC_PROTECTION (1 << 5) | ||
19 | #define OC_MODE_GLOBAL (0 << 6) | ||
20 | #define OC_MODE_PERPORT (1 << 6) | ||
21 | |||
22 | int power_on_delay; /* Power On to Power Good time - in ms | ||
23 | * HCD must wait for this duration before | ||
24 | * accessing a powered on port | ||
25 | */ | ||
26 | int port_mode; | ||
27 | #define PMM_NPS_MODE 1 | ||
28 | #define PMM_GLOBAL_MODE 2 | ||
29 | #define PMM_PERPORT_MODE 3 | ||
30 | |||
31 | int power_budget; | ||
32 | }; | ||
33 | |||
34 | extern void pxa_set_ohci_info(struct pxaohci_platform_data *info); | ||
35 | |||
36 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/palmasoc.h b/arch/arm/mach-pxa/include/mach/palmasoc.h deleted file mode 100644 index 58afb30d5298..000000000000 --- a/arch/arm/mach-pxa/include/mach/palmasoc.h +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #ifndef _INCLUDE_PALMASOC_H_ | ||
2 | #define _INCLUDE_PALMASOC_H_ | ||
3 | |||
4 | struct palm27x_asoc_info { | ||
5 | int jack_gpio; | ||
6 | }; | ||
7 | |||
8 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/pata_pxa.h b/arch/arm/mach-pxa/include/mach/pata_pxa.h deleted file mode 100644 index 6cf7df1d5830..000000000000 --- a/arch/arm/mach-pxa/include/mach/pata_pxa.h +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | /* | ||
2 | * Generic PXA PATA driver | ||
3 | * | ||
4 | * Copyright (C) 2010 Marek Vasut <marek.vasut@gmail.com> | ||
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, or (at your option) | ||
9 | * 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; see the file COPYING. If not, write to | ||
18 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef __MACH_PATA_PXA_H__ | ||
22 | #define __MACH_PATA_PXA_H__ | ||
23 | |||
24 | struct pata_pxa_pdata { | ||
25 | /* PXA DMA DREQ<0:2> pin */ | ||
26 | uint32_t dma_dreq; | ||
27 | /* Register shift */ | ||
28 | uint32_t reg_shift; | ||
29 | /* IRQ flags */ | ||
30 | uint32_t irq_flags; | ||
31 | }; | ||
32 | |||
33 | #endif /* __MACH_PATA_PXA_H__ */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa3xx-u2d.h b/arch/arm/mach-pxa/include/mach/pxa3xx-u2d.h deleted file mode 100644 index 9d82cb65ea56..000000000000 --- a/arch/arm/mach-pxa/include/mach/pxa3xx-u2d.h +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | /* | ||
2 | * PXA3xx U2D header | ||
3 | * | ||
4 | * Copyright (C) 2010 CompuLab Ltd. | ||
5 | * | ||
6 | * Igor Grinberg <grinberg@compulab.co.il> | ||
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 | #ifndef __PXA310_U2D__ | ||
13 | #define __PXA310_U2D__ | ||
14 | |||
15 | #include <linux/usb/ulpi.h> | ||
16 | |||
17 | struct pxa3xx_u2d_platform_data { | ||
18 | |||
19 | #define ULPI_SER_6PIN (1 << 0) | ||
20 | #define ULPI_SER_3PIN (1 << 1) | ||
21 | unsigned int ulpi_mode; | ||
22 | |||
23 | int (*init)(struct device *); | ||
24 | void (*exit)(struct device *); | ||
25 | }; | ||
26 | |||
27 | |||
28 | /* Start PXA3xx U2D host */ | ||
29 | int pxa3xx_u2d_start_hc(struct usb_bus *host); | ||
30 | /* Stop PXA3xx U2D host */ | ||
31 | void pxa3xx_u2d_stop_hc(struct usb_bus *host); | ||
32 | |||
33 | extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info); | ||
34 | |||
35 | #endif /* __PXA310_U2D__ */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa930_rotary.h b/arch/arm/mach-pxa/include/mach/pxa930_rotary.h deleted file mode 100644 index 053587caffdd..000000000000 --- a/arch/arm/mach-pxa/include/mach/pxa930_rotary.h +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | #ifndef __ASM_ARCH_PXA930_ROTARY_H | ||
2 | #define __ASM_ARCH_PXA930_ROTARY_H | ||
3 | |||
4 | /* NOTE: | ||
5 | * | ||
6 | * rotary can be either interpreted as a ralative input event (e.g. | ||
7 | * REL_WHEEL or REL_HWHEEL) or a specific key event (e.g. UP/DOWN | ||
8 | * or LEFT/RIGHT), depending on if up_key & down_key are assigned | ||
9 | * or rel_code is assigned a non-zero value. When all are non-zero, | ||
10 | * up_key and down_key will be preferred. | ||
11 | */ | ||
12 | struct pxa930_rotary_platform_data { | ||
13 | int up_key; | ||
14 | int down_key; | ||
15 | int rel_code; | ||
16 | }; | ||
17 | |||
18 | void __init pxa930_set_rotarykey_info(struct pxa930_rotary_platform_data *info); | ||
19 | |||
20 | #endif /* __ASM_ARCH_PXA930_ROTARY_H */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa930_trkball.h b/arch/arm/mach-pxa/include/mach/pxa930_trkball.h deleted file mode 100644 index 5e0789bc4729..000000000000 --- a/arch/arm/mach-pxa/include/mach/pxa930_trkball.h +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #ifndef __ASM_ARCH_PXA930_TRKBALL_H | ||
2 | #define __ASM_ARCH_PXA930_TRKBALL_H | ||
3 | |||
4 | struct pxa930_trkball_platform_data { | ||
5 | int x_filter; | ||
6 | int y_filter; | ||
7 | }; | ||
8 | |||
9 | #endif /* __ASM_ARCH_PXA930_TRKBALL_H */ | ||
10 | |||
diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h b/arch/arm/mach-pxa/include/mach/pxafb.h deleted file mode 100644 index 486b4c519ae2..000000000000 --- a/arch/arm/mach-pxa/include/mach/pxafb.h +++ /dev/null | |||
@@ -1,175 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pxa/include/mach/pxafb.h | ||
3 | * | ||
4 | * Support for the xscale frame buffer. | ||
5 | * | ||
6 | * Author: Jean-Frederic Clere | ||
7 | * Created: Sep 22, 2003 | ||
8 | * Copyright: jfclere@sinix.net | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | #include <linux/fb.h> | ||
16 | #include <mach/regs-lcd.h> | ||
17 | |||
18 | /* | ||
19 | * Supported LCD connections | ||
20 | * | ||
21 | * bits 0 - 3: for LCD panel type: | ||
22 | * | ||
23 | * STN - for passive matrix | ||
24 | * DSTN - for dual scan passive matrix | ||
25 | * TFT - for active matrix | ||
26 | * | ||
27 | * bits 4 - 9 : for bus width | ||
28 | * bits 10-17 : for AC Bias Pin Frequency | ||
29 | * bit 18 : for output enable polarity | ||
30 | * bit 19 : for pixel clock edge | ||
31 | * bit 20 : for output pixel format when base is RGBT16 | ||
32 | */ | ||
33 | #define LCD_CONN_TYPE(_x) ((_x) & 0x0f) | ||
34 | #define LCD_CONN_WIDTH(_x) (((_x) >> 4) & 0x1f) | ||
35 | |||
36 | #define LCD_TYPE_MASK 0xf | ||
37 | #define LCD_TYPE_UNKNOWN 0 | ||
38 | #define LCD_TYPE_MONO_STN 1 | ||
39 | #define LCD_TYPE_MONO_DSTN 2 | ||
40 | #define LCD_TYPE_COLOR_STN 3 | ||
41 | #define LCD_TYPE_COLOR_DSTN 4 | ||
42 | #define LCD_TYPE_COLOR_TFT 5 | ||
43 | #define LCD_TYPE_SMART_PANEL 6 | ||
44 | #define LCD_TYPE_MAX 7 | ||
45 | |||
46 | #define LCD_MONO_STN_4BPP ((4 << 4) | LCD_TYPE_MONO_STN) | ||
47 | #define LCD_MONO_STN_8BPP ((8 << 4) | LCD_TYPE_MONO_STN) | ||
48 | #define LCD_MONO_DSTN_8BPP ((8 << 4) | LCD_TYPE_MONO_DSTN) | ||
49 | #define LCD_COLOR_STN_8BPP ((8 << 4) | LCD_TYPE_COLOR_STN) | ||
50 | #define LCD_COLOR_DSTN_16BPP ((16 << 4) | LCD_TYPE_COLOR_DSTN) | ||
51 | #define LCD_COLOR_TFT_8BPP ((8 << 4) | LCD_TYPE_COLOR_TFT) | ||
52 | #define LCD_COLOR_TFT_16BPP ((16 << 4) | LCD_TYPE_COLOR_TFT) | ||
53 | #define LCD_COLOR_TFT_18BPP ((18 << 4) | LCD_TYPE_COLOR_TFT) | ||
54 | #define LCD_SMART_PANEL_8BPP ((8 << 4) | LCD_TYPE_SMART_PANEL) | ||
55 | #define LCD_SMART_PANEL_16BPP ((16 << 4) | LCD_TYPE_SMART_PANEL) | ||
56 | #define LCD_SMART_PANEL_18BPP ((18 << 4) | LCD_TYPE_SMART_PANEL) | ||
57 | |||
58 | #define LCD_AC_BIAS_FREQ(x) (((x) & 0xff) << 10) | ||
59 | #define LCD_BIAS_ACTIVE_HIGH (0 << 18) | ||
60 | #define LCD_BIAS_ACTIVE_LOW (1 << 18) | ||
61 | #define LCD_PCLK_EDGE_RISE (0 << 19) | ||
62 | #define LCD_PCLK_EDGE_FALL (1 << 19) | ||
63 | #define LCD_ALTERNATE_MAPPING (1 << 20) | ||
64 | |||
65 | /* | ||
66 | * This structure describes the machine which we are running on. | ||
67 | * It is set in linux/arch/arm/mach-pxa/machine_name.c and used in the probe routine | ||
68 | * of linux/drivers/video/pxafb.c | ||
69 | */ | ||
70 | struct pxafb_mode_info { | ||
71 | u_long pixclock; | ||
72 | |||
73 | u_short xres; | ||
74 | u_short yres; | ||
75 | |||
76 | u_char bpp; | ||
77 | u_int cmap_greyscale:1, | ||
78 | depth:8, | ||
79 | transparency:1, | ||
80 | unused:22; | ||
81 | |||
82 | /* Parallel Mode Timing */ | ||
83 | u_char hsync_len; | ||
84 | u_char left_margin; | ||
85 | u_char right_margin; | ||
86 | |||
87 | u_char vsync_len; | ||
88 | u_char upper_margin; | ||
89 | u_char lower_margin; | ||
90 | u_char sync; | ||
91 | |||
92 | /* Smart Panel Mode Timing - see PXA27x DM 7.4.15.0.3 for details | ||
93 | * Note: | ||
94 | * 1. all parameters in nanosecond (ns) | ||
95 | * 2. a0cs{rd,wr}_set_hld are controlled by the same register bits | ||
96 | * in pxa27x and pxa3xx, initialize them to the same value or | ||
97 | * the larger one will be used | ||
98 | * 3. same to {rd,wr}_pulse_width | ||
99 | * | ||
100 | * 4. LCD_PCLK_EDGE_{RISE,FALL} controls the L_PCLK_WR polarity | ||
101 | * 5. sync & FB_SYNC_HOR_HIGH_ACT controls the L_LCLK_A0 | ||
102 | * 6. sync & FB_SYNC_VERT_HIGH_ACT controls the L_LCLK_RD | ||
103 | */ | ||
104 | unsigned a0csrd_set_hld; /* A0 and CS Setup/Hold Time before/after L_FCLK_RD */ | ||
105 | unsigned a0cswr_set_hld; /* A0 and CS Setup/Hold Time before/after L_PCLK_WR */ | ||
106 | unsigned wr_pulse_width; /* L_PCLK_WR pulse width */ | ||
107 | unsigned rd_pulse_width; /* L_FCLK_RD pulse width */ | ||
108 | unsigned cmd_inh_time; /* Command Inhibit time between two writes */ | ||
109 | unsigned op_hold_time; /* Output Hold time from L_FCLK_RD negation */ | ||
110 | }; | ||
111 | |||
112 | struct pxafb_mach_info { | ||
113 | struct pxafb_mode_info *modes; | ||
114 | unsigned int num_modes; | ||
115 | |||
116 | unsigned int lcd_conn; | ||
117 | unsigned long video_mem_size; | ||
118 | |||
119 | u_int fixed_modes:1, | ||
120 | cmap_inverse:1, | ||
121 | cmap_static:1, | ||
122 | acceleration_enabled:1, | ||
123 | unused:28; | ||
124 | |||
125 | /* The following should be defined in LCCR0 | ||
126 | * LCCR0_Act or LCCR0_Pas Active or Passive | ||
127 | * LCCR0_Sngl or LCCR0_Dual Single/Dual panel | ||
128 | * LCCR0_Mono or LCCR0_Color Mono/Color | ||
129 | * LCCR0_4PixMono or LCCR0_8PixMono (in mono single mode) | ||
130 | * LCCR0_DMADel(Tcpu) (optional) DMA request delay | ||
131 | * | ||
132 | * The following should not be defined in LCCR0: | ||
133 | * LCCR0_OUM, LCCR0_BM, LCCR0_QDM, LCCR0_DIS, LCCR0_EFM | ||
134 | * LCCR0_IUM, LCCR0_SFM, LCCR0_LDM, LCCR0_ENB | ||
135 | */ | ||
136 | u_int lccr0; | ||
137 | /* The following should be defined in LCCR3 | ||
138 | * LCCR3_OutEnH or LCCR3_OutEnL Output enable polarity | ||
139 | * LCCR3_PixRsEdg or LCCR3_PixFlEdg Pixel clock edge type | ||
140 | * LCCR3_Acb(X) AB Bias pin frequency | ||
141 | * LCCR3_DPC (optional) Double Pixel Clock mode (untested) | ||
142 | * | ||
143 | * The following should not be defined in LCCR3 | ||
144 | * LCCR3_HSP, LCCR3_VSP, LCCR0_Pcd(x), LCCR3_Bpp | ||
145 | */ | ||
146 | u_int lccr3; | ||
147 | /* The following should be defined in LCCR4 | ||
148 | * LCCR4_PAL_FOR_0 or LCCR4_PAL_FOR_1 or LCCR4_PAL_FOR_2 | ||
149 | * | ||
150 | * All other bits in LCCR4 should be left alone. | ||
151 | */ | ||
152 | u_int lccr4; | ||
153 | void (*pxafb_backlight_power)(int); | ||
154 | void (*pxafb_lcd_power)(int, struct fb_var_screeninfo *); | ||
155 | void (*smart_update)(struct fb_info *); | ||
156 | }; | ||
157 | |||
158 | void pxa_set_fb_info(struct device *, struct pxafb_mach_info *); | ||
159 | unsigned long pxafb_get_hsync_time(struct device *dev); | ||
160 | |||
161 | #ifdef CONFIG_FB_PXA_SMARTPANEL | ||
162 | extern int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int); | ||
163 | extern int pxafb_smart_flush(struct fb_info *info); | ||
164 | #else | ||
165 | static inline int pxafb_smart_queue(struct fb_info *info, | ||
166 | uint16_t *cmds, int n) | ||
167 | { | ||
168 | return 0; | ||
169 | } | ||
170 | |||
171 | static inline int pxafb_smart_flush(struct fb_info *info) | ||
172 | { | ||
173 | return 0; | ||
174 | } | ||
175 | #endif | ||
diff --git a/arch/arm/mach-pxa/littleton.c b/arch/arm/mach-pxa/littleton.c index 1fb86edb857c..402874f9021f 100644 --- a/arch/arm/mach-pxa/littleton.c +++ b/arch/arm/mach-pxa/littleton.c | |||
@@ -42,11 +42,11 @@ | |||
42 | #include <asm/mach/irq.h> | 42 | #include <asm/mach/irq.h> |
43 | 43 | ||
44 | #include <mach/pxa300.h> | 44 | #include <mach/pxa300.h> |
45 | #include <mach/pxafb.h> | 45 | #include <linux/platform_data/video-pxafb.h> |
46 | #include <mach/mmc.h> | 46 | #include <linux/platform_data/mmc-pxamci.h> |
47 | #include <plat/pxa27x_keypad.h> | 47 | #include <linux/platform_data/keypad-pxa27x.h> |
48 | #include <mach/littleton.h> | 48 | #include <mach/littleton.h> |
49 | #include <plat/pxa3xx_nand.h> | 49 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
50 | 50 | ||
51 | #include "generic.h" | 51 | #include "generic.h" |
52 | 52 | ||
diff --git a/arch/arm/mach-pxa/lpd270.c b/arch/arm/mach-pxa/lpd270.c index cee9ce2fc0b5..1a63eaa89867 100644 --- a/arch/arm/mach-pxa/lpd270.c +++ b/arch/arm/mach-pxa/lpd270.c | |||
@@ -41,10 +41,10 @@ | |||
41 | #include <mach/pxa27x.h> | 41 | #include <mach/pxa27x.h> |
42 | #include <mach/lpd270.h> | 42 | #include <mach/lpd270.h> |
43 | #include <mach/audio.h> | 43 | #include <mach/audio.h> |
44 | #include <mach/pxafb.h> | 44 | #include <linux/platform_data/video-pxafb.h> |
45 | #include <mach/mmc.h> | 45 | #include <linux/platform_data/mmc-pxamci.h> |
46 | #include <mach/irda.h> | 46 | #include <linux/platform_data/irda-pxaficp.h> |
47 | #include <mach/ohci.h> | 47 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
48 | #include <mach/smemc.h> | 48 | #include <mach/smemc.h> |
49 | 49 | ||
50 | #include "generic.h" | 50 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 0ca0db787903..44dd7565707e 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -46,9 +46,9 @@ | |||
46 | #include <mach/audio.h> | 46 | #include <mach/audio.h> |
47 | #include <mach/lubbock.h> | 47 | #include <mach/lubbock.h> |
48 | #include <mach/udc.h> | 48 | #include <mach/udc.h> |
49 | #include <mach/irda.h> | 49 | #include <linux/platform_data/irda-pxaficp.h> |
50 | #include <mach/pxafb.h> | 50 | #include <linux/platform_data/video-pxafb.h> |
51 | #include <mach/mmc.h> | 51 | #include <linux/platform_data/mmc-pxamci.h> |
52 | #include <mach/pm.h> | 52 | #include <mach/pm.h> |
53 | #include <mach/smemc.h> | 53 | #include <mach/smemc.h> |
54 | 54 | ||
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index 39561dcf65f2..f7922404d941 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -38,10 +38,10 @@ | |||
38 | 38 | ||
39 | #include <mach/pxa27x.h> | 39 | #include <mach/pxa27x.h> |
40 | #include <mach/magician.h> | 40 | #include <mach/magician.h> |
41 | #include <mach/pxafb.h> | 41 | #include <linux/platform_data/video-pxafb.h> |
42 | #include <mach/mmc.h> | 42 | #include <linux/platform_data/mmc-pxamci.h> |
43 | #include <mach/irda.h> | 43 | #include <linux/platform_data/irda-pxaficp.h> |
44 | #include <mach/ohci.h> | 44 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
45 | 45 | ||
46 | #include "devices.h" | 46 | #include "devices.h" |
47 | #include "generic.h" | 47 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index 1aebaf719462..5d9475730a3f 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -45,11 +45,11 @@ | |||
45 | #include <mach/pxa27x.h> | 45 | #include <mach/pxa27x.h> |
46 | #include <mach/mainstone.h> | 46 | #include <mach/mainstone.h> |
47 | #include <mach/audio.h> | 47 | #include <mach/audio.h> |
48 | #include <mach/pxafb.h> | 48 | #include <linux/platform_data/video-pxafb.h> |
49 | #include <mach/mmc.h> | 49 | #include <linux/platform_data/mmc-pxamci.h> |
50 | #include <mach/irda.h> | 50 | #include <linux/platform_data/irda-pxaficp.h> |
51 | #include <mach/ohci.h> | 51 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
52 | #include <plat/pxa27x_keypad.h> | 52 | #include <linux/platform_data/keypad-pxa27x.h> |
53 | #include <mach/smemc.h> | 53 | #include <mach/smemc.h> |
54 | 54 | ||
55 | #include "generic.h" | 55 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index bf99022b021f..2831308dba68 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c | |||
@@ -46,12 +46,12 @@ | |||
46 | 46 | ||
47 | #include <mach/pxa27x.h> | 47 | #include <mach/pxa27x.h> |
48 | #include <mach/regs-rtc.h> | 48 | #include <mach/regs-rtc.h> |
49 | #include <plat/pxa27x_keypad.h> | 49 | #include <linux/platform_data/keypad-pxa27x.h> |
50 | #include <mach/pxafb.h> | 50 | #include <linux/platform_data/video-pxafb.h> |
51 | #include <mach/mmc.h> | 51 | #include <linux/platform_data/mmc-pxamci.h> |
52 | #include <mach/udc.h> | 52 | #include <mach/udc.h> |
53 | #include <mach/pxa27x-udc.h> | 53 | #include <mach/pxa27x-udc.h> |
54 | #include <mach/camera.h> | 54 | #include <linux/platform_data/camera-pxa.h> |
55 | #include <mach/audio.h> | 55 | #include <mach/audio.h> |
56 | #include <mach/smemc.h> | 56 | #include <mach/smemc.h> |
57 | #include <media/soc_camera.h> | 57 | #include <media/soc_camera.h> |
diff --git a/arch/arm/mach-pxa/mxm8x10.c b/arch/arm/mach-pxa/mxm8x10.c index 83570a79e7d2..d04ed4961e60 100644 --- a/arch/arm/mach-pxa/mxm8x10.c +++ b/arch/arm/mach-pxa/mxm8x10.c | |||
@@ -24,11 +24,11 @@ | |||
24 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
25 | #include <linux/i2c/pxa-i2c.h> | 25 | #include <linux/i2c/pxa-i2c.h> |
26 | 26 | ||
27 | #include <plat/pxa3xx_nand.h> | 27 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
28 | 28 | ||
29 | #include <mach/pxafb.h> | 29 | #include <linux/platform_data/video-pxafb.h> |
30 | #include <mach/mmc.h> | 30 | #include <linux/platform_data/mmc-pxamci.h> |
31 | #include <mach/ohci.h> | 31 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
32 | #include <mach/pxa320.h> | 32 | #include <mach/pxa320.h> |
33 | 33 | ||
34 | #include <mach/mxm8x10.h> | 34 | #include <mach/mxm8x10.h> |
diff --git a/arch/arm/mach-pxa/palm27x.c b/arch/arm/mach-pxa/palm27x.c index dad71cfa34c8..17d4c53017ca 100644 --- a/arch/arm/mach-pxa/palm27x.c +++ b/arch/arm/mach-pxa/palm27x.c | |||
@@ -29,11 +29,11 @@ | |||
29 | 29 | ||
30 | #include <mach/pxa27x.h> | 30 | #include <mach/pxa27x.h> |
31 | #include <mach/audio.h> | 31 | #include <mach/audio.h> |
32 | #include <mach/mmc.h> | 32 | #include <linux/platform_data/mmc-pxamci.h> |
33 | #include <mach/pxafb.h> | 33 | #include <linux/platform_data/video-pxafb.h> |
34 | #include <mach/irda.h> | 34 | #include <linux/platform_data/irda-pxaficp.h> |
35 | #include <mach/udc.h> | 35 | #include <mach/udc.h> |
36 | #include <mach/palmasoc.h> | 36 | #include <linux/platform_data/asoc-palm27x.h> |
37 | #include <mach/palm27x.h> | 37 | #include <mach/palm27x.h> |
38 | 38 | ||
39 | #include "generic.h" | 39 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmld.c b/arch/arm/mach-pxa/palmld.c index 31e0433d83ba..8bcc96e3b0db 100644 --- a/arch/arm/mach-pxa/palmld.c +++ b/arch/arm/mach-pxa/palmld.c | |||
@@ -35,11 +35,11 @@ | |||
35 | #include <mach/pxa27x.h> | 35 | #include <mach/pxa27x.h> |
36 | #include <mach/audio.h> | 36 | #include <mach/audio.h> |
37 | #include <mach/palmld.h> | 37 | #include <mach/palmld.h> |
38 | #include <mach/mmc.h> | 38 | #include <linux/platform_data/mmc-pxamci.h> |
39 | #include <mach/pxafb.h> | 39 | #include <linux/platform_data/video-pxafb.h> |
40 | #include <mach/irda.h> | 40 | #include <linux/platform_data/irda-pxaficp.h> |
41 | #include <plat/pxa27x_keypad.h> | 41 | #include <linux/platform_data/keypad-pxa27x.h> |
42 | #include <mach/palmasoc.h> | 42 | #include <linux/platform_data/asoc-palm27x.h> |
43 | #include <mach/palm27x.h> | 43 | #include <mach/palm27x.h> |
44 | 44 | ||
45 | #include "generic.h" | 45 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmt5.c b/arch/arm/mach-pxa/palmt5.c index 0f6bd4fcfa3b..5ca7b904a30e 100644 --- a/arch/arm/mach-pxa/palmt5.c +++ b/arch/arm/mach-pxa/palmt5.c | |||
@@ -36,12 +36,12 @@ | |||
36 | #include <mach/pxa27x.h> | 36 | #include <mach/pxa27x.h> |
37 | #include <mach/audio.h> | 37 | #include <mach/audio.h> |
38 | #include <mach/palmt5.h> | 38 | #include <mach/palmt5.h> |
39 | #include <mach/mmc.h> | 39 | #include <linux/platform_data/mmc-pxamci.h> |
40 | #include <mach/pxafb.h> | 40 | #include <linux/platform_data/video-pxafb.h> |
41 | #include <mach/irda.h> | 41 | #include <linux/platform_data/irda-pxaficp.h> |
42 | #include <plat/pxa27x_keypad.h> | 42 | #include <linux/platform_data/keypad-pxa27x.h> |
43 | #include <mach/udc.h> | 43 | #include <mach/udc.h> |
44 | #include <mach/palmasoc.h> | 44 | #include <linux/platform_data/asoc-palm27x.h> |
45 | #include <mach/palm27x.h> | 45 | #include <mach/palm27x.h> |
46 | 46 | ||
47 | #include "generic.h" | 47 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmtc.c b/arch/arm/mach-pxa/palmtc.c index e2d97eed07a7..ca924cfedfc0 100644 --- a/arch/arm/mach-pxa/palmtc.c +++ b/arch/arm/mach-pxa/palmtc.c | |||
@@ -34,9 +34,9 @@ | |||
34 | #include <mach/pxa25x.h> | 34 | #include <mach/pxa25x.h> |
35 | #include <mach/audio.h> | 35 | #include <mach/audio.h> |
36 | #include <mach/palmtc.h> | 36 | #include <mach/palmtc.h> |
37 | #include <mach/mmc.h> | 37 | #include <linux/platform_data/mmc-pxamci.h> |
38 | #include <mach/pxafb.h> | 38 | #include <linux/platform_data/video-pxafb.h> |
39 | #include <mach/irda.h> | 39 | #include <linux/platform_data/irda-pxaficp.h> |
40 | #include <mach/udc.h> | 40 | #include <mach/udc.h> |
41 | 41 | ||
42 | #include "generic.h" | 42 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmte2.c b/arch/arm/mach-pxa/palmte2.c index c054827c567f..997e6da9a9c4 100644 --- a/arch/arm/mach-pxa/palmte2.c +++ b/arch/arm/mach-pxa/palmte2.c | |||
@@ -34,11 +34,11 @@ | |||
34 | #include <mach/pxa25x.h> | 34 | #include <mach/pxa25x.h> |
35 | #include <mach/audio.h> | 35 | #include <mach/audio.h> |
36 | #include <mach/palmte2.h> | 36 | #include <mach/palmte2.h> |
37 | #include <mach/mmc.h> | 37 | #include <linux/platform_data/mmc-pxamci.h> |
38 | #include <mach/pxafb.h> | 38 | #include <linux/platform_data/video-pxafb.h> |
39 | #include <mach/irda.h> | 39 | #include <linux/platform_data/irda-pxaficp.h> |
40 | #include <mach/udc.h> | 40 | #include <mach/udc.h> |
41 | #include <mach/palmasoc.h> | 41 | #include <linux/platform_data/asoc-palm27x.h> |
42 | 42 | ||
43 | #include "generic.h" | 43 | #include "generic.h" |
44 | #include "devices.h" | 44 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/palmtreo.c b/arch/arm/mach-pxa/palmtreo.c index fbdebee39a53..3f3c48f2f7ce 100644 --- a/arch/arm/mach-pxa/palmtreo.c +++ b/arch/arm/mach-pxa/palmtreo.c | |||
@@ -35,15 +35,15 @@ | |||
35 | #include <mach/pxa27x-udc.h> | 35 | #include <mach/pxa27x-udc.h> |
36 | #include <mach/audio.h> | 36 | #include <mach/audio.h> |
37 | #include <mach/palmtreo.h> | 37 | #include <mach/palmtreo.h> |
38 | #include <mach/mmc.h> | 38 | #include <linux/platform_data/mmc-pxamci.h> |
39 | #include <mach/pxafb.h> | 39 | #include <linux/platform_data/video-pxafb.h> |
40 | #include <mach/irda.h> | 40 | #include <linux/platform_data/irda-pxaficp.h> |
41 | #include <plat/pxa27x_keypad.h> | 41 | #include <linux/platform_data/keypad-pxa27x.h> |
42 | #include <mach/udc.h> | 42 | #include <mach/udc.h> |
43 | #include <mach/ohci.h> | 43 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
44 | #include <mach/pxa2xx-regs.h> | 44 | #include <mach/pxa2xx-regs.h> |
45 | #include <mach/palmasoc.h> | 45 | #include <linux/platform_data/asoc-palm27x.h> |
46 | #include <mach/camera.h> | 46 | #include <linux/platform_data/camera-pxa.h> |
47 | #include <mach/palm27x.h> | 47 | #include <mach/palm27x.h> |
48 | 48 | ||
49 | #include <sound/pxa2xx-lib.h> | 49 | #include <sound/pxa2xx-lib.h> |
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c index 0da35dccfd89..8b4366628a12 100644 --- a/arch/arm/mach-pxa/palmtx.c +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -40,12 +40,12 @@ | |||
40 | #include <mach/pxa27x.h> | 40 | #include <mach/pxa27x.h> |
41 | #include <mach/audio.h> | 41 | #include <mach/audio.h> |
42 | #include <mach/palmtx.h> | 42 | #include <mach/palmtx.h> |
43 | #include <mach/mmc.h> | 43 | #include <linux/platform_data/mmc-pxamci.h> |
44 | #include <mach/pxafb.h> | 44 | #include <linux/platform_data/video-pxafb.h> |
45 | #include <mach/irda.h> | 45 | #include <linux/platform_data/irda-pxaficp.h> |
46 | #include <plat/pxa27x_keypad.h> | 46 | #include <linux/platform_data/keypad-pxa27x.h> |
47 | #include <mach/udc.h> | 47 | #include <mach/udc.h> |
48 | #include <mach/palmasoc.h> | 48 | #include <linux/platform_data/asoc-palm27x.h> |
49 | #include <mach/palm27x.h> | 49 | #include <mach/palm27x.h> |
50 | 50 | ||
51 | #include "generic.h" | 51 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmz72.c b/arch/arm/mach-pxa/palmz72.c index a97b59965bb9..8cdd4f58e253 100644 --- a/arch/arm/mach-pxa/palmz72.c +++ b/arch/arm/mach-pxa/palmz72.c | |||
@@ -40,16 +40,16 @@ | |||
40 | #include <mach/pxa27x.h> | 40 | #include <mach/pxa27x.h> |
41 | #include <mach/audio.h> | 41 | #include <mach/audio.h> |
42 | #include <mach/palmz72.h> | 42 | #include <mach/palmz72.h> |
43 | #include <mach/mmc.h> | 43 | #include <linux/platform_data/mmc-pxamci.h> |
44 | #include <mach/pxafb.h> | 44 | #include <linux/platform_data/video-pxafb.h> |
45 | #include <mach/irda.h> | 45 | #include <linux/platform_data/irda-pxaficp.h> |
46 | #include <plat/pxa27x_keypad.h> | 46 | #include <linux/platform_data/keypad-pxa27x.h> |
47 | #include <mach/udc.h> | 47 | #include <mach/udc.h> |
48 | #include <mach/palmasoc.h> | 48 | #include <linux/platform_data/asoc-palm27x.h> |
49 | #include <mach/palm27x.h> | 49 | #include <mach/palm27x.h> |
50 | 50 | ||
51 | #include <mach/pm.h> | 51 | #include <mach/pm.h> |
52 | #include <mach/camera.h> | 52 | #include <linux/platform_data/camera-pxa.h> |
53 | 53 | ||
54 | #include <media/soc_camera.h> | 54 | #include <media/soc_camera.h> |
55 | 55 | ||
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index cb723e84bc27..113c57a03565 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c | |||
@@ -28,14 +28,14 @@ | |||
28 | 28 | ||
29 | #include <media/soc_camera.h> | 29 | #include <media/soc_camera.h> |
30 | 30 | ||
31 | #include <mach/camera.h> | 31 | #include <linux/platform_data/camera-pxa.h> |
32 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
33 | #include <mach/pxa27x.h> | 33 | #include <mach/pxa27x.h> |
34 | #include <mach/audio.h> | 34 | #include <mach/audio.h> |
35 | #include <mach/mmc.h> | 35 | #include <linux/platform_data/mmc-pxamci.h> |
36 | #include <mach/ohci.h> | 36 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
37 | #include <mach/pcm990_baseboard.h> | 37 | #include <mach/pcm990_baseboard.h> |
38 | #include <mach/pxafb.h> | 38 | #include <linux/platform_data/video-pxafb.h> |
39 | 39 | ||
40 | #include "devices.h" | 40 | #include "devices.h" |
41 | #include "generic.h" | 41 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 89d98c832189..2910bb935c75 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -40,11 +40,11 @@ | |||
40 | #include <asm/mach/irq.h> | 40 | #include <asm/mach/irq.h> |
41 | 41 | ||
42 | #include <mach/pxa25x.h> | 42 | #include <mach/pxa25x.h> |
43 | #include <mach/mmc.h> | 43 | #include <linux/platform_data/mmc-pxamci.h> |
44 | #include <mach/udc.h> | 44 | #include <mach/udc.h> |
45 | #include <mach/irda.h> | 45 | #include <linux/platform_data/irda-pxaficp.h> |
46 | #include <mach/poodle.h> | 46 | #include <mach/poodle.h> |
47 | #include <mach/pxafb.h> | 47 | #include <linux/platform_data/video-pxafb.h> |
48 | 48 | ||
49 | #include <asm/hardware/scoop.h> | 49 | #include <asm/hardware/scoop.h> |
50 | #include <asm/hardware/locomo.h> | 50 | #include <asm/hardware/locomo.h> |
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 4726c246dcdc..8047ee0effc5 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <mach/irqs.h> | 30 | #include <mach/irqs.h> |
31 | #include <mach/pxa27x.h> | 31 | #include <mach/pxa27x.h> |
32 | #include <mach/reset.h> | 32 | #include <mach/reset.h> |
33 | #include <mach/ohci.h> | 33 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
34 | #include <mach/pm.h> | 34 | #include <mach/pm.h> |
35 | #include <mach/dma.h> | 35 | #include <mach/dma.h> |
36 | #include <mach/smemc.h> | 36 | #include <mach/smemc.h> |
diff --git a/arch/arm/mach-pxa/pxa2xx.c b/arch/arm/mach-pxa/pxa2xx.c index f8ec85450c42..447dcbb22f6f 100644 --- a/arch/arm/mach-pxa/pxa2xx.c +++ b/arch/arm/mach-pxa/pxa2xx.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <mach/pxa2xx-regs.h> | 19 | #include <mach/pxa2xx-regs.h> |
20 | #include <mach/mfp-pxa25x.h> | 20 | #include <mach/mfp-pxa25x.h> |
21 | #include <mach/reset.h> | 21 | #include <mach/reset.h> |
22 | #include <mach/irda.h> | 22 | #include <linux/platform_data/irda-pxaficp.h> |
23 | 23 | ||
24 | void pxa2xx_clear_reset_status(unsigned int mask) | 24 | void pxa2xx_clear_reset_status(unsigned int mask) |
25 | { | 25 | { |
diff --git a/arch/arm/mach-pxa/pxa3xx-ulpi.c b/arch/arm/mach-pxa/pxa3xx-ulpi.c index 5ead6d480c6d..7dbe3ccf1993 100644 --- a/arch/arm/mach-pxa/pxa3xx-ulpi.c +++ b/arch/arm/mach-pxa/pxa3xx-ulpi.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
29 | #include <mach/regs-u2d.h> | 29 | #include <mach/regs-u2d.h> |
30 | #include <mach/pxa3xx-u2d.h> | 30 | #include <linux/platform_data/usb-pxa3xx-ulpi.h> |
31 | 31 | ||
32 | struct pxa3xx_u2d_ulpi { | 32 | struct pxa3xx_u2d_ulpi { |
33 | struct clk *clk; | 33 | struct clk *clk; |
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index dffb7e813d98..f65147c2a563 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <mach/hardware.h> | 27 | #include <mach/hardware.h> |
28 | #include <mach/pxa3xx-regs.h> | 28 | #include <mach/pxa3xx-regs.h> |
29 | #include <mach/reset.h> | 29 | #include <mach/reset.h> |
30 | #include <mach/ohci.h> | 30 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
31 | #include <mach/pm.h> | 31 | #include <mach/pm.h> |
32 | #include <mach/dma.h> | 32 | #include <mach/dma.h> |
33 | #include <mach/smemc.h> | 33 | #include <mach/smemc.h> |
diff --git a/arch/arm/mach-pxa/raumfeld.c b/arch/arm/mach-pxa/raumfeld.c index d89d87ae144c..25b08bfa997b 100644 --- a/arch/arm/mach-pxa/raumfeld.c +++ b/arch/arm/mach-pxa/raumfeld.c | |||
@@ -49,10 +49,10 @@ | |||
49 | #include <asm/mach/arch.h> | 49 | #include <asm/mach/arch.h> |
50 | 50 | ||
51 | #include <mach/pxa300.h> | 51 | #include <mach/pxa300.h> |
52 | #include <mach/ohci.h> | 52 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
53 | #include <mach/pxafb.h> | 53 | #include <linux/platform_data/video-pxafb.h> |
54 | #include <mach/mmc.h> | 54 | #include <linux/platform_data/mmc-pxamci.h> |
55 | #include <plat/pxa3xx_nand.h> | 55 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
56 | 56 | ||
57 | #include "generic.h" | 57 | #include "generic.h" |
58 | #include "devices.h" | 58 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/saar.c b/arch/arm/mach-pxa/saar.c index 86c95a5d8533..08d87a5d2639 100644 --- a/arch/arm/mach-pxa/saar.c +++ b/arch/arm/mach-pxa/saar.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <asm/mach/flash.h> | 32 | #include <asm/mach/flash.h> |
33 | 33 | ||
34 | #include <mach/pxa930.h> | 34 | #include <mach/pxa930.h> |
35 | #include <mach/pxafb.h> | 35 | #include <linux/platform_data/video-pxafb.h> |
36 | 36 | ||
37 | #include "devices.h" | 37 | #include "devices.h" |
38 | #include "generic.h" | 38 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 363d91b44ecb..2073f0e6db0d 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -41,10 +41,10 @@ | |||
41 | #include <mach/pxa27x.h> | 41 | #include <mach/pxa27x.h> |
42 | #include <mach/pxa27x-udc.h> | 42 | #include <mach/pxa27x-udc.h> |
43 | #include <mach/reset.h> | 43 | #include <mach/reset.h> |
44 | #include <mach/irda.h> | 44 | #include <linux/platform_data/irda-pxaficp.h> |
45 | #include <mach/mmc.h> | 45 | #include <linux/platform_data/mmc-pxamci.h> |
46 | #include <mach/ohci.h> | 46 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
47 | #include <mach/pxafb.h> | 47 | #include <linux/platform_data/video-pxafb.h> |
48 | #include <mach/spitz.h> | 48 | #include <mach/spitz.h> |
49 | #include <mach/sharpsl_pm.h> | 49 | #include <mach/sharpsl_pm.h> |
50 | #include <mach/smemc.h> | 50 | #include <mach/smemc.h> |
diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c index 30b1b0b3c7f7..08ea7a84a291 100644 --- a/arch/arm/mach-pxa/stargate2.c +++ b/arch/arm/mach-pxa/stargate2.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #include <asm/mach/flash.h> | 44 | #include <asm/mach/flash.h> |
45 | 45 | ||
46 | #include <mach/pxa27x.h> | 46 | #include <mach/pxa27x.h> |
47 | #include <mach/mmc.h> | 47 | #include <linux/platform_data/mmc-pxamci.h> |
48 | #include <mach/udc.h> | 48 | #include <mach/udc.h> |
49 | #include <mach/pxa27x-udc.h> | 49 | #include <mach/pxa27x-udc.h> |
50 | #include <mach/smemc.h> | 50 | #include <mach/smemc.h> |
diff --git a/arch/arm/mach-pxa/tavorevb.c b/arch/arm/mach-pxa/tavorevb.c index 736bfdc50ee6..1a25f8a7b0ce 100644 --- a/arch/arm/mach-pxa/tavorevb.c +++ b/arch/arm/mach-pxa/tavorevb.c | |||
@@ -24,8 +24,8 @@ | |||
24 | #include <asm/mach/arch.h> | 24 | #include <asm/mach/arch.h> |
25 | 25 | ||
26 | #include <mach/pxa930.h> | 26 | #include <mach/pxa930.h> |
27 | #include <mach/pxafb.h> | 27 | #include <linux/platform_data/video-pxafb.h> |
28 | #include <plat/pxa27x_keypad.h> | 28 | #include <linux/platform_data/keypad-pxa27x.h> |
29 | 29 | ||
30 | #include "devices.h" | 30 | #include "devices.h" |
31 | #include "generic.h" | 31 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 4d4eb60bad1e..233629edf7ee 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -42,8 +42,8 @@ | |||
42 | 42 | ||
43 | #include <mach/pxa25x.h> | 43 | #include <mach/pxa25x.h> |
44 | #include <mach/reset.h> | 44 | #include <mach/reset.h> |
45 | #include <mach/irda.h> | 45 | #include <linux/platform_data/irda-pxaficp.h> |
46 | #include <mach/mmc.h> | 46 | #include <linux/platform_data/mmc-pxamci.h> |
47 | #include <mach/udc.h> | 47 | #include <mach/udc.h> |
48 | #include <mach/tosa_bt.h> | 48 | #include <mach/tosa_bt.h> |
49 | #include <mach/audio.h> | 49 | #include <mach/audio.h> |
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c index 166dd32cc1d3..fbbcbed4d1d4 100644 --- a/arch/arm/mach-pxa/trizeps4.c +++ b/arch/arm/mach-pxa/trizeps4.c | |||
@@ -43,10 +43,10 @@ | |||
43 | #include <mach/pxa27x.h> | 43 | #include <mach/pxa27x.h> |
44 | #include <mach/trizeps4.h> | 44 | #include <mach/trizeps4.h> |
45 | #include <mach/audio.h> | 45 | #include <mach/audio.h> |
46 | #include <mach/pxafb.h> | 46 | #include <linux/platform_data/video-pxafb.h> |
47 | #include <mach/mmc.h> | 47 | #include <linux/platform_data/mmc-pxamci.h> |
48 | #include <mach/irda.h> | 48 | #include <linux/platform_data/irda-pxaficp.h> |
49 | #include <mach/ohci.h> | 49 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
50 | #include <mach/smemc.h> | 50 | #include <mach/smemc.h> |
51 | 51 | ||
52 | #include "generic.h" | 52 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/viper.c b/arch/arm/mach-pxa/viper.c index 130379fb9d0f..392412ce4dac 100644 --- a/arch/arm/mach-pxa/viper.c +++ b/arch/arm/mach-pxa/viper.c | |||
@@ -48,9 +48,9 @@ | |||
48 | 48 | ||
49 | #include <mach/pxa25x.h> | 49 | #include <mach/pxa25x.h> |
50 | #include <mach/audio.h> | 50 | #include <mach/audio.h> |
51 | #include <mach/pxafb.h> | 51 | #include <linux/platform_data/video-pxafb.h> |
52 | #include <mach/regs-uart.h> | 52 | #include <mach/regs-uart.h> |
53 | #include <mach/arcom-pcmcia.h> | 53 | #include <linux/platform_data/pcmcia-pxa2xx_viper.h> |
54 | #include <mach/viper.h> | 54 | #include <mach/viper.h> |
55 | 55 | ||
56 | #include <asm/setup.h> | 56 | #include <asm/setup.h> |
diff --git a/arch/arm/mach-pxa/vpac270.c b/arch/arm/mach-pxa/vpac270.c index e1740acd15f1..491b6c9a2a9b 100644 --- a/arch/arm/mach-pxa/vpac270.c +++ b/arch/arm/mach-pxa/vpac270.c | |||
@@ -33,12 +33,12 @@ | |||
33 | #include <mach/pxa27x.h> | 33 | #include <mach/pxa27x.h> |
34 | #include <mach/audio.h> | 34 | #include <mach/audio.h> |
35 | #include <mach/vpac270.h> | 35 | #include <mach/vpac270.h> |
36 | #include <mach/mmc.h> | 36 | #include <linux/platform_data/mmc-pxamci.h> |
37 | #include <mach/pxafb.h> | 37 | #include <linux/platform_data/video-pxafb.h> |
38 | #include <mach/ohci.h> | 38 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
39 | #include <mach/pxa27x-udc.h> | 39 | #include <mach/pxa27x-udc.h> |
40 | #include <mach/udc.h> | 40 | #include <mach/udc.h> |
41 | #include <mach/pata_pxa.h> | 41 | #include <linux/platform_data/ata-pxa.h> |
42 | 42 | ||
43 | #include "generic.h" | 43 | #include "generic.h" |
44 | #include "devices.h" | 44 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c index b9320cb8a11f..97529face7aa 100644 --- a/arch/arm/mach-pxa/z2.c +++ b/arch/arm/mach-pxa/z2.c | |||
@@ -37,9 +37,9 @@ | |||
37 | #include <mach/pxa27x.h> | 37 | #include <mach/pxa27x.h> |
38 | #include <mach/mfp-pxa27x.h> | 38 | #include <mach/mfp-pxa27x.h> |
39 | #include <mach/z2.h> | 39 | #include <mach/z2.h> |
40 | #include <mach/pxafb.h> | 40 | #include <linux/platform_data/video-pxafb.h> |
41 | #include <mach/mmc.h> | 41 | #include <linux/platform_data/mmc-pxamci.h> |
42 | #include <plat/pxa27x_keypad.h> | 42 | #include <linux/platform_data/keypad-pxa27x.h> |
43 | #include <mach/pm.h> | 43 | #include <mach/pm.h> |
44 | 44 | ||
45 | #include "generic.h" | 45 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c index af3d4f7646d7..abd3aa145083 100644 --- a/arch/arm/mach-pxa/zeus.c +++ b/arch/arm/mach-pxa/zeus.c | |||
@@ -38,14 +38,14 @@ | |||
38 | 38 | ||
39 | #include <mach/pxa27x.h> | 39 | #include <mach/pxa27x.h> |
40 | #include <mach/regs-uart.h> | 40 | #include <mach/regs-uart.h> |
41 | #include <mach/ohci.h> | 41 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
42 | #include <mach/mmc.h> | 42 | #include <linux/platform_data/mmc-pxamci.h> |
43 | #include <mach/pxa27x-udc.h> | 43 | #include <mach/pxa27x-udc.h> |
44 | #include <mach/udc.h> | 44 | #include <mach/udc.h> |
45 | #include <mach/pxafb.h> | 45 | #include <linux/platform_data/video-pxafb.h> |
46 | #include <mach/pm.h> | 46 | #include <mach/pm.h> |
47 | #include <mach/audio.h> | 47 | #include <mach/audio.h> |
48 | #include <mach/arcom-pcmcia.h> | 48 | #include <linux/platform_data/pcmcia-pxa2xx_viper.h> |
49 | #include <mach/zeus.h> | 49 | #include <mach/zeus.h> |
50 | #include <mach/smemc.h> | 50 | #include <mach/smemc.h> |
51 | 51 | ||
diff --git a/arch/arm/mach-pxa/zylonite.c b/arch/arm/mach-pxa/zylonite.c index 98eec80623e3..226279fac9d4 100644 --- a/arch/arm/mach-pxa/zylonite.c +++ b/arch/arm/mach-pxa/zylonite.c | |||
@@ -26,12 +26,12 @@ | |||
26 | #include <asm/mach/arch.h> | 26 | #include <asm/mach/arch.h> |
27 | #include <mach/pxa3xx.h> | 27 | #include <mach/pxa3xx.h> |
28 | #include <mach/audio.h> | 28 | #include <mach/audio.h> |
29 | #include <mach/pxafb.h> | 29 | #include <linux/platform_data/video-pxafb.h> |
30 | #include <mach/zylonite.h> | 30 | #include <mach/zylonite.h> |
31 | #include <mach/mmc.h> | 31 | #include <linux/platform_data/mmc-pxamci.h> |
32 | #include <mach/ohci.h> | 32 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
33 | #include <plat/pxa27x_keypad.h> | 33 | #include <linux/platform_data/keypad-pxa27x.h> |
34 | #include <plat/pxa3xx_nand.h> | 34 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
35 | 35 | ||
36 | #include "devices.h" | 36 | #include "devices.h" |
37 | #include "generic.h" | 37 | #include "generic.h" |
diff --git a/arch/arm/plat-pxa/include/plat/pxa27x_keypad.h b/arch/arm/plat-pxa/include/plat/pxa27x_keypad.h deleted file mode 100644 index 5ce8d5e6ea51..000000000000 --- a/arch/arm/plat-pxa/include/plat/pxa27x_keypad.h +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | #ifndef __ASM_ARCH_PXA27x_KEYPAD_H | ||
2 | #define __ASM_ARCH_PXA27x_KEYPAD_H | ||
3 | |||
4 | #include <linux/input.h> | ||
5 | #include <linux/input/matrix_keypad.h> | ||
6 | |||
7 | #define MAX_MATRIX_KEY_ROWS (8) | ||
8 | #define MAX_MATRIX_KEY_COLS (8) | ||
9 | #define MATRIX_ROW_SHIFT (3) | ||
10 | #define MAX_DIRECT_KEY_NUM (8) | ||
11 | |||
12 | /* pxa3xx keypad platform specific parameters | ||
13 | * | ||
14 | * NOTE: | ||
15 | * 1. direct_key_num indicates the number of keys in the direct keypad | ||
16 | * _plus_ the number of rotary-encoder sensor inputs, this can be | ||
17 | * left as 0 if only rotary encoders are enabled, the driver will | ||
18 | * automatically calculate this | ||
19 | * | ||
20 | * 2. direct_key_map is the key code map for the direct keys, if rotary | ||
21 | * encoder(s) are enabled, direct key 0/1(2/3) will be ignored | ||
22 | * | ||
23 | * 3. rotary can be either interpreted as a relative input event (e.g. | ||
24 | * REL_WHEEL/REL_HWHEEL) or specific keys (e.g. UP/DOWN/LEFT/RIGHT) | ||
25 | * | ||
26 | * 4. matrix key and direct key will use the same debounce_interval by | ||
27 | * default, which should be sufficient in most cases | ||
28 | * | ||
29 | * pxa168 keypad platform specific parameter | ||
30 | * | ||
31 | * NOTE: | ||
32 | * clear_wakeup_event callback is a workaround required to clear the | ||
33 | * keypad interrupt. The keypad wake must be cleared in addition to | ||
34 | * reading the MI/DI bits in the KPC register. | ||
35 | */ | ||
36 | struct pxa27x_keypad_platform_data { | ||
37 | |||
38 | /* code map for the matrix keys */ | ||
39 | unsigned int matrix_key_rows; | ||
40 | unsigned int matrix_key_cols; | ||
41 | unsigned int *matrix_key_map; | ||
42 | int matrix_key_map_size; | ||
43 | |||
44 | /* direct keys */ | ||
45 | int direct_key_num; | ||
46 | unsigned int direct_key_map[MAX_DIRECT_KEY_NUM]; | ||
47 | /* the key output may be low active */ | ||
48 | int direct_key_low_active; | ||
49 | /* give board a chance to choose the start direct key */ | ||
50 | unsigned int direct_key_mask; | ||
51 | |||
52 | /* rotary encoders 0 */ | ||
53 | int enable_rotary0; | ||
54 | int rotary0_rel_code; | ||
55 | int rotary0_up_key; | ||
56 | int rotary0_down_key; | ||
57 | |||
58 | /* rotary encoders 1 */ | ||
59 | int enable_rotary1; | ||
60 | int rotary1_rel_code; | ||
61 | int rotary1_up_key; | ||
62 | int rotary1_down_key; | ||
63 | |||
64 | /* key debounce interval */ | ||
65 | unsigned int debounce_interval; | ||
66 | |||
67 | /* clear wakeup event requirement for pxa168 */ | ||
68 | void (*clear_wakeup_event)(void); | ||
69 | }; | ||
70 | |||
71 | extern void pxa_set_keypad_info(struct pxa27x_keypad_platform_data *info); | ||
72 | |||
73 | #endif /* __ASM_ARCH_PXA27x_KEYPAD_H */ | ||
diff --git a/arch/arm/plat-pxa/include/plat/pxa3xx_nand.h b/arch/arm/plat-pxa/include/plat/pxa3xx_nand.h deleted file mode 100644 index c42f39f20195..000000000000 --- a/arch/arm/plat-pxa/include/plat/pxa3xx_nand.h +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | #ifndef __ASM_ARCH_PXA3XX_NAND_H | ||
2 | #define __ASM_ARCH_PXA3XX_NAND_H | ||
3 | |||
4 | #include <linux/mtd/mtd.h> | ||
5 | #include <linux/mtd/partitions.h> | ||
6 | |||
7 | struct pxa3xx_nand_timing { | ||
8 | unsigned int tCH; /* Enable signal hold time */ | ||
9 | unsigned int tCS; /* Enable signal setup time */ | ||
10 | unsigned int tWH; /* ND_nWE high duration */ | ||
11 | unsigned int tWP; /* ND_nWE pulse time */ | ||
12 | unsigned int tRH; /* ND_nRE high duration */ | ||
13 | unsigned int tRP; /* ND_nRE pulse width */ | ||
14 | unsigned int tR; /* ND_nWE high to ND_nRE low for read */ | ||
15 | unsigned int tWHR; /* ND_nWE high to ND_nRE low for status read */ | ||
16 | unsigned int tAR; /* ND_ALE low to ND_nRE low delay */ | ||
17 | }; | ||
18 | |||
19 | struct pxa3xx_nand_cmdset { | ||
20 | uint16_t read1; | ||
21 | uint16_t read2; | ||
22 | uint16_t program; | ||
23 | uint16_t read_status; | ||
24 | uint16_t read_id; | ||
25 | uint16_t erase; | ||
26 | uint16_t reset; | ||
27 | uint16_t lock; | ||
28 | uint16_t unlock; | ||
29 | uint16_t lock_status; | ||
30 | }; | ||
31 | |||
32 | struct pxa3xx_nand_flash { | ||
33 | char *name; | ||
34 | uint32_t chip_id; | ||
35 | unsigned int page_per_block; /* Pages per block (PG_PER_BLK) */ | ||
36 | unsigned int page_size; /* Page size in bytes (PAGE_SZ) */ | ||
37 | unsigned int flash_width; /* Width of Flash memory (DWIDTH_M) */ | ||
38 | unsigned int dfc_width; /* Width of flash controller(DWIDTH_C) */ | ||
39 | unsigned int num_blocks; /* Number of physical blocks in Flash */ | ||
40 | |||
41 | struct pxa3xx_nand_timing *timing; /* NAND Flash timing */ | ||
42 | }; | ||
43 | |||
44 | /* | ||
45 | * Current pxa3xx_nand controller has two chip select which | ||
46 | * both be workable. | ||
47 | * | ||
48 | * Notice should be taken that: | ||
49 | * When you want to use this feature, you should not enable the | ||
50 | * keep configuration feature, for two chip select could be | ||
51 | * attached with different nand chip. The different page size | ||
52 | * and timing requirement make the keep configuration impossible. | ||
53 | */ | ||
54 | |||
55 | /* The max num of chip select current support */ | ||
56 | #define NUM_CHIP_SELECT (2) | ||
57 | struct pxa3xx_nand_platform_data { | ||
58 | |||
59 | /* the data flash bus is shared between the Static Memory | ||
60 | * Controller and the Data Flash Controller, the arbiter | ||
61 | * controls the ownership of the bus | ||
62 | */ | ||
63 | int enable_arbiter; | ||
64 | |||
65 | /* allow platform code to keep OBM/bootloader defined NFC config */ | ||
66 | int keep_config; | ||
67 | |||
68 | /* indicate how many chip selects will be used */ | ||
69 | int num_cs; | ||
70 | |||
71 | const struct mtd_partition *parts[NUM_CHIP_SELECT]; | ||
72 | unsigned int nr_parts[NUM_CHIP_SELECT]; | ||
73 | |||
74 | const struct pxa3xx_nand_flash * flash; | ||
75 | size_t num_flash; | ||
76 | }; | ||
77 | |||
78 | extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info); | ||
79 | #endif /* __ASM_ARCH_PXA3XX_NAND_H */ | ||