Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/tools/amebasmart: Modify Flash Protection Status Register #6111

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified build/tools/amebasmart/gnu_utility/bl32.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion os/board/rtl8730e/src/component/file_system/ftl/ftl.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ uint16_t read_mapping_table(uint16_t logical_addr);
#endif

/* Flash Status Bit */
#define FLASH_STATUS_BITS 0x2c
#define FLASH_STATUS_BITS 0x28 //Protect Lower 512KB
uint32_t backup_state = 0;

static void ftl_setstatusbits(uint32_t NewState)
Expand Down
10 changes: 9 additions & 1 deletion os/se/ameba/rtl_security_api_wrapper_tz.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,16 @@ typedef struct {
void (*info_printf)(const char *);
} nsfunc_ops_s;

/* Flash Status Bit */
/* Flash Status Bit Protect Lower 512KB */
#ifdef CONFIG_AMEBAD_TRUSTZONE
#define FLASH_STATUS_BITS 0x2c
#endif
#ifdef CONFIG_AMEBALITE_TRUSTZONE
#define FLASH_STATUS_BITS 0x2c
#endif
#ifdef CONFIG_AMEBASMART_TRUSTZONE
#define FLASH_STATUS_BITS 0x28
#endif

nsfunc_ops_s ns_func;

Expand Down