platform: add chrome platform directory
It makes sense to split out the Chromebook/Chromebox hardware platform drivers to a separate subdirectory, since some of it will be shared between ARM and x86. This moves over the existing chromeos_laptop driver without making any other changes, and adds appropriate Kconfig entries for the new directory. It also adds a MAINTAINERS entry for the new subdir. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
This commit is contained in:

committed by
Matthew Garrett

orang tua
997daa1bd9
melakukan
ab0431059e
28
drivers/platform/chrome/Kconfig
Normal file
28
drivers/platform/chrome/Kconfig
Normal file
@@ -0,0 +1,28 @@
|
||||
#
|
||||
# Platform support for Chrome OS hardware (Chromebooks and Chromeboxes)
|
||||
#
|
||||
|
||||
menuconfig CHROME_PLATFORMS
|
||||
bool "Platform support for Chrome hardware"
|
||||
depends on X86
|
||||
---help---
|
||||
Say Y here to get to see options for platform support for
|
||||
various Chromebooks and Chromeboxes. This option alone does
|
||||
not add any kernel code.
|
||||
|
||||
If you say N, all options in this submenu will be skipped and disabled.
|
||||
|
||||
if CHROME_PLATFORMS
|
||||
|
||||
config CHROMEOS_LAPTOP
|
||||
tristate "Chrome OS Laptop"
|
||||
depends on I2C
|
||||
depends on DMI
|
||||
---help---
|
||||
This driver instantiates i2c and smbus devices such as
|
||||
light sensors and touchpads.
|
||||
|
||||
If you have a supported Chromebook, choose Y or M here.
|
||||
The module will be called chromeos_laptop.
|
||||
|
||||
endif # CHROMEOS_PLATFORMS
|
Reference in New Issue
Block a user