Lines Matching refs:ssp_regs

45 	struct mxs_ssp_regs *ssp_regs = priv->regs;  in mxsmmc_cd()  local
50 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() local
64 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() local
150 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()
183 writel(SSP_CTRL1_DMA_ENABLE, &ssp_regs->hw_ssp_ctrl1_set); in mxsmmc_send_cmd()
186 reg = readl(&ssp_regs->hw_ssp_cmd0); in mxsmmc_send_cmd()
191 writel(reg, &ssp_regs->hw_ssp_cmd0); in mxsmmc_send_cmd()
194 writel(cmd->cmdarg, &ssp_regs->hw_ssp_cmd1); in mxsmmc_send_cmd()
214 clrsetbits_le32(&ssp_regs->hw_ssp_cmd0, in mxsmmc_send_cmd()
220 writel(reg, &ssp_regs->hw_ssp_xfer_size); in mxsmmc_send_cmd()
226 writel(reg, &ssp_regs->hw_ssp_block_size); in mxsmmc_send_cmd()
232 writel(ctrl0, &ssp_regs->hw_ssp_ctrl0); in mxsmmc_send_cmd()
238 reg = readl(&ssp_regs->hw_ssp_status); in mxsmmc_send_cmd()
265 cmd->response[3] = readl(&ssp_regs->hw_ssp_sdresp0); in mxsmmc_send_cmd()
266 cmd->response[2] = readl(&ssp_regs->hw_ssp_sdresp1); in mxsmmc_send_cmd()
267 cmd->response[1] = readl(&ssp_regs->hw_ssp_sdresp2); in mxsmmc_send_cmd()
268 cmd->response[0] = readl(&ssp_regs->hw_ssp_sdresp3); in mxsmmc_send_cmd()
270 cmd->response[0] = readl(&ssp_regs->hw_ssp_sdresp0); in mxsmmc_send_cmd()
294 reg = readl(&ssp_regs->hw_ssp_status); in mxsmmc_send_cmd()
309 struct mxs_ssp_regs *ssp_regs = priv->regs; in mxsmmc_set_ios() local
328 clrsetbits_le32(&ssp_regs->hw_ssp_ctrl0, in mxsmmc_set_ios()
340 struct mxs_ssp_regs *ssp_regs = priv->regs; in mxsmmc_init() local
343 mxs_reset_block(&ssp_regs->hw_ssp_ctrl0_reg); in mxsmmc_init()
355 &ssp_regs->hw_ssp_ctrl1_set); in mxsmmc_init()
361 writel(SSP_CMD0_CONT_CLKING_EN, &ssp_regs->hw_ssp_cmd0_set); in mxsmmc_init()
363 writel(SSP_CMD0_CONT_CLKING_EN, &ssp_regs->hw_ssp_cmd0_clr); in mxsmmc_init()