Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
26 lines
461 B
C
26 lines
461 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __USB3503_H__
|
|
#define __USB3503_H__
|
|
|
|
#define USB3503_I2C_NAME "usb3503"
|
|
|
|
#define USB3503_OFF_PORT1 (1 << 1)
|
|
#define USB3503_OFF_PORT2 (1 << 2)
|
|
#define USB3503_OFF_PORT3 (1 << 3)
|
|
|
|
enum usb3503_mode {
|
|
USB3503_MODE_UNKNOWN,
|
|
USB3503_MODE_HUB,
|
|
USB3503_MODE_STANDBY,
|
|
};
|
|
|
|
struct usb3503_platform_data {
|
|
enum usb3503_mode initial_mode;
|
|
u8 port_off_mask;
|
|
int gpio_intn;
|
|
int gpio_connect;
|
|
int gpio_reset;
|
|
};
|
|
|
|
#endif
|