aboutsummaryrefslogtreecommitdiff
path: root/include/linux/boot_params.h
blob: acb257dee36da4a1d31aa52e2929a9a635d6009e (plain)
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
/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef _BOOT_PARAMS_H
#define _BOOT_PARAMS_H

enum {
	BOOT_MODE_SYSTEM = 0,
	BOOT_MODE_CHARGER,
	BOOT_MODE_RECOVERY
};

#ifdef CONFIG_YL_POWEROFF_ALARM
int get_poweroff_alarm_flag(void);
unsigned long get_poweroff_alarm_time(void);
#endif
int get_boot_mode(void);
int get_pon_batt_volt(void);

#endif /* _BOOT_PARAMS_H */