mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge git://git.denx.de/u-boot-sunxi
This commit is contained in:
@@ -304,6 +304,7 @@ static const struct udevice_id sunxi_gpio_ids[] = {
|
||||
{ .compatible = "allwinner,sun6i-a31s-pinctrl" },
|
||||
{ .compatible = "allwinner,sun7i-a20-pinctrl" },
|
||||
{ .compatible = "allwinner,sun8i-a23-pinctrl" },
|
||||
{ .compatible = "allwinner,sun8i-a33-pinctrl" },
|
||||
{ .compatible = "allwinner,sun9i-a80-pinctrl" },
|
||||
{ }
|
||||
};
|
||||
|
||||
@@ -75,8 +75,10 @@ static int mmc_resource_init(int sdc_no)
|
||||
cd_pin = sunxi_mmc_getcd_gpio(sdc_no);
|
||||
if (cd_pin >= 0) {
|
||||
ret = gpio_request(cd_pin, "mmc_cd");
|
||||
if (!ret)
|
||||
if (!ret) {
|
||||
sunxi_gpio_set_pull(cd_pin, SUNXI_GPIO_PULL_UP);
|
||||
ret = gpio_direction_input(cd_pin);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user