From fb6b7648626cfb7502e9478461a3e757673bb70e Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Fri, 02 Aug 2019 01:02:25 +0800 Subject: [PATCH] update linux kernel patch, fix touchscreen not work bug; update u-boot patch, add tb support --- ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch | 66 ++++++++++++++++++++++++++++++-- 1 files changed, 61 insertions(+), 5 deletions(-) diff --git a/ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch b/ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch index 2e442b6..5b20168 100644 --- a/ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch +++ b/ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch @@ -1,6 +1,17 @@ diff -Nuar linux-3.2.0/arch/arm/mach-omap2/board-am335xevm.c linux-3.2.0-ok335x/arch/arm/mach-omap2/board-am335xevm.c --- linux-3.2.0/arch/arm/mach-omap2/board-am335xevm.c 2014-01-22 18:20:21.000000000 +0800 -+++ linux-3.2.0-ok335x/arch/arm/mach-omap2/board-am335xevm.c 2019-08-01 12:55:20.735041318 +0800 ++++ linux-3.2.0-ok335x/arch/arm/mach-omap2/board-am335xevm.c 2019-08-02 00:32:00.259843134 +0800 +@@ -116,8 +116,8 @@ + #define SCREEN_SIZE_480X272_4 3 + #define SCREEN_SIZE_800X600_10 4 + +-int screen_type; +-int screen_size; ++int screen_type = SCREEN_TYPE_C; ++int screen_size = SCREEN_SIZE_800X480_7; + + static const struct display_panel disp_panel = { + WVGA, @@ -2017,47 +2017,38 @@ am33xx_register_ehrpwm(2, &pwm_pdata[2]); } @@ -115,7 +126,7 @@ } diff -Nuar linux-3.2.0/build.sh linux-3.2.0-ok335x/build.sh --- linux-3.2.0/build.sh 1970-01-01 08:00:00.000000000 +0800 -+++ linux-3.2.0-ok335x/build.sh 2019-08-01 12:52:36.239038163 +0800 ++++ linux-3.2.0-ok335x/build.sh 2019-08-01 23:06:33.311744786 +0800 @@ -0,0 +1,74 @@ +#!/bin/bash + @@ -193,7 +204,7 @@ + diff -Nuar linux-3.2.0/.cfg-ok335x linux-3.2.0-ok335x/.cfg-ok335x --- linux-3.2.0/.cfg-ok335x 1970-01-01 08:00:00.000000000 +0800 -+++ linux-3.2.0-ok335x/.cfg-ok335x 2019-08-01 12:55:57.327042020 +0800 ++++ linux-3.2.0-ok335x/.cfg-ok335x 2019-08-02 00:49:07.223862833 +0800 @@ -0,0 +1,2936 @@ +# +# Automatically generated file; DO NOT EDIT. @@ -3133,7 +3144,7 @@ +# CONFIG_CORDIC is not set diff -Nuar linux-3.2.0/ChangeLog.txt linux-3.2.0-ok335x/ChangeLog.txt --- linux-3.2.0/ChangeLog.txt 1970-01-01 08:00:00.000000000 +0800 -+++ linux-3.2.0-ok335x/ChangeLog.txt 2019-08-01 12:52:36.243038163 +0800 ++++ linux-3.2.0-ok335x/ChangeLog.txt 2019-08-01 23:06:33.315744787 +0800 @@ -0,0 +1,15 @@ + +1. Nandflash(MT29F2G08ABAEAWP, 256M) Partition @@ -3150,9 +3161,39 @@ + + + +diff -Nuar linux-3.2.0/drivers/input/touchscreen/ft5x06_ts.c linux-3.2.0-ok335x/drivers/input/touchscreen/ft5x06_ts.c +--- linux-3.2.0/drivers/input/touchscreen/ft5x06_ts.c 2014-01-17 14:37:52.000000000 +0800 ++++ linux-3.2.0-ok335x/drivers/input/touchscreen/ft5x06_ts.c 2019-08-02 00:36:08.423847894 +0800 +@@ -16,7 +16,7 @@ + * + * VERSION DATE AUTHOR Note + * 1.0 2010-01-05 WenFS only support mulititouch Wenfs 2010-10-01 +- * 2.0 2011-09-05 Duxx Add touch key, and project setting update, auto CLB command ++ * 2.0 2011-09-05 Duxx Add touch key, and project setting update, auto CLB command + * 3.0 2011-09-09 Luowj + * + */ +@@ -1672,7 +1672,7 @@ + int i; + #endif + +- //printk("[FTS] ft5x0x_ts_probe, driver version is %s.\n", CFG_FTS_CTP_DRIVER_VERSION); ++ //printk("[#######FTS] ft5x0x_ts_probe, driver version is v1.0.0.0.\n"); + + if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { + err = -ENODEV; +@@ -1922,7 +1922,7 @@ + static int __init ft5x0x_ts_init(void) + { + int ret; +- //printk("ft5x0x_ts_init\n"); ++ //printk("[#######FTS]ft5x0x_ts_init\n"); + ret = i2c_add_driver(&ft5x0x_ts_driver); + //printk("ret=%d\n",ret); + return ret; diff -Nuar linux-3.2.0/Makefile linux-3.2.0-ok335x/Makefile --- linux-3.2.0/Makefile 2019-07-28 20:25:29.000000000 +0800 -+++ linux-3.2.0-ok335x/Makefile 2019-08-01 12:52:36.259038163 +0800 ++++ linux-3.2.0-ok335x/Makefile 2019-08-02 00:32:01.755843162 +0800 @@ -192,8 +192,8 @@ # Default value for CROSS_COMPILE is not to prefix executables # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile @@ -3164,3 +3205,18 @@ # Architecture as present in compile.h UTS_MACHINE := $(ARCH) +diff -Nuar linux-3.2.0/sym.sh linux-3.2.0-ok335x/sym.sh +--- linux-3.2.0/sym.sh 1970-01-01 08:00:00.000000000 +0800 ++++ linux-3.2.0-ok335x/sym.sh 2019-08-02 00:11:09.719819145 +0800 +@@ -0,0 +1,11 @@ ++#!/bin/bash ++ ++DST=../linux-3.2.0 ++SRC=../tags ++ ++cd $DST ++ ++for f in $SRC/* ++do ++ ln -s $f `basename $f` ++done -- Gitblit v1.9.1