Files
android/drivers/misc/mediatek/lcm/inc/lcm_define.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

73 lines
1.7 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 _LCM_DEFINE_H
#define _LCM_DEFINE_H
#if defined(MTK_LCM_DEVICE_TREE_SUPPORT)
/* LCM_FUNC */
#define LCM_FUNC_GPIO 1
#define LCM_FUNC_I2C 2
#define LCM_FUNC_UTIL 3
#define LCM_FUNC_CMD 4
/* LCM_GPIO_TYPE */
#define LCM_GPIO_MODE 1
#define LCM_GPIO_DIR 2
#define LCM_GPIO_OUT 3
/* LCM_GPIO_MODE_DATA */
#define LCM_GPIO_MODE_00 0
#define LCM_GPIO_MODE_01 1
#define LCM_GPIO_MODE_02 2
#define LCM_GPIO_MODE_03 3
#define LCM_GPIO_MODE_04 4
#define LCM_GPIO_MODE_05 5
#define LCM_GPIO_MODE_06 6
#define LCM_GPIO_MODE_07 7
#define MAX_LCM_GPIO_MODE 8
/* LCM_GPIO_DIR_DATA */
#define LCM_GPIO_DIR_IN 0
#define LCM_GPIO_DIR_OUT 1
/* LCM_GPIO_OUT_DATA */
#define LCM_GPIO_OUT_ZERO 0
#define LCM_GPIO_OUT_ONE 1
/* LCM_I2C_TYPE */
#define LCM_I2C_WRITE 1
/* LCM_UTIL_TYPE */
#define LCM_UTIL_RESET 1
#define LCM_UTIL_MDELAY 2
#define LCM_UTIL_UDELAY 3
#define LCM_UTIL_WRITE_CMD_V1 4
#define LCM_UTIL_WRITE_CMD_V2 5
#define LCM_UTIL_READ_CMD_V1 6
#define LCM_UTIL_READ_CMD_V2 7
#define LCM_UTIL_WRITE_CMD_V21 8
#define LCM_UTIL_WRITE_CMD_V22 9
#define LCM_UTIL_WRITE_CMD_V23 10
#define LCM_UTIL_RAR 11
/* LCM_UTIL_RESET_DATA */
#define LCM_UTIL_RESET_LOW 0
#define LCM_UTIL_RESET_HIGH 1
/* LCM_UTIL_WRITE_CMD_V2_DATA */
#define LCM_UTIL_WRITE_CMD_V2_NULL 0xF9
#endif
#endif /* _LCM_DEFINE_H */