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:
parent
f7e2d8a5d6
commit
de514bc98a
2 changed files with 12 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
#include <fsl_clock.h>
|
#include <fsl_clock.h>
|
||||||
#include <fsl_common.h>
|
#include <fsl_common.h>
|
||||||
#include <fsl_device_registers.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 */
|
/* Initialize FRO/system clock to 48 MHz */
|
||||||
clock_init();
|
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
|
* install default handler that simply resets the CPU if configured in
|
||||||
* the kernel, NOP otherwise
|
* the kernel, NOP otherwise
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <fsl_clock.h>
|
#include <fsl_clock.h>
|
||||||
#include <fsl_common.h>
|
#include <fsl_common.h>
|
||||||
#include <fsl_device_registers.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 */
|
/* Initialize FRO/system clock to 48 MHz */
|
||||||
clock_init();
|
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
|
* install default handler that simply resets the CPU if configured in
|
||||||
* the kernel, NOP otherwise
|
* the kernel, NOP otherwise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue