1 /*
2  * Copyright 2024 NXP
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/kernel.h>
8 #include <zephyr/linker/sections.h>
9 #include <zephyr/device.h>
10 
11 uint8_t __kinetis_flash_config_section __kinetis_flash_config[] = {
12 	/* Backdoor Comparison Key (unused) */
13 	0xFF,
14 	0xFF,
15 	0xFF,
16 	0xFF,
17 	0xFF,
18 	0xFF,
19 	0xFF,
20 	0xFF,
21 
22 	/* Program flash protection; 1 bit/region - 0=protected, 1=unprotected
23 	 */
24 	0xFF,
25 	0xFF,
26 	0xFF,
27 	0xFF,
28 
29 	/* Flash security register (FSEC) enables/disables backdoor key access,
30 	 * mass erase, factory access, and flash security
31 	 */
32 	DT_PROP_OR(DT_NODELABEL(ftfa), fsec, 0xFE),
33 
34 	/* Flash nonvolatile option register (FOPT) enables/disables NMI,
35 	 * EzPort, and boot options
36 	 */
37 	DT_PROP_OR(DT_NODELABEL(ftfa), fopt, 0xFF),
38 
39 	/* EEPROM protection register (FEPROT) for FlexNVM devices */
40 	0xFF,
41 
42 	/* Data flash protection register (FDPROT) for FlexNVM devices */
43 	0XFF,
44 };
45