mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
ODROID-C5: gki: disable AMLOGIC_GKI_TOOL and fix compile error
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com> Change-Id: I1ef1bd80d9aefc4ae7387f9dedb7db91057c406b
This commit is contained in:
@@ -118,6 +118,7 @@ static unsigned int amfc_clk[] = {
|
||||
|
||||
static unsigned int init_clk;
|
||||
|
||||
#ifndef MODULE
|
||||
static int early_amfc_clk_set(char *buf)
|
||||
{
|
||||
int clk = 0;
|
||||
@@ -136,9 +137,11 @@ static int early_amfc_clk_set(char *buf)
|
||||
return -EINVAL;
|
||||
}
|
||||
__setup("amfc_clk=", early_amfc_clk_set);
|
||||
#endif //MODULE
|
||||
|
||||
static unsigned int default_log;
|
||||
|
||||
#ifndef MODULE
|
||||
static int early_amfc_log_set(char *buf)
|
||||
{
|
||||
int i = 0;
|
||||
@@ -151,6 +154,7 @@ static int early_amfc_log_set(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("amfc_log=", early_amfc_log_set);
|
||||
#endif //MODULE
|
||||
|
||||
|
||||
static int amfc_hw_init(void)
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
int bypass_clk_disable;
|
||||
|
||||
#ifndef MODULE
|
||||
static int bypass_clk_disable_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -22,6 +23,7 @@ static int bypass_clk_disable_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("bypass_clk_disable=", bypass_clk_disable_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static int __init clk_module_init(void)
|
||||
{
|
||||
|
||||
@@ -37,6 +37,7 @@ static DEFINE_MUTEX(cluster_list_lock);
|
||||
static DEFINE_MUTEX(cpufreq_target_lock);
|
||||
|
||||
static unsigned int freqmax[CLUSTER_MAX];
|
||||
#ifndef MODULE
|
||||
static int freqmax0_param_v2(char *buff)
|
||||
{
|
||||
if (!buff)
|
||||
@@ -61,6 +62,7 @@ static int freqmax1_param_v2(char *buff)
|
||||
|
||||
__setup("freqmax0=", freqmax0_param_v2);
|
||||
__setup("freqmax1=", freqmax1_param_v2);
|
||||
#endif //MODULE
|
||||
|
||||
static struct cluster_data *find_cluster_data_by_cpu(int cpu)
|
||||
{
|
||||
|
||||
@@ -309,6 +309,7 @@ static const struct kernel_param_ops iotm_en_ops = {
|
||||
};
|
||||
module_param_cb(iotm_en, &iotm_en_ops, &iotm_en, 0644);
|
||||
|
||||
#ifndef MODULE
|
||||
static int iotm_en_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -365,6 +366,7 @@ static int iotm_dump_cnt_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("iotm_dump_cnt=", iotm_dump_cnt_setup);
|
||||
#endif //MODULE
|
||||
|
||||
/* interface for the software to record data */
|
||||
void iotm_sw_record_write(u32 sw_type, u32 val1, u32 val2)
|
||||
|
||||
@@ -49,6 +49,7 @@ EXPORT_SYMBOL(ramoops_ftrace_en);
|
||||
int ramoops_trace_mask = 0x1f;
|
||||
EXPORT_SYMBOL(ramoops_trace_mask);
|
||||
|
||||
#ifndef MODULE
|
||||
static int ramoops_trace_mask_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -62,9 +63,11 @@ static int ramoops_trace_mask_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("ramoops_trace_mask=", ramoops_trace_mask_setup);
|
||||
#endif //MODULE
|
||||
|
||||
int ramoops_io_skip;
|
||||
|
||||
#ifndef MODULE
|
||||
static int ramoops_io_skip_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -81,9 +84,11 @@ static int ramoops_io_skip_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("ramoops_io_skip=", ramoops_io_skip_setup);
|
||||
#endif //MODULE
|
||||
|
||||
int ramoops_io_stack = 1;
|
||||
|
||||
#ifndef MODULE
|
||||
static int ramoops_io_stack_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -97,6 +102,7 @@ static int ramoops_io_stack_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("ramoops_io_stack=", ramoops_io_stack_setup);
|
||||
#endif //MODULE
|
||||
|
||||
/*
|
||||
* module_debug = 0:disable insmod/rmmod
|
||||
@@ -104,6 +110,7 @@ __setup("ramoops_io_stack=", ramoops_io_stack_setup);
|
||||
* module_debug > 1:enable rmmod
|
||||
*/
|
||||
static int module_debug = 2;
|
||||
#ifndef MODULE
|
||||
static int module_debug_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -117,9 +124,11 @@ static int module_debug_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("module_debug=", module_debug_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static int ramoops_io_en;
|
||||
|
||||
#ifndef MODULE
|
||||
static int ramoops_io_en_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -133,9 +142,11 @@ static int ramoops_io_en_setup(char *buf)
|
||||
return 0;
|
||||
}
|
||||
__setup("ramoops_io_en=", ramoops_io_en_setup);
|
||||
#endif //MODULE
|
||||
|
||||
int ramoops_io_dump = 1;
|
||||
|
||||
#ifndef MODULE
|
||||
static int ramoops_io_dump_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -149,12 +160,14 @@ static int ramoops_io_dump_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("ramoops_io_dump=", ramoops_io_dump_setup);
|
||||
#endif //MODULE
|
||||
|
||||
/* ramoops_io_dump_delay_secs : iotrace dump delayed time, s */
|
||||
static int ramoops_io_dump_delay_secs = 10; /* default : 10s */
|
||||
|
||||
static struct delayed_work iotrace_work;
|
||||
|
||||
#ifndef MODULE
|
||||
static int ramoops_io_dump_delay_secs_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -168,6 +181,7 @@ static int ramoops_io_dump_delay_secs_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("ramoops_io_dump_delay_secs=", ramoops_io_dump_delay_secs_setup);
|
||||
#endif //MODULE
|
||||
|
||||
struct prz_record_iter {
|
||||
void *ptr;
|
||||
@@ -360,6 +374,7 @@ static inline size_t buffer_start(struct aml_persistent_ram_zone *prz)
|
||||
}
|
||||
|
||||
static char reboot_mode[16];
|
||||
#ifndef MODULE
|
||||
static int reboot_mode_setup(char *s)
|
||||
{
|
||||
if (s)
|
||||
@@ -368,6 +383,7 @@ static int reboot_mode_setup(char *s)
|
||||
return 1;
|
||||
}
|
||||
__setup("reboot_mode=", reboot_mode_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static bool is_shutdown_reboot(void)
|
||||
{
|
||||
|
||||
@@ -41,6 +41,7 @@ static DEFINE_PER_CPU(int, en);
|
||||
|
||||
static int ramoops_io_blacklist = IO_BLACKLIST_AMVECM;
|
||||
|
||||
#ifndef MODULE
|
||||
static int ramoops_io_blacklist_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -54,6 +55,7 @@ static int ramoops_io_blacklist_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("ramoops_io_blacklist=", ramoops_io_blacklist_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static unsigned int check_reg[MAX_DETECT_REG];
|
||||
static unsigned int check_mask[MAX_DETECT_REG];
|
||||
@@ -143,6 +145,7 @@ static bool is_in_usb_isr(void)
|
||||
static int reg_check_panic;
|
||||
static bool reg_check_flag;
|
||||
|
||||
#ifndef MODULE
|
||||
static int reg_check_panic_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -156,6 +159,7 @@ static int reg_check_panic_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("reg_check_panic=", reg_check_panic_setup);
|
||||
#endif //MODULE
|
||||
|
||||
void reg_check_init(void)
|
||||
{
|
||||
@@ -235,6 +239,7 @@ void reg_check_func(unsigned long vaddr, unsigned int flag)
|
||||
rcu_read_unlock();
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int check_reg_setup(char *ptr)
|
||||
{
|
||||
char *str_entry;
|
||||
@@ -283,6 +288,7 @@ static int check_mask_setup(char *ptr)
|
||||
}
|
||||
|
||||
__setup("check_mask=", check_mask_setup);
|
||||
#endif //MODULE
|
||||
|
||||
#define REG_MAX_NUM 5
|
||||
static struct resource gic_mem[REG_MAX_NUM];
|
||||
|
||||
@@ -41,6 +41,7 @@ struct iotm_time {
|
||||
|
||||
static struct iotm_time iotm_time;
|
||||
|
||||
#ifndef MODULE
|
||||
static int iotm_long_time_en_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -54,6 +55,7 @@ static int iotm_long_time_en_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("iotm_long_time_en=", iotm_long_time_en_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static void sw_record_write_v1(u32 sw_type, u32 val1, u32 val2)
|
||||
{
|
||||
|
||||
@@ -88,6 +88,8 @@ static int ignore_check_tty_count = 20000;
|
||||
module_param(ignore_check_tty_count, int, 0644);
|
||||
|
||||
static int check_tty_en;
|
||||
|
||||
#ifndef MODULE
|
||||
static int check_tty_en_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -103,6 +105,7 @@ static int check_tty_en_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("check_tty_en=", check_tty_en_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static int __nocfi __kprobes check_tty_count_pre_handler(struct kprobe *p, struct pt_regs *regs)
|
||||
{
|
||||
|
||||
@@ -88,6 +88,7 @@ static int isr_check_en = 1;
|
||||
static int idle_check_en = 1;
|
||||
static int smc_check_en = 1;
|
||||
|
||||
#if IS_ENABLED(CONFIG_AMLOGIC_GKI_TOOL)
|
||||
static struct param_entry lockup_params[] = {
|
||||
PARAM_ULLONG(isr_long_thr),
|
||||
PARAM_ULONG(isr_ratio_thr),
|
||||
@@ -99,6 +100,7 @@ static struct param_entry lockup_params[] = {
|
||||
};
|
||||
|
||||
module_param_cb(debug_lockup, &key_value_param_ops, &lockup_params, 0644);
|
||||
#endif
|
||||
|
||||
#if (defined CONFIG_ARM64) || (defined CONFIG_AMLOGIC_ARMV8_AARCH32)
|
||||
#define FIQ_DEBUG_SMC_CMD 0x820000f1
|
||||
@@ -107,6 +109,7 @@ module_param_cb(debug_lockup, &key_value_param_ops, &lockup_params, 0644);
|
||||
|
||||
static int fiq_check_en = 1;
|
||||
|
||||
#ifndef MODULE
|
||||
static int fiq_check_en_setup(char *str)
|
||||
{
|
||||
if (!strcmp(str, "1"))
|
||||
@@ -118,9 +121,11 @@ static int fiq_check_en_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("fiq_check_en=", fiq_check_en_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static int fiq_check_show_regs_en;
|
||||
|
||||
#ifndef MODULE
|
||||
static int fiq_check_show_regs_en_setup(char *str)
|
||||
{
|
||||
if (!strcmp(str, "1"))
|
||||
@@ -132,6 +137,7 @@ static int fiq_check_show_regs_en_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("fiq_check_show_regs_en=", fiq_check_show_regs_en_setup);
|
||||
#endif //MODULE
|
||||
|
||||
struct fiq_regs {
|
||||
u64 regs[31];
|
||||
@@ -1120,6 +1126,7 @@ static void fiq_debug_addr_init(void)
|
||||
|
||||
static int aml_panic_print;
|
||||
|
||||
#ifndef MODULE
|
||||
static int panic_print_setup(char *str)
|
||||
{
|
||||
aml_panic_print = 1;
|
||||
@@ -1127,6 +1134,7 @@ static int panic_print_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("panic_print=", panic_print_setup);
|
||||
#endif
|
||||
|
||||
static int debug_panic_notifier_func(struct notifier_block *self,
|
||||
unsigned long v, void *p)
|
||||
|
||||
@@ -68,6 +68,7 @@ static int sched_pick_next_task_debug;
|
||||
static int sched_pick_next_task_wait_socre = 10; //1ms+
|
||||
static int sched_pick_next_task_ignore_wait_prio = 120;
|
||||
|
||||
#if IS_ENABLED(CONFIG_AMLOGIC_GKI_TOOL)
|
||||
static struct param_entry sched_params[] = {
|
||||
PARAM_INT(sched_big_weight),
|
||||
PARAM_INT(sched_interactive_task_util),
|
||||
@@ -88,6 +89,7 @@ static struct param_entry sched_params[] = {
|
||||
};
|
||||
|
||||
module_param_cb(debug_sched, &key_value_param_ops, &sched_params, 0644);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
static inline bool should_honor_rt_sync(struct rq *rq, struct task_struct *p,
|
||||
|
||||
@@ -45,6 +45,7 @@ static int drm_get_dv_support_info(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int gamma_boot_ctl(char *str)
|
||||
{
|
||||
if (strncmp("0", str, 1) == 0)
|
||||
@@ -56,6 +57,7 @@ static int gamma_boot_ctl(char *str)
|
||||
}
|
||||
|
||||
__setup("gamma=", gamma_boot_ctl);
|
||||
#endif
|
||||
|
||||
static void meson_crtc_destroy_state(struct drm_crtc *crtc,
|
||||
struct drm_crtc_state *state)
|
||||
|
||||
@@ -61,6 +61,7 @@ static int skip_logo;
|
||||
int recovery_mode;
|
||||
struct meson_drm_param am_drm_param;
|
||||
|
||||
#ifndef MODULE
|
||||
static int check_reboot_mode(char *str)
|
||||
{
|
||||
if (strncmp("qui", str, 3) == 0)
|
||||
@@ -79,6 +80,7 @@ static int check_reboot_mode(char *str)
|
||||
}
|
||||
|
||||
__setup("reboot_mode=", check_reboot_mode);
|
||||
#endif
|
||||
|
||||
static const struct drm_mode_config_funcs meson_mode_config_funcs = {
|
||||
.atomic_check = drm_atomic_helper_check,
|
||||
|
||||
@@ -72,6 +72,7 @@ static u32 drm_logo_bpp = 16;
|
||||
static u32 drm_logo_width = 1920;
|
||||
static u32 drm_logo_height = 1080;
|
||||
|
||||
#ifndef MODULE
|
||||
static int drm_logo_bpp_setup(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -82,12 +83,14 @@ static int drm_logo_bpp_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("display_bpp=", drm_logo_bpp_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static u32 drm_logo_get_display_bpp(void)
|
||||
{
|
||||
return drm_logo_bpp;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int drm_logo_width_setup(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -98,12 +101,14 @@ static int drm_logo_width_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("fb_width=", drm_logo_width_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static u32 drm_logo_get_fb_width(void)
|
||||
{
|
||||
return drm_logo_width;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int drm_logo_height_setup(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -114,6 +119,7 @@ static int drm_logo_height_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("fb_height=", drm_logo_height_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static u32 drm_logo_get_fb_height(void)
|
||||
{
|
||||
@@ -221,6 +227,7 @@ static inline int install_osd_reverse_info(struct osd_info_s *init_osd_info,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int drm_logo_reverse_setup(char *str)
|
||||
{
|
||||
char *ptr = str;
|
||||
@@ -252,6 +259,7 @@ static int drm_logo_reverse_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("osd_reverse=", drm_logo_reverse_setup);
|
||||
#endif
|
||||
|
||||
void drm_logo_get_osd_reverse(u32 *index, u32 *reverse_type)
|
||||
{
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
static atomic_t meson_ir_dev_no = ATOMIC_INIT(-1);
|
||||
|
||||
static int disable_ir;
|
||||
#ifndef MODULE
|
||||
static int get_irenv(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -45,6 +46,7 @@ static int get_irenv(char *str)
|
||||
}
|
||||
|
||||
__setup("disable_ir=", get_irenv);
|
||||
#endif //MODULE
|
||||
|
||||
int meson_ir_read_dev_num(void)
|
||||
{
|
||||
|
||||
@@ -189,6 +189,7 @@ static unsigned int get_vpu_clk_mux_id(void)
|
||||
return mux_id;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int get_vpu_overclock(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -199,6 +200,7 @@ static int get_vpu_overclock(char *str)
|
||||
}
|
||||
|
||||
__setup("vpu_overclock=", get_vpu_overclock);
|
||||
#endif //MODULE
|
||||
|
||||
unsigned int vpu_clk_get(void)
|
||||
{
|
||||
|
||||
@@ -786,6 +786,7 @@ store_dbg(struct device *dev,
|
||||
return count;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int di_read_canvas_reverse(char *str)
|
||||
{
|
||||
unsigned char *ptr = str;
|
||||
@@ -802,6 +803,7 @@ static int di_read_canvas_reverse(char *str)
|
||||
return 0;
|
||||
}
|
||||
__setup("video_reverse=", di_read_canvas_reverse);
|
||||
#endif //MODULE
|
||||
|
||||
static unsigned char *di_log_buf;
|
||||
static unsigned int di_log_wr_pos;
|
||||
|
||||
@@ -12588,6 +12588,7 @@ int dim_seq_file_module_para_di(struct seq_file *seq)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int di_axis_reverse(char *str)
|
||||
{
|
||||
char *ptr = str;
|
||||
@@ -12617,6 +12618,7 @@ static int di_axis_reverse(char *str)
|
||||
}
|
||||
|
||||
__setup("video_reverse=", di_axis_reverse);
|
||||
#endif //MODULE
|
||||
|
||||
#ifdef MARK_HIS /*move to di_sys.c*/
|
||||
//MODULE_DESCRIPTION("AMLOGIC DEINTERLACE driver");
|
||||
|
||||
@@ -20450,6 +20450,7 @@ static struct platform_driver aml_amdolby_vision_driver = {
|
||||
.remove = __exit_p(amdolby_vision_remove),
|
||||
};
|
||||
|
||||
#ifndef MODULE
|
||||
static int get_amdv_uboot_on(char *str)
|
||||
{
|
||||
char uboot_amdv_on[DV_NAME_LEN_MAX] = {0};
|
||||
@@ -20531,6 +20532,7 @@ static int recovery_mode_check(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("recovery_part=", recovery_mode_check);
|
||||
#endif //MODULE
|
||||
|
||||
int __init amdolby_vision_init(void)
|
||||
{
|
||||
|
||||
@@ -15042,6 +15042,7 @@ int screen_orientation(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int vpp_axis_reverse(char *str)
|
||||
{
|
||||
char *ptr = str;
|
||||
@@ -15076,6 +15077,7 @@ static int vpp_axis_reverse(char *str)
|
||||
}
|
||||
|
||||
__setup("video_reverse=", vpp_axis_reverse);
|
||||
#endif //MODULE
|
||||
#endif
|
||||
|
||||
struct vframe_s *get_cur_dispbuf(void)
|
||||
|
||||
@@ -130,6 +130,7 @@ bool vf_log_be = true;
|
||||
unsigned int vf_list_dbg;
|
||||
unsigned int vf_move_print_cnt;
|
||||
|
||||
#if IS_ENABLED(CONFIG_AMLOGIC_GKI_TOOL)
|
||||
struct param_entry vdin_params[] = {
|
||||
PARAM_BOOL(vf_log_enable),
|
||||
PARAM_BOOL(vf_log_fe),
|
||||
@@ -139,6 +140,7 @@ struct param_entry vdin_params[] = {
|
||||
};
|
||||
|
||||
module_param_cb(debug_vdin, &key_value_param_ops, &vdin_params, 0644);
|
||||
#endif
|
||||
|
||||
/* module_param(vrr_input_switch_frames, int, 0664);
|
||||
*MODULE_PARM_DESC(vrr_input_switch_frames,
|
||||
@@ -177,6 +179,7 @@ static void vdin_backup_histgram(struct vframe_s *vf, struct vdin_dev_s *devp);
|
||||
|
||||
char *vf_get_receiver_name(const char *provider_name);
|
||||
|
||||
#ifndef MODULE
|
||||
static int vdin_get_video_reverse(char *str)
|
||||
{
|
||||
unsigned char *ptr = str;
|
||||
@@ -185,6 +188,7 @@ static int vdin_get_video_reverse(char *str)
|
||||
return 0;
|
||||
}
|
||||
__setup("video_reverse=", vdin_get_video_reverse);
|
||||
#endif //MODULE
|
||||
|
||||
static const struct vframe_operations_s vdin_vf_ops = {
|
||||
.peek = vdin_vf_peek,
|
||||
|
||||
@@ -1420,7 +1420,9 @@ extern bool vf_log_be;
|
||||
extern unsigned int vf_list_dbg;
|
||||
extern unsigned int vf_move_print_cnt;
|
||||
|
||||
#if IS_ENABLED(CONFIG_AMLOGIC_GKI_TOOL)
|
||||
extern struct param_entry vdin_params[];
|
||||
#endif
|
||||
|
||||
struct vframe_provider_s *vf_get_provider_by_name(const char *provider_name);
|
||||
extern bool enable_reset;
|
||||
|
||||
@@ -1088,6 +1088,7 @@ void __exit eDPTX_TX_exit(void)
|
||||
platform_driver_unregister(&eDP_platform_driver);
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int __dptx_bootargs_setup(char *str)
|
||||
{
|
||||
int ret = 0;
|
||||
@@ -1128,6 +1129,7 @@ static int __dptx_bootargs_setup(char *str)
|
||||
}
|
||||
|
||||
__setup("eDPTX=", __dptx_bootargs_setup);
|
||||
#endif //MODULE
|
||||
|
||||
struct dptx_drv_s *aml_dptx_get_driver(u8 drv_idx)
|
||||
{
|
||||
|
||||
@@ -28,6 +28,7 @@ struct hdmitx_boot_param *get_hdmitx_boot_params(void)
|
||||
return &tx_params;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
/* besides characters defined in separator, '\"' are used as separator;
|
||||
* and any characters in '\"' will not act as separator
|
||||
*/
|
||||
@@ -296,4 +297,5 @@ static int hdmitx_boot_dsc_policy(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("dsc_policy=", hdmitx_boot_dsc_policy);
|
||||
#endif //MODULE
|
||||
|
||||
|
||||
@@ -98,6 +98,7 @@ void __hdmitx_dbg(enum hdmitx_debug_category category, const char *format, ...)
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int hdmitx_config_debug_level(char *str)
|
||||
{
|
||||
int err;
|
||||
@@ -119,3 +120,4 @@ static int hdmitx_config_debug_level(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("hdmitx_debug_level=", hdmitx_config_debug_level);
|
||||
#endif //MODULE
|
||||
|
||||
@@ -3801,6 +3801,7 @@ void __exit aml_bl_exit(void)
|
||||
platform_driver_unregister(&aml_bl_driver);
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int aml_bl_level_setup(char *str)
|
||||
{
|
||||
int ret = 0;
|
||||
@@ -3846,6 +3847,7 @@ static int aml_bl2_level_setup(char *str)
|
||||
__setup("bl_level=", aml_bl_level_setup);
|
||||
__setup("bl1_level=", aml_bl1_level_setup);
|
||||
__setup("bl2_level=", aml_bl2_level_setup);
|
||||
#endif //MODULE
|
||||
|
||||
//MODULE_DESCRIPTION("AML Backlight Driver");
|
||||
//MODULE_LICENSE("GPL");
|
||||
|
||||
@@ -3120,6 +3120,7 @@ void __exit lcd_exit(void)
|
||||
platform_driver_unregister(&lcd_platform_driver);
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static void lcd_boot_ctrl_dft_prepare(struct lcd_boot_ctrl_s *boot_ctrl)
|
||||
{
|
||||
switch (boot_ctrl->init_level) {
|
||||
@@ -3239,6 +3240,7 @@ __setup("lcd0=", lcd0_boot_setup);
|
||||
__setup("lcd1=", lcd1_boot_setup);
|
||||
__setup("lcd2=", lcd2_boot_setup);
|
||||
__setup("lcd_debug=", lcd_debug_ctrl_setup);
|
||||
#endif //MODULE
|
||||
|
||||
//MODULE_DESCRIPTION("Meson LCD Panel Driver");
|
||||
//MODULE_LICENSE("GPL");
|
||||
|
||||
@@ -133,6 +133,7 @@ static u32 dummyp_timing_flip;
|
||||
* **********************************************************
|
||||
*/
|
||||
|
||||
#ifndef MODULE
|
||||
static int dummy_encp_timing_flip_setup(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -155,6 +156,7 @@ static int dummy_projector_fps_ctl_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("projector_fps_ctl=", dummy_projector_fps_ctl_setup);
|
||||
#endif //MODULE
|
||||
|
||||
int get_dummyp_timing_flip(void)
|
||||
{
|
||||
|
||||
@@ -1006,6 +1006,7 @@ __exit void vout2_exit_module(void)
|
||||
platform_driver_unregister(&vout2_driver);
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int str2lower(char *str)
|
||||
{
|
||||
while (*str != '\0') {
|
||||
@@ -1096,6 +1097,7 @@ static int get_connector1_type(char *str)
|
||||
}
|
||||
|
||||
__setup("connector1_type=", get_connector1_type);
|
||||
#endif //MODULE
|
||||
|
||||
//MODULE_AUTHOR("Platform-BJ <platform.bj@amlogic.com>");
|
||||
//MODULE_DESCRIPTION("VOUT2 Server Module");
|
||||
|
||||
@@ -1007,6 +1007,7 @@ __exit void vout3_exit_module(void)
|
||||
platform_driver_unregister(&vout3_driver);
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int str2lower(char *str)
|
||||
{
|
||||
while (*str != '\0') {
|
||||
@@ -1097,6 +1098,7 @@ static int get_connector2_type(char *str)
|
||||
}
|
||||
|
||||
__setup("connector2_type=", get_connector2_type);
|
||||
#endif //MODULE
|
||||
|
||||
//MODULE_AUTHOR("Platform-BJ <platform.bj@amlogic.com>");
|
||||
//MODULE_DESCRIPTION("vout3 Server Module");
|
||||
|
||||
@@ -69,6 +69,7 @@ static bool enable_debugmode;
|
||||
|
||||
int vout_debug_print;
|
||||
|
||||
#ifndef MODULE
|
||||
static int vout_print_enable(char *str)
|
||||
{
|
||||
if (strncmp("1", str, 1) == 0)
|
||||
@@ -79,6 +80,7 @@ static int vout_print_enable(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("vout_print=", vout_print_enable);
|
||||
#endif //MODULE
|
||||
|
||||
/* ********************************************************** */
|
||||
static irqreturn_t vout_vsync_irq_handler(int irq, void *data)
|
||||
@@ -1292,6 +1294,7 @@ __exit void vout_exit_module(void)
|
||||
platform_driver_unregister(&vout_driver);
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int str2lower(char *str)
|
||||
{
|
||||
while (*str != '\0') {
|
||||
@@ -1414,6 +1417,7 @@ static int get_connector_type_to_compat(char *str)
|
||||
}
|
||||
|
||||
__setup("connector_type=", get_connector_type_to_compat);
|
||||
#endif //MODULE
|
||||
|
||||
/*TODO: drm to disable display/mode sysfs set.*/
|
||||
void disable_vout_mode_set_sysfs(void)
|
||||
|
||||
@@ -46,6 +46,7 @@ static struct hrtimer ddr_hrtimer_timer;
|
||||
struct ddr_bandwidth *aml_db;
|
||||
|
||||
static int init_ots_level = -1;
|
||||
#ifndef MODULE
|
||||
static int ots_level_setup(char *str)
|
||||
{
|
||||
int val;
|
||||
@@ -60,8 +61,10 @@ static int ots_level_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("ots_level=", ots_level_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static int init_poll_cpu = 1;
|
||||
#ifndef MODULE
|
||||
static int poll_cpu_setup(char *str)
|
||||
{
|
||||
int val;
|
||||
@@ -77,6 +80,7 @@ static int poll_cpu_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("db_poll_cpu=", poll_cpu_setup);
|
||||
#endif //MODULE
|
||||
|
||||
/* run time should be short */
|
||||
static enum hrtimer_restart ddr_hrtimer_handler(struct hrtimer *timer)
|
||||
|
||||
@@ -91,6 +91,7 @@ unsigned long get_recheck_ns(void)
|
||||
return init_thread_recheck_ns;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static int early_dmc_param(char *buf)
|
||||
{
|
||||
unsigned long s_addr, e_addr, mask, debug = 0;
|
||||
@@ -123,9 +124,11 @@ static int early_dmc_param(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("dmc_monitor=", early_dmc_param);
|
||||
#endif //MODULE
|
||||
|
||||
/* only used to dmc filter set on uboot cmdline */
|
||||
static char dmc_filter_early_buf[1024];
|
||||
#ifndef MODULE
|
||||
static int early_dmc_filter(char *buf)
|
||||
{
|
||||
/*
|
||||
@@ -175,6 +178,7 @@ static int early_dmc_irq_thread(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("dmc_irq_thread=", early_dmc_irq_thread);
|
||||
#endif //MODULE
|
||||
|
||||
static int dmc_filter_remove(char *p)
|
||||
{
|
||||
|
||||
@@ -91,6 +91,7 @@ struct ramdump {
|
||||
static struct ramdump *ram;
|
||||
char ramdump_info[256];
|
||||
|
||||
#ifndef MODULE
|
||||
static void ramdump_parse_info(void)
|
||||
{
|
||||
#if IS_BUILTIN(CONFIG_AMLOGIC_MEMORY_DEBUG)
|
||||
@@ -141,6 +142,7 @@ static int early_ramdump_para(char *buf)
|
||||
}
|
||||
|
||||
early_param("ramdump", early_ramdump_para);
|
||||
#endif //MODULE
|
||||
|
||||
#ifdef SAVE_DATA_BY_INIT_RC_SHELL
|
||||
#define DUMP_LOG_STEP (200 * 1024 * 1024ULL)
|
||||
|
||||
@@ -4576,6 +4576,7 @@ static struct platform_driver meson_mmc_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
#ifndef MODULE
|
||||
static int caps2_setup(char *p)
|
||||
{
|
||||
caps2_quirks = p;
|
||||
@@ -4583,6 +4584,7 @@ static int caps2_setup(char *p)
|
||||
}
|
||||
|
||||
__setup("meson-gx-mmc.caps2_quirks=", caps2_setup);
|
||||
#endif //MODULE
|
||||
|
||||
module_platform_driver(meson_mmc_driver);
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@ void unregister_early_suspend(struct early_suspend *handler)
|
||||
}
|
||||
EXPORT_SYMBOL(unregister_early_suspend);
|
||||
|
||||
#ifndef MODULE
|
||||
static int suspend_get_pm_env(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -95,6 +96,7 @@ static int suspend_get_pm_env(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("initcall_debug=", suspend_get_pm_env);
|
||||
#endif
|
||||
|
||||
static inline void early_suspend(void)
|
||||
{
|
||||
@@ -307,6 +309,7 @@ static ssize_t suspend_debug_store(const struct class *class,
|
||||
}
|
||||
|
||||
static CLASS_ATTR_RW(suspend_debug);
|
||||
#ifndef MODULE
|
||||
static int suspend_get_debug_env(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -321,6 +324,7 @@ static int suspend_get_debug_env(char *buf)
|
||||
}
|
||||
|
||||
__setup("suspend_debug=", suspend_get_debug_env);
|
||||
#endif //MODULE
|
||||
|
||||
static void lgcy_early_suspend(void)
|
||||
{
|
||||
|
||||
@@ -69,6 +69,7 @@ static unsigned int scramble_reg;
|
||||
void __iomem *scramble_vaddr;
|
||||
__module_param(scramble_reg, uint, 0644);
|
||||
|
||||
#ifndef MODULE
|
||||
static int scramble_reg_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -83,6 +84,7 @@ static int scramble_reg_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("scramble_reg=", scramble_reg_setup);
|
||||
#endif //MODULE
|
||||
|
||||
/*
|
||||
* scramble_clear_preserve() will clear scramble_reg bit0,
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
int bypass_power_off;
|
||||
|
||||
#ifndef MODULE
|
||||
static int bypass_power_off_setup(char *buf)
|
||||
{
|
||||
if (!buf)
|
||||
@@ -23,6 +24,7 @@ static int bypass_power_off_setup(char *buf)
|
||||
return 1;
|
||||
}
|
||||
__setup("bypass_power_off=", bypass_power_off_setup);
|
||||
#endif //MODULE
|
||||
|
||||
static int __init domain_main_init(void)
|
||||
{
|
||||
|
||||
@@ -543,6 +543,7 @@ static void r1p1_tsensor_update_irqs(struct meson_tsensor_data *data)
|
||||
|
||||
static int g_tsensor_debug_enable;
|
||||
|
||||
#ifndef MODULE
|
||||
static int get_tsensor_debug_enable(char *str)
|
||||
{
|
||||
if (kstrtoint(str, 0, &g_tsensor_debug_enable)) {
|
||||
@@ -553,6 +554,7 @@ static int get_tsensor_debug_enable(char *str)
|
||||
return 0;
|
||||
}
|
||||
__setup("tsensor_debug=", get_tsensor_debug_enable);
|
||||
#endif //MODULE
|
||||
|
||||
static int meson_get_temp(struct thermal_zone_device *p, int *temp)
|
||||
{
|
||||
|
||||
@@ -44,6 +44,7 @@ struct amlogic_usb_v2 *g_crg_drd_phy2[3];
|
||||
char name_crg[32];
|
||||
static bool aml_usb2_phy_960m;
|
||||
|
||||
#ifndef MODULE
|
||||
static int get_u2phy_speed(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -56,6 +57,7 @@ static int get_u2phy_speed(char *str)
|
||||
}
|
||||
|
||||
__setup("usb2t_mode=", get_u2phy_speed);
|
||||
#endif //MODULE
|
||||
|
||||
static inline bool aml_crg_drd_usb2_hsp(struct amlogic_usb_v2 *phy)
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
bool meson_u2phy_960m;
|
||||
|
||||
#ifndef MODULE
|
||||
static int meson_u2phy_get_speed(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -23,6 +24,7 @@ static int meson_u2phy_get_speed(char *str)
|
||||
}
|
||||
|
||||
__setup("usb2t_mode=", meson_u2phy_get_speed);
|
||||
#endif //MODULE
|
||||
|
||||
/* Reset usb controller. */
|
||||
int meson_u2phy_usb_reset(struct amlogic_usb_v2 *phy)
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
bool force_device_mode;
|
||||
module_param_named(otg_device, force_device_mode,
|
||||
bool, 0644);
|
||||
#ifndef MODULE
|
||||
static char otg_mode_string[2] = "0";
|
||||
|
||||
static int force_otg_mode(char *s)
|
||||
@@ -38,6 +39,7 @@ static int force_otg_mode(char *s)
|
||||
return 1;
|
||||
}
|
||||
__setup("otg_device=", force_otg_mode);
|
||||
#endif //MODULE
|
||||
|
||||
int get_otg_mode(void)
|
||||
{
|
||||
|
||||
@@ -77,6 +77,7 @@ module_param(wdt_debug, int, 0644);
|
||||
|
||||
#ifdef CONFIG_AMLOGIC_MODIFY
|
||||
static unsigned int watchdog_enabled = 1;
|
||||
#ifndef MODULE
|
||||
static int get_watchdog_enabled_env(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -88,10 +89,12 @@ static int get_watchdog_enabled_env(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("watchdog_enabled=", get_watchdog_enabled_env);
|
||||
#endif
|
||||
|
||||
static int stop_after_panic;
|
||||
module_param(stop_after_panic, int, 0644);
|
||||
MODULE_PARM_DESC(stop_after_panic, "Stop watchdog after panic (0=keep watching, 1=stop)");
|
||||
#ifndef MODULE
|
||||
static int get_stop_after_panic_env(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -111,6 +114,7 @@ static int wdt_panic_print_setup(char *str)
|
||||
return 1;
|
||||
}
|
||||
__setup("panic_print=", wdt_panic_print_setup);
|
||||
#endif //MODULE
|
||||
#endif
|
||||
|
||||
static int meson_gxbb_wdt_start(struct watchdog_device *wdt_dev)
|
||||
|
||||
@@ -657,6 +657,7 @@ MODULE_PARM_DESC(btwake_evt, "btwake_evt");
|
||||
/**************** bt mac *****************/
|
||||
|
||||
//static int __init mac_addr_set(char *line)
|
||||
#ifndef MODULE
|
||||
static int mac_addr_set(char *line)
|
||||
{
|
||||
if (line) {
|
||||
@@ -670,4 +671,5 @@ static int mac_addr_set(char *line)
|
||||
}
|
||||
|
||||
__setup("mac_bt=", mac_addr_set);
|
||||
#endif //MODULE
|
||||
|
||||
|
||||
@@ -1047,6 +1047,7 @@ static struct platform_driver wifi_plat_driver = {
|
||||
.resume = wifi_resume,
|
||||
};
|
||||
|
||||
#ifndef MODULE
|
||||
static int get_usb2t_mode(char *str)
|
||||
{
|
||||
int ret;
|
||||
@@ -1058,6 +1059,7 @@ static int get_usb2t_mode(char *str)
|
||||
}
|
||||
|
||||
__setup("usb2t_mode=", get_usb2t_mode);
|
||||
#endif //MODULE
|
||||
|
||||
int __init wifi_dt_init(void)
|
||||
{
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#ifndef __GKI_MODULE_AMLOGIC_H
|
||||
#define __GKI_MODULE_AMLOGIC_H
|
||||
|
||||
#ifdef CONFIG_AMLOGIC_GKI_TOOL
|
||||
#define GKI_MODULE_SETUP_MAGIC1 0x014589cd
|
||||
#define GKI_MODULE_SETUP_MAGIC2 0x2367abef
|
||||
|
||||
@@ -130,4 +131,5 @@ struct param_entry {
|
||||
extern struct kernel_param_ops key_value_param_ops;
|
||||
|
||||
int amlogic_class_debug_create_dir(const struct attribute_group *group, int debug_level);
|
||||
#endif //CONFIG_AMLOGIC_GKI_TOOL
|
||||
#endif //__GKI_MODULE_AMLOGIC_H
|
||||
|
||||
@@ -1155,6 +1155,7 @@ static void deinit_work_func(struct work_struct *p_work)
|
||||
}
|
||||
|
||||
static int vad_mode;
|
||||
#ifndef MODULE
|
||||
static int get_vadmode(char *str)
|
||||
{
|
||||
if (strcmp("on", str) == 0) {
|
||||
@@ -1166,6 +1167,7 @@ static int get_vadmode(char *str)
|
||||
}
|
||||
|
||||
early_param("ffv_freeze", get_vadmode);
|
||||
#endif //MODULE
|
||||
|
||||
static int vad_open_probe(struct platform_device *pdev)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user