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()
582 struct da8xx_usb1_clk48 *usb1; in da8xx_cfgchip_register_usb1_clk48() local
586 usb1 = devm_kzalloc(dev, sizeof(*usb1), GFP_KERNEL); in da8xx_cfgchip_register_usb1_clk48()
587 if (!usb1) in da8xx_cfgchip_register_usb1_clk48()
595 usb1->hw.init = &init; in da8xx_cfgchip_register_usb1_clk48()
596 usb1->regmap = regmap; in da8xx_cfgchip_register_usb1_clk48()
598 ret = devm_clk_hw_register(dev, &usb1->hw); in da8xx_cfgchip_register_usb1_clk48()
602 return usb1; in da8xx_cfgchip_register_usb1_clk48()
609 struct da8xx_usb1_clk48 *usb1; in da8xx_cfgchip_register_usb_phy_clk() local
626 usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap); in da8xx_cfgchip_register_usb_phy_clk()
627 if (IS_ERR(usb1)) in da8xx_cfgchip_register_usb_phy_clk()
628 return PTR_ERR(usb1); in da8xx_cfgchip_register_usb_phy_clk()
634 parent = clk_hw_get_parent_by_index(&usb1->hw, 0); in da8xx_cfgchip_register_usb_phy_clk()
636 clk_set_parent(usb1->hw.clk, parent->clk); in da8xx_cfgchip_register_usb_phy_clk()
641 clk_hw_register_clkdev(&usb1->hw, "usb1_clk48", "da8xx-usb-phy"); in da8xx_cfgchip_register_usb_phy_clk()
650 struct da8xx_usb1_clk48 *usb1; in of_da8xx_usb_phy_clk_init() local
672 usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap); in of_da8xx_usb_phy_clk_init()
673 if (IS_ERR(usb1)) { in of_da8xx_usb_phy_clk_init()
674 if (PTR_ERR(usb1) == -EPROBE_DEFER) in of_da8xx_usb_phy_clk_init()
678 PTR_ERR(usb1)); in of_da8xx_usb_phy_clk_init()
682 clk_data->hws[1] = &usb1->hw; in of_da8xx_usb_phy_clk_init()