Albert Tang 00ca78e410 lemonadep: Define proper charging control node
This is overriding TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH,
previously set in the common device tree and supports controlling both
wired and wireless charging.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/5965
Change-Id: I97c00d6a707281e33e6b8c5dfa817ec90714e16a
2023-07-28 00:31:14 +02:00

29 lines
659 B
Makefile

#
# Copyright (C) 2021-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Include the common OEM chipset BoardConfig.
include device/oneplus/sm8350-common/BoardConfigCommon.mk
DEVICE_PATH := device/oneplus/lemonadep
# Display
TARGET_SCREEN_DENSITY := 450
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
# Lineage Health
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/oplus_chg/battery/chg_enable
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Recovery
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 103
# Include the proprietary files BoardConfig.
include vendor/oneplus/lemonadep/BoardConfigVendor.mk