Skip to content

Commit

Permalink
Merge remote-tracking branch 'spi/topic/pxa' into spi-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Sep 1, 2013
2 parents 720ed2d + 1de7061 commit 793b3cb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/spi/spi-pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ MODULE_ALIAS("platform:pxa2xx-spi");
#define LPSS_TX_HITHRESH_DFLT 224

/* Offset from drv_data->lpss_base */
#define GENERAL_REG 0x08
#define GENERAL_REG_RXTO_HOLDOFF_DISABLE BIT(24)
#define SSP_REG 0x0c
#define SPI_CS_CONTROL 0x18
#define SPI_CS_CONTROL_SW_MODE BIT(0)
Expand Down Expand Up @@ -142,8 +144,13 @@ static void lpss_ssp_setup(struct driver_data *drv_data)
__lpss_ssp_write_priv(drv_data, SPI_CS_CONTROL, value);

/* Enable multiblock DMA transfers */
if (drv_data->master_info->enable_dma)
if (drv_data->master_info->enable_dma) {
__lpss_ssp_write_priv(drv_data, SSP_REG, 1);

value = __lpss_ssp_read_priv(drv_data, GENERAL_REG);
value |= GENERAL_REG_RXTO_HOLDOFF_DISABLE;
__lpss_ssp_write_priv(drv_data, GENERAL_REG, value);
}
}

static void lpss_ssp_cs_control(struct driver_data *drv_data, bool enable)
Expand Down

0 comments on commit 793b3cb

Please sign in to comment.