Home
last modified time | relevance | path

Searched refs:factory_mode_cfg (Results 1 - 4 of 4) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
H A Dboot_upg_start_up.c90 hi_nv_ftm_factory_mode factory_mode_cfg = {0}; in boot_upg_load_cfg_from_nv() local
91 ret = hi_factory_nv_read(HI_NV_FTM_FACTORY_MODE, &factory_mode_cfg, sizeof(hi_nv_ftm_factory_mode), 0); in boot_upg_load_cfg_from_nv()
95 if (factory_mode_cfg.factory_mode == 0x1) { in boot_upg_load_cfg_from_nv()
97 cfg->addr_start = factory_mode_cfg.factory_addr_start; /* 0x0: factory mode, start addr example:0x14D000. */ in boot_upg_load_cfg_from_nv()
H A Dboot_upg_check.c86 hi_nv_ftm_factory_mode factory_mode_cfg = {0}; in boot_upg_get_max_file_len() local
87 hi_u32 ret = hi_factory_nv_read(HI_NV_FTM_FACTORY_MODE, &factory_mode_cfg, sizeof(hi_nv_ftm_factory_mode), 0); in boot_upg_get_max_file_len()
92 if (factory_mode_cfg.factory_mode == 0x1) { in boot_upg_get_max_file_len()
93 *file_len = factory_mode_cfg.factory_size; in boot_upg_get_max_file_len()
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
H A Dat_general.c288 hi_nv_ftm_factory_mode factory_mode_cfg = {0}; in at_factory_mode_switch() local
289 hi_u32 ret = hi_factory_nv_read(HI_NV_FTM_FACTORY_MODE, &factory_mode_cfg, sizeof(hi_nv_ftm_factory_mode), 0); in at_factory_mode_switch()
295 if (factory_mode_cfg.factory_mode != 0x0) { in at_factory_mode_switch()
296 factory_mode_cfg.factory_mode = 0x0; in at_factory_mode_switch()
297 ret = hi_factory_nv_write(HI_NV_FTM_FACTORY_MODE, &factory_mode_cfg, sizeof(factory_mode_cfg), 0); in at_factory_mode_switch()
310 if (factory_mode_cfg.factory_valid == 0x0 || in at_factory_mode_switch()
311 factory_check_file(factory_mode_cfg.factory_addr_start, factory_mode_cfg.factory_size) != HI_ERR_SUCCESS) { in at_factory_mode_switch()
316 if (factory_mode_cfg in at_factory_mode_switch()
346 hi_nv_ftm_factory_mode factory_mode_cfg = {0}; at_factory_erase() local
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.c551 hi_nv_ftm_factory_mode factory_mode_cfg = {0}; in crypto_content_id() local
552 hi_u32 ret = hi_factory_nv_read(HI_NV_FTM_FACTORY_MODE, &factory_mode_cfg, sizeof(hi_nv_ftm_factory_mode), 0); in crypto_content_id()
555 if (factory_mode_cfg.factory_mode == 0x1) { in crypto_content_id()
557 kernel_factory = factory_mode_cfg.factory_addr_start; /* 0x0: factory mode, start addr:0x14D000. */ in crypto_content_id()

Completed in 4 milliseconds