usb: at91_udc: pass the vbus initial value
If without pass the vbus initial value, the vbus status alway present as 0 even if the vbus is connected to 5v. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
b3d52d5b9b
commit
3ee82c6779
|
@ -1464,6 +1464,8 @@ static int __init at91udc_probe(struct device_d *dev)
|
|||
DBG(udc, "VBUS detection: host:%s \n",
|
||||
udc->vbus ? "present":"absent");
|
||||
|
||||
udc->gpio_vbus_val = udc->vbus;
|
||||
|
||||
dev_add_param_bool(dev, "vbus",
|
||||
at91_udc_vbus_set, NULL, &udc->gpio_vbus_val, udc);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue