aboutsummaryrefslogtreecommitdiff
path: root/include/linux/boot_mode.h
blob: be0a806ac8b6321b43867cf0e9965b935381678f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/************************************************************
** Copyright (C), 2013-2016, OPPO Mobile Comm Corp., Ltd
** All rights reserved.
** Author: He Wei
************************************************************/
#ifndef _BOOT_MODE_H
#define _BOOT_MODE_H

enum {
	MSM_BOOT_MODE__NORMAL,
	MSM_BOOT_MODE__RECOVERY = 2, //the number adapt system/core/init/init.c
	MSM_BOOT_MODE__FACTORY,
	MSM_BOOT_MODE__RF,
	MSM_BOOT_MODE__WLAN,
	MSM_BOOT_MODE__MOS,
};

int get_boot_mode(void);
char *get_boot_mode_str(void);
char *get_start_reason(void);

#endif /* _BOOT_MODE_H */