Skip to content

Commit

Permalink
platform/x86: Add new msi-ec driver
Browse files Browse the repository at this point in the history
Add a new driver to allow various MSI laptops' functionalities to be
controlled from userspace. This includes such features as power
profiles (aka shift modes), fan speed, charge thresholds, LEDs, etc.

This driver contains EC memory configurations for different firmware
versions and exports battery charge thresholds to userspace (note,
that start and end thresholds control the same EC parameter
and are always 10% apart).

Link: https://github.com/BeardOverflow/msi-ec/
Link: BeardOverflow/msi-ec#13
Cc: Aakash Singh <[email protected]>
Cc: Jose Angel Pastrana <[email protected]>
Signed-off-by: Nikita Kravets <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
  • Loading branch information
teackot authored and jwrdegoede committed Mar 27, 2023
1 parent fd5aada commit 392cacf
Show file tree
Hide file tree
Showing 5 changed files with 1,035 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -14138,6 +14138,13 @@ S: Odd Fixes
F: Documentation/devicetree/bindings/net/ieee802154/mrf24j40.txt
F: drivers/net/ieee802154/mrf24j40.c

MSI EC DRIVER
M: Nikita Kravets <[email protected]>
L: [email protected]
S: Maintained
W: https://github.com/BeardOverflow/msi-ec
F: drivers/platform/x86/msi-ec.*

MSI LAPTOP SUPPORT
M: "Lee, Chun-Yi" <[email protected]>
L: [email protected]
Expand Down
8 changes: 8 additions & 0 deletions drivers/platform/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,14 @@ config THINKPAD_LMI

source "drivers/platform/x86/intel/Kconfig"

config MSI_EC
tristate "MSI EC Extras"
depends on ACPI
depends on ACPI_BATTERY
help
This driver allows various MSI laptops' functionalities to be
controlled from userspace, including battery charge threshold.

config MSI_LAPTOP
tristate "MSI Laptop Extras"
depends on ACPI
Expand Down
1 change: 1 addition & 0 deletions drivers/platform/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ obj-$(CONFIG_THINKPAD_LMI) += think-lmi.o
obj-y += intel/

# MSI
obj-$(CONFIG_MSI_EC) += msi-ec.o
obj-$(CONFIG_MSI_LAPTOP) += msi-laptop.o
obj-$(CONFIG_MSI_WMI) += msi-wmi.o

Expand Down
Loading

0 comments on commit 392cacf

Please sign in to comment.