/* SPDX-License-Identifier: GPL-2.0-only */ /* * rt5514-spi.h -- RT5514 driver * * Copyright 2015 Realtek Semiconductor Corp. * Author: Oder Chiou <[email protected]> */ #ifndef __RT5514_SPI_H__ #define __RT5514_SPI_H__ /** * RT5514_SPI_BUF_LEN is the buffer size of SPI master controller. */ #define RT5514_SPI_BUF_LEN … #define RT5514_BUFFER_VOICE_BASE … #define RT5514_BUFFER_VOICE_LIMIT … #define RT5514_BUFFER_VOICE_WP … #define RT5514_IRQ_CTRL … #define RT5514_IRQ_STATUS_BIT … /* SPI Command */ enum { … }; int rt5514_spi_burst_read(unsigned int addr, u8 *rxbuf, size_t len); int rt5514_spi_burst_write(u32 addr, const u8 *txbuf, size_t len); #endif /* __RT5514_SPI_H__ */