mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 08:30:50 +09:00
mmc: sdhci: fix chip detect gpio property name
The standard property name for chip-detect gpio is "cd-gpios". All
in-tree DT files use only this name.
Fixes: 451931ea70
("mmc: sdhci: Read cd-gpio from devicetree")
Cc: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
41a9fab8da
commit
58d65d5082
@ -623,7 +623,7 @@ static int sdhci_init(struct mmc *mmc)
|
|||||||
#if CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(DM_GPIO)
|
#if CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(DM_GPIO)
|
||||||
struct udevice *dev = mmc->dev;
|
struct udevice *dev = mmc->dev;
|
||||||
|
|
||||||
gpio_request_by_name(dev, "cd-gpio", 0,
|
gpio_request_by_name(dev, "cd-gpios", 0,
|
||||||
&host->cd_gpio, GPIOD_IS_IN);
|
&host->cd_gpio, GPIOD_IS_IN);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user