soc: ambiq: Add missing LOG_MODULE_REGISTER in soc
Need to register log module as we declare it in power.c Signed-off-by: Hao Luo <hluo@ambiq.com>
This commit is contained in:
parent
5d0f4e3677
commit
eebd10de8a
5 changed files with 9 additions and 8 deletions
|
@ -12,9 +12,6 @@
|
|||
#include <zephyr/pm/pm.h>
|
||||
#include <zephyr/init.h>
|
||||
|
||||
/* ambiq-sdk includes */
|
||||
#include <soc.h>
|
||||
|
||||
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
|
||||
|
||||
void pm_state_set(enum pm_state state, uint8_t substate_id)
|
||||
|
|
|
@ -5,9 +5,11 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/init.h>
|
||||
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <soc.h>
|
||||
|
||||
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
|
||||
|
||||
extern void ambiq_power_init(void);
|
||||
|
||||
void soc_early_init_hook(void)
|
||||
|
|
|
@ -12,9 +12,6 @@
|
|||
#include <zephyr/pm/pm.h>
|
||||
#include <zephyr/init.h>
|
||||
|
||||
/* ambiq-sdk includes */
|
||||
#include <soc.h>
|
||||
|
||||
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
|
||||
|
||||
void pm_state_set(enum pm_state state, uint8_t substate_id)
|
||||
|
|
|
@ -5,9 +5,11 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/init.h>
|
||||
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <soc.h>
|
||||
|
||||
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
|
||||
|
||||
extern void ambiq_power_init(void);
|
||||
void soc_early_init_hook(void)
|
||||
{
|
||||
|
|
|
@ -6,8 +6,11 @@
|
|||
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/cache.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include "soc.h"
|
||||
|
||||
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
|
||||
|
||||
#define SCRATCH0_OEM_RCV_RETRY_MAGIC 0xA86
|
||||
|
||||
void soc_early_init_hook(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue