1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2020, Linaro Limited
10 * enum spi_transfer_cmd - spi transfer commands
12 enum spi_transfer_cmd
{
19 * struct gpi_spi_config - spi config for peripheral
21 * @loopback_en: spi loopback enable when set
22 * @clock_pol_high: clock polarity
23 * @data_pol_high: data polarity
24 * @pack_en: process tx/rx buffers as packed
25 * @word_len: spi word length
26 * @clk_div: source clock divider
27 * @clk_src: serial clock
29 * @fragmentation: keep CS asserted at end of sequence
30 * @cs: chip select toggle
31 * @set_config: set peripheral config
32 * @rx_len: receive length for buffer
34 struct gpi_spi_config
{
45 enum spi_transfer_cmd cmd
;
55 * struct gpi_i2c_config - i2c config for peripheral
57 * @pack_enable: process tx/rx buffers as packed
58 * @cycle_count: clock cycles to be sent
59 * @high_count: high period of clock
60 * @low_count: low period of clock
61 * @clk_div: source clock divider
62 * @addr: i2c bus address
63 * @stretch: stretch the clock at eot
64 * @set_config: set peripheral config
65 * @rx_len: receive length for buffer
67 * @muli-msg: is part of multi i2c r-w msgs
69 struct gpi_i2c_config
{
83 #endif /* QCOM_GPI_DMA_H */