From de514bc98a3603ff34fed4bd35299edcb426725e Mon Sep 17 00:00:00 2001 From: Andrei Gansari Date: Thu, 8 Aug 2019 14:17:29 +0300 Subject: [PATCH] soc: enable PINT device at LPC SoC boot PINT device is enabled when SoC is booting up. Applies to LPC54xxx and LPC55xxx families. Signed-off-by: Andrei Gansari --- soc/arm/nxp_lpc/lpc54xxx/soc.c | 6 ++++++ soc/arm/nxp_lpc/lpc55xxx/soc.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/soc/arm/nxp_lpc/lpc54xxx/soc.c b/soc/arm/nxp_lpc/lpc54xxx/soc.c index 869a85f9ef5..a9273d7769d 100644 --- a/soc/arm/nxp_lpc/lpc54xxx/soc.c +++ b/soc/arm/nxp_lpc/lpc54xxx/soc.c @@ -24,6 +24,7 @@ #include #include #include +#include /** * @@ -90,6 +91,11 @@ static int nxp_lpc54114_init(struct device *arg) /* Initialize FRO/system clock to 48 MHz */ clock_init(); +#ifdef CONFIG_GPIO_MCUX_LPC + /* Turn on PINT device*/ + PINT_Init(PINT); +#endif + /* * install default handler that simply resets the CPU if configured in * the kernel, NOP otherwise diff --git a/soc/arm/nxp_lpc/lpc55xxx/soc.c b/soc/arm/nxp_lpc/lpc55xxx/soc.c index 8a7eb674f76..47c5f430851 100644 --- a/soc/arm/nxp_lpc/lpc55xxx/soc.c +++ b/soc/arm/nxp_lpc/lpc55xxx/soc.c @@ -24,6 +24,7 @@ #include #include #include +#include /** * @@ -87,6 +88,11 @@ static int nxp_lpc55s69_init(struct device *arg) /* Initialize FRO/system clock to 48 MHz */ clock_init(); +#ifdef CONFIG_GPIO_MCUX_LPC + /* Turn on PINT device*/ + PINT_Init(PINT); +#endif + /* * install default handler that simply resets the CPU if configured in * the kernel, NOP otherwise