Home
last modified time | relevance | path

Searched refs:sspi (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/spi/
Dspi-synquacer.c141 static int read_fifo(struct synquacer_spi *sspi) in read_fifo() argument
143 u32 len = readl(sspi->regs + SYNQUACER_HSSPI_REG_DMSTATUS); in read_fifo()
147 len = min(len, sspi->rx_words); in read_fifo()
149 switch (sspi->bpw) { in read_fifo()
151 u8 *buf = sspi->rx_buf; in read_fifo()
153 ioread8_rep(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO, in read_fifo()
155 sspi->rx_buf = buf + len; in read_fifo()
159 u16 *buf = sspi->rx_buf; in read_fifo()
161 ioread16_rep(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO, in read_fifo()
163 sspi->rx_buf = buf + len; in read_fifo()
[all …]
Dspi-sun4i.c90 static inline u32 sun4i_spi_read(struct sun4i_spi *sspi, u32 reg) in sun4i_spi_read() argument
92 return readl(sspi->base_addr + reg); in sun4i_spi_read()
95 static inline void sun4i_spi_write(struct sun4i_spi *sspi, u32 reg, u32 value) in sun4i_spi_write() argument
97 writel(value, sspi->base_addr + reg); in sun4i_spi_write()
100 static inline u32 sun4i_spi_get_tx_fifo_count(struct sun4i_spi *sspi) in sun4i_spi_get_tx_fifo_count() argument
102 u32 reg = sun4i_spi_read(sspi, SUN4I_FIFO_STA_REG); in sun4i_spi_get_tx_fifo_count()
109 static inline void sun4i_spi_enable_interrupt(struct sun4i_spi *sspi, u32 mask) in sun4i_spi_enable_interrupt() argument
111 u32 reg = sun4i_spi_read(sspi, SUN4I_INT_CTL_REG); in sun4i_spi_enable_interrupt()
114 sun4i_spi_write(sspi, SUN4I_INT_CTL_REG, reg); in sun4i_spi_enable_interrupt()
117 static inline void sun4i_spi_disable_interrupt(struct sun4i_spi *sspi, u32 mask) in sun4i_spi_disable_interrupt() argument
[all …]
Dspi-sun6i.c105 static inline u32 sun6i_spi_read(struct sun6i_spi *sspi, u32 reg) in sun6i_spi_read() argument
107 return readl(sspi->base_addr + reg); in sun6i_spi_read()
110 static inline void sun6i_spi_write(struct sun6i_spi *sspi, u32 reg, u32 value) in sun6i_spi_write() argument
112 writel(value, sspi->base_addr + reg); in sun6i_spi_write()
115 static inline u32 sun6i_spi_get_rx_fifo_count(struct sun6i_spi *sspi) in sun6i_spi_get_rx_fifo_count() argument
117 u32 reg = sun6i_spi_read(sspi, SUN6I_FIFO_STA_REG); in sun6i_spi_get_rx_fifo_count()
122 static inline u32 sun6i_spi_get_tx_fifo_count(struct sun6i_spi *sspi) in sun6i_spi_get_tx_fifo_count() argument
124 u32 reg = sun6i_spi_read(sspi, SUN6I_FIFO_STA_REG); in sun6i_spi_get_tx_fifo_count()
129 static inline void sun6i_spi_disable_interrupt(struct sun6i_spi *sspi, u32 mask) in sun6i_spi_disable_interrupt() argument
131 u32 reg = sun6i_spi_read(sspi, SUN6I_INT_CTL_REG); in sun6i_spi_disable_interrupt()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/pinctrl/
Dnuvoton,wpcm450-pinctrl.yaml74 clko, smi, uinc, gspi, mben, xcs2, xcs1, sdio, sspi, fi0,
84 gspi, mben, xcs2, xcs1, sdio, sspi, fi0, fi1, fi2, fi3, fi4,
141 groups = "gspi", "sspi";
/linux-6.1.9/arch/arm/boot/dts/
Dnuvoton-wpcm450.dtsi294 sspi_pins: mux-sspi {
295 groups = "sspi";
296 function = "sspi";
Dnuvoton-wpcm450-supermicro-x9sci-ln4f.dts58 groups = "gspi", "sspi";
/linux-6.1.9/drivers/pinctrl/nuvoton/
Dpinctrl-wpcm450.c427 WPCM450_GRP(sspi), \
513 WPCM450_SFUNC(sspi);
579 WPCM450_MKFUNC(sspi),
638 WPCM450_PINCFG(12, gspi, MFSEL1, 24, sspi, MFSEL1, 31),
639 WPCM450_PINCFG(13, gspi, MFSEL1, 24, sspi, MFSEL1, 31),
640 WPCM450_PINCFG(14, gspi, MFSEL1, 24, sspi, MFSEL1, 31),
641 WPCM450_PINCFG(15, gspi, MFSEL1, 24, sspi, MFSEL1, 31),