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 <andrei.gansari@nxp.com>
This commit is contained in:
Andrei Gansari 2019-08-08 14:17:29 +03:00 committed by Kumar Gala
commit de514bc98a
2 changed files with 12 additions and 0 deletions

View file

@ -24,6 +24,7 @@
#include <fsl_clock.h>
#include <fsl_common.h>
#include <fsl_device_registers.h>
#include <fsl_pint.h>
/**
*
@ -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

View file

@ -24,6 +24,7 @@
#include <fsl_clock.h>
#include <fsl_common.h>
#include <fsl_device_registers.h>
#include <fsl_pint.h>
/**
*
@ -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