History

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

Arnd Bergmann committed 14 years ago

Commit c02cecb1 parent db298da34 files · +34 −34Browse files

Showing the changes to include/linux/platform_data (7 of 34 files). Show all

Unified · Split

7 files
  1. include/linux/platform_data/asoc-kirkwood.h +7 −0
  2. include/linux/platform_data/dma-mv_xor.h +24 −0
  3. include/linux/platform_data/leds-kirkwood-netxbig.h +55 −0
  4. include/linux/platform_data/leds-kirkwood-ns2.h +26 −0
  5. include/linux/platform_data/mmc-mvsdio.h +20 −0
  6. include/linux/platform_data/mtd-orion_nand.h +26 −0
  7. include/linux/platform_data/usb-ehci-orion.h +26 −0
include/linux/platform_data/asoc-kirkwood.h+7−0
@@ -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
include/linux/platform_data/dma-mv_xor.h+24−0
@@ -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
include/linux/platform_data/leds-kirkwood-netxbig.h+55−0
@@ -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 */
include/linux/platform_data/leds-kirkwood-ns2.h+26−0
@@ -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 */
include/linux/platform_data/mmc-mvsdio.h+20−0
@@ -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
include/linux/platform_data/mtd-orion_nand.h+26−0
@@ -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
include/linux/platform_data/usb-ehci-orion.h+26−0
@@ -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