diff options
author | Mian Yousaf Kaukab <mian-yousaf.kaukab@linaro.org> | 2011-01-21 12:21:50 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-03-14 09:05:12 -0400 |
commit | 6f3f3c3f0b5c7b84a99f0aa99658d6c6cee8e700 (patch) | |
tree | b824d4bf0726929b2646a2e4b97d0f4840ef40c7 /arch/arm/mach-ux500/devices-db8500.c | |
parent | 7f0709efe65a1a46f9b0affb6b5d27d31bae450a (diff) |
mach-ux500: add MUSB to db8500 devices
- DMA tx and rx maps for usb channels are set to be configured at
runtime
- GPIO configurations for usb are added
- MUSB is enabled with soc specific base address, irq and dma
configurations
Signed-off-by: Mian Yousaf Kaukab <mian-yousaf.kaukab@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500/devices-db8500.c')
-rw-r--r-- | arch/arm/mach-ux500/devices-db8500.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/devices-db8500.c b/arch/arm/mach-ux500/devices-db8500.c index 23c695d54977..f122d4ee3b2d 100644 --- a/arch/arm/mach-ux500/devices-db8500.c +++ b/arch/arm/mach-ux500/devices-db8500.c | |||
@@ -69,10 +69,30 @@ struct stedma40_chan_cfg dma40_memcpy_conf_log = { | |||
69 | * Mapping between destination event lines and physical device address. | 69 | * Mapping between destination event lines and physical device address. |
70 | * The event line is tied to a device and therefor the address is constant. | 70 | * The event line is tied to a device and therefor the address is constant. |
71 | */ | 71 | */ |
72 | static const dma_addr_t dma40_tx_map[DB8500_DMA_NR_DEV]; | 72 | static const dma_addr_t dma40_tx_map[DB8500_DMA_NR_DEV] = { |
73 | /* MUSB - these will be runtime-reconfigured */ | ||
74 | [DB8500_DMA_DEV39_USB_OTG_OEP_8] = -1, | ||
75 | [DB8500_DMA_DEV16_USB_OTG_OEP_7_15] = -1, | ||
76 | [DB8500_DMA_DEV17_USB_OTG_OEP_6_14] = -1, | ||
77 | [DB8500_DMA_DEV18_USB_OTG_OEP_5_13] = -1, | ||
78 | [DB8500_DMA_DEV19_USB_OTG_OEP_4_12] = -1, | ||
79 | [DB8500_DMA_DEV36_USB_OTG_OEP_3_11] = -1, | ||
80 | [DB8500_DMA_DEV37_USB_OTG_OEP_2_10] = -1, | ||
81 | [DB8500_DMA_DEV38_USB_OTG_OEP_1_9] = -1, | ||
82 | }; | ||
73 | 83 | ||
74 | /* Mapping between source event lines and physical device address */ | 84 | /* Mapping between source event lines and physical device address */ |
75 | static const dma_addr_t dma40_rx_map[DB8500_DMA_NR_DEV]; | 85 | static const dma_addr_t dma40_rx_map[DB8500_DMA_NR_DEV] = { |
86 | /* MUSB - these will be runtime-reconfigured */ | ||
87 | [DB8500_DMA_DEV39_USB_OTG_IEP_8] = -1, | ||
88 | [DB8500_DMA_DEV16_USB_OTG_IEP_7_15] = -1, | ||
89 | [DB8500_DMA_DEV17_USB_OTG_IEP_6_14] = -1, | ||
90 | [DB8500_DMA_DEV18_USB_OTG_IEP_5_13] = -1, | ||
91 | [DB8500_DMA_DEV19_USB_OTG_IEP_4_12] = -1, | ||
92 | [DB8500_DMA_DEV36_USB_OTG_IEP_3_11] = -1, | ||
93 | [DB8500_DMA_DEV37_USB_OTG_IEP_2_10] = -1, | ||
94 | [DB8500_DMA_DEV38_USB_OTG_IEP_1_9] = -1, | ||
95 | }; | ||
76 | 96 | ||
77 | /* Reserved event lines for memcpy only */ | 97 | /* Reserved event lines for memcpy only */ |
78 | static int dma40_memcpy_event[] = { | 98 | static int dma40_memcpy_event[] = { |