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)
53 lines
1.4 KiB
C
53 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2017 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 __LINUX_MT6370_PMU_RGBLED_H
|
|
#define __LINUX_MT6370_PMU_RGBLED_H
|
|
|
|
enum {
|
|
MT6370_PMU_LED1 = 0,
|
|
MT6370_PMU_LED2,
|
|
MT6370_PMU_LED3,
|
|
MT6370_PMU_LED4,
|
|
MT6370_PMU_MAXLED,
|
|
};
|
|
|
|
|
|
struct mt6370_pmu_rgbled_platdata {
|
|
const char *led_name[MT6370_PMU_MAXLED];
|
|
const char *led_default_trigger[MT6370_PMU_MAXLED];
|
|
};
|
|
|
|
#define MT6370_LED_MODEMASK (0x60)
|
|
#define MT6370_LED_MODESHFT (5)
|
|
|
|
#define MT6370_LED_PWMDUTYSHFT (0)
|
|
#define MT6370_LED_PWMDUTYMASK (0x1F)
|
|
#define MT6370_LED_PWMDUTYMAX (31)
|
|
|
|
#define MT6370_LEDTR1_MASK (0xF0)
|
|
#define MT6370_LEDTR1_SHFT (4)
|
|
#define MT6370_LEDTR2_MASK (0x0F)
|
|
#define MT6370_LEDTR2_SHFT (0)
|
|
#define MT6370_LEDTF1_MASK (0xF0)
|
|
#define MT6370_LEDTF1_SHFT (4)
|
|
#define MT6370_LEDTF2_MASK (0x0F)
|
|
#define MT6370_LEDTF2_SHFT (0)
|
|
#define MT6370_LEDTON_MASK (0xF0)
|
|
#define MT6370_LEDTON_SHFT (4)
|
|
#define MT6370_LEDTOFF_MASK (0x0F)
|
|
#define MT6370_LEDTOFF_SHFT (0)
|
|
#define MT6370_LEDBREATH_MAX (15)
|
|
|
|
#endif
|