• Home
  • Raw
  • Download

Lines Matching refs:ioaddr

160 	void __iomem		*ioaddr;  member
185 dev_dbg(dev, "SDCMD 0x%08x\n", readl(host->ioaddr + SDCMD)); in bcm2835_dumpregs()
186 dev_dbg(dev, "SDARG 0x%08x\n", readl(host->ioaddr + SDARG)); in bcm2835_dumpregs()
187 dev_dbg(dev, "SDTOUT 0x%08x\n", readl(host->ioaddr + SDTOUT)); in bcm2835_dumpregs()
188 dev_dbg(dev, "SDCDIV 0x%08x\n", readl(host->ioaddr + SDCDIV)); in bcm2835_dumpregs()
189 dev_dbg(dev, "SDRSP0 0x%08x\n", readl(host->ioaddr + SDRSP0)); in bcm2835_dumpregs()
190 dev_dbg(dev, "SDRSP1 0x%08x\n", readl(host->ioaddr + SDRSP1)); in bcm2835_dumpregs()
191 dev_dbg(dev, "SDRSP2 0x%08x\n", readl(host->ioaddr + SDRSP2)); in bcm2835_dumpregs()
192 dev_dbg(dev, "SDRSP3 0x%08x\n", readl(host->ioaddr + SDRSP3)); in bcm2835_dumpregs()
193 dev_dbg(dev, "SDHSTS 0x%08x\n", readl(host->ioaddr + SDHSTS)); in bcm2835_dumpregs()
194 dev_dbg(dev, "SDVDD 0x%08x\n", readl(host->ioaddr + SDVDD)); in bcm2835_dumpregs()
195 dev_dbg(dev, "SDEDM 0x%08x\n", readl(host->ioaddr + SDEDM)); in bcm2835_dumpregs()
196 dev_dbg(dev, "SDHCFG 0x%08x\n", readl(host->ioaddr + SDHCFG)); in bcm2835_dumpregs()
197 dev_dbg(dev, "SDHBCT 0x%08x\n", readl(host->ioaddr + SDHBCT)); in bcm2835_dumpregs()
198 dev_dbg(dev, "SDHBLC 0x%08x\n", readl(host->ioaddr + SDHBLC)); in bcm2835_dumpregs()
206 writel(SDVDD_POWER_OFF, host->ioaddr + SDVDD); in bcm2835_reset_internal()
207 writel(0, host->ioaddr + SDCMD); in bcm2835_reset_internal()
208 writel(0, host->ioaddr + SDARG); in bcm2835_reset_internal()
210 writel(0xf00000, host->ioaddr + SDTOUT); in bcm2835_reset_internal()
211 writel(0, host->ioaddr + SDCDIV); in bcm2835_reset_internal()
213 writel(SDHSTS_CLEAR_MASK, host->ioaddr + SDHSTS); in bcm2835_reset_internal()
214 writel(0, host->ioaddr + SDHCFG); in bcm2835_reset_internal()
215 writel(0, host->ioaddr + SDHBCT); in bcm2835_reset_internal()
216 writel(0, host->ioaddr + SDHBLC); in bcm2835_reset_internal()
219 temp = readl(host->ioaddr + SDEDM); in bcm2835_reset_internal()
224 writel(temp, host->ioaddr + SDEDM); in bcm2835_reset_internal()
227 writel(SDVDD_POWER_ON, host->ioaddr + SDVDD); in bcm2835_reset_internal()
231 writel(host->hcfg, host->ioaddr + SDHCFG); in bcm2835_reset_internal()
232 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_reset_internal()
242 edm = readl(host->ioaddr + SDEDM); in bcm2835_wait_transfer_complete()
253 host->ioaddr + SDEDM); in bcm2835_wait_transfer_complete()
299 edm = readl(host->ioaddr + SDEDM); in bcm2835_transfer_block_pio()
319 hsts = readl(host->ioaddr + SDHSTS); in bcm2835_transfer_block_pio()
335 *(buf++) = readl(host->ioaddr + SDDATA); in bcm2835_transfer_block_pio()
337 writel(*(buf++), host->ioaddr + SDDATA); in bcm2835_transfer_block_pio()
356 sdhsts = readl(host->ioaddr + SDHSTS); in bcm2835_transfer_pio()
385 writel(data->blocksize, host->ioaddr + SDHBCT); in bcm2835_prepare_data()
386 writel(data->blocks, host->ioaddr + SDHBLC); in bcm2835_prepare_data()
395 ret = readl_poll_timeout(host->ioaddr + SDCMD, value, in bcm2835_read_wait_sdcmd()
425 sdhsts = readl(host->ioaddr + SDHSTS); in bcm2835_send_command()
427 writel(sdhsts, host->ioaddr + SDHSTS); in bcm2835_send_command()
431 writel(cmd->cmdarg, host->ioaddr + SDARG); in bcm2835_send_command()
454 writel(sdcmd | SDCMD_NEW_FLAG, host->ioaddr + SDCMD); in bcm2835_send_command()
473 u32 sdhsts = readl(host->ioaddr + SDHSTS); in bcm2835_finish_command()
476 writel(SDHSTS_ERROR_MASK, host->ioaddr + SDHSTS); in bcm2835_finish_command()
499 readl(host->ioaddr + SDRSP0 + i * 4); in bcm2835_finish_command()
502 cmd->response[0] = readl(host->ioaddr + SDRSP0); in bcm2835_finish_command()
554 u32 intmask = readl(host->ioaddr + SDHSTS); in bcm2835_transmit()
568 writel(SDHSTS_BUSY_IRPT, host->ioaddr + SDHSTS); in bcm2835_transmit()
622 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock()
645 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock()
648 writel(host->mmc->clock / 2, host->ioaddr + SDTOUT); in bcm2835_set_clock()
670 edm = readl(host->ioaddr + SDEDM); in bcm2835_send_cmd()
677 readl(host->ioaddr + SDCMD) & SDCMD_CMD_MASK, edm); in bcm2835_send_cmd()
722 writel(host->hcfg, host->ioaddr + SDHCFG); in bcm2835_set_ios()
767 host->ioaddr = devm_ioremap(dev, host->phys_addr, SZ_256); in bcm2835_probe()
768 if (!host->ioaddr) in bcm2835_probe()