Home
last modified time | relevance | path

Searched full:mspi (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v6.6/drivers/spi/
Dspi-fsl-cpm.c52 void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi) in fsl_spi_cpm_reinit_txrx() argument
54 if (mspi->flags & SPI_QE) { in fsl_spi_cpm_reinit_txrx()
55 qe_issue_cmd(QE_INIT_TX_RX, mspi->subblock, in fsl_spi_cpm_reinit_txrx()
58 if (mspi->flags & SPI_CPM1) { in fsl_spi_cpm_reinit_txrx()
59 iowrite32be(0, &mspi->pram->rstate); in fsl_spi_cpm_reinit_txrx()
60 iowrite16be(ioread16be(&mspi->pram->rbase), in fsl_spi_cpm_reinit_txrx()
61 &mspi->pram->rbptr); in fsl_spi_cpm_reinit_txrx()
62 iowrite32be(0, &mspi->pram->tstate); in fsl_spi_cpm_reinit_txrx()
63 iowrite16be(ioread16be(&mspi->pram->tbase), in fsl_spi_cpm_reinit_txrx()
64 &mspi->pram->tbptr); in fsl_spi_cpm_reinit_txrx()
[all …]
Dspi-fsl-cpm.h21 extern void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi);
22 extern int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi,
24 extern void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi);
25 extern void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events);
26 extern int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi);
27 extern void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi);
29 static inline void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi) { } in fsl_spi_cpm_reinit_txrx() argument
30 static inline int fsl_spi_cpm_bufs(struct mpc8xxx_spi *mspi, in fsl_spi_cpm_bufs() argument
33 static inline void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) { } in fsl_spi_cpm_bufs_complete() argument
34 static inline void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) { } in fsl_spi_cpm_irq() argument
[all …]
Dspi-fsl-spi.c91 struct mpc8xxx_spi *mspi = spi_controller_get_devdata(spi->controller); in fsl_spi_change_mode() local
93 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_change_mode()
107 if (mspi->flags & SPI_CPM_MODE) { in fsl_spi_change_mode()
108 fsl_spi_cpm_reinit_txrx(mspi); in fsl_spi_change_mode()
234 static int fsl_spi_cpu_bufs(struct mpc8xxx_spi *mspi, in fsl_spi_cpu_bufs() argument
238 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_cpu_bufs()
240 mspi->count = len; in fsl_spi_cpu_bufs()
246 word = mspi->get_tx(mspi); in fsl_spi_cpu_bufs()
426 static void fsl_spi_cpu_irq(struct mpc8xxx_spi *mspi, u32 events) in fsl_spi_cpu_irq() argument
428 struct fsl_spi_reg __iomem *reg_base = mspi->reg_base; in fsl_spi_cpu_irq()
[all …]
Dspi-bcm-qspi.c83 /* MSPI register offsets */
191 MSPI, enumerator
610 /* MSPI helpers */
636 bcm_qspi_write(qspi, MSPI, MSPI_SPCR0_MSB, spcr); in bcm_qspi_hw_set_parms()
670 bcm_qspi_write(qspi, MSPI, MSPI_SPCR1_LSB, 1); in bcm_qspi_hw_set_parms()
681 bcm_qspi_write(qspi, MSPI, MSPI_SPCR3, spcr); in bcm_qspi_hw_set_parms()
688 bcm_qspi_write(qspi, MSPI, MSPI_SPCR0_LSB, spbr); in bcm_qspi_hw_set_parms()
784 return bcm_qspi_read(qspi, MSPI, slot_offset) & 0xff; in read_rxram_slot_u8()
793 return (bcm_qspi_read(qspi, MSPI, lsb_offset) & 0xff) | in read_rxram_slot_u16()
794 ((bcm_qspi_read(qspi, MSPI, msb_offset) & 0xff) << 8); in read_rxram_slot_u16()
[all …]
Dspi-brcmstb-qspi.c14 { .compatible = "brcm,spi-brcmstb-mspi" },
Dspi-bcm-qspi.h32 /* MSPI Interrupt masks */
DKconfig199 tristate "Broadcom BSPI and MSPI controller support"
204 Enables support for the Broadcom SPI flash and MSPI controller.
207 flash device as well as MSPI device.
/Linux-v6.6/Documentation/devicetree/bindings/spi/
Dbrcm,spi-bcm-qspi.yaml17 MSPI : SPI master controller can read and write to a SPI slave device
18 BSPI : Broadcom SPI in combination with the MSPI hw IP provides acceleration
22 Supported Broadcom SoCs have one instance of MSPI+BSPI controller IP.
23 MSPI master can be used without BSPI. BRCMSTB SoCs have an additional instance
24 of a MSPI master without the BSPI to use with non flash slave devices that
33 - description: Second Instance of MSPI BRCMSTB SoCs
43 - const: brcm,spi-brcmstb-mspi
44 - description: Second Instance of MSPI BRCMSTB SoCs
48 - brcm,spi-brcmstb-mspi
60 - const: mspi
[all …]
/Linux-v6.6/arch/mips/boot/dts/brcm/
Dbcm7125.dtsi267 mspi: spi@406400 { label
271 "brcm,spi-brcmstb-mspi";
274 reg-names = "mspi";
Dbcm7420.dtsi328 mspi: spi@406400 { label
332 "brcm,spi-brcmstb-mspi";
335 reg-names = "mspi";
Dbcm7358.dtsi359 mspi: spi@408a00 { label
363 "brcm,spi-brcmstb-mspi";
366 reg-names = "mspi";
Dbcm97125cbmb.dts66 &mspi {
Dbcm7360.dtsi410 mspi: spi@408a00 { label
414 "brcm,spi-brcmstb-mspi";
417 reg-names = "mspi";
Dbcm7362.dtsi406 mspi: spi@408a00 { label
410 "brcm,spi-brcmstb-mspi";
413 reg-names = "mspi";
Dbcm97362svmb.dts82 &mspi {
Dbcm97420c.dts88 &mspi {
Dbcm97346dbsmb.dts118 &mspi {
Dbcm97358svmb.dts110 &mspi {
Dbcm97360svmb.dts113 &mspi {
Dbcm7346.dtsi491 mspi: spi@408a00 { label
495 "brcm,spi-brcmstb-mspi";
498 reg-names = "mspi";
Dbcm97435svmb.dts124 &mspi {
Dbcm97425svmb.dts148 &mspi {
Dbcm7425.dtsi502 mspi: spi@409200 { label
506 "brcm,spi-brcmstb-mspi";
509 reg-names = "mspi";
Dbcm7435.dtsi518 mspi: spi@409200 { label
522 "brcm,spi-brcmstb-mspi";
525 reg-names = "mspi";
/Linux-v6.6/arch/arm/boot/dts/broadcom/
Dbcm5301x.dtsi139 reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg";

12