-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Olof Johansson
authored and
Matthew Garrett
committed
Nov 20, 2013
1 parent
997daa1
commit ab04310
Showing
8 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ if GOLDFISH | |
source "drivers/platform/goldfish/Kconfig" | ||
endif | ||
|
||
source "drivers/platform/chrome/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters