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