Searched refs:ssp_regs (Results 1 – 6 of 6) sorted by relevance
92 struct mxs_ssp_regs *ssp_regs = mxs_slave->regs; in spi_claim_bus() local95 mxs_reset_block(&ssp_regs->hw_ssp_ctrl0_reg); in spi_claim_bus()99 &ssp_regs->hw_ssp_ctrl0); in spi_claim_bus()104 writel(reg, &ssp_regs->hw_ssp_ctrl1); in spi_claim_bus()106 writel(0, &ssp_regs->hw_ssp_cmd0); in spi_claim_bus()117 static void mxs_spi_start_xfer(struct mxs_ssp_regs *ssp_regs) in mxs_spi_start_xfer() argument119 writel(SSP_CTRL0_LOCK_CS, &ssp_regs->hw_ssp_ctrl0_set); in mxs_spi_start_xfer()120 writel(SSP_CTRL0_IGNORE_CRC, &ssp_regs->hw_ssp_ctrl0_clr); in mxs_spi_start_xfer()123 static void mxs_spi_end_xfer(struct mxs_ssp_regs *ssp_regs) in mxs_spi_end_xfer() argument125 writel(SSP_CTRL0_LOCK_CS, &ssp_regs->hw_ssp_ctrl0_clr); in mxs_spi_end_xfer()[all …]
17 struct ssp_regs { struct41 struct ssp_regs *regs; argument88 lslave->regs = (struct ssp_regs *)SSP0_BASE; in spi_setup_slave()
45 struct mxs_ssp_regs *ssp_regs = priv->regs; in mxsmmc_cd() local50 return !(readl(&ssp_regs->hw_ssp_status) & SSP_STATUS_CARD_DETECT); in mxsmmc_cd()55 struct mxs_ssp_regs *ssp_regs = priv->regs; in mxsmmc_send_cmd_pio() local64 reg = readl(&ssp_regs->hw_ssp_status); in mxsmmc_send_cmd_pio()66 *data_ptr++ = readl(&ssp_regs->hw_ssp_data); in mxsmmc_send_cmd_pio()76 reg = readl(&ssp_regs->hw_ssp_status); in mxsmmc_send_cmd_pio()78 writel(*data_ptr++, &ssp_regs->hw_ssp_data); in mxsmmc_send_cmd_pio()138 struct mxs_ssp_regs *ssp_regs = priv->regs; in mxsmmc_send_cmd() local150 reg = readl(&ssp_regs->hw_ssp_status); in mxsmmc_send_cmd()181 writel(SSP_CTRL1_DMA_ENABLE, &ssp_regs->hw_ssp_ctrl1_clr); in mxsmmc_send_cmd()[all …]
77 struct ssp_regs *ssp = (struct ssp_regs *)CONFIG_SSP2_BASE; in fpga_done_fn()133 struct ssp_regs *ssp = (struct ssp_regs *)CONFIG_SSP2_BASE; in fpga_wr_fn()230 struct ssp_regs *ssp = (struct ssp_regs *)CONFIG_SSP2_BASE; in x600_init_fpga()
274 struct mxs_ssp_regs *ssp_regs; in mxs_set_ssp_busclock() local280 ssp_regs = mxs_ssp_regs_by_bus(bus); in mxs_set_ssp_busclock()305 writel(reg, &ssp_regs->hw_ssp_timing); in mxs_set_ssp_busclock()
9 struct ssp_regs { struct