2019-11-01 13:45:29 +01:00
|
|
|
# LPC LPC54XXX MCU line
|
|
|
|
|
2017-07-26 04:40:18 -05:00
|
|
|
# Copyright (c) 2017, NXP
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
choice
|
2019-11-01 10:24:07 +01:00
|
|
|
prompt "LPC LPC54XXX MCU Selection"
|
|
|
|
depends on SOC_SERIES_LPC54XXX
|
2017-07-26 04:40:18 -05:00
|
|
|
|
2018-05-15 13:47:24 -05:00
|
|
|
config SOC_LPC54114_M4
|
|
|
|
bool "SOC_LPC54114_M4"
|
|
|
|
select CPU_CORTEX_M4
|
2020-01-10 10:50:37 +09:00
|
|
|
select CPU_CORTEX_M_HAS_DWT
|
2019-09-12 12:23:03 -05:00
|
|
|
select CPU_HAS_ARM_MPU
|
2023-11-07 12:57:29 +00:00
|
|
|
select CPU_HAS_FPU
|
2018-04-24 17:56:56 +02:00
|
|
|
select PLATFORM_SPECIFIC_INIT
|
2020-08-25 16:13:16 -05:00
|
|
|
select CLOCK_CONTROL
|
2020-07-02 15:05:53 +03:00
|
|
|
select HAS_MCUX_IAP_LEGACY
|
2017-07-26 04:40:18 -05:00
|
|
|
|
2018-05-15 18:51:17 -05:00
|
|
|
config SOC_LPC54114_M0
|
|
|
|
bool "SOC_LPC54114_M0"
|
|
|
|
select CPU_CORTEX_M0PLUS
|
|
|
|
select CPU_CORTEX_M_HAS_VTOR
|
2020-08-25 16:13:16 -05:00
|
|
|
select CLOCK_CONTROL
|
2018-05-15 18:51:17 -05:00
|
|
|
|
2017-07-26 04:40:18 -05:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
if SOC_SERIES_LPC54XXX
|
|
|
|
|
|
|
|
config SOC_PART_NUMBER_LPC54114J256BD64
|
|
|
|
bool
|
|
|
|
|
|
|
|
config SOC_PART_NUMBER_LPC54XXX
|
|
|
|
string
|
|
|
|
default "LPC54114J256BD64" if SOC_PART_NUMBER_LPC54114J256BD64
|
|
|
|
|
|
|
|
help
|
|
|
|
This string holds the full part number of the SoC. It is a hidden
|
|
|
|
option that you should not set directly. The part number selection
|
|
|
|
choice defines the default value for this string.
|
|
|
|
|
2020-12-16 18:54:03 +02:00
|
|
|
config SECOND_CORE_MCUX
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "LPC54114 Cortex-M0 second core"
|
2018-05-15 18:52:23 -05:00
|
|
|
depends on HAS_MCUX
|
|
|
|
help
|
2020-12-16 18:54:03 +02:00
|
|
|
Driver for second core startup
|
2018-05-15 18:52:23 -05:00
|
|
|
|
2020-12-16 18:54:03 +02:00
|
|
|
config SECOND_CORE_BOOT_ADDRESS_MCUX
|
|
|
|
depends on SECOND_CORE_MCUX
|
|
|
|
hex "Address the second core will boot at"
|
2018-05-15 18:52:23 -05:00
|
|
|
default 0x20010000
|
|
|
|
help
|
2020-12-16 18:54:03 +02:00
|
|
|
This is the address the second core will boot from. Additionally this
|
|
|
|
address is where we will copy the SECOND_IMAGE to. We default this to
|
|
|
|
the base of SRAM1.
|
2018-05-15 18:52:23 -05:00
|
|
|
|
2022-08-04 10:22:38 -05:00
|
|
|
# Workaround for not being able to have commas in macro arguments
|
|
|
|
DT_CHOSEN_Z_CODE_CPU1_PARTITION := zephyr,code-cpu1-partition
|
|
|
|
|
|
|
|
# Move the LMA address of second core into flash
|
|
|
|
config BUILD_OUTPUT_ADJUST_LMA
|
|
|
|
depends on SECOND_CORE_MCUX && SOC_LPC54114_M0
|
|
|
|
default "-0x20010000+\
|
|
|
|
$(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_CPU1_PARTITION))"
|
|
|
|
|
|
|
|
config BUILD_OUTPUT_INFO_HEADER
|
|
|
|
default y
|
|
|
|
depends on SECOND_CORE_MCUX && SOC_LPC54114_M0
|
|
|
|
|
2022-11-30 16:06:40 -06:00
|
|
|
config LPC54XXX_SRAM2_CLOCK
|
|
|
|
bool "Clock LPC54XXX SRAM2"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
SRAM2 ram bank is disabled out of reset. By default, CMSIS SystemInit
|
|
|
|
will enable the clock to this RAM bank. Disable this Kconfig to leave
|
|
|
|
this ram bank untouched out of reset.
|
|
|
|
|
2017-07-26 04:40:18 -05:00
|
|
|
endif # SOC_SERIES_LPC54XXX
|