mirror of https://github.com/thesofproject/sof.git
zephyr: move library platform code to platform.c
Move logging code and static data to platform/library and declare a LOG module properly. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
1e4ff1ed5b
commit
e111252a5f
|
@ -61,3 +61,17 @@ int platform_init(struct sof *sof)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __ZEPHYR__
|
||||
/* Stubs for unsupported architectures */
|
||||
|
||||
/* Platform */
|
||||
int platform_boot_complete(uint32_t boot_message)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Logging */
|
||||
LOG_MODULE_REGISTER(sof);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -552,16 +552,3 @@ struct idc **idc_get(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if CONFIG_LIBRARY
|
||||
/* Dummies for unsupported architectures */
|
||||
|
||||
/* Platform */
|
||||
int platform_boot_complete(uint32_t boot_message)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Logging */
|
||||
const struct log_source_const_data log_const_sof;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue