diff options
| author | Bastian Hecht <hechtb@googlemail.com> | 2012-03-16 12:19:29 -0400 |
|---|---|---|
| committer | Chris Ball <cjb@laptop.org> | 2012-03-27 12:20:19 -0400 |
| commit | e82b4ac94e5c43fad51b975aed058858ceda1f0f (patch) | |
| tree | 40c1f770d227f109c6d11c7b23ef20638beea406 /include/linux/mmc | |
| parent | 4932bd64a2bb4e80b79efb20c4736ac3b30ba7fe (diff) | |
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>
Diffstat (limited to 'include/linux/mmc')
| -rw-r--r-- | include/linux/mmc/sh_mobile_sdhi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mmc/sh_mobile_sdhi.h b/include/linux/mmc/sh_mobile_sdhi.h index 082a736a9bfb..686b85bfb7a5 100644 --- a/include/linux/mmc/sh_mobile_sdhi.h +++ b/include/linux/mmc/sh_mobile_sdhi.h | |||
| @@ -20,6 +20,10 @@ struct sh_mobile_sdhi_info { | |||
| 20 | struct tmio_mmc_data *pdata; | 20 | struct tmio_mmc_data *pdata; |
| 21 | void (*set_pwr)(struct platform_device *pdev, int state); | 21 | void (*set_pwr)(struct platform_device *pdev, int state); |
| 22 | int (*get_cd)(struct platform_device *pdev); | 22 | int (*get_cd)(struct platform_device *pdev); |
| 23 | |||
| 24 | /* callbacks for board specific setup code */ | ||
| 25 | int (*init)(struct platform_device *pdev); | ||
| 26 | void (*cleanup)(struct platform_device *pdev); | ||
| 23 | }; | 27 | }; |
| 24 | 28 | ||
| 25 | #endif /* LINUX_MMC_SH_MOBILE_SDHI_H */ | 29 | #endif /* LINUX_MMC_SH_MOBILE_SDHI_H */ |
