• The
init
function
esdhc_pltfm_init()
initializes the platform hardware and set platform
dependant flags or values to sdhci_host structure.
• The
exit
function
esdhc_pltfm_exit()
deinitializes the platform hardware and frees the
memory allocated.
• The function
esdhc_pltfm_get_max_clock()
gets the maximum SD bus clock frequency
supported by the platform.
• The function
esdhc_pltfm_get_min_clock()
gets the minimum SD bus clock frequency
supported by the platform.
•
esdhc_pltfm_get_ro()
gets the card read only status.
•
plt_8bit_width()
handles 8 bit mode switching on the platform.
•
plt_clk_ctrl()
handles clock management on the platform.
•
esdhc_prepare_tuning()
handles the preparation for tuning. It's only used for SD3.0
UHS-I mode.
•
esdhc_post_tuning()
handles the post operation for tuning.
•
esdhc_set_clock()
handles the clock change request.
•
cd_irq()
it's the interrupt routine for card detect.
Figure below shows how the MMC-related drivers are layered.
Chapter 29 MMC/SD/SDIO Host Driver
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
Freescale Semiconductor, Inc.
215