Skip to content

Commit 186e4e8

Browse files
CoproscefaloMatthew Garrett
authored andcommitted
platform/x86: Enable build support for toshiba_haps
Makefile and Kconfig build support patch for the newly introduced kernel module toshiba_haps. Signed-off-by: Azael Avalos <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>
1 parent f369aa6 commit 186e4e8

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

drivers/platform/x86/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,25 @@ config TOSHIBA_BT_RFKILL
652652
If you have a modern Toshiba laptop with a Bluetooth and an
653653
RFKill switch (such as the Portege R500), say Y.
654654

655+
config TOSHIBA_HAPS
656+
tristate "Toshiba HDD Active Protection Sensor"
657+
depends on ACPI
658+
---help---
659+
This driver adds support for the built-in accelerometer
660+
found on recent Toshiba laptops equiped with HID TOS620A
661+
device.
662+
663+
This driver receives ACPI notify events 0x80 when the sensor
664+
detects a sudden move or a harsh vibration, as well as an
665+
ACPI notify event 0x81 whenever the movement or vibration has
666+
been stabilized.
667+
668+
Also provides sysfs entries to get/set the desired protection
669+
level and reseting the HDD protection interface.
670+
671+
If you have a recent Toshiba laptop with a built-in accelerometer
672+
device, say Y.
673+
655674
config ACPI_CMPC
656675
tristate "CMPC Laptop Extras"
657676
depends on X86 && ACPI

drivers/platform/x86/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ obj-$(CONFIG_TOPSTAR_LAPTOP) += topstar-laptop.o
3838
obj-$(CONFIG_ACPI_TOSHIBA) += toshiba_acpi.o
3939

4040
obj-$(CONFIG_TOSHIBA_BT_RFKILL) += toshiba_bluetooth.o
41+
obj-$(CONFIG_TOSHIBA_HAPS) += toshiba_haps.o
4142
obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o
4243
obj-$(CONFIG_INTEL_SCU_IPC_UTIL) += intel_scu_ipcutil.o
4344
obj-$(CONFIG_INTEL_MFLD_THERMAL) += intel_mid_thermal.o

0 commit comments

Comments
 (0)