Skip to content

Commit eebd10d

Browse files
AlessandroLuokartben
authored andcommitted
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>
1 parent 5d0f4e3 commit eebd10d

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

soc/ambiq/apollo3x/power.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#include <zephyr/pm/pm.h>
1313
#include <zephyr/init.h>
1414

15-
/* ambiq-sdk includes */
16-
#include <soc.h>
17-
1815
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
1916

2017
void pm_state_set(enum pm_state state, uint8_t substate_id)

soc/ambiq/apollo3x/soc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*/
66

77
#include <zephyr/init.h>
8-
8+
#include <zephyr/logging/log.h>
99
#include <soc.h>
1010

11+
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
12+
1113
extern void ambiq_power_init(void);
1214

1315
void soc_early_init_hook(void)

soc/ambiq/apollo4x/power.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#include <zephyr/pm/pm.h>
1313
#include <zephyr/init.h>
1414

15-
/* ambiq-sdk includes */
16-
#include <soc.h>
17-
1815
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
1916

2017
void pm_state_set(enum pm_state state, uint8_t substate_id)

soc/ambiq/apollo4x/soc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*/
66

77
#include <zephyr/init.h>
8-
8+
#include <zephyr/logging/log.h>
99
#include <soc.h>
1010

11+
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
12+
1113
extern void ambiq_power_init(void);
1214
void soc_early_init_hook(void)
1315
{

soc/ambiq/apollo5x/soc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66

77
#include <zephyr/init.h>
88
#include <zephyr/cache.h>
9+
#include <zephyr/logging/log.h>
910
#include "soc.h"
1011

12+
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
13+
1114
#define SCRATCH0_OEM_RCV_RETRY_MAGIC 0xA86
1215

1316
void soc_early_init_hook(void)

0 commit comments

Comments
 (0)