Lines Matching refs:usb1

550 	struct da8xx_usb1_clk48 *usb1 = to_da8xx_usb1_clk48(hw);  in da8xx_usb1_clk48_set_parent()  local
552 return regmap_write_bits(usb1->regmap, CFGCHIP(2), in da8xx_usb1_clk48_set_parent()
559 struct da8xx_usb1_clk48 *usb1 = to_da8xx_usb1_clk48(hw); in da8xx_usb1_clk48_get_parent() local
562 regmap_read(usb1->regmap, CFGCHIP(2), &val); in da8xx_usb1_clk48_get_parent()
581 struct da8xx_usb1_clk48 *usb1; in da8xx_cfgchip_register_usb1_clk48() local
585 usb1 = devm_kzalloc(dev, sizeof(*usb1), GFP_KERNEL); in da8xx_cfgchip_register_usb1_clk48()
586 if (!usb1) in da8xx_cfgchip_register_usb1_clk48()
594 usb1->hw.init = &init; in da8xx_cfgchip_register_usb1_clk48()
595 usb1->regmap = regmap; in da8xx_cfgchip_register_usb1_clk48()
597 ret = devm_clk_hw_register(dev, &usb1->hw); in da8xx_cfgchip_register_usb1_clk48()
601 return usb1; in da8xx_cfgchip_register_usb1_clk48()
608 struct da8xx_usb1_clk48 *usb1; in da8xx_cfgchip_register_usb_phy_clk() local
625 usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap); in da8xx_cfgchip_register_usb_phy_clk()
626 if (IS_ERR(usb1)) in da8xx_cfgchip_register_usb_phy_clk()
627 return PTR_ERR(usb1); in da8xx_cfgchip_register_usb_phy_clk()
633 parent = clk_hw_get_parent_by_index(&usb1->hw, 0); in da8xx_cfgchip_register_usb_phy_clk()
635 clk_set_parent(usb1->hw.clk, parent->clk); in da8xx_cfgchip_register_usb_phy_clk()
640 clk_hw_register_clkdev(&usb1->hw, "usb1_clk48", "da8xx-usb-phy"); in da8xx_cfgchip_register_usb_phy_clk()
649 struct da8xx_usb1_clk48 *usb1; in of_da8xx_usb_phy_clk_init() local
671 usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap); in of_da8xx_usb_phy_clk_init()
672 if (IS_ERR(usb1)) { in of_da8xx_usb_phy_clk_init()
673 if (PTR_ERR(usb1) == -EPROBE_DEFER) in of_da8xx_usb_phy_clk_init()
677 PTR_ERR(usb1)); in of_da8xx_usb_phy_clk_init()
681 clk_data->hws[1] = &usb1->hw; in of_da8xx_usb_phy_clk_init()