mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
LoongArch: Add ACPI-based generic laptop driver
This add ACPI-based generic laptop driver for Loongson-3. Some of the codes are derived from drivers/platform/x86/thinkpad_acpi.c. Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
@@ -3,6 +3,8 @@ if MIPS
|
||||
source "drivers/platform/mips/Kconfig"
|
||||
endif
|
||||
|
||||
source "drivers/platform/loongarch/Kconfig"
|
||||
|
||||
source "drivers/platform/goldfish/Kconfig"
|
||||
|
||||
source "drivers/platform/chrome/Kconfig"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#
|
||||
|
||||
obj-$(CONFIG_X86) += x86/
|
||||
obj-$(CONFIG_LOONGARCH) += loongarch/
|
||||
obj-$(CONFIG_MELLANOX_PLATFORM) += mellanox/
|
||||
obj-$(CONFIG_MIPS) += mips/
|
||||
obj-$(CONFIG_OLPC_EC) += olpc/
|
||||
|
||||
31
drivers/platform/loongarch/Kconfig
Normal file
31
drivers/platform/loongarch/Kconfig
Normal file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# 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
|
||||
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
|
||||
1
drivers/platform/loongarch/Makefile
Normal file
1
drivers/platform/loongarch/Makefile
Normal file
@@ -0,0 +1 @@
|
||||
obj-$(CONFIG_LOONGSON_LAPTOP) += loongson-laptop.o
|
||||
624
drivers/platform/loongarch/loongson-laptop.c
Normal file
624
drivers/platform/loongarch/loongson-laptop.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user