mirror of
https://github.com/armbian/build.git
synced 2025-08-14 23:26:57 +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
76 lines
2.2 KiB
Diff
76 lines
2.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
|
Date: Mon, 22 Jun 2020 17:17:09 +0200
|
|
Subject: input: touchscreen: goodix: Add config debugfs file
|
|
|
|
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
|
---
|
|
drivers/input/touchscreen/goodix.c | 17 ++++++++++
|
|
drivers/input/touchscreen/goodix.h | 1 +
|
|
2 files changed, 18 insertions(+)
|
|
|
|
diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
|
|
index af32fbe57b63..1b5542fe7709 100644
|
|
--- a/drivers/input/touchscreen/goodix.c
|
|
+++ b/drivers/input/touchscreen/goodix.c
|
|
@@ -22,6 +22,7 @@
|
|
#include <linux/slab.h>
|
|
#include <linux/acpi.h>
|
|
#include <linux/of.h>
|
|
+#include <linux/debugfs.h>
|
|
#include <asm/unaligned.h>
|
|
#include "goodix.h"
|
|
|
|
@@ -1027,6 +1028,16 @@ static int goodix_get_gpio_config(struct goodix_ts_data *ts)
|
|
return 0;
|
|
}
|
|
|
|
+static int ts_config_bin_show(struct seq_file *s, void *data)
|
|
+{
|
|
+ struct goodix_ts_data *ts = s->private;
|
|
+
|
|
+ seq_write(s, ts->config, ts->chip->config_len);
|
|
+
|
|
+ return 0;
|
|
+}
|
|
+DEFINE_SHOW_ATTRIBUTE(ts_config_bin);
|
|
+
|
|
/**
|
|
* goodix_read_config - Read the embedded configuration of the panel
|
|
*
|
|
@@ -1065,6 +1076,10 @@ static void goodix_read_config(struct goodix_ts_data *ts)
|
|
}
|
|
|
|
ts->chip->calc_config_checksum(ts);
|
|
+
|
|
+ ts->debug_root = debugfs_create_dir("goodix", NULL);
|
|
+ debugfs_create_file("config.bin", 0444, ts->debug_root, ts,
|
|
+ &ts_config_bin_fops);
|
|
}
|
|
|
|
/**
|
|
@@ -1408,6 +1423,8 @@ static void goodix_ts_remove(struct i2c_client *client)
|
|
|
|
if (ts->load_cfg_from_disk)
|
|
wait_for_completion(&ts->firmware_loading_complete);
|
|
+
|
|
+ debugfs_remove(ts->debug_root);
|
|
}
|
|
|
|
static int goodix_suspend(struct device *dev)
|
|
diff --git a/drivers/input/touchscreen/goodix.h b/drivers/input/touchscreen/goodix.h
|
|
index 87797cc88b32..7c44aa110ee6 100644
|
|
--- a/drivers/input/touchscreen/goodix.h
|
|
+++ b/drivers/input/touchscreen/goodix.h
|
|
@@ -104,6 +104,7 @@ struct goodix_ts_data {
|
|
u8 main_clk[GOODIX_MAIN_CLK_LEN];
|
|
int bak_ref_len;
|
|
u8 *bak_ref;
|
|
+ struct dentry *debug_root;
|
|
};
|
|
|
|
int goodix_i2c_read(struct i2c_client *client, u16 reg, u8 *buf, int len);
|
|
--
|
|
Armbian
|
|
|