spi-pxa2xx.c (dccf7369652f3934456345aab6a92fa905177886) spi-pxa2xx.c (82ba2c2ab3e9b9c62327f9441594668b20a1dba2)
1/*
2 * Copyright (C) 2005 Stephen Street / StreetFire Sound Labs
3 * Copyright (C) 2013, Intel Corporation
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 231 unchanged lines hidden (view full) ---

240 /* Enable software chip select control */
241 value = SPI_CS_CONTROL_SW_MODE | SPI_CS_CONTROL_CS_HIGH;
242 __lpss_ssp_write_priv(drv_data, config->reg_cs_ctrl, value);
243
244 /* Enable multiblock DMA transfers */
245 if (drv_data->master_info->enable_dma) {
246 __lpss_ssp_write_priv(drv_data, config->reg_ssp, 1);
247
1/*
2 * Copyright (C) 2005 Stephen Street / StreetFire Sound Labs
3 * Copyright (C) 2013, Intel Corporation
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 231 unchanged lines hidden (view full) ---

240 /* Enable software chip select control */
241 value = SPI_CS_CONTROL_SW_MODE | SPI_CS_CONTROL_CS_HIGH;
242 __lpss_ssp_write_priv(drv_data, config->reg_cs_ctrl, value);
243
244 /* Enable multiblock DMA transfers */
245 if (drv_data->master_info->enable_dma) {
246 __lpss_ssp_write_priv(drv_data, config->reg_ssp, 1);
247
248 value = __lpss_ssp_read_priv(drv_data, config->reg_general);
249 value |= GENERAL_REG_RXTO_HOLDOFF_DISABLE;
250 __lpss_ssp_write_priv(drv_data, config->reg_general, value);
248 if (config->reg_general >= 0) {
249 value = __lpss_ssp_read_priv(drv_data,
250 config->reg_general);
251 value |= GENERAL_REG_RXTO_HOLDOFF_DISABLE;
252 __lpss_ssp_write_priv(drv_data,
253 config->reg_general, value);
254 }
251 }
252}
253
254static void lpss_ssp_cs_control(struct driver_data *drv_data, bool enable)
255{
256 const struct lpss_config *config;
257 u32 value;
258

--- 1369 unchanged lines hidden ---
255 }
256}
257
258static void lpss_ssp_cs_control(struct driver_data *drv_data, bool enable)
259{
260 const struct lpss_config *config;
261 u32 value;
262

--- 1369 unchanged lines hidden ---