mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
3a7577e5f3
commit
8d29cef588
2 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -60,6 +60,7 @@ void enable_uart_clk(unsigned char enable);
|
|||
int enable_cspi_clock(unsigned char enable, unsigned spi_num);
|
||||
int enable_usdhc_clk(unsigned char enable, unsigned bus_num);
|
||||
int enable_sata_clock(void);
|
||||
void disable_sata_clock(void);
|
||||
int enable_pcie_clock(void);
|
||||
int enable_i2c_clk(unsigned char enable, unsigned i2c_num);
|
||||
int enable_spi_clk(unsigned char enable, unsigned spi_num);
|
||||
|
|
Loading…
Reference in a new issue