Log: Disable SPI FLASH patch log

This commit is contained in:
Xu Chun Guang
2024-11-05 16:05:05 +08:00
parent c4b5085104
commit 323b1f8be0
2 changed files with 7 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ menu "SPI Flash"
menu "Patch" menu "Patch"
config ENABLE_SPI_FLASH_PATCH config ENABLE_SPI_FLASH_PATCH
bool "Enable TH25Q16HB Patch 0" bool "Enable SPI Flash Patch"
default n default n
config ENABLE_TH25Q16HB_PATCH_0 config ENABLE_TH25Q16HB_PATCH_0
@@ -22,5 +22,10 @@ menu "SPI Flash"
WARNING: If you don't use FM25Q16A, you must not enable this option. WARNING: If you don't use FM25Q16A, you must not enable this option.
Although you use FM25Q16A, you should ask your flash manufacturer Although you use FM25Q16A, you should ask your flash manufacturer
if your flash need use this patch. if your flash need use this patch.
config ENABLE_SPI_FLASH_PATCH_DEBUG
bool "Enable SPI flash patch debug"
depends on ENABLE_SPI_FLASH_PATCH
default n
endmenu endmenu
endmenu endmenu

View File

@@ -30,7 +30,7 @@ extern "C" {
#define FLASH_PATCH_STR(str) (__extension__({static const FLASH_PATCH_RODATA_ATTR char __c[] = (str); (const char *)&__c;})) #define FLASH_PATCH_STR(str) (__extension__({static const FLASH_PATCH_RODATA_ATTR char __c[] = (str); (const char *)&__c;}))
#if 1 #if CONFIG_ENABLE_SPI_FLASH_PATCH_DEBUG
typedef int (*__ets_printf_t)(const char *fmt, ...); typedef int (*__ets_printf_t)(const char *fmt, ...);
#define ROM_PRINTF(_fmt, ...) ((__ets_printf_t)(0x400024cc))(_fmt, ##__VA_ARGS__) #define ROM_PRINTF(_fmt, ...) ((__ets_printf_t)(0x400024cc))(_fmt, ##__VA_ARGS__)
#else #else