soc: lpc54xxx: add memory controller definitions

Adds device tree and kconfig definitons to use legacy LPC IAP flash
driver.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
This commit is contained in:
Andrei Gansari 2020-07-02 15:05:53 +03:00 committed by Anas Nashif
commit 6d86a6a139
3 changed files with 16 additions and 0 deletions

View file

@ -8,8 +8,19 @@
#include <dt-bindings/clock/mcux_lpc_syscon_clock.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/i2c/i2c.h>
#include <mem.h>
/ {
aliases{
gpio-0 = &gpio0;
gpio-1 = &gpio1;
mailbox-0 = &mailbox0;
};
chosen {
zephyr,flash-controller = &iap;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -20,4 +20,8 @@ config UART_MCUX_FLEXCOMM
default y
depends on SERIAL
config SOC_FLASH_LPC
default y
depends on FLASH
endif # SOC_LPC54114_M4

View file

@ -14,6 +14,7 @@ config SOC_LPC54114_M4
select CPU_HAS_ARM_MPU
select PLATFORM_SPECIFIC_INIT
select CLOCK_CONTROL
select HAS_MCUX_IAP_LEGACY
config SOC_LPC54114_M0
bool "SOC_LPC54114_M0"