1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * max8903_charger.h - Maxim 8903 USB/Adapter Charger Driver
5 * Copyright (C) 2011 Samsung Electronics
6 * MyungJoo Ham <myungjoo.ham@samsung.com>
9 #ifndef __MAX8903_CHARGER_H__
10 #define __MAX8903_CHARGER_H__
12 struct max8903_pdata {
15 * cen, chg, flt, dcm and usus are optional.
16 * dok and uok are not optional depending on the status of
17 * dc_valid and usb_valid.
19 int cen; /* Charger Enable input */
20 int dok; /* DC(Adapter) Power OK output */
21 int uok; /* USB Power OK output */
22 int chg; /* Charger status output */
23 int flt; /* Fault output */
24 int dcm; /* Current-Limit Mode input (1: DC, 2: USB) */
25 int usus; /* USB Suspend Input (1: suspended) */
28 * DC(Adapter/TA) is wired
29 * When dc_valid is true,
30 * dok should be valid.
32 * At least one of dc_valid or usb_valid should be true.
37 * When usb_valid is true,
38 * uok should be valid.
43 #endif /* __MAX8903_CHARGER_H__ */