On Wednesday 23 May 2012 06:09:49 Bob Liu wrote: > if (!(val & MUSB_DEVCTL_BDEVICE)) { > +#ifndef CONFIG_BF60x > gpio_set_value(musb->config->gpio_vrsel, 1); > +#endif > musb->xceiv->state = OTG_STATE_A_WAIT_BCON; > } else { > +#ifndef CONFIG_BF60x > gpio_set_value(musb->config->gpio_vrsel, 0); > +#endif this really should get macro-ed away in the blackfin musb header file #ifndef CONFIG_BF60x # define vrsel_set_value(val) gpio_set_value(musb->config->gpio_vrsel, val) #else # define vrsel_set_value(val) do { } while (0) #endif -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.