Home
last modified time | relevance | path

Searched refs:espi (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v4.19/drivers/spi/
Dspi-fsl-espi.c120 static inline u32 fsl_espi_read_reg(struct fsl_espi *espi, int offset) in fsl_espi_read_reg() argument
122 return ioread32be(espi->reg_base + offset); in fsl_espi_read_reg()
125 static inline u16 fsl_espi_read_reg16(struct fsl_espi *espi, int offset) in fsl_espi_read_reg16() argument
127 return ioread16be(espi->reg_base + offset); in fsl_espi_read_reg16()
130 static inline u8 fsl_espi_read_reg8(struct fsl_espi *espi, int offset) in fsl_espi_read_reg8() argument
132 return ioread8(espi->reg_base + offset); in fsl_espi_read_reg8()
135 static inline void fsl_espi_write_reg(struct fsl_espi *espi, int offset, in fsl_espi_write_reg() argument
138 iowrite32be(val, espi->reg_base + offset); in fsl_espi_write_reg()
141 static inline void fsl_espi_write_reg16(struct fsl_espi *espi, int offset, in fsl_espi_write_reg16() argument
144 iowrite16be(val, espi->reg_base + offset); in fsl_espi_write_reg16()
[all …]
Dspi-ep93xx.c118 struct ep93xx_spi *espi = spi_master_get_devdata(master); in ep93xx_spi_calc_divisors() local
119 unsigned long spi_clk_rate = clk_get_rate(espi->clk); in ep93xx_spi_calc_divisors()
153 struct ep93xx_spi *espi = spi_master_get_devdata(master); in ep93xx_spi_chip_setup() local
173 writel(div_cpsr, espi->mmio + SSPCPSR); in ep93xx_spi_chip_setup()
174 writel(cr0, espi->mmio + SSPCR0); in ep93xx_spi_chip_setup()
181 struct ep93xx_spi *espi = spi_master_get_devdata(master); in ep93xx_do_write() local
187 val = ((u16 *)xfer->tx_buf)[espi->tx]; in ep93xx_do_write()
188 espi->tx += 2; in ep93xx_do_write()
191 val = ((u8 *)xfer->tx_buf)[espi->tx]; in ep93xx_do_write()
192 espi->tx += 1; in ep93xx_do_write()
[all …]
DMakefile44 obj-$(CONFIG_SPI_FSL_ESPI) += spi-fsl-espi.o
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb/
Despi.c117 void t1_espi_intr_enable(struct peespi *espi) in t1_espi_intr_enable() argument
119 u32 enable, pl_intr = readl(espi->adapter->regs + A_PL_ENABLE); in t1_espi_intr_enable()
128 enable = t1_is_T1B(espi->adapter) ? 0 : ESPI_INTR_MASK; in t1_espi_intr_enable()
129 writel(enable, espi->adapter->regs + A_ESPI_INTR_ENABLE); in t1_espi_intr_enable()
130 writel(pl_intr | F_PL_INTR_ESPI, espi->adapter->regs + A_PL_ENABLE); in t1_espi_intr_enable()
133 void t1_espi_intr_clear(struct peespi *espi) in t1_espi_intr_clear() argument
135 readl(espi->adapter->regs + A_ESPI_DIP2_ERR_COUNT); in t1_espi_intr_clear()
136 writel(0xffffffff, espi->adapter->regs + A_ESPI_INTR_STATUS); in t1_espi_intr_clear()
137 writel(F_PL_INTR_ESPI, espi->adapter->regs + A_PL_CAUSE); in t1_espi_intr_clear()
140 void t1_espi_intr_disable(struct peespi *espi) in t1_espi_intr_disable() argument
[all …]
Despi.h55 void t1_espi_destroy(struct peespi *espi);
56 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
62 const struct espi_intr_counts *t1_espi_get_intr_counts(struct peespi *espi);
Dsubr.c763 if (adapter->espi) { in t1_interrupts_enable()
765 t1_espi_intr_enable(adapter->espi); in t1_interrupts_enable()
795 if (adapter->espi) in t1_interrupts_disable()
796 t1_espi_intr_disable(adapter->espi); in t1_interrupts_disable()
821 if (adapter->espi) in t1_interrupts_clear()
822 t1_espi_intr_clear(adapter->espi); in t1_interrupts_clear()
857 t1_espi_intr_handler(adapter->espi); in asic_slow_intr()
975 if (adapter->espi && t1_espi_init(adapter->espi, bi->chip_mac, in t1_init_hw_modules()
1026 if (adapter->espi) in t1_free_sw_modules()
1027 t1_espi_destroy(adapter->espi); in t1_free_sw_modules()
[all …]
DMakefile8 cxgb-objs := cxgb2.o espi.o tp.o pm3393.o sge.o subr.o \
Dcommon.h247 struct peespi *espi; member
/Linux-v4.19/Documentation/devicetree/bindings/spi/
Dfsl-spi.txt38 - compatible : should be "fsl,mpc8536-espi".
41 - fsl,espi-num-chipselects : the number of the chipselect signals.
51 compatible = "fsl,mpc8536-espi";
55 fsl,espi-num-chipselects = <4>;
/Linux-v4.19/arch/powerpc/boot/dts/fsl/
Dbsc9131si-post.dtsi85 /include/ "pq3-espi-0.dtsi"
87 fsl,espi-num-chipselects = <1>;
Dc293si-post.dtsi98 /include/ "pq3-espi-0.dtsi"
100 fsl,espi-num-chipselects = <1>;
Dbsc9132si-post.dtsi114 /include/ "pq3-espi-0.dtsi"
116 fsl,espi-num-chipselects = <1>;
Dp2020si-post.dtsi156 /include/ "pq3-espi-0.dtsi"
158 fsl,espi-num-chipselects = <4>;
Dp1020si-post.dtsi129 /include/ "pq3-espi-0.dtsi"
131 fsl,espi-num-chipselects = <4>;
Dp1010si-post.dtsi127 /include/ "pq3-espi-0.dtsi"
129 fsl,espi-num-chipselects = <1>;
Dp1021si-post.dtsi129 /include/ "pq3-espi-0.dtsi"
131 fsl,espi-num-chipselects = <4>;
Dmpc8536si-post.dtsi166 /include/ "pq3-espi-0.dtsi"
168 fsl,espi-num-chipselects = <4>;
Dp1022si-post.dtsi161 /include/ "pq3-espi-0.dtsi"
163 fsl,espi-num-chipselects = <4>;
Dqoriq-espi-0.dtsi38 compatible = "fsl,mpc8536-espi";
Dpq3-espi-0.dtsi38 compatible = "fsl,mpc8536-espi";
Dp1023si-post.dtsi191 /include/ "pq3-espi-0.dtsi"
193 fsl,espi-num-chipselects = <4>;
Dp2041si-post.dtsi378 /include/ "qoriq-espi-0.dtsi"
380 fsl,espi-num-chipselects = <4>;
Dp5020si-post.dtsi392 /include/ "qoriq-espi-0.dtsi"
394 fsl,espi-num-chipselects = <4>;
Dmvme2500.dts70 fsl,espi-num-chipselects = <2>;
Db4si-post.dtsi441 /include/ "qoriq-espi-0.dtsi"
443 fsl,espi-num-chipselects = <4>;

12