mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-16 03:22:27 +00:00
mmc: sh_mobile_sdhi: add a callback for board specific init code
Some boards need a preliminary setup stage to prepare the sdhi controller. Signed-off-by: Bastian Hecht <hechtb@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
4932bd64a2
commit
e82b4ac94e
2 changed files with 17 additions and 0 deletions
|
@ -20,6 +20,10 @@ struct sh_mobile_sdhi_info {
|
|||
struct tmio_mmc_data *pdata;
|
||||
void (*set_pwr)(struct platform_device *pdev, int state);
|
||||
int (*get_cd)(struct platform_device *pdev);
|
||||
|
||||
/* callbacks for board specific setup code */
|
||||
int (*init)(struct platform_device *pdev);
|
||||
void (*cleanup)(struct platform_device *pdev);
|
||||
};
|
||||
|
||||
#endif /* LINUX_MMC_SH_MOBILE_SDHI_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue