| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- From 00a9ceaaa12ba9b315ec7f7a7d2c2e76d3b1d176 Mon Sep 17 00:00:00 2001
- From: Reinhard Russinger <reinhard@russinger.at>
- Date: Sat, 17 Apr 2021 08:53:58 +0000
- Subject: [PATCH] kernel-haders-r2_485 and IN1-IN4 headersettings
- ---
- .../linux-017-omap_serial_for_rs485.patch | 12 ++++++++++
- .../linux-027-input_events_add_IN1-IN4.patch | 28 ++++++++++++++++++++++
- 2 files changed, 40 insertions(+)
- create mode 100644 package/linux-headers/linux-017-omap_serial_for_rs485.patch
- create mode 100644 package/linux-headers/linux-027-input_events_add_IN1-IN4.patch
- diff --git a/package/linux-headers/linux-017-omap_serial_for_rs485.patch b/package/linux-headers/linux-017-omap_serial_for_rs485.patch
- new file mode 100644
- index 0000000..38b7ffa
- --- /dev/null
- +++ b/package/linux-headers/linux-017-omap_serial_for_rs485.patch
- @@ -0,0 +1,12 @@
- +--- a/include/uapi/linux/serial.h 2016-11-08 16:38:32.000000000 +0100
- ++++ b/include/uapi/linux/serial.h 2017-02-18 14:27:23.569732653 +0100
- +@@ -119,7 +119,8 @@ struct serial_rs485 {
- + #define SER_RS485_RX_DURING_TX (1 << 4)
- + __u32 delay_rts_before_send; /* Delay before send (milliseconds) */
- + __u32 delay_rts_after_send; /* Delay after send (milliseconds) */
- +- __u32 padding[5]; /* Memory is cheap, new structs
- ++ __u32 udelay_before_enable_tx;/* Delay before switching to tx direction */
- ++ __u32 padding[4]; /* Memory is cheap, new structs
- + are a royal PITA .. */
- + };
- +
- diff --git a/package/linux-headers/linux-027-input_events_add_IN1-IN4.patch b/package/linux-headers/linux-027-input_events_add_IN1-IN4.patch
- new file mode 100644
- index 0000000..849a847
- --- /dev/null
- +++ b/package/linux-headers/linux-027-input_events_add_IN1-IN4.patch
- @@ -0,0 +1,28 @@
- +diff -Naurp a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
- +--- a/include/linux/mod_devicetable.h 2018-02-19 11:38:07.000000000 +0100
- ++++ b/include/linux/mod_devicetable.h 2018-05-04 21:39:09.862508306 +0200
- +@@ -291,7 +291,7 @@ struct pcmcia_device_id {
- + #define INPUT_DEVICE_ID_LED_MAX 0x0f
- + #define INPUT_DEVICE_ID_SND_MAX 0x07
- + #define INPUT_DEVICE_ID_FF_MAX 0x7f
- +-#define INPUT_DEVICE_ID_SW_MAX 0x0f
- ++#define INPUT_DEVICE_ID_SW_MAX 0x13
- +
- + #define INPUT_DEVICE_ID_MATCH_BUS 1
- + #define INPUT_DEVICE_ID_MATCH_VENDOR 2
- +diff a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
- +--- a/include/uapi/linux/input-event-codes.h 2018-02-19 11:38:08.000000000 +0100
- ++++ b/include/uapi/linux/input-event-codes.h 2018-05-04 21:36:45.066395759 +0200
- +@@ -749,7 +749,11 @@
- + #define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */
- + #define SW_LINEIN_INSERT 0x0d /* set = inserted */
- + #define SW_MUTE_DEVICE 0x0e /* set = device disabled */
- +-#define SW_MAX 0x0f
- ++#define SW_IO1 0x0f
- ++#define SW_IO2 0x10
- ++#define SW_IO3 0x11
- ++#define SW_IO4 0x12
- ++#define SW_MAX 0x13
- + #define SW_CNT (SW_MAX+1)
- +
- + /*
- --
- 2.7.4
|