mci: imx-esdhc: add DSR support
having DSR support in mci-core we need a way to forward the DSR value to the driver. Add it to platform data for imx-esdhc TODO: implement the same for other host controller drivers Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
f11668fee7
commit
fa5bdb30ee
|
@ -42,5 +42,7 @@ struct esdhc_platform_data {
|
|||
enum cd_types cd_type;
|
||||
unsigned caps;
|
||||
char *devname;
|
||||
unsigned dsr_val;
|
||||
int use_dsr;
|
||||
};
|
||||
#endif /* __ASM_ARCH_IMX_ESDHC_H */
|
||||
|
|
|
@ -582,6 +582,10 @@ static int fsl_esdhc_probe(struct device_d *dev)
|
|||
if (host->mci.f_min < 200000)
|
||||
host->mci.f_min = 200000;
|
||||
host->mci.f_max = rate;
|
||||
if (pdata) {
|
||||
host->mci.use_dsr = pdata->use_dsr;
|
||||
host->mci.dsr_val = pdata->dsr_val;
|
||||
}
|
||||
|
||||
mci_of_parse(&host->mci);
|
||||
|
||||
|
|
Loading…
Reference in New Issue