spi100k 84 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(master); spi100k 87 drivers/spi/spi-omap-100k.c val = readw(spi100k->base + SPI_SETUP1); spi100k 89 drivers/spi/spi-omap-100k.c writew(val, spi100k->base + SPI_SETUP1); spi100k 95 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(master); spi100k 98 drivers/spi/spi-omap-100k.c val = readw(spi100k->base + SPI_SETUP1); spi100k 100 drivers/spi/spi-omap-100k.c writew(val, spi100k->base + SPI_SETUP1); spi100k 105 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(master); spi100k 114 drivers/spi/spi-omap-100k.c writew(data , spi100k->base + SPI_TX_MSB); spi100k 119 drivers/spi/spi-omap-100k.c spi100k->base + SPI_CTRL); spi100k 122 drivers/spi/spi-omap-100k.c while ((readw(spi100k->base + SPI_STATUS) & SPI_STATUS_WE) != SPI_STATUS_WE) spi100k 132 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(master); spi100k 142 drivers/spi/spi-omap-100k.c spi100k->base + SPI_CTRL); spi100k 144 drivers/spi/spi-omap-100k.c while ((readw(spi100k->base + SPI_STATUS) & SPI_STATUS_RD) != SPI_STATUS_RD) spi100k 148 drivers/spi/spi-omap-100k.c dataL = readw(spi100k->base + SPI_RX_LSB); spi100k 149 drivers/spi/spi-omap-100k.c dataH = readw(spi100k->base + SPI_RX_MSB); spi100k 158 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(master); spi100k 162 drivers/spi/spi-omap-100k.c SPI_SETUP1_CLOCK_DIVISOR(0), spi100k->base + SPI_SETUP1); spi100k 167 drivers/spi/spi-omap-100k.c SPI_SETUP2_LEVEL_TRIGGER, spi100k->base + SPI_SETUP2); spi100k 170 drivers/spi/spi-omap-100k.c static void omap1_spi100k_force_cs(struct omap1_spi100k *spi100k, int enable) spi100k 173 drivers/spi/spi-omap-100k.c writew(0x05fc, spi100k->base + SPI_CTRL); spi100k 175 drivers/spi/spi-omap-100k.c writew(0x05fd, spi100k->base + SPI_CTRL); spi100k 236 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(spi->master); spi100k 250 drivers/spi/spi-omap-100k.c writew(0x3e , spi100k->base + SPI_SETUP1); spi100k 251 drivers/spi/spi-omap-100k.c writew(0x00 , spi100k->base + SPI_STATUS); spi100k 252 drivers/spi/spi-omap-100k.c writew(0x3e , spi100k->base + SPI_CTRL); spi100k 263 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k; spi100k 266 drivers/spi/spi-omap-100k.c spi100k = spi_master_get_devdata(spi->master); spi100k 272 drivers/spi/spi-omap-100k.c cs->base = spi100k->base + spi->chip_select * 0x14; spi100k 278 drivers/spi/spi-omap-100k.c clk_prepare_enable(spi100k->ick); spi100k 279 drivers/spi/spi-omap-100k.c clk_prepare_enable(spi100k->fck); spi100k 283 drivers/spi/spi-omap-100k.c clk_disable_unprepare(spi100k->ick); spi100k 284 drivers/spi/spi-omap-100k.c clk_disable_unprepare(spi100k->fck); spi100k 292 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(master); spi100k 308 drivers/spi/spi-omap-100k.c omap1_spi100k_force_cs(spi100k, 1); spi100k 330 drivers/spi/spi-omap-100k.c omap1_spi100k_force_cs(spi100k, 0); spi100k 338 drivers/spi/spi-omap-100k.c omap1_spi100k_force_cs(spi100k, 0); spi100k 350 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k; spi100k 356 drivers/spi/spi-omap-100k.c master = spi_alloc_master(&pdev->dev, sizeof(*spi100k)); spi100k 374 drivers/spi/spi-omap-100k.c spi100k = spi_master_get_devdata(master); spi100k 381 drivers/spi/spi-omap-100k.c spi100k->base = (void __iomem *)dev_get_platdata(&pdev->dev); spi100k 383 drivers/spi/spi-omap-100k.c spi100k->ick = devm_clk_get(&pdev->dev, "ick"); spi100k 384 drivers/spi/spi-omap-100k.c if (IS_ERR(spi100k->ick)) { spi100k 386 drivers/spi/spi-omap-100k.c status = PTR_ERR(spi100k->ick); spi100k 390 drivers/spi/spi-omap-100k.c spi100k->fck = devm_clk_get(&pdev->dev, "fck"); spi100k 391 drivers/spi/spi-omap-100k.c if (IS_ERR(spi100k->fck)) { spi100k 393 drivers/spi/spi-omap-100k.c status = PTR_ERR(spi100k->fck); spi100k 397 drivers/spi/spi-omap-100k.c status = clk_prepare_enable(spi100k->ick); spi100k 403 drivers/spi/spi-omap-100k.c status = clk_prepare_enable(spi100k->fck); spi100k 419 drivers/spi/spi-omap-100k.c clk_disable_unprepare(spi100k->fck); spi100k 421 drivers/spi/spi-omap-100k.c clk_disable_unprepare(spi100k->ick); spi100k 430 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(master); spi100k 434 drivers/spi/spi-omap-100k.c clk_disable_unprepare(spi100k->fck); spi100k 435 drivers/spi/spi-omap-100k.c clk_disable_unprepare(spi100k->ick); spi100k 444 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(master); spi100k 446 drivers/spi/spi-omap-100k.c clk_disable_unprepare(spi100k->ick); spi100k 447 drivers/spi/spi-omap-100k.c clk_disable_unprepare(spi100k->fck); spi100k 455 drivers/spi/spi-omap-100k.c struct omap1_spi100k *spi100k = spi_master_get_devdata(master); spi100k 458 drivers/spi/spi-omap-100k.c ret = clk_prepare_enable(spi100k->ick); spi100k 464 drivers/spi/spi-omap-100k.c ret = clk_prepare_enable(spi100k->fck); spi100k 467 drivers/spi/spi-omap-100k.c clk_disable_unprepare(spi100k->ick);