Pull x86 platform driver updates from Ilpo Järvinen: - amd/pmf: Report system state changes using existing input events - asus-wmi: Zenbook 2023 camera LED disable support and fix TUF laptop keyboard RGB LED sysfs interface - dell-pc: Fan modes / platform profile support - hp-wmi: Fix platform profile switching on Omen/Victus laptops - intel/ISST: Use only TPMI interface when TPMI and legacy interfaces are available - intel/pmc: LTR restore support to pair with LTR ignore - intel/tpmi: Performance Limit Reasons (PLR) and APIC <-> Punit CPU numbering mapping support - WMI: driver override support and docs improvements - lenovo-yoga-c630: Support for EC (platform/arm64) - platform/arm64: Fix build with COMPILE_TEST (broke after addition of C630) - tools: Intel Speed Select Turbo Ratio Limit fix - Miscellaneous cleanups / refactoring / improvements * tag 'platform-drivers-x86-v6.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (65 commits) platform/x86: asus-wmi: fix TUF laptop RGB variant platform/x86/intel/tpmi/plr: Fix output in plr_print_bits() Docs/admin-guide: Remove pmf leftover reference from the index platform/x86: ideapad-laptop: use cleanup.h platform/x86: hp-wmi: Fix implementation of the platform_profile_omen_get function platform: arm64: EC_LENOVO_YOGA_C630 should depend on ARCH_QCOM platform: arm64: EC_ACER_ASPIRE1 should depend on ARCH_QCOM platform/x86/amd/pmf: Remove update system state document platform/x86/amd/pmf: Use existing input event codes to update system states platform/x86: hp-wmi: Fix platform profile option switch bug on Omen and Victus laptops platform/x86:intel/pmc: Add support to undo ltr_ignore platform/x86:intel/pmc: Use the Elvis operator platform/x86:intel/pmc: Use DEFINE_SHOW_STORE_ATTRIBUTE macro platform/x86:intel/pmc: Remove unneeded min_t check platform/x86:intel/pmc: Add support to show ltr_ignore value platform/x86:intel/pmc: Move pmc assignment closer to first usage platform/x86:intel/pmc: Convert index variables to be unsigned platform/x86:intel/pmc: Simplify mutex usage with cleanup helpers platform/x86:intel/pmc: Use the return value of pmc_core_send_msg tools/power/x86/intel-speed-select: v1.20 release ...
Showing the changes to include/linux/platform_data (2 of 63 files). Show all
Unified · Split
| @@ -0,0 +1,44 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2022-2024, Linaro Ltd | ||
| 4 | * Authors: | ||
| 5 | * Bjorn Andersson | ||
| 6 | * Dmitry Baryshkov | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef _LENOVO_YOGA_C630_DATA_H | ||
| 10 | #define _LENOVO_YOGA_C630_DATA_H | ||
| 11 | |||
| 12 | struct yoga_c630_ec; | ||
| 13 | struct notifier_block; | ||
| 14 | |||
| 15 | #define YOGA_C630_MOD_NAME "lenovo_yoga_c630" | ||
| 16 | |||
| 17 | #define YOGA_C630_DEV_UCSI "ucsi" | ||
| 18 | #define YOGA_C630_DEV_PSY "psy" | ||
| 19 | |||
| 20 | int yoga_c630_ec_read8(struct yoga_c630_ec *ec, u8 addr); | ||
| 21 | int yoga_c630_ec_read16(struct yoga_c630_ec *ec, u8 addr); | ||
| 22 | |||
| 23 | int yoga_c630_ec_register_notify(struct yoga_c630_ec *ec, struct notifier_block *nb); | ||
| 24 | void yoga_c630_ec_unregister_notify(struct yoga_c630_ec *ec, struct notifier_block *nb); | ||
| 25 | |||
| 26 | #define YOGA_C630_UCSI_WRITE_SIZE 8 | ||
| 27 | #define YOGA_C630_UCSI_CCI_SIZE 4 | ||
| 28 | #define YOGA_C630_UCSI_DATA_SIZE 16 | ||
| 29 | #define YOGA_C630_UCSI_READ_SIZE (YOGA_C630_UCSI_CCI_SIZE + YOGA_C630_UCSI_DATA_SIZE) | ||
| 30 | |||
| 31 | u16 yoga_c630_ec_ucsi_get_version(struct yoga_c630_ec *ec); | ||
| 32 | int yoga_c630_ec_ucsi_write(struct yoga_c630_ec *ec, | ||
| 33 | const u8 req[YOGA_C630_UCSI_WRITE_SIZE]); | ||
| 34 | int yoga_c630_ec_ucsi_read(struct yoga_c630_ec *ec, | ||
| 35 | u8 resp[YOGA_C630_UCSI_READ_SIZE]); | ||
| 36 | |||
| 37 | #define LENOVO_EC_EVENT_USB 0x20 | ||
| 38 | #define LENOVO_EC_EVENT_UCSI 0x21 | ||
| 39 | #define LENOVO_EC_EVENT_HPD 0x22 | ||
| 40 | #define LENOVO_EC_EVENT_BAT_STATUS 0x24 | ||
| 41 | #define LENOVO_EC_EVENT_BAT_INFO 0x25 | ||
| 42 | #define LENOVO_EC_EVENT_BAT_ADPT_STATUS 0x37 | ||
| 43 | |||
| 44 | #endif | ||
| @@ -51,6 +51,10 @@ · 50 unmodified lines | |||
| 51 | #define ASUS_WMI_DEVID_LED6 0x00020016 | 51 | #define ASUS_WMI_DEVID_LED6 0x00020016 |
| 52 | #define ASUS_WMI_DEVID_MICMUTE_LED 0x00040017 | 52 | #define ASUS_WMI_DEVID_MICMUTE_LED 0x00040017 |
| 53 | 53 | ||
| 54 | /* Disable Camera LED */ | ||
| 55 | #define ASUS_WMI_DEVID_CAMERA_LED_NEG 0x00060078 /* 0 = on (unused) */ | ||
| 56 | #define ASUS_WMI_DEVID_CAMERA_LED 0x00060079 /* 1 = on */ | ||
| 57 | |||
| 54 | /* Backlight and Brightness */ | 58 | /* Backlight and Brightness */ |
| 55 | #define ASUS_WMI_DEVID_ALS_ENABLE 0x00050001 /* Ambient Light Sensor */ | 59 | #define ASUS_WMI_DEVID_ALS_ENABLE 0x00050001 /* Ambient Light Sensor */ |
| 56 | #define ASUS_WMI_DEVID_BACKLIGHT 0x00050011 | 60 | #define ASUS_WMI_DEVID_BACKLIGHT 0x00050011 |