Searched refs:tmio (Results 1 - 24 of 24) sorted by relevance

/linux-4.4.14/drivers/mtd/nand/
H A Dtmio_nand.c30 #include <linux/mfd/tmio.h>
130 struct tmio_nand *tmio = mtd_to_tmio(mtd); tmio_nand_hwcontrol() local
152 tmio_iowrite8(mode, tmio->fcr + FCR_MODE); tmio_nand_hwcontrol()
153 tmio->read_good = 0; tmio_nand_hwcontrol()
162 struct tmio_nand *tmio = mtd_to_tmio(mtd); tmio_nand_dev_ready() local
164 return !(tmio_ioread8(tmio->fcr + FCR_STATUS) & FCR_STATUS_BUSY); tmio_nand_dev_ready()
169 struct tmio_nand *tmio = __tmio; tmio_irq() local
170 struct nand_chip *nand_chip = &tmio->chip; tmio_irq()
173 tmio_iowrite8(0x00, tmio->fcr + FCR_IMR); tmio_irq()
176 dev_warn(&tmio->dev->dev, "spurious interrupt\n"); tmio_irq()
191 struct tmio_nand *tmio = mtd_to_tmio(mtd); tmio_nand_wait() local
195 tmio_iowrite8(0x0f, tmio->fcr + FCR_ISR); tmio_nand_wait()
196 tmio_iowrite8(0x81, tmio->fcr + FCR_IMR); tmio_nand_wait()
203 tmio_iowrite8(0x00, tmio->fcr + FCR_IMR); tmio_nand_wait()
204 dev_warn(&tmio->dev->dev, "still busy with %s after %d ms\n", tmio_nand_wait()
209 tmio_iowrite8(0x00, tmio->fcr + FCR_IMR); tmio_nand_wait()
210 dev_warn(&tmio->dev->dev, "timeout waiting for interrupt\n"); tmio_nand_wait()
223 *tmio->read_good.
227 struct tmio_nand *tmio = mtd_to_tmio(mtd); tmio_nand_read_byte() local
230 if (tmio->read_good--) tmio_nand_read_byte()
231 return tmio->read; tmio_nand_read_byte()
233 data = tmio_ioread16(tmio->fcr + FCR_DATA); tmio_nand_read_byte()
234 tmio->read = data >> 8; tmio_nand_read_byte()
247 struct tmio_nand *tmio = mtd_to_tmio(mtd); tmio_nand_write_buf() local
249 tmio_iowrite16_rep(tmio->fcr + FCR_DATA, buf, len >> 1); tmio_nand_write_buf()
254 struct tmio_nand *tmio = mtd_to_tmio(mtd); tmio_nand_read_buf() local
256 tmio_ioread16_rep(tmio->fcr + FCR_DATA, buf, len >> 1); tmio_nand_read_buf()
261 struct tmio_nand *tmio = mtd_to_tmio(mtd); tmio_nand_enable_hwecc() local
263 tmio_iowrite8(FCR_MODE_HWECC_RESET, tmio->fcr + FCR_MODE); tmio_nand_enable_hwecc()
264 tmio_ioread8(tmio->fcr + FCR_DATA); /* dummy read */ tmio_nand_enable_hwecc()
265 tmio_iowrite8(FCR_MODE_HWECC_CALC, tmio->fcr + FCR_MODE); tmio_nand_enable_hwecc()
271 struct tmio_nand *tmio = mtd_to_tmio(mtd); tmio_nand_calculate_ecc() local
274 tmio_iowrite8(FCR_MODE_HWECC_RESULT, tmio->fcr + FCR_MODE); tmio_nand_calculate_ecc()
276 ecc = tmio_ioread16(tmio->fcr + FCR_DATA); tmio_nand_calculate_ecc()
279 ecc = tmio_ioread16(tmio->fcr + FCR_DATA); tmio_nand_calculate_ecc()
282 ecc = tmio_ioread16(tmio->fcr + FCR_DATA); tmio_nand_calculate_ecc()
286 tmio_iowrite8(FCR_MODE_DATA, tmio->fcr + FCR_MODE); tmio_nand_calculate_ecc()
305 static int tmio_hw_init(struct platform_device *dev, struct tmio_nand *tmio) tmio_hw_init() argument
317 tmio_iowrite8(0x81, tmio->ccr + CCR_ICC); tmio_hw_init()
320 tmio_iowrite16(tmio->fcr_base, tmio->ccr + CCR_BASE); tmio_hw_init()
321 tmio_iowrite16(tmio->fcr_base >> 16, tmio->ccr + CCR_BASE + 2); tmio_hw_init()
324 tmio_iowrite8(0x02, tmio->ccr + CCR_COMMAND); tmio_hw_init()
328 tmio_iowrite8(0x02, tmio->ccr + CCR_NFPSC); tmio_hw_init()
331 tmio_iowrite8(0x02, tmio->ccr + CCR_NFDC); tmio_hw_init()
334 tmio_iowrite8(0x0f, tmio->fcr + FCR_ISR); tmio_hw_init()
337 tmio_iowrite8(FCR_MODE_POWER_ON, tmio->fcr + FCR_MODE); tmio_hw_init()
338 tmio_iowrite8(FCR_MODE_COMMAND, tmio->fcr + FCR_MODE); tmio_hw_init()
339 tmio_iowrite8(NAND_CMD_RESET, tmio->fcr + FCR_DATA); tmio_hw_init()
342 tmio_iowrite8(FCR_MODE_STANDBY, tmio->fcr + FCR_MODE); tmio_hw_init()
349 static void tmio_hw_stop(struct platform_device *dev, struct tmio_nand *tmio) tmio_hw_stop() argument
353 tmio_iowrite8(FCR_MODE_POWER_OFF, tmio->fcr + FCR_MODE); tmio_hw_stop()
366 struct tmio_nand *tmio; tmio_probe() local
374 tmio = devm_kzalloc(&dev->dev, sizeof(*tmio), GFP_KERNEL); tmio_probe()
375 if (!tmio) tmio_probe()
378 tmio->dev = dev; tmio_probe()
380 platform_set_drvdata(dev, tmio); tmio_probe()
381 mtd = &tmio->mtd; tmio_probe()
382 nand_chip = &tmio->chip; tmio_probe()
384 mtd->name = "tmio-nand"; tmio_probe()
387 tmio->ccr = devm_ioremap(&dev->dev, ccr->start, resource_size(ccr)); tmio_probe()
388 if (!tmio->ccr) tmio_probe()
391 tmio->fcr_base = fcr->start & 0xfffff; tmio_probe()
392 tmio->fcr = devm_ioremap(&dev->dev, fcr->start, resource_size(fcr)); tmio_probe()
393 if (!tmio->fcr) tmio_probe()
396 retval = tmio_hw_init(dev, tmio); tmio_probe()
401 nand_chip->IO_ADDR_R = tmio->fcr; tmio_probe()
402 nand_chip->IO_ADDR_W = tmio->fcr; tmio_probe()
427 dev_name(&dev->dev), tmio); tmio_probe()
433 tmio->irq = irq; tmio_probe()
451 tmio_hw_stop(dev, tmio); tmio_probe()
457 struct tmio_nand *tmio = platform_get_drvdata(dev); tmio_remove() local
459 nand_release(&tmio->mtd); tmio_remove()
460 tmio_hw_stop(dev, tmio); tmio_remove()
496 .driver.name = "tmio-nand",
509 MODULE_ALIAS("platform:tmio-nand");
/linux-4.4.14/drivers/usb/host/
H A Dohci-tmio.c34 #include <linux/mfd/tmio.h>
79 struct tmio_hcd *tmio = hcd_to_tmio(hcd); tmio_write_pm() local
83 spin_lock_irqsave(&tmio->lock, flags); tmio_write_pm()
88 tmio_iowrite16(pm, tmio->ccr + CCR_PM); tmio_write_pm()
89 spin_unlock_irqrestore(&tmio->lock, flags); tmio_write_pm()
96 struct tmio_hcd *tmio = hcd_to_tmio(hcd); tmio_stop_hc() local
110 tmio_iowrite8(0, tmio->ccr + CCR_INTC); tmio_stop_hc()
111 tmio_iowrite8(0, tmio->ccr + CCR_ILME); tmio_stop_hc()
112 tmio_iowrite16(0, tmio->ccr + CCR_BASE); tmio_stop_hc()
113 tmio_iowrite16(0, tmio->ccr + CCR_BASE + 2); tmio_stop_hc()
114 tmio_iowrite16(pm, tmio->ccr + CCR_PM); tmio_stop_hc()
120 struct tmio_hcd *tmio = hcd_to_tmio(hcd); tmio_start_hc() local
124 tmio_iowrite16(base, tmio->ccr + CCR_BASE); tmio_start_hc()
125 tmio_iowrite16(base >> 16, tmio->ccr + CCR_BASE + 2); tmio_start_hc()
126 tmio_iowrite8(1, tmio->ccr + CCR_ILME); tmio_start_hc()
127 tmio_iowrite8(2, tmio->ccr + CCR_INTC); tmio_start_hc()
130 tmio_ioread8(tmio->ccr + CCR_REVID), tmio_start_hc()
194 struct tmio_hcd *tmio; ohci_hcd_tmio_drv_probe() local
214 tmio = hcd_to_tmio(hcd); ohci_hcd_tmio_drv_probe()
216 spin_lock_init(&tmio->lock); ohci_hcd_tmio_drv_probe()
218 tmio->ccr = ioremap(config->start, resource_size(config)); ohci_hcd_tmio_drv_probe()
219 if (!tmio->ccr) { ohci_hcd_tmio_drv_probe()
267 iounmap(tmio->ccr); ohci_hcd_tmio_drv_probe()
278 struct tmio_hcd *tmio = hcd_to_tmio(hcd); ohci_hcd_tmio_drv_remove() local
287 iounmap(tmio->ccr); ohci_hcd_tmio_drv_remove()
299 struct tmio_hcd *tmio = hcd_to_tmio(hcd); ohci_hcd_tmio_drv_suspend() local
308 spin_lock_irqsave(&tmio->lock, flags); ohci_hcd_tmio_drv_suspend()
310 misc = tmio_ioread8(tmio->ccr + CCR_MISC); ohci_hcd_tmio_drv_suspend()
312 tmio_iowrite8(misc, tmio->ccr + CCR_MISC); ohci_hcd_tmio_drv_suspend()
314 spin_unlock_irqrestore(&tmio->lock, flags); ohci_hcd_tmio_drv_suspend()
329 struct tmio_hcd *tmio = hcd_to_tmio(hcd); ohci_hcd_tmio_drv_resume() local
346 spin_lock_irqsave(&tmio->lock, flags); ohci_hcd_tmio_drv_resume()
348 misc = tmio_ioread8(tmio->ccr + CCR_MISC); ohci_hcd_tmio_drv_resume()
350 tmio_iowrite8(misc, tmio->ccr + CCR_MISC); ohci_hcd_tmio_drv_resume()
352 spin_unlock_irqrestore(&tmio->lock, flags); ohci_hcd_tmio_drv_resume()
370 .name = "tmio-ohci",
H A Dohci-hcd.c1244 #include "ohci-tmio.c"
/linux-4.4.14/include/linux/mfd/
H A Dt7l66xb.h15 #include <linux/mfd/tmio.h>
H A Dtmio.h57 /* tmio MMC platform flags */
/linux-4.4.14/drivers/mmc/host/
H A Dtmio_mmc.c18 #include <linux/mfd/tmio.h>
154 .name = "tmio-mmc",
166 MODULE_ALIAS("platform:tmio-mmc");
H A Dtmio_mmc_dma.c16 #include <linux/mfd/tmio.h>
18 #include <linux/mmc/tmio.h>
H A Dsh_mobile_sdhi.c30 #include <linux/mfd/tmio.h>
H A Dtmio_mmc.h21 #include <linux/mmc/tmio.h>
H A Dtmio_mmc_pio.c36 #include <linux/mfd/tmio.h>
40 #include <linux/mmc/tmio.h>
308 /* These are the bitmasks the tmio chip requires to implement the MMC response
1150 * While using internal tmio hardware logic for card detection, we need tmio_mmc_host_probe()
/linux-4.4.14/drivers/mfd/
H A Dtmio_core.c10 #include <linux/mfd/tmio.h>
H A Dtc6387xb.c18 #include <linux/mfd/tmio.h>
131 .name = "tmio-mmc",
H A Dt7l66xb.c34 #include <linux/mfd/tmio.h>
170 .name = "tmio-mmc",
179 .name = "tmio-nand",
H A Dtc6393xb.c25 #include <linux/mfd/tmio.h>
398 .name = "tmio-nand",
404 .name = "tmio-mmc",
413 .name = "tmio-ohci",
422 .name = "tmio-fb",
H A Dasic3.c32 #include <linux/mfd/tmio.h>
801 .name = "tmio-mmc",
/linux-4.4.14/include/linux/mmc/
H A Dtmio.h2 * include/linux/mmc/tmio.h
/linux-4.4.14/arch/sh/boards/
H A Dboard-sh7757lcr.c20 #include <linux/mfd/tmio.h>
/linux-4.4.14/drivers/video/fbdev/
H A Dtmiofb.c31 #include <linux/mfd/tmio.h>
722 strcpy(info->fix.id, "tmio-fb"); tmiofb_probe()
998 .driver.name = "tmio-fb",
/linux-4.4.14/arch/sh/boards/mach-ap325rxa/
H A Dsetup.c21 #include <linux/mfd/tmio.h>
/linux-4.4.14/arch/sh/boards/mach-kfr2r09/
H A Dsetup.c15 #include <linux/mfd/tmio.h>
/linux-4.4.14/arch/sh/boards/mach-migor/
H A Dsetup.c18 #include <linux/mfd/tmio.h>
/linux-4.4.14/arch/arm/mach-pxa/
H A Dtosa.c26 #include <linux/mfd/tmio.h>
/linux-4.4.14/arch/sh/boards/mach-se/7724/
H A Dsetup.c19 #include <linux/mfd/tmio.h>
/linux-4.4.14/arch/sh/boards/mach-ecovec24/
H A Dsetup.c18 #include <linux/mfd/tmio.h>

Completed in 419 milliseconds