You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
923 B
43 lines
923 B
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2019-2021. All rights reserved.
|
|
* Description: cmdline.h
|
|
* Author: Hisilicon
|
|
* Create: 2019-12-26
|
|
*/
|
|
|
|
#ifndef __CMDLINE_H__
|
|
#define __CMDLINE_H__
|
|
|
|
/* fastboot_version */
|
|
#define MAX_VERSION_LEN 64
|
|
|
|
#ifndef FASTBOOT_VERSION
|
|
#define FASTBOOT_VERSION "NO_FASTBOOT_VERSION"
|
|
#endif
|
|
|
|
#define FASTBOOT_VERSION_CMDLINE_STRING "fastboot_version="
|
|
|
|
/* androidboot.boot_devices */
|
|
#define BOOT_DEVICE_MAX_LEN 64
|
|
#define BOOT_DEVICE_STR "androidboot.boot_devices="
|
|
#define BOOT_DEVICE_UFS "soc/f8c40000.ufs"
|
|
#ifndef CONFIG_CPU_T9
|
|
#define BOOT_DEVICE_EMMC "soc/0x01710000.emmc"
|
|
#else
|
|
#define BOOT_DEVICE_EMMC "soc/f9830000.emmc"
|
|
#endif
|
|
|
|
/* loglevel */
|
|
#define USER_MODE "buildvariant=user"
|
|
#define STR_LOGLEVEL_LEN 12
|
|
#define LOGLEVEL_USER_MODE 0
|
|
#define LOGLEVEL_ENG_MODE 4
|
|
|
|
typedef enum {
|
|
SOCT_NOT_INIT = 0,
|
|
SOCT_USER_MODE,
|
|
SOCT_ENG_MODE,
|
|
} build_variant;
|
|
|
|
#endif
|