hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * (C) Copyright 2017 Rockchip Electronics Co., Ltd
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */
 
#ifndef _CHARGE_ANIMATION_H_
#define _CHARGE_ANIMATION_H_
 
struct regulator_mem {
   struct udevice *dev;
   bool enable;
};
 
struct charge_animation_pdata {
   int android_charge;    /* android charge, 1: enable, 0: disable */
   int uboot_charge;    /* u-boot charge, 1: enable, 0: disable */
 
   int auto_exit_charge;    /* energy enough auto exit uboot charging*/
   int exit_charge_voltage;/* lowest voltage allowed to exit charging */
   int exit_charge_level;  /* lowest soc level allowed to exit charging */
   int low_power_voltage;    /* below this voltage, force system into charge mode anyway */
   int screen_on_voltage;    /* lowest voltage allowed to turn on screen */
 
   int system_suspend;    /* enter ATF system suspend, 1: enable, 0: disable */
   int auto_wakeup_interval;/* timeout seconds to auto wakeup system */
   int auto_wakeup_screen_invert;/* auto wakeup system, 1: enable, 0: disable */
   int auto_off_screen_interval;/* timeout seconds to auto turn off screen */
 
   struct regulator_mem *regulators_mem; /* assigned regulator suspend state */
};
 
#endif