summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/sata.c
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2017-04-07 11:42:00 (GMT)
committerSimon Glass <sjg@chromium.org>2017-04-15 01:38:57 (GMT)
commit01a072c6cf0539e7b8e78cce7f1f53884121646a (patch)
treef0eba8cdb29569344f03edf18156c26e0969b3a3 /arch/arm/mach-omap2/sata.c
parentfbeb33752999e7317113199ef89873d6b6916814 (diff)
downloadu-boot-fsl-qoriq-01a072c6cf0539e7b8e78cce7f1f53884121646a.tar.xz
arm: omap: sata: move enable sata clocks to enable_basic_clocks()
All the clocks which has to be enabled has to be done in enable_basic_clocks(), so moving enable sata clock to common clocks enable function. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-omap2/sata.c')
-rw-r--r--arch/arm/mach-omap2/sata.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/arm/mach-omap2/sata.c b/arch/arm/mach-omap2/sata.c
index 2c2d1bc..0c82689 100644
--- a/arch/arm/mach-omap2/sata.c
+++ b/arch/arm/mach-omap2/sata.c
@@ -37,29 +37,6 @@ int init_sata(int dev)
int ret;
u32 val;
- u32 const clk_domains_sata[] = {
- 0
- };
-
- u32 const clk_modules_hw_auto_sata[] = {
- (*prcm)->cm_l3init_ocp2scp3_clkctrl,
- 0
- };
-
- u32 const clk_modules_explicit_en_sata[] = {
- (*prcm)->cm_l3init_sata_clkctrl,
- 0
- };
-
- do_enable_clocks(clk_domains_sata,
- clk_modules_hw_auto_sata,
- clk_modules_explicit_en_sata,
- 0);
-
- /* Enable optional functional clock for SATA */
- setbits_le32((*prcm)->cm_l3init_sata_clkctrl,
- SATA_CLKCTRL_OPTFCLKEN_MASK);
-
sata_phy.power_reg = (void __iomem *)(*ctrl)->control_phy_power_sata;
/* Power up the PHY */