18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2014 eGauge Systems LLC
48c2ecf20Sopenharmony_ci *	Contributed by David Mosberger-Tang <davidm@egauge.net>
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Platform-data structure for MAX3421 USB HCD driver.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef MAX3421_HCD_PLAT_H_INCLUDED
108c2ecf20Sopenharmony_ci#define MAX3421_HCD_PLAT_H_INCLUDED
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/*
138c2ecf20Sopenharmony_ci * This structure defines the mapping of certain auxiliary functions to the
148c2ecf20Sopenharmony_ci * MAX3421E GPIO pins.  The chip has eight GP inputs and eight GP outputs.
158c2ecf20Sopenharmony_ci * A value of 0 indicates that the pin is not used/wired to anything.
168c2ecf20Sopenharmony_ci *
178c2ecf20Sopenharmony_ci * At this point, the only control the max3421-hcd driver cares about is
188c2ecf20Sopenharmony_ci * to control Vbus (5V to the peripheral).
198c2ecf20Sopenharmony_ci */
208c2ecf20Sopenharmony_cistruct max3421_hcd_platform_data {
218c2ecf20Sopenharmony_ci	u8 vbus_gpout;			/* pin controlling Vbus */
228c2ecf20Sopenharmony_ci	u8 vbus_active_level;		/* level that turns on power */
238c2ecf20Sopenharmony_ci};
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif /* MAX3421_HCD_PLAT_H_INCLUDED */
26