forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soc: nxp: imx93: m33 early init for GPIO
M33 early init for GPIO for secure access configuration, so that driver can operate pins. Signed-off-by: Yangbo Lu <[email protected]> Signed-off-by: Chunlei Xu <[email protected]>
- Loading branch information
1 parent
66dceba
commit 314686e
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright 2025 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/kernel.h> | ||
#include <zephyr/device.h> | ||
#include <zephyr/init.h> | ||
#include <soc.h> | ||
|
||
#ifdef CONFIG_SOC_EARLY_INIT_HOOK | ||
void soc_early_init_hook(void) | ||
{ | ||
/* Configure secure access to pin registers */ | ||
GPIO1->PCNS = 0x0; | ||
GPIO2->PCNS = 0x0; | ||
GPIO3->PCNS = 0x0; | ||
GPIO4->PCNS = 0x0; | ||
} | ||
#endif |