123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
- * All rights reserved.
- *
- * This software is supplied "AS IS" without any warranties.
- * RDA assumes no responsibility or liability for the use of the software,
- * conveys no license or title under any patent, copyright, or mask work
- * right to the product. RDA reserves the right to make changes in the
- * software without notification. RDA also make no representation or
- * warranty that such application will be suitable for the specified use
- * without further testing or modification.
- */
- #ifndef _BOOT_CONFIG_H_
- #define _BOOT_CONFIG_H_
- #include "hal_config.h"
- // @AUTO_GENERATION_NOTICE@
- /**
- * Whether to enable debug event in bootloader and fdl
- */
- #cmakedefine CONFIG_BOOT_EVENT_ENABLED
- /**
- * Whether to enable log in bootloader
- */
- #cmakedefine CONFIG_BOOT_LOG_ENABLED
- /**
- * Whether to enable log in fdl
- */
- #cmakedefine CONFIG_FDL_LOG_ENABLED
- /**
- * Perform signature check before flash write
- */
- #cmakedefine CONFIG_FDL_FLASH_SIGCHECK_BEFORE_WRITE
- /**
- * bootloader image start address (8910, 8811)
- *
- * This is the bootloader loaded address in SRAM, rather than the address
- * on flash. Also, it is start address of image header. It should match
- * system ROM.
- */
- #cmakedefine CONFIG_BOOT_IMAGE_START @CONFIG_BOOT_IMAGE_START@
- /**
- * bootloader maximum image size, excluding signature
- */
- #cmakedefine CONFIG_BOOT_UNSIGN_IMAGE_SIZE @CONFIG_BOOT_UNSIGN_IMAGE_SIZE@
- /**
- * bootloader maximum sram size, including header and non-romed sram
- */
- #cmakedefine CONFIG_BOOT_IMAGE_SIZE @CONFIG_BOOT_IMAGE_SIZE@
- /**
- * BOOT2 (decompressed) image address (8910)
- */
- #cmakedefine CONFIG_BOOT2_IMAGE_START @CONFIG_BOOT2_IMAGE_START@
- /**
- * BOOT2 (decompressed) sram size, including header and non-romed sram (8910)
- */
- #cmakedefine CONFIG_BOOT2_IMAGE_SIZE @CONFIG_BOOT2_IMAGE_SIZE@
- /**
- * FDL1 image address in SRAM (8910)
- *
- * It should match system ROM.
- */
- #cmakedefine CONFIG_FDL1_IMAGE_START @CONFIG_FDL1_IMAGE_START@
- /**
- * FDL1 maximum sram size, including header and non-romed sram (8910)
- */
- #cmakedefine CONFIG_FDL1_IMAGE_SIZE @CONFIG_FDL1_IMAGE_SIZE@
- /**
- * FDL2 image address in SRAM (8910)
- */
- #cmakedefine CONFIG_FDL2_IMAGE_START @CONFIG_FDL2_IMAGE_START@
- /**
- * FDL2 maximum sram size, including header and non-romed sram (8910)
- */
- #cmakedefine CONFIG_FDL2_IMAGE_SIZE @CONFIG_FDL2_IMAGE_SIZE@
- /**
- * NORFDL image address in SRAM (8811)
- *
- * It should match system ROM.
- */
- #cmakedefine CONFIG_NORFDL_IMAGE_START @CONFIG_NORFDL_IMAGE_START@
- /**
- * system SRAM data size used by sysrom (8850)
- */
- #cmakedefine CONFIG_ROM_SRAM_DATA_SIZE @CONFIG_ROM_SRAM_DATA_SIZE@
- /**
- * NORFDL maximum image size (8811)
- */
- #cmakedefine CONFIG_NORFDL_IMAGE_SIZE @CONFIG_NORFDL_IMAGE_SIZE@
- /**
- * bootloader/fdl IRQ stack size (8910)
- */
- #cmakedefine CONFIG_BOOT_IRQ_STACK_SIZE @CONFIG_BOOT_IRQ_STACK_SIZE@
- /**
- * bootloader/fdl SYS stack size (8910)
- */
- #cmakedefine CONFIG_BOOT_SYS_STACK_SIZE @CONFIG_BOOT_SYS_STACK_SIZE@
- /**
- * bootloader/fdl main stack size (8811)
- */
- #cmakedefine CONFIG_BOOT_MAIN_STACK_SIZE @CONFIG_BOOT_MAIN_STACK_SIZE@
- /**
- * bootloader/fdl process stack size (8811)
- */
- #cmakedefine CONFIG_BOOT_PROCESS_STACK_SIZE @CONFIG_BOOT_PROCESS_STACK_SIZE@
- /**
- * whether to enable timer interrupt in bootloader (8910)
- */
- #cmakedefine CONFIG_BOOT_TIMER_IRQ_ENABLE
- /**
- * bootloader timer interval in milliseconds (8910)
- */
- #cmakedefine CONFIG_BOOT_TIMER_PERIOD @CONFIG_BOOT_TIMER_PERIOD@
- /**
- * maximum FDL packet length
- */
- #cmakedefine CONFIG_FDL1_PACKET_MAX_LEN @CONFIG_FDL1_PACKET_MAX_LEN@
- /**
- * maximum FDL packet length
- */
- #cmakedefine CONFIG_FDL_PACKET_MAX_LEN @CONFIG_FDL_PACKET_MAX_LEN@
- /**
- * fixed nv bin maximum size in bytes (8910, 8811)
- */
- #cmakedefine CONFIG_NVBIN_FIXED_SIZE @CONFIG_NVBIN_FIXED_SIZE@
- /**
- * FDL1, FDL2 default uart device (8910)
- */
- #cmakedefine CONFIG_FDL_DEFAULT_UART @CONFIG_FDL_DEFAULT_UART@
- /**
- * FDL1, FDL2 default uart baud rate (8910)
- */
- #cmakedefine CONFIG_FDL_UART_BAUD @CONFIG_FDL_UART_BAUD@
- /**
- * Enable SMPL(Sudden Momentary Power Loss)(8910)
- */
- #cmakedefine CONFIG_BOOT_SMPL_ENABLE
- /**
- * Set SMPL thimer threshold (8910)
- */
- #cmakedefine CONFIG_BOOT_SMPL_THRESHOLD @CONFIG_BOOT_SMPL_THRESHOLD@
- /**
- * Enable pbint 7s reset (8910)
- */
- #cmakedefine CONFIG_BOOT_PB_7S_RESET_ENABLE
- /**
- * Enable UART download in bootloader through PDL protocol
- */
- #cmakedefine CONFIG_BOOT_UART1_PDL_ENABLE
- /**
- * bootloader unity output to uart
- */
- #cmakedefine CONFIG_BOOT_UNITY_OUTPUT_UART
- /**
- * bootloader unity unit test uart
- */
- #cmakedefine CONFIG_BOOT_UNITY_UART_NAME @CONFIG_BOOT_UNITY_UART_NAME@
- /**
- * bootloader unity unit test uart baud rate
- */
- #cmakedefine CONFIG_BOOT_UNITY_UART_BAUD @CONFIG_BOOT_UNITY_UART_BAUD@
- #endif
|