spi-pxa2xx.h (bf2509a455349981527e142f213aae9628862779) spi-pxa2xx.h (42c80cd439a938569a86f6ae135d38c1cda5569b)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2005 Stephen Street / StreetFire Sound Labs
4 * Copyright (C) 2013, Intel Corporation
5 */
6
7#ifndef SPI_PXA2XX_H
8#define SPI_PXA2XX_H

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

100 case CE4100_SSP:
101 case QUARK_X1000_SSP:
102 return 1;
103 default:
104 return 0;
105 }
106}
107
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2005 Stephen Street / StreetFire Sound Labs
4 * Copyright (C) 2013, Intel Corporation
5 */
6
7#ifndef SPI_PXA2XX_H
8#define SPI_PXA2XX_H

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

100 case CE4100_SSP:
101 case QUARK_X1000_SSP:
102 return 1;
103 default:
104 return 0;
105 }
106}
107
108static inline void clear_SSCR1_bits(const struct driver_data *drv_data, u32 bits)
109{
110 pxa2xx_spi_write(drv_data, SSCR1, pxa2xx_spi_read(drv_data, SSCR1) & ~bits);
111}
112
108static inline void write_SSSR_CS(struct driver_data *drv_data, u32 val)
109{
110 if (drv_data->ssp_type == CE4100_SSP ||
111 drv_data->ssp_type == QUARK_X1000_SSP)
112 val |= pxa2xx_spi_read(drv_data, SSSR) & SSSR_ALT_FRM_MASK;
113
114 pxa2xx_spi_write(drv_data, SSSR, val);
115}

--- 20 unchanged lines hidden ---
113static inline void write_SSSR_CS(struct driver_data *drv_data, u32 val)
114{
115 if (drv_data->ssp_type == CE4100_SSP ||
116 drv_data->ssp_type == QUARK_X1000_SSP)
117 val |= pxa2xx_spi_read(drv_data, SSSR) & SSSR_ALT_FRM_MASK;
118
119 pxa2xx_spi_write(drv_data, SSSR, val);
120}

--- 20 unchanged lines hidden ---