diff options
Diffstat (limited to 'arch/arm/mach-davinci/include')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/da8xx.h | 11 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/edma.h | 36 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/mux.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/psc.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/spi.h | 15 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/tnetv107x.h | 2 |
6 files changed, 21 insertions, 49 deletions
diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index e7f952066527..e4fc1af8500e 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h | |||
@@ -15,6 +15,7 @@ | |||
15 | 15 | ||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/davinci_emac.h> | 17 | #include <linux/davinci_emac.h> |
18 | #include <linux/spi/spi.h> | ||
18 | 19 | ||
19 | #include <mach/serial.h> | 20 | #include <mach/serial.h> |
20 | #include <mach/edma.h> | 21 | #include <mach/edma.h> |
@@ -23,6 +24,7 @@ | |||
23 | #include <mach/mmc.h> | 24 | #include <mach/mmc.h> |
24 | #include <mach/usb.h> | 25 | #include <mach/usb.h> |
25 | #include <mach/pm.h> | 26 | #include <mach/pm.h> |
27 | #include <mach/spi.h> | ||
26 | 28 | ||
27 | extern void __iomem *da8xx_syscfg0_base; | 29 | extern void __iomem *da8xx_syscfg0_base; |
28 | extern void __iomem *da8xx_syscfg1_base; | 30 | extern void __iomem *da8xx_syscfg1_base; |
@@ -77,6 +79,7 @@ void __init da850_init(void); | |||
77 | int da830_register_edma(struct edma_rsv_info *rsv); | 79 | int da830_register_edma(struct edma_rsv_info *rsv); |
78 | int da850_register_edma(struct edma_rsv_info *rsv[2]); | 80 | int da850_register_edma(struct edma_rsv_info *rsv[2]); |
79 | int da8xx_register_i2c(int instance, struct davinci_i2c_platform_data *pdata); | 81 | int da8xx_register_i2c(int instance, struct davinci_i2c_platform_data *pdata); |
82 | int da8xx_register_spi(int instance, struct spi_board_info *info, unsigned len); | ||
80 | int da8xx_register_watchdog(void); | 83 | int da8xx_register_watchdog(void); |
81 | int da8xx_register_usb20(unsigned mA, unsigned potpgt); | 84 | int da8xx_register_usb20(unsigned mA, unsigned potpgt); |
82 | int da8xx_register_usb11(struct da8xx_ohci_root_hub *pdata); | 85 | int da8xx_register_usb11(struct da8xx_ohci_root_hub *pdata); |
@@ -95,6 +98,7 @@ extern struct platform_device da8xx_serial_device; | |||
95 | extern struct emac_platform_data da8xx_emac_pdata; | 98 | extern struct emac_platform_data da8xx_emac_pdata; |
96 | extern struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata; | 99 | extern struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata; |
97 | extern struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata; | 100 | extern struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata; |
101 | extern struct davinci_spi_platform_data da8xx_spi_pdata[]; | ||
98 | 102 | ||
99 | extern struct platform_device da8xx_wdt_device; | 103 | extern struct platform_device da8xx_wdt_device; |
100 | 104 | ||
@@ -123,15 +127,8 @@ extern const short da830_ecap2_pins[]; | |||
123 | extern const short da830_eqep0_pins[]; | 127 | extern const short da830_eqep0_pins[]; |
124 | extern const short da830_eqep1_pins[]; | 128 | extern const short da830_eqep1_pins[]; |
125 | 129 | ||
126 | extern const short da850_uart0_pins[]; | ||
127 | extern const short da850_uart1_pins[]; | ||
128 | extern const short da850_uart2_pins[]; | ||
129 | extern const short da850_i2c0_pins[]; | 130 | extern const short da850_i2c0_pins[]; |
130 | extern const short da850_i2c1_pins[]; | 131 | extern const short da850_i2c1_pins[]; |
131 | extern const short da850_cpgmac_pins[]; | ||
132 | extern const short da850_mcasp_pins[]; | ||
133 | extern const short da850_lcdcntl_pins[]; | 132 | extern const short da850_lcdcntl_pins[]; |
134 | extern const short da850_mmcsd0_pins[]; | ||
135 | extern const short da850_emif25_pins[]; | ||
136 | 133 | ||
137 | #endif /* __ASM_ARCH_DAVINCI_DA8XX_H */ | 134 | #endif /* __ASM_ARCH_DAVINCI_DA8XX_H */ |
diff --git a/arch/arm/mach-davinci/include/mach/edma.h b/arch/arm/mach-davinci/include/mach/edma.h index dc10ef6cf572..20c77f29bf0f 100644 --- a/arch/arm/mach-davinci/include/mach/edma.h +++ b/arch/arm/mach-davinci/include/mach/edma.h | |||
@@ -151,42 +151,6 @@ struct edmacc_param { | |||
151 | #define DA830_DMACH2EVENT_MAP1 0x00000000u | 151 | #define DA830_DMACH2EVENT_MAP1 0x00000000u |
152 | #define DA830_EDMA_ARM_OWN 0x30FFCCFFu | 152 | #define DA830_EDMA_ARM_OWN 0x30FFCCFFu |
153 | 153 | ||
154 | /* DA830 specific EDMA3 Events Information */ | ||
155 | enum DA830_edma_ch { | ||
156 | DA830_DMACH_MCASP0_RX, | ||
157 | DA830_DMACH_MCASP0_TX, | ||
158 | DA830_DMACH_MCASP1_RX, | ||
159 | DA830_DMACH_MCASP1_TX, | ||
160 | DA830_DMACH_MCASP2_RX, | ||
161 | DA830_DMACH_MCASP2_TX, | ||
162 | DA830_DMACH_GPIO_BNK0INT, | ||
163 | DA830_DMACH_GPIO_BNK1INT, | ||
164 | DA830_DMACH_UART0_RX, | ||
165 | DA830_DMACH_UART0_TX, | ||
166 | DA830_DMACH_TMR64P0_EVTOUT12, | ||
167 | DA830_DMACH_TMR64P0_EVTOUT34, | ||
168 | DA830_DMACH_UART1_RX, | ||
169 | DA830_DMACH_UART1_TX, | ||
170 | DA830_DMACH_SPI0_RX, | ||
171 | DA830_DMACH_SPI0_TX, | ||
172 | DA830_DMACH_MMCSD_RX, | ||
173 | DA830_DMACH_MMCSD_TX, | ||
174 | DA830_DMACH_SPI1_RX, | ||
175 | DA830_DMACH_SPI1_TX, | ||
176 | DA830_DMACH_DMAX_EVTOUT6, | ||
177 | DA830_DMACH_DMAX_EVTOUT7, | ||
178 | DA830_DMACH_GPIO_BNK2INT, | ||
179 | DA830_DMACH_GPIO_BNK3INT, | ||
180 | DA830_DMACH_I2C0_RX, | ||
181 | DA830_DMACH_I2C0_TX, | ||
182 | DA830_DMACH_I2C1_RX, | ||
183 | DA830_DMACH_I2C1_TX, | ||
184 | DA830_DMACH_GPIO_BNK4INT, | ||
185 | DA830_DMACH_GPIO_BNK5INT, | ||
186 | DA830_DMACH_UART2_RX, | ||
187 | DA830_DMACH_UART2_TX | ||
188 | }; | ||
189 | |||
190 | /*ch_status paramater of callback function possible values*/ | 154 | /*ch_status paramater of callback function possible values*/ |
191 | #define DMA_COMPLETE 1 | 155 | #define DMA_COMPLETE 1 |
192 | #define DMA_CC_ERROR 2 | 156 | #define DMA_CC_ERROR 2 |
diff --git a/arch/arm/mach-davinci/include/mach/mux.h b/arch/arm/mach-davinci/include/mach/mux.h index de11aac76a80..5d4e0fed828a 100644 --- a/arch/arm/mach-davinci/include/mach/mux.h +++ b/arch/arm/mach-davinci/include/mach/mux.h | |||
@@ -908,11 +908,15 @@ enum davinci_da850_index { | |||
908 | DA850_NEMA_CS_2, | 908 | DA850_NEMA_CS_2, |
909 | 909 | ||
910 | /* GPIO function */ | 910 | /* GPIO function */ |
911 | DA850_GPIO2_4, | ||
911 | DA850_GPIO2_6, | 912 | DA850_GPIO2_6, |
912 | DA850_GPIO2_8, | 913 | DA850_GPIO2_8, |
913 | DA850_GPIO2_15, | 914 | DA850_GPIO2_15, |
915 | DA850_GPIO3_12, | ||
916 | DA850_GPIO3_13, | ||
914 | DA850_GPIO4_0, | 917 | DA850_GPIO4_0, |
915 | DA850_GPIO4_1, | 918 | DA850_GPIO4_1, |
919 | DA850_GPIO6_13, | ||
916 | DA850_RTC_ALARM, | 920 | DA850_RTC_ALARM, |
917 | }; | 921 | }; |
918 | 922 | ||
diff --git a/arch/arm/mach-davinci/include/mach/psc.h b/arch/arm/mach-davinci/include/mach/psc.h index 62b0858f68ca..a47e6f29206e 100644 --- a/arch/arm/mach-davinci/include/mach/psc.h +++ b/arch/arm/mach-davinci/include/mach/psc.h | |||
@@ -150,7 +150,7 @@ | |||
150 | #define DA8XX_LPSC0_SCR0_SS 10 | 150 | #define DA8XX_LPSC0_SCR0_SS 10 |
151 | #define DA8XX_LPSC0_SCR1_SS 11 | 151 | #define DA8XX_LPSC0_SCR1_SS 11 |
152 | #define DA8XX_LPSC0_SCR2_SS 12 | 152 | #define DA8XX_LPSC0_SCR2_SS 12 |
153 | #define DA8XX_LPSC0_DMAX 13 | 153 | #define DA8XX_LPSC0_PRUSS 13 |
154 | #define DA8XX_LPSC0_ARM 14 | 154 | #define DA8XX_LPSC0_ARM 14 |
155 | #define DA8XX_LPSC0_GEM 15 | 155 | #define DA8XX_LPSC0_GEM 15 |
156 | 156 | ||
diff --git a/arch/arm/mach-davinci/include/mach/spi.h b/arch/arm/mach-davinci/include/mach/spi.h index 38f4da5ca135..7af305b37868 100644 --- a/arch/arm/mach-davinci/include/mach/spi.h +++ b/arch/arm/mach-davinci/include/mach/spi.h | |||
@@ -19,6 +19,8 @@ | |||
19 | #ifndef __ARCH_ARM_DAVINCI_SPI_H | 19 | #ifndef __ARCH_ARM_DAVINCI_SPI_H |
20 | #define __ARCH_ARM_DAVINCI_SPI_H | 20 | #define __ARCH_ARM_DAVINCI_SPI_H |
21 | 21 | ||
22 | #include <mach/edma.h> | ||
23 | |||
22 | #define SPI_INTERN_CS 0xFF | 24 | #define SPI_INTERN_CS 0xFF |
23 | 25 | ||
24 | enum { | 26 | enum { |
@@ -39,13 +41,16 @@ enum { | |||
39 | * to populate if all chip-selects are internal. | 41 | * to populate if all chip-selects are internal. |
40 | * @cshold_bug: set this to true if the SPI controller on your chip requires | 42 | * @cshold_bug: set this to true if the SPI controller on your chip requires |
41 | * a write to CSHOLD bit in between transfers (like in DM355). | 43 | * a write to CSHOLD bit in between transfers (like in DM355). |
44 | * @dma_event_q: DMA event queue to use if SPI_IO_TYPE_DMA is used for any | ||
45 | * device on the bus. | ||
42 | */ | 46 | */ |
43 | struct davinci_spi_platform_data { | 47 | struct davinci_spi_platform_data { |
44 | u8 version; | 48 | u8 version; |
45 | u8 num_chipselect; | 49 | u8 num_chipselect; |
46 | u8 intr_line; | 50 | u8 intr_line; |
47 | u8 *chip_sel; | 51 | u8 *chip_sel; |
48 | bool cshold_bug; | 52 | bool cshold_bug; |
53 | enum dma_event_q dma_event_q; | ||
49 | }; | 54 | }; |
50 | 55 | ||
51 | /** | 56 | /** |
diff --git a/arch/arm/mach-davinci/include/mach/tnetv107x.h b/arch/arm/mach-davinci/include/mach/tnetv107x.h index 5a681d880dcb..89c1fdc63c0b 100644 --- a/arch/arm/mach-davinci/include/mach/tnetv107x.h +++ b/arch/arm/mach-davinci/include/mach/tnetv107x.h | |||
@@ -34,6 +34,7 @@ | |||
34 | 34 | ||
35 | #include <linux/serial_8250.h> | 35 | #include <linux/serial_8250.h> |
36 | #include <linux/input/matrix_keypad.h> | 36 | #include <linux/input/matrix_keypad.h> |
37 | #include <linux/mfd/ti_ssp.h> | ||
37 | 38 | ||
38 | #include <mach/mmc.h> | 39 | #include <mach/mmc.h> |
39 | #include <mach/nand.h> | 40 | #include <mach/nand.h> |
@@ -44,6 +45,7 @@ struct tnetv107x_device_info { | |||
44 | struct davinci_mmc_config *mmc_config[2]; /* 2 controllers */ | 45 | struct davinci_mmc_config *mmc_config[2]; /* 2 controllers */ |
45 | struct davinci_nand_pdata *nand_config[4]; /* 4 chipsels */ | 46 | struct davinci_nand_pdata *nand_config[4]; /* 4 chipsels */ |
46 | struct matrix_keypad_platform_data *keypad_config; | 47 | struct matrix_keypad_platform_data *keypad_config; |
48 | struct ti_ssp_data *ssp_config; | ||
47 | }; | 49 | }; |
48 | 50 | ||
49 | extern struct platform_device tnetv107x_wdt_device; | 51 | extern struct platform_device tnetv107x_wdt_device; |