|
51019 | 51019 | drivers/Kconfig | 2 + |
51020 | 51020 | drivers/Makefile | 2 + |
51021 | 51021 | drivers/custom/.gitignore | 3 + |
51022 | | - drivers/custom/Kconfig | 121 +++++++++++ |
| 51022 | + drivers/custom/Kconfig | 122 +++++++++++ |
51023 | 51023 | drivers/custom/Makefile | 46 ++++ |
51024 | 51024 | drivers/custom/ayaneo_platform | 1 + |
51025 | 51025 | drivers/custom/ayn_platform | 1 + |
|
51050 | 51050 | tools/objtool/builtin-check.c | 1 + |
51051 | 51051 | tools/objtool/check.c | 3 + |
51052 | 51052 | tools/objtool/include/objtool/builtin.h | 1 + |
51053 | | - 35 files changed, 540 insertions(+), 2 deletions(-) |
| 51053 | + 35 files changed, 541 insertions(+), 2 deletions(-) |
51054 | 51054 | create mode 100644 .gitmodules |
51055 | 51055 | create mode 100644 drivers/custom/.gitignore |
51056 | 51056 | create mode 100644 drivers/custom/Kconfig |
@@ -51188,10 +51188,10 @@ index 000000000000..b9adbda1674e |
51188 | 51188 | \ No newline at end of file |
51189 | 51189 | diff --git a/drivers/custom/Kconfig b/drivers/custom/Kconfig |
51190 | 51190 | new file mode 100644 |
51191 | | -index 000000000000..778f6188e9a5 |
| 51191 | +index 000000000000..fef5c07dcb64 |
51192 | 51192 | --- /dev/null |
51193 | 51193 | +++ b/drivers/custom/Kconfig |
51194 | | -@@ -0,0 +1,121 @@ |
| 51194 | +@@ -0,0 +1,122 @@ |
51195 | 51195 | +config AYN |
51196 | 51196 | + tristate "AYN Platform Driver" |
51197 | 51197 | + help |
@@ -51260,6 +51260,7 @@ index 000000000000..778f6188e9a5 |
51260 | 51260 | + |
51261 | 51261 | +config WL |
51262 | 51262 | + tristate "Broadcom WL Driver" |
| 51263 | ++ depends on CFG80211 |
51263 | 51264 | + help |
51264 | 51265 | + Broadcom WL driver for Linux. Link: |
51265 | 51266 | + https://github.com/bazzite-org/broadcom-wl |
@@ -52477,3 +52478,167 @@ index 59a03b00791a..2dbaa3c1f55c 100644 |
52477 | 52478 | -- |
52478 | 52479 | 2.51.2 |
52479 | 52480 |
|
| 52481 | + |
| 52482 | +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 52483 | +From: Antheas Kapenekakis < [email protected]> |
| 52484 | +Date: Wed, 12 Nov 2025 23:20:48 +0100 |
| 52485 | +Subject: Revert "Input: xpad - change buttons the D-Pad gets mapped as to |
| 52486 | + BTN_DPAD_*" |
| 52487 | + |
| 52488 | +This reverts commit a43a503df996739ae34f179f6b73b0ae91000c5c. |
| 52489 | +--- |
| 52490 | + drivers/input/joystick/xpad.c | 28 ++++++++++++++-------------- |
| 52491 | + 1 file changed, 14 insertions(+), 14 deletions(-) |
| 52492 | + |
| 52493 | +diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c |
| 52494 | +index d2483ce93099..0b918611b2a7 100644 |
| 52495 | +--- a/drivers/input/joystick/xpad.c |
| 52496 | ++++ b/drivers/input/joystick/xpad.c |
| 52497 | +@@ -444,8 +444,8 @@ static const signed short xpad_btn[] = { |
| 52498 | + |
| 52499 | + /* used when dpad is mapped to buttons */ |
| 52500 | + static const signed short xpad_btn_pad[] = { |
| 52501 | +- BTN_DPAD_LEFT, BTN_DPAD_RIGHT, /* d-pad left, right */ |
| 52502 | +- BTN_DPAD_UP, BTN_DPAD_DOWN, /* d-pad up, down */ |
| 52503 | ++ BTN_TRIGGER_HAPPY1, BTN_TRIGGER_HAPPY2, /* d-pad left, right */ |
| 52504 | ++ BTN_TRIGGER_HAPPY3, BTN_TRIGGER_HAPPY4, /* d-pad up, down */ |
| 52505 | + -1 /* terminating entry */ |
| 52506 | + }; |
| 52507 | + |
| 52508 | +@@ -843,10 +843,10 @@ static void xpad_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char *d |
| 52509 | + /* digital pad */ |
| 52510 | + if (xpad->mapping & MAP_DPAD_TO_BUTTONS) { |
| 52511 | + /* dpad as buttons (left, right, up, down) */ |
| 52512 | +- input_report_key(dev, BTN_DPAD_LEFT, data[2] & BIT(2)); |
| 52513 | +- input_report_key(dev, BTN_DPAD_RIGHT, data[2] & BIT(3)); |
| 52514 | +- input_report_key(dev, BTN_DPAD_UP, data[2] & BIT(0)); |
| 52515 | +- input_report_key(dev, BTN_DPAD_DOWN, data[2] & BIT(1)); |
| 52516 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY1, data[2] & BIT(2)); |
| 52517 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY2, data[2] & BIT(3)); |
| 52518 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); |
| 52519 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY4, data[2] & BIT(1)); |
| 52520 | + } else { |
| 52521 | + input_report_abs(dev, ABS_HAT0X, |
| 52522 | + !!(data[2] & 0x08) - !!(data[2] & 0x04)); |
| 52523 | +@@ -894,10 +894,10 @@ static void xpad360_process_packet(struct usb_xpad *xpad, struct input_dev *dev, |
| 52524 | + /* digital pad */ |
| 52525 | + if (xpad->mapping & MAP_DPAD_TO_BUTTONS) { |
| 52526 | + /* dpad as buttons (left, right, up, down) */ |
| 52527 | +- input_report_key(dev, BTN_DPAD_LEFT, data[2] & BIT(2)); |
| 52528 | +- input_report_key(dev, BTN_DPAD_RIGHT, data[2] & BIT(3)); |
| 52529 | +- input_report_key(dev, BTN_DPAD_UP, data[2] & BIT(0)); |
| 52530 | +- input_report_key(dev, BTN_DPAD_DOWN, data[2] & BIT(1)); |
| 52531 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY1, data[2] & BIT(2)); |
| 52532 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY2, data[2] & BIT(3)); |
| 52533 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); |
| 52534 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY4, data[2] & BIT(1)); |
| 52535 | + } |
| 52536 | + |
| 52537 | + /* |
| 52538 | +@@ -1116,10 +1116,10 @@ static void xpadone_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char |
| 52539 | + /* digital pad */ |
| 52540 | + if (xpad->mapping & MAP_DPAD_TO_BUTTONS) { |
| 52541 | + /* dpad as buttons (left, right, up, down) */ |
| 52542 | +- input_report_key(dev, BTN_DPAD_LEFT, data[5] & BIT(2)); |
| 52543 | +- input_report_key(dev, BTN_DPAD_RIGHT, data[5] & BIT(3)); |
| 52544 | +- input_report_key(dev, BTN_DPAD_UP, data[5] & BIT(0)); |
| 52545 | +- input_report_key(dev, BTN_DPAD_DOWN, data[5] & BIT(1)); |
| 52546 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY1, data[5] & BIT(2)); |
| 52547 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY2, data[5] & BIT(3)); |
| 52548 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY3, data[5] & BIT(0)); |
| 52549 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY4, data[5] & BIT(1)); |
| 52550 | + } else { |
| 52551 | + input_report_abs(dev, ABS_HAT0X, |
| 52552 | + !!(data[5] & 0x08) - !!(data[5] & 0x04)); |
| 52553 | +-- |
| 52554 | +2.51.2 |
| 52555 | + |
| 52556 | + |
| 52557 | +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 52558 | +From: Antheas Kapenekakis < [email protected]> |
| 52559 | +Date: Wed, 12 Nov 2025 23:20:52 +0100 |
| 52560 | +Subject: Revert "Input: xpad - use new BTN_GRIP* buttons" |
| 52561 | + |
| 52562 | +This reverts commit e7412ba919f625438c570d8b4fbf16c5f31b583d. |
| 52563 | +--- |
| 52564 | + drivers/input/joystick/xpad.c | 36 +++++++++++++++++------------------ |
| 52565 | + 1 file changed, 18 insertions(+), 18 deletions(-) |
| 52566 | + |
| 52567 | +diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c |
| 52568 | +index 0b918611b2a7..5ec7684f93ed 100644 |
| 52569 | +--- a/drivers/input/joystick/xpad.c |
| 52570 | ++++ b/drivers/input/joystick/xpad.c |
| 52571 | +@@ -481,8 +481,8 @@ static const signed short xpad_abs_triggers[] = { |
| 52572 | + |
| 52573 | + /* used when the controller has extra paddle buttons */ |
| 52574 | + static const signed short xpad_btn_paddles[] = { |
| 52575 | +- BTN_GRIPR, BTN_GRIPR2, /* paddle upper right, lower right */ |
| 52576 | +- BTN_GRIPL, BTN_GRIPL2, /* paddle upper left, lower left */ |
| 52577 | ++ BTN_TRIGGER_HAPPY5, BTN_TRIGGER_HAPPY6, /* paddle upper right, lower right */ |
| 52578 | ++ BTN_TRIGGER_HAPPY7, BTN_TRIGGER_HAPPY8, /* paddle upper left, lower left */ |
| 52579 | + -1 /* terminating entry */ |
| 52580 | + }; |
| 52581 | + |
| 52582 | +@@ -1078,10 +1078,10 @@ static void xpadone_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char |
| 52583 | + data[18] = 0; |
| 52584 | + |
| 52585 | + /* Elite Series 2 split packet paddle bits */ |
| 52586 | +- input_report_key(dev, BTN_GRIPR, data[18] & BIT(0)); |
| 52587 | +- input_report_key(dev, BTN_GRIPR2, data[18] & BIT(1)); |
| 52588 | +- input_report_key(dev, BTN_GRIPL, data[18] & BIT(2)); |
| 52589 | +- input_report_key(dev, BTN_GRIPL2, data[18] & BIT(3)); |
| 52590 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); |
| 52591 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY6, data[18] & BIT(1)); |
| 52592 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY7, data[18] & BIT(2)); |
| 52593 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY8, data[18] & BIT(3)); |
| 52594 | + |
| 52595 | + do_sync = true; |
| 52596 | + } |
| 52597 | +@@ -1178,10 +1178,10 @@ static void xpadone_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char |
| 52598 | + data[32] = 0; |
| 52599 | + |
| 52600 | + /* OG Elite Series Controller paddle bits */ |
| 52601 | +- input_report_key(dev, BTN_GRIPR, data[32] & BIT(1)); |
| 52602 | +- input_report_key(dev, BTN_GRIPR2, data[32] & BIT(3)); |
| 52603 | +- input_report_key(dev, BTN_GRIPL, data[32] & BIT(0)); |
| 52604 | +- input_report_key(dev, BTN_GRIPL2, data[32] & BIT(2)); |
| 52605 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY5, data[32] & BIT(1)); |
| 52606 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY6, data[32] & BIT(3)); |
| 52607 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY7, data[32] & BIT(0)); |
| 52608 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY8, data[32] & BIT(2)); |
| 52609 | + } else if (xpad->packet_type == PKT_XBE2_FW_OLD) { |
| 52610 | + /* Mute paddles if controller has a custom mapping applied. |
| 52611 | + * Checked by comparing the current mapping |
| 52612 | +@@ -1191,10 +1191,10 @@ static void xpadone_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char |
| 52613 | + data[18] = 0; |
| 52614 | + |
| 52615 | + /* Elite Series 2 4.x firmware paddle bits */ |
| 52616 | +- input_report_key(dev, BTN_GRIPR, data[18] & BIT(0)); |
| 52617 | +- input_report_key(dev, BTN_GRIPR2, data[18] & BIT(1)); |
| 52618 | +- input_report_key(dev, BTN_GRIPL, data[18] & BIT(2)); |
| 52619 | +- input_report_key(dev, BTN_GRIPL2, data[18] & BIT(3)); |
| 52620 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); |
| 52621 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY6, data[18] & BIT(1)); |
| 52622 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY7, data[18] & BIT(2)); |
| 52623 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY8, data[18] & BIT(3)); |
| 52624 | + } else if (xpad->packet_type == PKT_XBE2_FW_5_EARLY) { |
| 52625 | + /* Mute paddles if controller has a custom mapping applied. |
| 52626 | + * Checked by comparing the current mapping |
| 52627 | +@@ -1206,10 +1206,10 @@ static void xpadone_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char |
| 52628 | + /* Elite Series 2 5.x firmware paddle bits |
| 52629 | + * (before the packet was split) |
| 52630 | + */ |
| 52631 | +- input_report_key(dev, BTN_GRIPR, data[22] & BIT(0)); |
| 52632 | +- input_report_key(dev, BTN_GRIPR2, data[22] & BIT(1)); |
| 52633 | +- input_report_key(dev, BTN_GRIPL, data[22] & BIT(2)); |
| 52634 | +- input_report_key(dev, BTN_GRIPL2, data[22] & BIT(3)); |
| 52635 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY5, data[22] & BIT(0)); |
| 52636 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY6, data[22] & BIT(1)); |
| 52637 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY7, data[22] & BIT(2)); |
| 52638 | ++ input_report_key(dev, BTN_TRIGGER_HAPPY8, data[22] & BIT(3)); |
| 52639 | + } |
| 52640 | + } |
| 52641 | + |
| 52642 | +-- |
| 52643 | +2.51.2 |
| 52644 | + |
0 commit comments