Lines Matching full:glue
3 * Texas Instruments DA8xx/OMAP-L1x "glue layer"
7 * Based on the DaVinci "glue layer" code.
335 struct da8xx_glue *glue = dev_get_drvdata(musb->controller->parent); in da8xx_musb_set_mode() local
352 return phy_set_mode(glue->phy, phy_mode); in da8xx_musb_set_mode()
357 struct da8xx_glue *glue = dev_get_drvdata(musb->controller->parent); in da8xx_musb_init() local
364 ret = clk_prepare_enable(glue->clk); in da8xx_musb_init()
366 dev_err(glue->dev, "failed to enable clock\n"); in da8xx_musb_init()
389 ret = phy_init(glue->phy); in da8xx_musb_init()
391 dev_err(glue->dev, "Failed to init phy.\n"); in da8xx_musb_init()
395 ret = phy_power_on(glue->phy); in da8xx_musb_init()
397 dev_err(glue->dev, "Failed to power on phy.\n"); in da8xx_musb_init()
411 phy_exit(glue->phy); in da8xx_musb_init()
413 clk_disable_unprepare(glue->clk); in da8xx_musb_init()
419 struct da8xx_glue *glue = dev_get_drvdata(musb->controller->parent); in da8xx_musb_exit() local
423 phy_power_off(glue->phy); in da8xx_musb_exit()
424 phy_exit(glue->phy); in da8xx_musb_exit()
425 clk_disable_unprepare(glue->clk); in da8xx_musb_exit()
516 struct da8xx_glue *glue; in da8xx_probe() local
522 glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL); in da8xx_probe()
523 if (!glue) in da8xx_probe()
532 glue->phy = devm_phy_get(&pdev->dev, "usb-phy"); in da8xx_probe()
533 if (IS_ERR(glue->phy)) in da8xx_probe()
534 return dev_err_probe(&pdev->dev, PTR_ERR(glue->phy), in da8xx_probe()
537 glue->dev = &pdev->dev; in da8xx_probe()
538 glue->clk = clk; in da8xx_probe()
552 glue->usb_phy = usb_phy_generic_register(); in da8xx_probe()
553 ret = PTR_ERR_OR_ZERO(glue->usb_phy); in da8xx_probe()
558 platform_set_drvdata(pdev, glue); in da8xx_probe()
574 glue->musb = platform_device_register_full(&pinfo); in da8xx_probe()
575 ret = PTR_ERR_OR_ZERO(glue->musb); in da8xx_probe()
584 usb_phy_generic_unregister(glue->usb_phy); in da8xx_probe()
590 struct da8xx_glue *glue = platform_get_drvdata(pdev); in da8xx_remove() local
592 platform_device_unregister(glue->musb); in da8xx_remove()
593 usb_phy_generic_unregister(glue->usb_phy); in da8xx_remove()
600 struct da8xx_glue *glue = dev_get_drvdata(dev); in da8xx_suspend() local
602 ret = phy_power_off(glue->phy); in da8xx_suspend()
605 clk_disable_unprepare(glue->clk); in da8xx_suspend()
613 struct da8xx_glue *glue = dev_get_drvdata(dev); in da8xx_resume() local
615 ret = clk_prepare_enable(glue->clk); in da8xx_resume()
618 return phy_power_on(glue->phy); in da8xx_resume()
644 MODULE_DESCRIPTION("DA8xx/OMAP-L1x MUSB Glue Layer");