diff options
author | Daniel Palmer <daniel@0x0f.com> | 2020-10-18 20:05:35 +0900 |
---|---|---|
committer | Daniel Palmer <daniel@0x0f.com> | 2020-10-18 20:05:35 +0900 |
commit | 3eb0c91c6ed1c66cf138b0dc954dd3d086198f87 (patch) | |
tree | 5590da47b1497436bae17a1f4ce0687a99fd5eba /drivers | |
parent | c25a63fd0b20fb1da5262fb09181adc8e0cbeb22 (diff) |
More fixing
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/omap_hsmmc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 715eee0e3e..8690166435 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -1459,10 +1459,14 @@ static int omap_hsmmc_getcd(struct udevice *dev) struct omap_hsmmc_data *priv = dev_get_priv(dev); value = dm_gpio_get_value(&priv->cd_gpio); #endif + /* if no CD return as 1 */ if (value < 0) return 1; + //dgp hack + value = 1; + return value; } |