mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
mmc: sdhci: Make sdhci_set_clock() non static
The am654_sdhci driver needs to switch the clock off before disabling its phy dll and needs to re-enable the clock before enabling the phy again. Therefore, make the sdhci_set_clock() function accessible in the am654_sdhci driver. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
3d296365e4
commit
3966c7d006
|
@ -410,7 +410,7 @@ static int sdhci_execute_tuning(struct udevice *dev, uint opcode)
|
|||
return 0;
|
||||
}
|
||||
#endif
|
||||
static int sdhci_set_clock(struct mmc *mmc, unsigned int clock)
|
||||
int sdhci_set_clock(struct mmc *mmc, unsigned int clock)
|
||||
{
|
||||
struct sdhci_host *host = mmc->priv;
|
||||
unsigned int div, clk = 0, timeout;
|
||||
|
|
|
@ -470,6 +470,7 @@ int add_sdhci(struct sdhci_host *host, u32 f_max, u32 f_min);
|
|||
#ifdef CONFIG_DM_MMC
|
||||
/* Export the operations to drivers */
|
||||
int sdhci_probe(struct udevice *dev);
|
||||
int sdhci_set_clock(struct mmc *mmc, unsigned int clock);
|
||||
extern const struct dm_mmc_ops sdhci_ops;
|
||||
#else
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user