soc: nxp:imxrt Register log module to soc.c
Previously, the `soc.c` files for the IMXRT11xx, IMXRT5xx/CM33, and IMXRT6xx/CM33 did not register the log module. This caused build errors when DEBUG logging was enabled, as the `power.c` file attempted to access a non-existent SOC log module for debug messages. This commit fixes the issue by registering the log module in the `soc.c` files for the specified SoCs, thereby resolving the build errors. Signed-off-by: Apoorv Singh <apoorv.singh@gin.de>
This commit is contained in:
parent
8cc8a4f909
commit
e02a5fb139
3 changed files with 10 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <soc.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/linker/linker-defs.h>
|
||||
|
|
@ -15,6 +16,9 @@
|
|||
#include <fsl_gpc.h>
|
||||
#include <fsl_pmu.h>
|
||||
#include <fsl_dcdc.h>
|
||||
|
||||
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
|
||||
|
||||
#ifdef CONFIG_NXP_IMXRT_BOOT_HEADER
|
||||
#include <fsl_flexspi_nor_boot.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -15,11 +15,14 @@
|
|||
#include <zephyr/init.h>
|
||||
#include <zephyr/devicetree.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <soc.h>
|
||||
#include "fsl_power.h"
|
||||
#include "fsl_clock.h"
|
||||
#include <fsl_cache.h>
|
||||
|
||||
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
|
||||
|
||||
#ifdef CONFIG_FLASH_MCUX_FLEXSPI_XIP
|
||||
#include "flash_clock_setup.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <soc.h>
|
||||
#include <zephyr/drivers/uart.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
|
|
@ -26,6 +27,8 @@
|
|||
#include <fsl_device_registers.h>
|
||||
#include <fsl_cache.h>
|
||||
|
||||
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
|
||||
|
||||
#ifdef CONFIG_FLASH_MCUX_FLEXSPI_XIP
|
||||
#include "flash_clock_setup.h"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue