Lines Matching refs:ctar
244 bus_setup = readl(&dspi->ctar[dev_seq(bus)]); in coldfire_spi_set_speed()
298 writel(bus_setup, &dspi->ctar[dev_seq(bus)]); in coldfire_spi_set_speed()
322 readl(&dspi->ctar[dev_seq(bus)]) & MCF_FRM_SZ_16BIT; in coldfire_spi_set_mode()
333 (readl(&dspi->ctar[dev_seq(bus)]) & MCF_CTAR_MODE_MASK); in coldfire_spi_set_mode()
337 ((readl(&dspi->ctar[dev_seq(bus)]) & MCF_FRM_SZ_16BIT) == in coldfire_spi_set_mode()
340 setbits_be32(&dspi->ctar[dev_seq(bus)], bus_setup); in coldfire_spi_set_mode()
358 unsigned int ctar = 0; in coldfire_spi_probe() local
360 if (plat->ctar[i][0] == 0) in coldfire_spi_probe()
363 ctar = DSPI_CTAR_TRSZ(plat->ctar[i][0]) | in coldfire_spi_probe()
364 DSPI_CTAR_PCSSCK(plat->ctar[i][1]) | in coldfire_spi_probe()
365 DSPI_CTAR_PASC(plat->ctar[i][2]) | in coldfire_spi_probe()
366 DSPI_CTAR_PDT(plat->ctar[i][3]) | in coldfire_spi_probe()
367 DSPI_CTAR_CSSCK(plat->ctar[i][4]) | in coldfire_spi_probe()
368 DSPI_CTAR_ASC(plat->ctar[i][5]) | in coldfire_spi_probe()
369 DSPI_CTAR_DT(plat->ctar[i][6]) | in coldfire_spi_probe()
370 DSPI_CTAR_BR(plat->ctar[i][7]); in coldfire_spi_probe()
372 writel(ctar, &cfspi->regs->ctar[i]); in coldfire_spi_probe()
377 writel(MCF_DSPI_DEFAULT_CTAR, &dspi->ctar[i]); in coldfire_spi_probe()
394 int *ctar, len; in coldfire_dspi_of_to_plat() local
411 memset(plat->ctar, 0, sizeof(plat->ctar)); in coldfire_dspi_of_to_plat()
413 ctar = (int *)fdt_getprop(blob, node, "ctar-params", &len); in coldfire_dspi_of_to_plat()
415 if (ctar && len) { in coldfire_dspi_of_to_plat()
425 plat->ctar[i][q] = *ctar++; in coldfire_dspi_of_to_plat()