Commit 8d29cef5887887157f54f98493440ce5c824d5cb
Committed by
Stefano Babic
1 parent
3a7577e5f3
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 2 changed files with 9 additions and 0 deletions Side-by-side Diff
arch/arm/cpu/armv7/mx6/clock.c
... | ... | @@ -596,6 +596,14 @@ |
596 | 596 | ungate_sata_clock(); |
597 | 597 | return enable_enet_pll(BM_ANADIG_PLL_ENET_ENABLE_SATA); |
598 | 598 | } |
599 | + | |
600 | +void disable_sata_clock(void) | |
601 | +{ | |
602 | + struct mxc_ccm_reg *const imx_ccm = | |
603 | + (struct mxc_ccm_reg *)CCM_BASE_ADDR; | |
604 | + | |
605 | + clrbits_le32(&imx_ccm->CCGR5, MXC_CCM_CCGR5_SATA_MASK); | |
606 | +} | |
599 | 607 | #endif |
600 | 608 | |
601 | 609 | int enable_pcie_clock(void) |
arch/arm/include/asm/arch-mx6/clock.h
... | ... | @@ -60,6 +60,7 @@ |
60 | 60 | int enable_cspi_clock(unsigned char enable, unsigned spi_num); |
61 | 61 | int enable_usdhc_clk(unsigned char enable, unsigned bus_num); |
62 | 62 | int enable_sata_clock(void); |
63 | +void disable_sata_clock(void); | |
63 | 64 | int enable_pcie_clock(void); |
64 | 65 | int enable_i2c_clk(unsigned char enable, unsigned i2c_num); |
65 | 66 | int enable_spi_clk(unsigned char enable, unsigned spi_num); |