diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2012-08-24 09:21:54 -0400 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-19 11:42:17 -0400 |
| commit | c02cecb92ed49f36196ee9e29d29c4cfcbad05ae (patch) | |
| tree | 310a9941c89bc139a863880a09ec4ac91903f04d /include/linux/platform_data | |
| parent | db298da2c31e1dcf7c9b7c9cef6217ad3449ebb7 (diff) | |
ARM: orion: 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 orion 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>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Dan Williams <djbw@fb.com>
Cc: Bryan Wu <bryan.wu@canonical.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Chris Ball <cjb@laptop.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Liam Girdwood <lrg@ti.com>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/asoc-kirkwood.h | 7 | ||||
| -rw-r--r-- | include/linux/platform_data/dma-mv_xor.h | 24 | ||||
| -rw-r--r-- | include/linux/platform_data/leds-kirkwood-netxbig.h | 55 | ||||
| -rw-r--r-- | include/linux/platform_data/leds-kirkwood-ns2.h | 26 | ||||
| -rw-r--r-- | include/linux/platform_data/mmc-mvsdio.h | 20 | ||||
| -rw-r--r-- | include/linux/platform_data/mtd-orion_nand.h | 26 | ||||
| -rw-r--r-- | include/linux/platform_data/usb-ehci-orion.h | 26 |
7 files changed, 184 insertions, 0 deletions
diff --git a/include/linux/platform_data/asoc-kirkwood.h b/include/linux/platform_data/asoc-kirkwood.h new file mode 100644 index 000000000000..d6a55bd2e578 --- /dev/null +++ b/include/linux/platform_data/asoc-kirkwood.h | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #ifndef __PLAT_AUDIO_H | ||
| 2 | #define __PLAT_AUDIO_H | ||
| 3 | |||
| 4 | struct kirkwood_asoc_platform_data { | ||
| 5 | int burst; | ||
| 6 | }; | ||
| 7 | #endif | ||
diff --git a/include/linux/platform_data/dma-mv_xor.h b/include/linux/platform_data/dma-mv_xor.h new file mode 100644 index 000000000000..2ba1f7d76eef --- /dev/null +++ b/include/linux/platform_data/dma-mv_xor.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/plat-orion/include/plat/mv_xor.h | ||
| 3 | * | ||
| 4 | * Marvell XOR platform device data definition file. | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifndef __PLAT_MV_XOR_H | ||
| 8 | #define __PLAT_MV_XOR_H | ||
| 9 | |||
| 10 | #include <linux/dmaengine.h> | ||
| 11 | #include <linux/mbus.h> | ||
| 12 | |||
| 13 | #define MV_XOR_SHARED_NAME "mv_xor_shared" | ||
| 14 | #define MV_XOR_NAME "mv_xor" | ||
| 15 | |||
| 16 | struct mv_xor_platform_data { | ||
| 17 | struct platform_device *shared; | ||
| 18 | int hw_id; | ||
| 19 | dma_cap_mask_t cap_mask; | ||
| 20 | size_t pool_size; | ||
| 21 | }; | ||
| 22 | |||
| 23 | |||
| 24 | #endif | ||
diff --git a/include/linux/platform_data/leds-kirkwood-netxbig.h b/include/linux/platform_data/leds-kirkwood-netxbig.h new file mode 100644 index 000000000000..24b536ebdf13 --- /dev/null +++ b/include/linux/platform_data/leds-kirkwood-netxbig.h | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-kirkwood/include/mach/leds-netxbig.h | ||
| 3 | * | ||
| 4 | * Platform data structure for netxbig LED driver | ||
| 5 | * | ||
| 6 | * This file is licensed under the terms of the GNU General Public | ||
| 7 | * License version 2. This program is licensed "as is" without any | ||
| 8 | * warranty of any kind, whether express or implied. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef __MACH_LEDS_NETXBIG_H | ||
| 12 | #define __MACH_LEDS_NETXBIG_H | ||
| 13 | |||
| 14 | struct netxbig_gpio_ext { | ||
| 15 | unsigned *addr; | ||
| 16 | int num_addr; | ||
| 17 | unsigned *data; | ||
| 18 | int num_data; | ||
| 19 | unsigned enable; | ||
| 20 | }; | ||
| 21 | |||
| 22 | enum netxbig_led_mode { | ||
| 23 | NETXBIG_LED_OFF, | ||
| 24 | NETXBIG_LED_ON, | ||
| 25 | NETXBIG_LED_SATA, | ||
| 26 | NETXBIG_LED_TIMER1, | ||
| 27 | NETXBIG_LED_TIMER2, | ||
| 28 | NETXBIG_LED_MODE_NUM, | ||
| 29 | }; | ||
| 30 | |||
| 31 | #define NETXBIG_LED_INVALID_MODE NETXBIG_LED_MODE_NUM | ||
| 32 | |||
| 33 | struct netxbig_led_timer { | ||
| 34 | unsigned long delay_on; | ||
| 35 | unsigned long delay_off; | ||
| 36 | enum netxbig_led_mode mode; | ||
| 37 | }; | ||
| 38 | |||
| 39 | struct netxbig_led { | ||
| 40 | const char *name; | ||
| 41 | const char *default_trigger; | ||
| 42 | int mode_addr; | ||
| 43 | int *mode_val; | ||
| 44 | int bright_addr; | ||
| 45 | }; | ||
| 46 | |||
| 47 | struct netxbig_led_platform_data { | ||
| 48 | struct netxbig_gpio_ext *gpio_ext; | ||
| 49 | struct netxbig_led_timer *timer; | ||
| 50 | int num_timer; | ||
| 51 | struct netxbig_led *leds; | ||
| 52 | int num_leds; | ||
| 53 | }; | ||
| 54 | |||
| 55 | #endif /* __MACH_LEDS_NETXBIG_H */ | ||
diff --git a/include/linux/platform_data/leds-kirkwood-ns2.h b/include/linux/platform_data/leds-kirkwood-ns2.h new file mode 100644 index 000000000000..e21272e5f668 --- /dev/null +++ b/include/linux/platform_data/leds-kirkwood-ns2.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-kirkwood/include/mach/leds-ns2.h | ||
| 3 | * | ||
| 4 | * Platform data structure for Network Space v2 LED driver | ||
| 5 | * | ||
| 6 | * This file is licensed under the terms of the GNU General Public | ||
| 7 | * License version 2. This program is licensed "as is" without any | ||
| 8 | * warranty of any kind, whether express or implied. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef __MACH_LEDS_NS2_H | ||
| 12 | #define __MACH_LEDS_NS2_H | ||
| 13 | |||
| 14 | struct ns2_led { | ||
| 15 | const char *name; | ||
| 16 | const char *default_trigger; | ||
| 17 | unsigned cmd; | ||
| 18 | unsigned slow; | ||
| 19 | }; | ||
| 20 | |||
| 21 | struct ns2_led_platform_data { | ||
| 22 | int num_leds; | ||
| 23 | struct ns2_led *leds; | ||
| 24 | }; | ||
| 25 | |||
| 26 | #endif /* __MACH_LEDS_NS2_H */ | ||
diff --git a/include/linux/platform_data/mmc-mvsdio.h b/include/linux/platform_data/mmc-mvsdio.h new file mode 100644 index 000000000000..1190efedcb94 --- /dev/null +++ b/include/linux/platform_data/mmc-mvsdio.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/plat-orion/include/plat/mvsdio.h | ||
| 3 | * | ||
| 4 | * This file is licensed under the terms of the GNU General Public | ||
| 5 | * License version 2. This program is licensed "as is" without any | ||
| 6 | * warranty of any kind, whether express or implied. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef __MACH_MVSDIO_H | ||
| 10 | #define __MACH_MVSDIO_H | ||
| 11 | |||
| 12 | #include <linux/mbus.h> | ||
| 13 | |||
| 14 | struct mvsdio_platform_data { | ||
| 15 | unsigned int clock; | ||
| 16 | int gpio_card_detect; | ||
| 17 | int gpio_write_protect; | ||
| 18 | }; | ||
| 19 | |||
| 20 | #endif | ||
diff --git a/include/linux/platform_data/mtd-orion_nand.h b/include/linux/platform_data/mtd-orion_nand.h new file mode 100644 index 000000000000..9f3c180834d1 --- /dev/null +++ b/include/linux/platform_data/mtd-orion_nand.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/plat-orion/include/plat/orion_nand.h | ||
| 3 | * | ||
| 4 | * This file is licensed under the terms of the GNU General Public | ||
| 5 | * License version 2. This program is licensed "as is" without any | ||
| 6 | * warranty of any kind, whether express or implied. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef __PLAT_ORION_NAND_H | ||
| 10 | #define __PLAT_ORION_NAND_H | ||
| 11 | |||
| 12 | /* | ||
| 13 | * Device bus NAND private data | ||
| 14 | */ | ||
| 15 | struct orion_nand_data { | ||
| 16 | struct mtd_partition *parts; | ||
| 17 | int (*dev_ready)(struct mtd_info *mtd); | ||
| 18 | u32 nr_parts; | ||
| 19 | u8 ale; /* address line number connected to ALE */ | ||
| 20 | u8 cle; /* address line number connected to CLE */ | ||
| 21 | u8 width; /* buswidth */ | ||
| 22 | u8 chip_delay; | ||
| 23 | }; | ||
| 24 | |||
| 25 | |||
| 26 | #endif | ||
diff --git a/include/linux/platform_data/usb-ehci-orion.h b/include/linux/platform_data/usb-ehci-orion.h new file mode 100644 index 000000000000..6fc78e430420 --- /dev/null +++ b/include/linux/platform_data/usb-ehci-orion.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/plat-orion/include/plat/ehci-orion.h | ||
| 3 | * | ||
| 4 | * This file is licensed under the terms of the GNU General Public | ||
| 5 | * License version 2. This program is licensed "as is" without any | ||
| 6 | * warranty of any kind, whether express or implied. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef __PLAT_EHCI_ORION_H | ||
| 10 | #define __PLAT_EHCI_ORION_H | ||
| 11 | |||
| 12 | #include <linux/mbus.h> | ||
| 13 | |||
| 14 | enum orion_ehci_phy_ver { | ||
| 15 | EHCI_PHY_ORION, | ||
| 16 | EHCI_PHY_DD, | ||
| 17 | EHCI_PHY_KW, | ||
| 18 | EHCI_PHY_NA, | ||
| 19 | }; | ||
| 20 | |||
| 21 | struct orion_ehci_data { | ||
| 22 | enum orion_ehci_phy_ver phy_version; | ||
| 23 | }; | ||
| 24 | |||
| 25 | |||
| 26 | #endif | ||
