mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 06:50:37 +00:00

Commita6021aa24f
("ACPI: EC: make EC support compile-time conditional") only enable ACPI_EC on X86 by default, but the embedded controller is also widely used on LoongArch laptops so we also enable ACPI_EC for LoongArch. The laptop driver cannot work without EC, so also update the dependency of LOONGSON_LAPTOP to let it depend on APCI_EC. Fixes:a6021aa24f
("ACPI: EC: make EC support compile-time conditional") Reported-by: Xiaotian Wu <wuxiaotian@loongson.cn> Tested-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Link: https://patch.msgid.link/20241217073704.3339587-1-chenhuacai@loongson.cn [ rjw: Added Fixes: ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
32 lines
827 B
Plaintext
32 lines
827 B
Plaintext
#
|
|
# LoongArch Platform Specific Drivers
|
|
#
|
|
|
|
menuconfig LOONGARCH_PLATFORM_DEVICES
|
|
bool "LoongArch Platform Specific Device Drivers"
|
|
default y
|
|
depends on LOONGARCH
|
|
help
|
|
Say Y here to get to see options for device drivers of various
|
|
LoongArch platforms, including vendor-specific laptop/desktop
|
|
extension and hardware monitor drivers. This option itself does
|
|
not add any kernel code.
|
|
|
|
If you say N, all options in this submenu will be skipped and disabled.
|
|
|
|
if LOONGARCH_PLATFORM_DEVICES
|
|
|
|
config LOONGSON_LAPTOP
|
|
tristate "Generic Loongson-3 Laptop Driver"
|
|
depends on ACPI_EC
|
|
depends on BACKLIGHT_CLASS_DEVICE
|
|
depends on INPUT
|
|
depends on MACH_LOONGSON64
|
|
select ACPI_VIDEO
|
|
select INPUT_SPARSEKMAP
|
|
default y
|
|
help
|
|
ACPI-based Loongson-3 family laptops generic driver.
|
|
|
|
endif # LOONGARCH_PLATFORM_DEVICES
|