Lines Matching defs:uwire
6 * Ported to 2.6 OMAP uwire interface.
319 struct uwire_spi *uwire;
329 uwire = spi_master_get_devdata(spi->master);
370 rate = clk_get_rate(uwire->ck);
411 * global parameter and another uwire device can change it under
439 pr_debug("%s: uwire flags %02x, armxor %lu KHz, SCK %lu KHz\n",
441 clk_get_rate(uwire->ck) / 1000,
467 static void uwire_off(struct uwire_spi *uwire)
470 clk_disable(uwire->ck);
471 clk_put(uwire->ck);
472 spi_master_put(uwire->bitbang.master);
478 struct uwire_spi *uwire;
481 master = spi_alloc_master(&pdev->dev, sizeof *uwire);
485 uwire = spi_master_get_devdata(master);
494 dev_set_drvdata(&pdev->dev, uwire);
496 uwire->ck = clk_get(&pdev->dev, "fck");
497 if (IS_ERR(uwire->ck)) {
498 status = PTR_ERR(uwire->ck);
503 clk_enable(uwire->ck);
522 uwire->bitbang.master = master;
523 uwire->bitbang.chipselect = uwire_chipselect;
524 uwire->bitbang.setup_transfer = uwire_setup_transfer;
525 uwire->bitbang.txrx_bufs = uwire_txrx;
527 status = spi_bitbang_start(&uwire->bitbang);
529 uwire_off(uwire);
537 struct uwire_spi *uwire = dev_get_drvdata(&pdev->dev);
541 status = spi_bitbang_stop(&uwire->bitbang);
542 uwire_off(uwire);