Lines Matching full:usb1
551 struct da8xx_usb1_clk48 *usb1 = to_da8xx_usb1_clk48(hw); in da8xx_usb1_clk48_set_parent() local
553 return regmap_write_bits(usb1->regmap, CFGCHIP(2), in da8xx_usb1_clk48_set_parent()
560 struct da8xx_usb1_clk48 *usb1 = to_da8xx_usb1_clk48(hw); in da8xx_usb1_clk48_get_parent() local
563 regmap_read(usb1->regmap, CFGCHIP(2), &val); in da8xx_usb1_clk48_get_parent()
584 struct da8xx_usb1_clk48 *usb1; in da8xx_cfgchip_register_usb1_clk48() local
588 usb1 = devm_kzalloc(dev, sizeof(*usb1), GFP_KERNEL); in da8xx_cfgchip_register_usb1_clk48()
589 if (!usb1) in da8xx_cfgchip_register_usb1_clk48()
597 usb1->hw.init = &init; in da8xx_cfgchip_register_usb1_clk48()
598 usb1->regmap = regmap; in da8xx_cfgchip_register_usb1_clk48()
600 ret = devm_clk_hw_register(dev, &usb1->hw); in da8xx_cfgchip_register_usb1_clk48()
604 return usb1; in da8xx_cfgchip_register_usb1_clk48()
611 struct da8xx_usb1_clk48 *usb1; in da8xx_cfgchip_register_usb_phy_clk() local
628 usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap); in da8xx_cfgchip_register_usb_phy_clk()
629 if (IS_ERR(usb1)) in da8xx_cfgchip_register_usb_phy_clk()
630 return PTR_ERR(usb1); in da8xx_cfgchip_register_usb_phy_clk()
636 parent = clk_hw_get_parent_by_index(&usb1->hw, 0); in da8xx_cfgchip_register_usb_phy_clk()
638 clk_set_parent(usb1->hw.clk, parent->clk); in da8xx_cfgchip_register_usb_phy_clk()
640 dev_warn(dev, "Failed to find usb1 parent clock\n"); in da8xx_cfgchip_register_usb_phy_clk()
643 clk_hw_register_clkdev(&usb1->hw, "usb1_clk48", "da8xx-usb-phy"); in da8xx_cfgchip_register_usb_phy_clk()
652 struct da8xx_usb1_clk48 *usb1; in of_da8xx_usb_phy_clk_init() local
674 usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap); in of_da8xx_usb_phy_clk_init()
675 if (IS_ERR(usb1)) { in of_da8xx_usb_phy_clk_init()
676 if (PTR_ERR(usb1) == -EPROBE_DEFER) in of_da8xx_usb_phy_clk_init()
680 PTR_ERR(usb1)); in of_da8xx_usb_phy_clk_init()
684 clk_data->hws[1] = &usb1->hw; in of_da8xx_usb_phy_clk_init()