Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
/*
|
|
* Copyright (C) 2015 MediaTek Inc.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __DDP_PWM_H__
|
|
#define __DDP_PWM_H__
|
|
|
|
|
|
enum disp_pwm_id_t {
|
|
DISP_PWM0 = 0x1,
|
|
DISP_PWM1 = 0x2,
|
|
DISP_PWM_ALL = (DISP_PWM0 | DISP_PWM1)
|
|
};
|
|
|
|
void disp_pwm_set_main(enum disp_pwm_id_t main);
|
|
enum disp_pwm_id_t disp_pwm_get_main(void);
|
|
|
|
int disp_pwm_is_enabled(enum disp_pwm_id_t id);
|
|
|
|
int disp_pwm_set_backlight(enum disp_pwm_id_t id, int level_1024);
|
|
int disp_pwm_set_backlight_cmdq(enum disp_pwm_id_t id,
|
|
int level_1024, void *cmdq);
|
|
|
|
int disp_pwm_set_max_backlight(enum disp_pwm_id_t id, unsigned int level_1024);
|
|
int disp_pwm_get_max_backlight(enum disp_pwm_id_t id);
|
|
|
|
/* For backward compatible */
|
|
int disp_bls_set_max_backlight(unsigned int level_1024);
|
|
#ifdef CONFIG_MTK_FB_DUMMY
|
|
int disp_bls_set_backlight(int level_1024) { return 0; }
|
|
#else
|
|
int disp_bls_set_backlight(int level_1024);
|
|
#endif
|
|
bool disp_pwm_is_osc(void);
|
|
void disp_pwm_test(const char *cmd, char *debug_output);
|
|
|
|
#endif
|