diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/arm/plat-orion/include/plat | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'arch/arm/plat-orion/include/plat')
-rw-r--r-- | arch/arm/plat-orion/include/plat/audio.h | 11 | ||||
-rw-r--r-- | arch/arm/plat-orion/include/plat/ehci-orion.h | 27 | ||||
-rw-r--r-- | arch/arm/plat-orion/include/plat/gpio.h | 45 | ||||
-rw-r--r-- | arch/arm/plat-orion/include/plat/mv_xor.h | 30 | ||||
-rw-r--r-- | arch/arm/plat-orion/include/plat/mvsdio.h | 21 | ||||
-rw-r--r-- | arch/arm/plat-orion/include/plat/orion_nand.h | 26 | ||||
-rw-r--r-- | arch/arm/plat-orion/include/plat/orion_wdt.h | 18 |
7 files changed, 178 insertions, 0 deletions
diff --git a/arch/arm/plat-orion/include/plat/audio.h b/arch/arm/plat-orion/include/plat/audio.h new file mode 100644 index 00000000000..9cf1f781329 --- /dev/null +++ b/arch/arm/plat-orion/include/plat/audio.h | |||
@@ -0,0 +1,11 @@ | |||
1 | #ifndef __PLAT_AUDIO_H | ||
2 | #define __PLAT_AUDIO_H | ||
3 | |||
4 | #include <linux/mbus.h> | ||
5 | |||
6 | struct kirkwood_asoc_platform_data { | ||
7 | u32 tclk; | ||
8 | struct mbus_dram_target_info *dram; | ||
9 | int burst; | ||
10 | }; | ||
11 | #endif | ||
diff --git a/arch/arm/plat-orion/include/plat/ehci-orion.h b/arch/arm/plat-orion/include/plat/ehci-orion.h new file mode 100644 index 00000000000..4ec668e7746 --- /dev/null +++ b/arch/arm/plat-orion/include/plat/ehci-orion.h | |||
@@ -0,0 +1,27 @@ | |||
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 | struct mbus_dram_target_info *dram; | ||
23 | enum orion_ehci_phy_ver phy_version; | ||
24 | }; | ||
25 | |||
26 | |||
27 | #endif | ||
diff --git a/arch/arm/plat-orion/include/plat/gpio.h b/arch/arm/plat-orion/include/plat/gpio.h new file mode 100644 index 00000000000..3075b9fdde8 --- /dev/null +++ b/arch/arm/plat-orion/include/plat/gpio.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-orion/include/plat/gpio.h | ||
3 | * | ||
4 | * Marvell Orion SoC GPIO handling. | ||
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 __PLAT_GPIO_H | ||
12 | #define __PLAT_GPIO_H | ||
13 | |||
14 | #include <linux/init.h> | ||
15 | #include <asm-generic/gpio.h> | ||
16 | |||
17 | /* | ||
18 | * GENERIC_GPIO primitives. | ||
19 | */ | ||
20 | #define gpio_get_value __gpio_get_value | ||
21 | #define gpio_set_value __gpio_set_value | ||
22 | #define gpio_cansleep __gpio_cansleep | ||
23 | #define gpio_to_irq __gpio_to_irq | ||
24 | |||
25 | /* | ||
26 | * Orion-specific GPIO API extensions. | ||
27 | */ | ||
28 | void orion_gpio_set_unused(unsigned pin); | ||
29 | void orion_gpio_set_blink(unsigned pin, int blink); | ||
30 | |||
31 | #define GPIO_INPUT_OK (1 << 0) | ||
32 | #define GPIO_OUTPUT_OK (1 << 1) | ||
33 | void orion_gpio_set_valid(unsigned pin, int mode); | ||
34 | |||
35 | /* Initialize gpiolib. */ | ||
36 | void __init orion_gpio_init(int gpio_base, int ngpio, | ||
37 | u32 base, int mask_offset, int secondary_irq_base); | ||
38 | |||
39 | /* | ||
40 | * GPIO interrupt handling. | ||
41 | */ | ||
42 | void orion_gpio_irq_handler(int irqoff); | ||
43 | |||
44 | |||
45 | #endif | ||
diff --git a/arch/arm/plat-orion/include/plat/mv_xor.h b/arch/arm/plat-orion/include/plat/mv_xor.h new file mode 100644 index 00000000000..bd5f3bdb4ae --- /dev/null +++ b/arch/arm/plat-orion/include/plat/mv_xor.h | |||
@@ -0,0 +1,30 @@ | |||
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 mbus_dram_target_info; | ||
17 | |||
18 | struct mv_xor_platform_shared_data { | ||
19 | struct mbus_dram_target_info *dram; | ||
20 | }; | ||
21 | |||
22 | struct mv_xor_platform_data { | ||
23 | struct platform_device *shared; | ||
24 | int hw_id; | ||
25 | dma_cap_mask_t cap_mask; | ||
26 | size_t pool_size; | ||
27 | }; | ||
28 | |||
29 | |||
30 | #endif | ||
diff --git a/arch/arm/plat-orion/include/plat/mvsdio.h b/arch/arm/plat-orion/include/plat/mvsdio.h new file mode 100644 index 00000000000..14ca8867600 --- /dev/null +++ b/arch/arm/plat-orion/include/plat/mvsdio.h | |||
@@ -0,0 +1,21 @@ | |||
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 | struct mbus_dram_target_info *dram; | ||
16 | unsigned int clock; | ||
17 | int gpio_card_detect; | ||
18 | int gpio_write_protect; | ||
19 | }; | ||
20 | |||
21 | #endif | ||
diff --git a/arch/arm/plat-orion/include/plat/orion_nand.h b/arch/arm/plat-orion/include/plat/orion_nand.h new file mode 100644 index 00000000000..9f3c180834d --- /dev/null +++ b/arch/arm/plat-orion/include/plat/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/arch/arm/plat-orion/include/plat/orion_wdt.h b/arch/arm/plat-orion/include/plat/orion_wdt.h new file mode 100644 index 00000000000..665c362a2fb --- /dev/null +++ b/arch/arm/plat-orion/include/plat/orion_wdt.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-orion/include/plat/orion_wdt.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_WDT_H | ||
10 | #define __PLAT_ORION_WDT_H | ||
11 | |||
12 | struct orion_wdt_platform_data { | ||
13 | u32 tclk; /* no <linux/clk.h> support yet */ | ||
14 | }; | ||
15 | |||
16 | |||
17 | #endif | ||
18 | |||