Skip to content

Commit

Permalink
soc: lpc54xxx: add memory controller definitions
Browse files Browse the repository at this point in the history
Adds device tree and kconfig definitons to use legacy LPC IAP flash
driver.

Signed-off-by: Andrei Gansari <[email protected]>
  • Loading branch information
agansari authored and nashif committed Jan 23, 2021
1 parent c450130 commit 6d86a6a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dts/arm/nxp/nxp_lpc54xxx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down
4 changes: 4 additions & 0 deletions soc/arm/nxp_lpc/lpc54xxx/Kconfig.defconfig.lpc54114_m4
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions soc/arm/nxp_lpc/lpc54xxx/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6d86a6a

Please sign in to comment.