zephyr/soc/arm/nxp_s32/s32k1/flash_configuration.c
Manuel Argüelles 91293187d8 soc: nxp_s32: introduce support for S32K1 devices
Introduce support for NXP S32K1 family of 32-bit MCUs, and
particularly for S32K146 devices. S32K1 share a fair amount of
similarities with Kinetis family, so most of the peripheral drivers
can be reused.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
2023-11-30 11:21:59 -05:00

32 lines
905 B
C

/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <zephyr/linker/sections.h>
uint8_t __kinetis_flash_config_section __kinetis_flash_config[] = {
/* 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_NXP_S32_FLASH_CONFIG_FSEC,
/* Flash nonvolatile option register (FOPT) enables/disables NMI,
* EzPort, and boot options
*/
CONFIG_NXP_S32_FLASH_CONFIG_FOPT,
/* EEPROM protection register (FEPROT) for FlexNVM devices */
CONFIG_NXP_S32_FLASH_CONFIG_FEPROT,
/* Data flash protection register (FDPROT) for FlexNVM devices */
CONFIG_NXP_S32_FLASH_CONFIG_FDPROT,
};