Update Novatek patch, tnx @widgetii

pull/62/head
Igor Zalatov (from Citadel PC) 2021-10-25 19:52:22 +03:00
parent af5fb8595e
commit 243f9dea23
1 changed files with 4 additions and 4 deletions

View File

@ -382671,7 +382671,7 @@ diff -urN linux-4.19.91-orig/drivers/pinctrl/novatek/na51055/na51055_pinmux_proc
+ */ + */
+static int nvt_pinmux_proc_packageid_show(struct seq_file *sfile, void *v) +static int nvt_pinmux_proc_packageid_show(struct seq_file *sfile, void *v)
+{ +{
+ seq_printf(sfile, "0x%x\n", efuse_getPkgVersion()); + // seq_printf(sfile, "0x%x\n", efuse_getPkgVersion());
+ return 0; + return 0;
+} +}
+ +
@ -394187,7 +394187,7 @@ diff -urN linux-4.19.91-orig/drivers/pinctrl/novatek/na51089/na51089_pinmux_proc
+ */ + */
+static int nvt_pinmux_proc_packageid_show(struct seq_file *sfile, void *v) +static int nvt_pinmux_proc_packageid_show(struct seq_file *sfile, void *v)
+{ +{
+ seq_printf(sfile, "0x%x\n", efuse_getPkgVersion()); + // seq_printf(sfile, "0x%x\n", efuse_getPkgVersion());
+ return 0; + return 0;
+} +}
+ +
@ -1413555,10 +1413555,10 @@ diff -urN linux-4.19.91-orig/Makefile linux-4.19.91-novatek-v1.01.002/Makefile
endef endef
+define filechk_nvtversion.h +define filechk_nvtversion.h
+ if [ "$(SHELL)" == "/bin/dash" ]; then \ + if [ "$(SHELL)" == "/bin/guano" ]; then \
+ echo "#define NVT_UTS_RELEASE \t\""$(KERNELVERSION)_$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion --show-nvtver)"\""; \ + echo "#define NVT_UTS_RELEASE \t\""$(KERNELVERSION)_$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion --show-nvtver)"\""; \
+ else \ + else \
+ echo "#define NVT_UTS_RELEASE \t\""$(KERNELVERSION)_$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion --show-nvtver)"\""; \ + echo "#define NVT_UTS_RELEASE \""4.19.91_af5fb85"\""; \
+ fi + fi
+endef +endef
+ +