linux/include/linux/platform_data/usb-pxa3xx-ulpi.h
<<
>>
Prefs
   1/*
   2 * PXA3xx U2D header
   3 *
   4 * Copyright (C) 2010 CompuLab Ltd.
   5 *
   6 * Igor Grinberg <grinberg@compulab.co.il>
   7 *
   8 * This program is free software; you can redistribute it and/or modify
   9 * it under the terms of the GNU General Public License version 2 as
  10 * published by the Free Software Foundation.
  11 */
  12#ifndef __PXA310_U2D__
  13#define __PXA310_U2D__
  14
  15#include <linux/usb/ulpi.h>
  16
  17struct pxa3xx_u2d_platform_data {
  18
  19#define ULPI_SER_6PIN   (1 << 0)
  20#define ULPI_SER_3PIN   (1 << 1)
  21        unsigned int ulpi_mode;
  22
  23        int (*init)(struct device *);
  24        void (*exit)(struct device *);
  25};
  26
  27
  28/* Start PXA3xx U2D host */
  29int pxa3xx_u2d_start_hc(struct usb_bus *host);
  30/* Stop PXA3xx U2D host */
  31void pxa3xx_u2d_stop_hc(struct usb_bus *host);
  32
  33extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info);
  34
  35#endif /* __PXA310_U2D__ */
  36