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)
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2021 Mediatek Technology Inc.
|
|
* Jeff_Chang <jeff_chang@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 __RT5133_EVENT_H
|
|
#define __RT5133_EVENT_H
|
|
|
|
enum RT5133_IRQ_NUM {
|
|
RT5133_IRQ_LDO1_OC,
|
|
RT5133_IRQ_LDO1_PGB,
|
|
RT5133_IRQ_LDO2_OC,
|
|
RT5133_IRQ_LDO2_PGB,
|
|
RT5133_IRQ_LDO3_OC,
|
|
RT5133_IRQ_LDO3_PGB,
|
|
RT5133_IRQ_LDO4_OC,
|
|
RT5133_IRQ_LDO4_PGB,
|
|
RT5133_IRQ_LDO5_OC,
|
|
RT5133_IRQ_LDO5_PGB,
|
|
RT5133_IRQ_LDO6_OC,
|
|
RT5133_IRQ_LDO6_PGB,
|
|
RT5133_IRQ_LDO7_OC,
|
|
RT5133_IRQ_LDO7_PGB,
|
|
RT5133_IRQ_LDO8_OC,
|
|
RT5133_IRQ_LDO8_PGB,
|
|
RT5133_IRQ_MAX,
|
|
};
|
|
|
|
typedef void (*RT5133_IRQ_FUNC_PTR)(void);
|
|
|
|
extern void rt5133_register_interrupt_callback(enum RT5133_IRQ_NUM intno,
|
|
RT5133_IRQ_FUNC_PTR IRQ_FUNC_PTR);
|
|
|
|
extern void rt5133_enable_interrupt(enum RT5133_IRQ_NUM intno, int en);
|
|
|
|
#endif /* __RT5133_EVENT_H */
|