On Mon, Mar 03, 2014 at 05:09:29PM -0600, [email protected] wrote: > From: Dinh Nguyen <[email protected]> > > This patch moves the data structures that are in the s3c-hsotg source into > core.h. This is a necessary step towards unifying the s3c-hsotg and dwc2 into > a single DRD. > > Signed-off-by: Dinh Nguyen <[email protected]> > Cc: Greg Kroah-Hartman <[email protected]> > Cc: Paul Zimmerman <[email protected]> > Cc: Felipe Balbi <[email protected]> > Cc: Ben Dooks <[email protected]> > Cc: Matt Porter <[email protected]> > Cc: Kukjin Kim <[email protected]> > Cc: Stephen Warren <[email protected]> > Cc: Matthijs Kooijman <[email protected]> > Cc: Jingoo Han <[email protected]> > Cc: Sachin Kamat <[email protected]> > Cc: Robert Baldyga <[email protected]> > --- > v2: none > --- > drivers/usb/dwc2/core.h | 182 > ++++++++++++++++++++++++++++++++++++++++++ > drivers/usb/dwc2/s3c-hsotg.c | 180 +---------------------------------------- > 2 files changed, 183 insertions(+), 179 deletions(-) > > diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h > index 648519c..1efd10c 100644 > --- a/drivers/usb/dwc2/core.h > +++ b/drivers/usb/dwc2/core.h > @@ -37,6 +37,10 @@ > #ifndef __DWC2_CORE_H__ > #define __DWC2_CORE_H__ > > +#include <linux/phy/phy.h> > +#include <linux/regulator/consumer.h> > +#include <linux/usb/gadget.h> > +#include <linux/usb/otg.h> > #include <linux/usb/phy.h> > #include "hw.h" > > @@ -54,6 +58,184 @@ static inline void do_write(u32 value, void *addr) > /* Maximum number of Endpoints/HostChannels */ > #define MAX_EPS_CHANNELS 16 > > +/* s3c-hsotg declarations */ > +static const char * const s3c_hsotg_supply_names[] = { > + "vusb_d", /* digital USB supply, 1.2V */ > + "vusb_a", /* analog USB supply, 1.1V */ > +};
this might be a good time to fix this crap. It really looks like these two regulators should be part of a PHY driver instead, no ? Can someone confirm ? -- balbi
signature.asc
Description: Digital signature
