Bo Lv | 72d0e90 | 2023-01-02 14:27:34 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| 2 | /* |
| 3 | * Copyright (c) 2019 Amlogic, Inc. All rights reserved. |
| 4 | */ |
Sam Wu | c4f4cce | 2023-02-21 15:52:31 +0800 | [diff] [blame] | 5 | #include <asm-generic/u-boot.h> |
Bo Lv | 72d0e90 | 2023-01-02 14:27:34 +0000 | [diff] [blame] | 6 | |
| 7 | //is the uboot loaded from usb otg |
| 8 | int 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 |
| 12 | int is_tpl_loaded_from_ext_sdmmc(void); |
| 13 | |
| 14 | //Check if uboot loaded from external sdmmc or usb otg |
| 15 | int aml_burn_check_uboot_loaded_for_burn(int flag); |
| 16 | |
| 17 | int 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 |
| 20 | int 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 |
| 23 | int aml_try_factory_sdcard_burning(int flag, bd_t* bis); |
| 24 | |
| 25 | |