blob: 48596a6a0a1ae50142a57a959557196cb6660b24 [file] [log] [blame]
Bo Lv72d0e902023-01-02 14:27:34 +00001/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2/*
3 * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
4 */
Sam Wuc4f4cce2023-02-21 15:52:31 +08005#include <asm-generic/u-boot.h>
Bo Lv72d0e902023-01-02 14:27:34 +00006
7//is the uboot loaded from usb otg
8int is_tpl_loaded_from_usb(void);
9
10//is the uboot loaded from sdcard mmc 0
11//note only sdmmc supported by romcode when external device boot
12int is_tpl_loaded_from_ext_sdmmc(void);
13
14//Check if uboot loaded from external sdmmc or usb otg
15int aml_burn_check_uboot_loaded_for_burn(int flag);
16
17int aml_burn_factory_producing(int flag, bd_t* bis);
18
19//usb producing mode, if tpl loaded from usb pc tool and auto enter producing mode
20int aml_try_factory_usb_burning(int flag, bd_t* bis);
21
22//Auto enter sdcard burning if booted from sdcard and aml_sdc_burn.ini existed
23int aml_try_factory_sdcard_burning(int flag, bd_t* bis);
24
25