pxa2xx_spi: PXA27x SSP1 doesn't work with DMA
This is fine. When I get more time, I will re-think handling of PXA2xx version differences.
Stephen
pxa2xx_spi: add SSP types for the PXA27x
The PXA27x's SSP1 is not like the PXA25x's SSP, so add some more PXA27x specific types so SSP1 works with DMA.
drivers/spi/pxa2xx_spi.c +6 -2
@@ -1260,18 +1260,20 @@switch (platform_info->ssp_type) {case PXA25x_SSP: +case PXA27x_SSP1:DRCMRRXSSDR =DRCMR_MAPVLD | drv_data->rx_channel;DRCMRTXSSDR =DRCMR_MAPVLD | drv_data->tx_channel;break ;case PXA25x_NSSP: +case PXA27x_SSP2:DRCMRRXSS2DR =DRCMR_MAPVLD | drv_data->rx_channel;DRCMRTXSS2DR =DRCMR_MAPVLD | drv_data->tx_channel;break ; -case PXA27x_SSP: +case PXA27x_SSP3:DRCMRRXSS3DR =DRCMR_MAPVLD | drv_data->rx_channel;DRCMRTXSS3DR =DRCMR_MAPVLD
@@ -1359,14 +1361,16 @@if (drv_data->master_info->enable_dma) {switch (drv_data->ssp_type) {case PXA25x_SSP: +case PXA27x_SSP1:DRCMRRXSSDR =0 ;DRCMRTXSSDR =0 ;break ;case PXA25x_NSSP: +case PXA27x_SSP2:DRCMRRXSS2DR =0 ;DRCMRTXSS2DR =0 ;break ; -case PXA27x_SSP: +case PXA27x_SSP3:DRCMRRXSS3DR =0 ;DRCMRTXSS3DR =0 ;break ;
include/asm-arm/arch-pxa/pxa2xx_spi.h +4 -1
@@ -25,7 +25,10 @@SSP_UNDEFINED =0 , PXA25x_SSP,/* pxa 210, 250, 255, 26x */ PXA25x_NSSP,/* pxa 255, 26x (including ASSP) */ - PXA27x_SSP, + PXA27x_SSP1, + PXA27x_SSP2, + PXA27x_SSP3, + PXA27x_SSP = PXA27x_SSP3, /* for compatibility */ };/* device.platform_data for SSP controller devices */
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Quoted 2 lines · Stephen Street
This is fine. When I get more time, I will re-think handling of PXA2xx version differences.
Except it's against 2.6.16 and doesn't apply against 2.6.22 ... which doesn't have those switch statements!
David, could you provide a fix for current kernels?
- Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Quoted 6 lines · David Brownell
Quoted 2 lines · Stephen Street
This is fine. When I get more time, I will re-think handling of PXA2xx version differences.
Except it's against 2.6.16 and doesn't apply against 2.6.22 ... which doesn't have those switch statements!
Oops. I checked to see if this driver had changed but thought it hadn't...
Quoted 1 line
David, could you provide a fix for current kernels?
I could, but I couldn't test it :(
David
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
Quoted 6 lines · David Brownell
Quoted 2 lines · Stephen Street
This is fine. When I get more time, I will re-think handling of PXA2xx version differences.
Except it's against 2.6.16 and doesn't apply against 2.6.22 ... which doesn't have those switch statements!
Yikes, I did not look at this closely enough... I look at this also. Give me a couple of days.
Stephen
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/