Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

switching back to motorola for now on pxa2xx_spi, showing SSCR0 and S…

…SCR1 in pump_transfers
  • Loading branch information...
commit 932954f21a4e147e078b06771dd7e3e2e71b3eec 1 parent a0ab286
@jsoutherland jsoutherland authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 drivers/spi/pxa2xx_spi.c
View
7 drivers/spi/pxa2xx_spi.c
@@ -48,7 +48,7 @@ MODULE_ALIAS("platform:pxa2xx-spi");
#define MAX_BUSES 3
-#define SSCR_PROTOCOL SSCR0_PSP //SSCR0_Motorola
+#define SSCR_PROTOCOL SSCR0_Motorola // (SSCR0_PSP, SSCR0_Motorola, ...)
#define RX_THRESH_DFLT 8
#define TX_THRESH_DFLT 8
@@ -950,6 +950,9 @@ static void pump_transfers(unsigned long data)
u32 dma_thresh = drv_data->cur_chip->dma_threshold;
u32 dma_burst = drv_data->cur_chip->dma_burst_size;
+ if(SPI_DBG_PRINTKS) printk("***_SPI_*** pump_transfers start: SSCR0=%x SSCR1=%x\n (pxa2xx_spi.c:%d)",read_SSCR0(reg), read_SSCR1(reg), __LINE__);
+
+
/* Get current state information */
message = drv_data->cur_msg;
transfer = drv_data->cur_transfer;
@@ -1185,6 +1188,8 @@ static void pump_transfers(unsigned long data)
/* after chip select, release the data by enabling service
* requests and interrupts, without changing any mode bits */
write_SSCR1(cr1, reg);
+
+ if(SPI_DBG_PRINTKS) printk("***_SPI_*** pump_transfers end: SSCR0=%x SSCR1=%x\n (pxa2xx_spi.c:%d)",read_SSCR0(reg), read_SSCR1(reg), __LINE__);
}
static void pump_messages(struct work_struct *work)
Please sign in to comment.
Something went wrong with that request. Please try again.