diff options
author | Michael Williamson <[michael.williamson@criticallink.com]> | 2011-02-23 23:48:28 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-03-11 13:48:29 -0500 |
commit | 54ce6883d29630ff334bee4256a25e3f8719a181 (patch) | |
tree | da62a6a9f2a18f43b0a6dbc5458af72d6d4f96b6 /arch/arm/mach-davinci/include | |
parent | 12d35cf374a2ca116481d2bc2dcf6f89854646dd (diff) |
davinci: da8xx: add spi resources and registration routine
Add IO resource structures, platform data, and a registration
routine in order to support spi device on DA850/OMAP-L138/AM18x
and DA830/OMAP-L137/AM17x platforms.
Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/include')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/da8xx.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index cfcb2232e6b1..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 | ||