mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
e23e9bfc33
PD#SWPL-101578 Problem: use vendor_hook print cpu and irq info Solution: use vendor_hook print cpu and irq info Verify: sc2 Change-Id: I52f0474ea55d4136933c0a2c12daf31eff4ab261 Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
62 lines
1.0 KiB
C
62 lines
1.0 KiB
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __DEBUG_MAIN_H_
|
|
#define __DEBUG_MAIN_H_
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_DEBUG_LOCKUP)
|
|
int debug_lockup_init(void);
|
|
int cpu_mhz_init(void);
|
|
#else
|
|
static inline int debug_lockup_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int cpu_mhz_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_DEBUG_ATRACE)
|
|
int meson_atrace_init(void);
|
|
#else
|
|
static inline int meson_atrace_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_DEBUG_FILE)
|
|
int debug_file_init(void);
|
|
void debug_file_exit(void);
|
|
#else
|
|
static inline int debug_file_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void debug_file_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if defined(CONFIG_AMLOGIC_GKI_CONFIG) && defined(MODULE)
|
|
int gki_config_init(void);
|
|
#else
|
|
static inline int gki_config_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#if IS_MODULE(CONFIG_AMLOGIC_DEBUG_PRINTK)
|
|
int printk_vendor_hook_init(void);
|
|
void printk_vendor_hook_exit(void);
|
|
#endif
|
|
|
|
#endif /*_DEBUG_MAIN_H__*/
|