mirror of
https://github.com/armbian/build.git
synced 2025-09-19 20:51:12 +02:00
I have changed the way the patches are generated a bit. Instead of using orange-pi branch from megous tree for 6.6 kernel, I have used the following kernel branches a83t-suspend, af8133j, anx, audio, axp, cam, drm, err, fixes, mbus, modem, opi3, pb, pinetab, pp, ppkb, samuel, speed, tbs-a711, ths These branches were carefully chosen to include only allwinner related patches and remove importing of the rockchip related patches into the allwinner kernel. Following patches are modified to fix patch application failure - patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-reg_usb1_vbus-status-ok.patch - patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-Enable-GPU-mali.patch - patches.armbian/arm64-dts-allwinner-h616-Add-efuse_xlate-cpu-frequency-scaling-v1_6_2.patch - patches.armbian/arm64-dts-allwinner-h616-LED-green_power_on-red_status_heartbeat.patch - patches.armbian/arm64-dts-allwinner-overlay-Add-Overlays-for-sunxi64.patch - patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch Following patches are modified because of kernel api change to fix compilation failure - patches.armbian/drv-gpu-drm-sun4i-Add-HDMI-audio-sun4i-hdmi-encoder.patch - patches.armbian/drv-of-Device-Tree-Overlay-ConfigFS-interface.patch
44 lines
1.9 KiB
Diff
44 lines
1.9 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
|
Date: Sun, 14 Mar 2021 15:49:34 +0100
|
|
Subject: power: axp803: Add interrupts for low battery power condition
|
|
|
|
These are necessary so that the device is woken up by interrupt
|
|
when low on battery, to handle the condition.
|
|
|
|
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
|
---
|
|
drivers/mfd/axp20x.c | 2 ++
|
|
drivers/power/supply/axp20x_battery.c | 2 ++
|
|
2 files changed, 4 insertions(+)
|
|
|
|
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
|
|
index 9be8aa8c8bc2..4d64f19b4fc7 100644
|
|
--- a/drivers/mfd/axp20x.c
|
|
+++ b/drivers/mfd/axp20x.c
|
|
@@ -340,6 +340,8 @@ static const struct resource axp803_battery_resources[] = {
|
|
DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_ACT_TEMP_HIGH_END, "BATT_ACT_TEMP_HIGH_END"),
|
|
DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_ACT_TEMP_LOW, "BATT_ACT_TEMP_LOW"),
|
|
DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_ACT_TEMP_LOW_END, "BATT_ACT_TEMP_LOW_END"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_LOW_PWR_LVL1, "BATT_LOW_PWR_LVL1"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_LOW_PWR_LVL2, "BATT_LOW_PWR_LVL2"),
|
|
};
|
|
|
|
static const struct resource axp803_pek_resources[] = {
|
|
diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/supply/axp20x_battery.c
|
|
index 97b11f05803e..b7b3e6b945dd 100644
|
|
--- a/drivers/power/supply/axp20x_battery.c
|
|
+++ b/drivers/power/supply/axp20x_battery.c
|
|
@@ -615,6 +615,8 @@ static const struct axp_irq_data axp813_irqs[] = {
|
|
{ "BATT_HEALTH_GOOD", axp20x_battery_changed_irq },
|
|
{ "BATT_CHARGING", axp20x_battery_changed_irq },
|
|
{ "BATT_CHARGING_DONE", axp20x_battery_changed_irq },
|
|
+ { "BATT_LOW_PWR_LVL1", axp20x_battery_changed_irq },
|
|
+ { "BATT_LOW_PWR_LVL2", axp20x_battery_changed_irq },
|
|
{ "BATT_CHG_TEMP_HIGH", axp20x_battery_temp_hot_irq },
|
|
{ "BATT_CHG_TEMP_HIGH_END", axp20x_battery_temp_normal_irq },
|
|
{ "BATT_CHG_TEMP_LOW", axp20x_battery_temp_cold_irq },
|
|
--
|
|
Armbian
|
|
|