diff options
author | Nikita Kiryanov <nikita@compulab.co.il> | 2014-11-21 12:47:22 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-11-24 11:59:59 +0100 |
commit | 8d29cef5887887157f54f98493440ce5c824d5cb (patch) | |
tree | 620dd940c026dc4095daafe5cdc83444250e6ba0 /arch/arm/cpu/armv7 | |
parent | 3a7577e5f384f6fdbd8e9b8eefa8573c508fd6de (diff) | |
download | u-boot-imx-8d29cef5887887157f54f98493440ce5c824d5cb.zip u-boot-imx-8d29cef5887887157f54f98493440ce5c824d5cb.tar.gz u-boot-imx-8d29cef5887887157f54f98493440ce5c824d5cb.tar.bz2 |
arm: mx6: introduce disable_sata_clock
Implement disable_sata_clock for mx6 SoCs.
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/mx6/clock.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index 80b11aa..ab7ac3d 100644 --- a/arch/arm/cpu/armv7/mx6/clock.c +++ b/arch/arm/cpu/armv7/mx6/clock.c @@ -596,6 +596,14 @@ int enable_sata_clock(void) ungate_sata_clock(); return enable_enet_pll(BM_ANADIG_PLL_ENET_ENABLE_SATA); } + +void disable_sata_clock(void) +{ + struct mxc_ccm_reg *const imx_ccm = + (struct mxc_ccm_reg *)CCM_BASE_ADDR; + + clrbits_le32(&imx_ccm->CCGR5, MXC_CCM_CCGR5_SATA_MASK); +} #endif int enable_pcie_clock(void) |