arm: omap: hwmod: make *phy_48m* as the main_clk of ocp2scp
Subsystems (4)
PATCH 1/1 arm: omap: hwmod: make *phy_48m* as the main_clk of ocp2scp
Made *ocp2scp_usb_phy_phy_48m* as the main_clk for ocp2scp. Since this ocp2scp module does not have any fck but does have a single opt_clock, it is added as the main_clk for ocp2scp. Also removed phy_48m as the optional clock since it is now made as the main clock.
---
Changes from [RFC PATCH 1/5] arm: omap: hwmod: make *phy_48m* as the main_clk of ocp2scp:
* Removed *ocp2scp_usb_phy_phy_48m* as the optional functional clock
arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -6
@@ -2504,14 +2504,11 @@ static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = { };/* ocp2scp_usb_phy */ -static struct omap_hwmod_opt_clk ocp2scp_usb_phy_opt_clks[] = { - { .role ="phy_48m" , .clk ="ocp2scp_usb_phy_phy_48m" }, -}; -static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = { .name ="ocp2scp_usb_phy" , .class = &omap44xx_ocp2scp_hwmod_class, .clkdm_name ="l3_init_clkdm" , + .main_clk ="ocp2scp_usb_phy_phy_48m" , .prcm = { .omap4 = { .clkctrl_offs =OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET ,
@@ -2519,8 +2516,6 @@ static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = { .modulemode = MODULEMODE_HWCTRL, }, }, - .opt_clks = ocp2scp_usb_phy_opt_clks, - .opt_clks_cnt = ARRAY_SIZE(ocp2scp_usb_phy_opt_clks), };/*
Signature · 1 line
1.7.5.4
Hi,
Quoted 8 lines · Kishon Vijay Abraham I
Made *ocp2scp_usb_phy_phy_48m* as the
main_clkfor ocp2scp. Since this ocp2scp module does not have any fck but does have a singleopt_clock, it is added as themain_clkfor ocp2scp. Also removedphy_48mas the optional clock since it is now made as the main clock.Cc Beno?t Cousson <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>
If there is not any comments for this patch, can someone queue it. This is needed for musb to be functional with dt in omap4.
Thanks
Kishon
Hi,
Quoted 5 lines · Kishon Vijay Abraham I
Made *ocp2scp_usb_phy_phy_48m* as the
main_clkfor ocp2scp. Since this ocp2scp module does not have any fck but does have a singleopt_clock, it is added as themain_clkfor ocp2scp. Also removedphy_48mas the optional clock since it is now made as the main clock.
Just one comment here, you failed to note what good does it do from the driver perspective, other than that, you can add my Reviewed-by as below
Quoted 2 lines
Cc Beno?t Cousson <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>
FWIW:
Quoted 40 lines
---
Changes from [RFC PATCH 1/5] arm: omap: hwmod: make *phy_48m* as themain_clkof ocp2scp:
* Removed *ocp2scp_usb_phy_phy_48m* as the optional functional clockarch/arm/mach-omap2/omap_hwmod_44xx_data.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1
-6@@ -2504,14 +2504,11 @@ static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = { };/* ocp2scp_usb_phy */ -static struct omap_hwmod_opt_clk ocp2scp_usb_phy_opt_clks[] = { - { .role ="phy_48m" , .clk ="ocp2scp_usb_phy_phy_48m" }, -}; -static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = { .name ="ocp2scp_usb_phy" , .class = &omap44xx_ocp2scp_hwmod_class, .clkdm_name ="l3_init_clkdm" , + .main_clk ="ocp2scp_usb_phy_phy_48m" , .prcm = { .omap4 = { .clkctrl_offs =OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET ,@@ -2519,8 +2516,6 @@ static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = { .modulemode = MODULEMODE_HWCTRL, }, }, - .opt_clks = ocp2scp_usb_phy_opt_clks, - .opt_clks_cnt = ARRAY_SIZE(ocp2scp_usb_phy_opt_clks), };/* Signature · 1 line
1.7.5.4
Signature · 8 lines
balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120906/9eea0718/attachment.sig>