soc: logging: move soc tree to new logger
Use the new logger framework for soc related code. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
8e38670af3
commit
071c9dc0f3
7 changed files with 36 additions and 44 deletions
|
@ -4,18 +4,18 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define SYS_LOG_LEVEL SYS_LOG_LEVEL_INFO
|
||||
#define SYS_LOG_DOMAIN "soc/s1000"
|
||||
|
||||
#include <device.h>
|
||||
#include <xtensa_api.h>
|
||||
#include <xtensa/xtruntime.h>
|
||||
#include <logging/sys_log.h>
|
||||
#include <board.h>
|
||||
#include <irq_nextlevel.h>
|
||||
#include <xtensa/hal.h>
|
||||
#include <init.h>
|
||||
|
||||
#define LOG_LEVEL CONFIG_SOC_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(soc);
|
||||
|
||||
static u32_t ref_clk_freq;
|
||||
|
||||
void _soc_irq_enable(u32_t irq)
|
||||
|
@ -42,7 +42,7 @@ void _soc_irq_enable(u32_t irq)
|
|||
}
|
||||
|
||||
if (!dev_cavs) {
|
||||
SYS_LOG_DBG("board: CAVS device binding failed\n");
|
||||
LOG_DBG("board: CAVS device binding failed");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ void _soc_irq_enable(u32_t irq)
|
|||
}
|
||||
|
||||
if (!dev_ictl) {
|
||||
SYS_LOG_DBG("board: DW intr_control device binding failed\n");
|
||||
LOG_DBG("board: DW intr_control device binding failed");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ void _soc_irq_disable(u32_t irq)
|
|||
}
|
||||
|
||||
if (!dev_cavs) {
|
||||
SYS_LOG_DBG("board: CAVS device binding failed\n");
|
||||
LOG_DBG("board: CAVS device binding failed");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,7 @@ void _soc_irq_disable(u32_t irq)
|
|||
}
|
||||
|
||||
if (!dev_ictl) {
|
||||
SYS_LOG_DBG("board: DW intr_control device binding failed\n");
|
||||
LOG_DBG("board: DW intr_control device binding failed");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ static int soc_init(struct device *dev)
|
|||
soc_read_bootstraps();
|
||||
|
||||
ref_clk_freq = soc_get_ref_clk_freq();
|
||||
SYS_LOG_INF("Reference clock frequency: %u Hz", ref_clk_freq);
|
||||
LOG_INF("Reference clock frequency: %u Hz", ref_clk_freq);
|
||||
|
||||
soc_set_resource_ownership();
|
||||
soc_set_power_and_clock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue