diff options
author | Eduardo Valentin <eduardo.valentin@nokia.com> | 2009-08-20 09:18:11 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-20 15:10:26 -0400 |
commit | a1a56f5faa41327116bf960a8e79f21a8ea35dce (patch) | |
tree | ca6e8fba492f5a3caddf421d0c4f573d863bef99 /arch/arm/mach-omap2/mcbsp.c | |
parent | 7aa9ff56cae7a6a4fa2e1a503cc5f8bbd887d6e3 (diff) |
OMAP: McBSP: Create and export max_(r|t)x_thres property
This patch export through sysfs two properties to configure
maximum threshold for transmission and reception on each
mcbsp instance. Also, it exports two helper functions to
allow mcbsp users to read this values.
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/mach-omap2/mcbsp.c')
-rw-r--r-- | arch/arm/mach-omap2/mcbsp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index a5c0f0435cd6..f837114d1d69 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c | |||
@@ -129,6 +129,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = { | |||
129 | .rx_irq = INT_24XX_MCBSP1_IRQ_RX, | 129 | .rx_irq = INT_24XX_MCBSP1_IRQ_RX, |
130 | .tx_irq = INT_24XX_MCBSP1_IRQ_TX, | 130 | .tx_irq = INT_24XX_MCBSP1_IRQ_TX, |
131 | .ops = &omap2_mcbsp_ops, | 131 | .ops = &omap2_mcbsp_ops, |
132 | .buffer_size = 0x7F, | ||
132 | }, | 133 | }, |
133 | { | 134 | { |
134 | .phys_base = OMAP34XX_MCBSP2_BASE, | 135 | .phys_base = OMAP34XX_MCBSP2_BASE, |
@@ -137,6 +138,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = { | |||
137 | .rx_irq = INT_24XX_MCBSP2_IRQ_RX, | 138 | .rx_irq = INT_24XX_MCBSP2_IRQ_RX, |
138 | .tx_irq = INT_24XX_MCBSP2_IRQ_TX, | 139 | .tx_irq = INT_24XX_MCBSP2_IRQ_TX, |
139 | .ops = &omap2_mcbsp_ops, | 140 | .ops = &omap2_mcbsp_ops, |
141 | .buffer_size = 0x3FF, | ||
140 | }, | 142 | }, |
141 | { | 143 | { |
142 | .phys_base = OMAP34XX_MCBSP3_BASE, | 144 | .phys_base = OMAP34XX_MCBSP3_BASE, |
@@ -145,6 +147,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = { | |||
145 | .rx_irq = INT_24XX_MCBSP3_IRQ_RX, | 147 | .rx_irq = INT_24XX_MCBSP3_IRQ_RX, |
146 | .tx_irq = INT_24XX_MCBSP3_IRQ_TX, | 148 | .tx_irq = INT_24XX_MCBSP3_IRQ_TX, |
147 | .ops = &omap2_mcbsp_ops, | 149 | .ops = &omap2_mcbsp_ops, |
150 | .buffer_size = 0x7F, | ||
148 | }, | 151 | }, |
149 | { | 152 | { |
150 | .phys_base = OMAP34XX_MCBSP4_BASE, | 153 | .phys_base = OMAP34XX_MCBSP4_BASE, |
@@ -153,6 +156,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = { | |||
153 | .rx_irq = INT_24XX_MCBSP4_IRQ_RX, | 156 | .rx_irq = INT_24XX_MCBSP4_IRQ_RX, |
154 | .tx_irq = INT_24XX_MCBSP4_IRQ_TX, | 157 | .tx_irq = INT_24XX_MCBSP4_IRQ_TX, |
155 | .ops = &omap2_mcbsp_ops, | 158 | .ops = &omap2_mcbsp_ops, |
159 | .buffer_size = 0x7F, | ||
156 | }, | 160 | }, |
157 | { | 161 | { |
158 | .phys_base = OMAP34XX_MCBSP5_BASE, | 162 | .phys_base = OMAP34XX_MCBSP5_BASE, |
@@ -161,6 +165,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = { | |||
161 | .rx_irq = INT_24XX_MCBSP5_IRQ_RX, | 165 | .rx_irq = INT_24XX_MCBSP5_IRQ_RX, |
162 | .tx_irq = INT_24XX_MCBSP5_IRQ_TX, | 166 | .tx_irq = INT_24XX_MCBSP5_IRQ_TX, |
163 | .ops = &omap2_mcbsp_ops, | 167 | .ops = &omap2_mcbsp_ops, |
168 | .buffer_size = 0x7F, | ||
164 | }, | 169 | }, |
165 | }; | 170 | }; |
166 | #define OMAP34XX_MCBSP_PDATA_SZ ARRAY_SIZE(omap34xx_mcbsp_pdata) | 171 | #define OMAP34XX_MCBSP_PDATA_SZ ARRAY_SIZE(omap34xx_mcbsp_pdata) |