2019-09-12 06:52:35 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019, NXP
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-05-06 17:11:04 +08:00
|
|
|
#include <zephyr/kernel.h>
|
|
|
|
#include <zephyr/linker/sections.h>
|
2019-09-12 06:52:35 +08:00
|
|
|
|
2020-05-28 00:26:57 +08:00
|
|
|
uint8_t __kinetis_flash_config_section __kinetis_flash_config[] = {
|
2019-09-12 06:52:35 +08:00
|
|
|
/* Backdoor Comparison Key (unused) */
|
|
|
|
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
|
|
|
|
|
|
|
/* Program flash protection; 1 bit/region - 0=protected, 1=unprotected
|
|
|
|
*/
|
|
|
|
0xFF, 0xFF, 0xFF, 0xFF,
|
|
|
|
|
|
|
|
/* Flash security register (FSEC) enables/disables backdoor key access,
|
|
|
|
* mass erase, factory access, and flash security
|
|
|
|
*/
|
|
|
|
CONFIG_KINETIS_FLASH_CONFIG_FSEC,
|
|
|
|
|
|
|
|
/* Flash nonvolatile option register (FOPT) enables/disables NMI,
|
|
|
|
* EzPort, and boot options
|
|
|
|
*/
|
|
|
|
CONFIG_KINETIS_FLASH_CONFIG_FOPT,
|
|
|
|
|
|
|
|
/* EEPROM protection register (FEPROT) for FlexNVM devices */
|
|
|
|
CONFIG_KINETIS_FLASH_CONFIG_FEPROT,
|
|
|
|
|
|
|
|
/* Data flash protection register (FDPROT) for FlexNVM devices */
|
|
|
|
CONFIG_KINETIS_FLASH_CONFIG_FDPROT,
|
|
|
|
};
|