usb-pxa3xx-ulpi.h (675B)
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * PXA3xx U2D header 4 * 5 * Copyright (C) 2010 CompuLab Ltd. 6 * 7 * Igor Grinberg <grinberg@compulab.co.il> 8 */ 9#ifndef __PXA310_U2D__ 10#define __PXA310_U2D__ 11 12#include <linux/usb/ulpi.h> 13 14struct pxa3xx_u2d_platform_data { 15 16#define ULPI_SER_6PIN (1 << 0) 17#define ULPI_SER_3PIN (1 << 1) 18 unsigned int ulpi_mode; 19 20 int (*init)(struct device *); 21 void (*exit)(struct device *); 22}; 23 24 25/* Start PXA3xx U2D host */ 26int pxa3xx_u2d_start_hc(struct usb_bus *host); 27/* Stop PXA3xx U2D host */ 28void pxa3xx_u2d_stop_hc(struct usb_bus *host); 29 30extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info); 31 32#endif /* __PXA310_U2D__ */