|
@@ -238,10 +238,10 @@ static void bfin_vbus_power(struct musb *musb, int is_on, int sleeping)
|
|
|
|
|
|
static void bfin_set_vbus(struct musb *musb, int is_on)
|
|
|
{
|
|
|
- if (is_on)
|
|
|
- gpio_set_value(musb->config->gpio_vrsel, 1);
|
|
|
- else
|
|
|
- gpio_set_value(musb->config->gpio_vrsel, 0);
|
|
|
+ int value = musb->config->gpio_vrsel_active;
|
|
|
+ if (!is_on)
|
|
|
+ value = !value;
|
|
|
+ gpio_set_value(musb->config->gpio_vrsel, value);
|
|
|
|
|
|
DBG(1, "VBUS %s, devctl %02x "
|
|
|
/* otg %3x conf %08x prcm %08x */ "\n",
|