Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: da8xx-usb: rename clock con_ids

This renames the clock con_ids in the DA8XX USB PHY driver as well as
the matching names in the mach clock registration code.

This is in preparation for using device tree clocks where these names
will become part of the device tree bindings. The new names more closely
match the names used in the USB clock diagram in the SoC TRM.

Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>

authored by

David Lechner and committed by
Sekhar Nori
e98bbbf3 7928b2cb

+10 -10
+6 -6
arch/arm/mach-davinci/usb-da8xx.c
··· 256 256 } 257 257 258 258 static struct clk usb20_phy_clk = { 259 - .name = "usb20_phy", 259 + .name = "usb0_clk48", 260 260 .clk_enable = usb20_phy_clk_enable, 261 261 .clk_disable = usb20_phy_clk_disable, 262 262 .set_parent = usb20_phy_clk_set_parent, 263 263 }; 264 264 265 265 static struct clk_lookup usb20_phy_clk_lookup = 266 - CLK("da8xx-usb-phy", "usb20_phy", &usb20_phy_clk); 266 + CLK("da8xx-usb-phy", "usb0_clk48", &usb20_phy_clk); 267 267 268 268 /** 269 269 * da8xx_register_usb20_phy_clk - register USB0PHYCLKMUX clock ··· 320 320 } 321 321 322 322 static struct clk usb11_phy_clk = { 323 - .name = "usb11_phy", 323 + .name = "usb1_clk48", 324 324 .set_parent = usb11_phy_clk_set_parent, 325 325 }; 326 326 327 327 static struct clk_lookup usb11_phy_clk_lookup = 328 - CLK("da8xx-usb-phy", "usb11_phy", &usb11_phy_clk); 328 + CLK("da8xx-usb-phy", "usb1_clk48", &usb11_phy_clk); 329 329 330 330 /** 331 331 * da8xx_register_usb11_phy_clk - register USB1PHYCLKMUX clock 332 332 * 333 333 * @use_usb_refclkin: Selects the parent clock - either "usb_refclkin" if true 334 - * or "usb20_phy" if false. 334 + * or "usb0_clk48" if false. 335 335 */ 336 336 int __init da8xx_register_usb11_phy_clk(bool use_usb_refclkin) 337 337 { ··· 341 341 if (use_usb_refclkin) 342 342 parent = clk_get(NULL, "usb_refclkin"); 343 343 else 344 - parent = clk_get(&da8xx_usb_phy.dev, "usb20_phy"); 344 + parent = clk_get(&da8xx_usb_phy.dev, "usb0_clk48"); 345 345 if (IS_ERR(parent)) 346 346 return PTR_ERR(parent); 347 347
+4 -4
drivers/phy/ti/phy-da8xx-usb.c
··· 162 162 return PTR_ERR(d_phy->regmap); 163 163 } 164 164 165 - d_phy->usb11_clk = devm_clk_get(dev, "usb11_phy"); 165 + d_phy->usb11_clk = devm_clk_get(dev, "usb1_clk48"); 166 166 if (IS_ERR(d_phy->usb11_clk)) { 167 - dev_err(dev, "Failed to get usb11_phy clock\n"); 167 + dev_err(dev, "Failed to get usb1_clk48\n"); 168 168 return PTR_ERR(d_phy->usb11_clk); 169 169 } 170 170 171 - d_phy->usb20_clk = devm_clk_get(dev, "usb20_phy"); 171 + d_phy->usb20_clk = devm_clk_get(dev, "usb0_clk48"); 172 172 if (IS_ERR(d_phy->usb20_clk)) { 173 - dev_err(dev, "Failed to get usb20_phy clock\n"); 173 + dev_err(dev, "Failed to get usb0_clk48\n"); 174 174 return PTR_ERR(d_phy->usb20_clk); 175 175 } 176 176