Files
android/drivers/misc/mediatek/pmic/mt6360/inc/mt6360_pmu_fled.h
T
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
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)
2026-09-12 13:36:46 +00:00

51 lines
1.3 KiB
C

/*
* drivers/misc/mediatek/pmic/mt6360/inc/mt6360_pmu_fled.h
*
* Copyright (C) 2018 Mediatek Technology Corp.
* cy_huang <cy_huang@richtek.com>
*
* 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 http://www.gnu.org/licenses/gpl-2.0.html for more details.
*/
#ifndef __MT6360_PMU_FLED_H
#define __MT6360_PMU_FLED_H
struct mt6360_fled_platform_data {
u32 fled_vmid_track;
u32 fled_strb_tout;
u32 fled1_tor_cur;
u32 fled1_strb_cur;
u32 fled2_tor_cur;
u32 fled2_strb_cur;
};
#define MT6360_FLED_CHG_VINOVP BIT(3)
#define MT6360_ITOR_SHIFT 0
#define MT6360_ITOR_MASK 0x1F
#define MT6360_ISTRB_SHIFT 0
#define MT6360_ISTRB_MASK 0x7F
#define MT6360_UTRAL_ISTRB_MASK BIT(7)
#define MT6360_STRB_TO_SHIFT 0
#define MT6360_STRB_TO_MASK 0x7F
#define MT6360_TCL_SHIFT 4
#define MT6360_TCL_MASK 0x70
#define MT6360_FL_TORCH_MASK BIT(3)
#define MT6360_FL_STROBE_MASK BIT(2)
#define MT6360_FLCS1_EN_MASK BIT(1)
#define MT6360_FLCS2_EN_MASK BIT(0)
#endif /* __MT6360_PMU_FLED_H */