diff options
| author | Peter Ujfalusi <peter.ujfalusi@nokia.com> | 2010-06-03 07:39:33 +0300 | 
|---|---|---|
| committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-06-03 16:12:40 +0100 | 
| commit | 451fd82dc148bd5ac9ed5b19b6915a1afe32b9cb (patch) | |
| tree | 0bd09462f284fbdef0ed98f7d05ed4018302f296 /arch/arm/mach-omap2/mcbsp.c | |
| parent | 0acce82b3dd792c85079ca1f4f7ffd8c82427e0a (diff) | |
| download | olio-linux-3.10-451fd82dc148bd5ac9ed5b19b6915a1afe32b9cb.tar.xz olio-linux-3.10-451fd82dc148bd5ac9ed5b19b6915a1afe32b9cb.zip  | |
OMAP3: McBSP: Change the way how the FIFO is handled
Use the actual FIFO size in words as buffer_size on OMAP3.
Change the threshold configuration to use 1 based numbering, when
specifying the allowed threshold maximum or the McBSP threshold value.
Set the default maximum threshold to (buffer_size - 0x10) intialy.
>From users of McBSP, now it is expected to use this method.
Asking for threshold 1 means that the value written to threshold registers
are going to be 0, which means 1 word threshold.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolsfonmicro.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'arch/arm/mach-omap2/mcbsp.c')
| -rw-r--r-- | arch/arm/mach-omap2/mcbsp.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index c29337074ad..8fb5e534555 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -133,7 +133,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = {  		.rx_irq		= INT_24XX_MCBSP1_IRQ_RX,  		.tx_irq		= INT_24XX_MCBSP1_IRQ_TX,  		.ops		= &omap2_mcbsp_ops, -		.buffer_size	= 0x6F, +		.buffer_size	= 0x80, /* The FIFO has 128 locations */  	},  	{  		.phys_base	= OMAP34XX_MCBSP2_BASE, @@ -143,7 +143,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = {  		.rx_irq		= INT_24XX_MCBSP2_IRQ_RX,  		.tx_irq		= INT_24XX_MCBSP2_IRQ_TX,  		.ops		= &omap2_mcbsp_ops, -		.buffer_size	= 0x3FF, +		.buffer_size	= 0x500, /* The FIFO has 1024 + 256 locations */  	},  	{  		.phys_base	= OMAP34XX_MCBSP3_BASE, @@ -153,7 +153,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = {  		.rx_irq		= INT_24XX_MCBSP3_IRQ_RX,  		.tx_irq		= INT_24XX_MCBSP3_IRQ_TX,  		.ops		= &omap2_mcbsp_ops, -		.buffer_size	= 0x6F, +		.buffer_size	= 0x80, /* The FIFO has 128 locations */  	},  	{  		.phys_base	= OMAP34XX_MCBSP4_BASE, @@ -162,7 +162,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = {  		.rx_irq		= INT_24XX_MCBSP4_IRQ_RX,  		.tx_irq		= INT_24XX_MCBSP4_IRQ_TX,  		.ops		= &omap2_mcbsp_ops, -		.buffer_size	= 0x6F, +		.buffer_size	= 0x80, /* The FIFO has 128 locations */  	},  	{  		.phys_base	= OMAP34XX_MCBSP5_BASE, @@ -171,7 +171,7 @@ static struct omap_mcbsp_platform_data omap34xx_mcbsp_pdata[] = {  		.rx_irq		= INT_24XX_MCBSP5_IRQ_RX,  		.tx_irq		= INT_24XX_MCBSP5_IRQ_TX,  		.ops		= &omap2_mcbsp_ops, -		.buffer_size	= 0x6F, +		.buffer_size	= 0x80, /* The FIFO has 128 locations */  	},  };  #define OMAP34XX_MCBSP_PDATA_SZ		ARRAY_SIZE(omap34xx_mcbsp_pdata)  |