diff options
36 files changed, 2437 insertions, 2403 deletions
diff --git a/Documentation/ABI/testing/sysfs-driver-samsung-laptop b/Documentation/ABI/testing/sysfs-driver-samsung-laptop index e82e7c2b8f80..678819a3f8bf 100644 --- a/Documentation/ABI/testing/sysfs-driver-samsung-laptop +++ b/Documentation/ABI/testing/sysfs-driver-samsung-laptop | |||
| @@ -17,3 +17,21 @@ Description: Some Samsung laptops have different "performance levels" | |||
| 17 | Specifically, not all support the "overclock" option, | 17 | Specifically, not all support the "overclock" option, |
| 18 | and it's still unknown if this value even changes | 18 | and it's still unknown if this value even changes |
| 19 | anything, other than making the user feel a bit better. | 19 | anything, other than making the user feel a bit better. |
| 20 | |||
| 21 | What: /sys/devices/platform/samsung/battery_life_extender | ||
| 22 | Date: December 1, 2011 | ||
| 23 | KernelVersion: 3.3 | ||
| 24 | Contact: Corentin Chary <corentin.chary@gmail.com> | ||
| 25 | Description: Max battery charge level can be modified, battery cycle | ||
| 26 | life can be extended by reducing the max battery charge | ||
| 27 | level. | ||
| 28 | 0 means normal battery mode (100% charge) | ||
| 29 | 1 means battery life extender mode (80% charge) | ||
| 30 | |||
| 31 | What: /sys/devices/platform/samsung/usb_charge | ||
| 32 | Date: December 1, 2011 | ||
| 33 | KernelVersion: 3.3 | ||
| 34 | Contact: Corentin Chary <corentin.chary@gmail.com> | ||
| 35 | Description: Use your USB ports to charge devices, even | ||
| 36 | when your laptop is powered off. | ||
| 37 | 1 means enabled, 0 means disabled. | ||
diff --git a/Documentation/laptops/asus-laptop.txt b/Documentation/laptops/asus-laptop.txt index 803e51f6768b..a1e04d679289 100644 --- a/Documentation/laptops/asus-laptop.txt +++ b/Documentation/laptops/asus-laptop.txt | |||
| @@ -45,7 +45,7 @@ Status | |||
| 45 | Usage | 45 | Usage |
| 46 | ----- | 46 | ----- |
| 47 | 47 | ||
| 48 | Try "modprobe asus_acpi". Check your dmesg (simply type dmesg). You should | 48 | Try "modprobe asus-laptop". Check your dmesg (simply type dmesg). You should |
| 49 | see some lines like this : | 49 | see some lines like this : |
| 50 | 50 | ||
| 51 | Asus Laptop Extras version 0.42 | 51 | Asus Laptop Extras version 0.42 |
diff --git a/Documentation/laptops/sony-laptop.txt b/Documentation/laptops/sony-laptop.txt index 2bd4e82e5d9f..0d5ac7f5287e 100644 --- a/Documentation/laptops/sony-laptop.txt +++ b/Documentation/laptops/sony-laptop.txt | |||
| @@ -17,6 +17,11 @@ subsystem. See the logs of acpid or /proc/acpi/event and | |||
| 17 | devices are created by the driver. Additionally, loading the driver with the | 17 | devices are created by the driver. Additionally, loading the driver with the |
| 18 | debug option will report all events in the kernel log. | 18 | debug option will report all events in the kernel log. |
| 19 | 19 | ||
| 20 | The "scancodes" passed to the input system (that can be remapped with udev) | ||
| 21 | are indexes to the table "sony_laptop_input_keycode_map" in the sony-laptop.c | ||
| 22 | module. For example the "FN/E" key combination (EJECTCD on some models) | ||
| 23 | generates the scancode 20 (0x14). | ||
| 24 | |||
| 20 | Backlight control: | 25 | Backlight control: |
| 21 | ------------------ | 26 | ------------------ |
| 22 | If your laptop model supports it, you will find sysfs files in the | 27 | If your laptop model supports it, you will find sysfs files in the |
diff --git a/MAINTAINERS b/MAINTAINERS index 2cce20bbe39c..f9faadef7ab7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -5776,6 +5776,12 @@ F: drivers/media/common/saa7146* | |||
| 5776 | F: drivers/media/video/*7146* | 5776 | F: drivers/media/video/*7146* |
| 5777 | F: include/media/*7146* | 5777 | F: include/media/*7146* |
| 5778 | 5778 | ||
| 5779 | SAMSUNG LAPTOP DRIVER | ||
| 5780 | M: Corentin Chary <corentincj@iksaif.net> | ||
| 5781 | L: platform-driver-x86@vger.kernel.org | ||
| 5782 | S: Maintained | ||
| 5783 | F: drivers/platform/x86/samsung-laptop.c | ||
| 5784 | |||
| 5779 | SAMSUNG AUDIO (ASoC) DRIVERS | 5785 | SAMSUNG AUDIO (ASoC) DRIVERS |
| 5780 | M: Sangbeom Kim <sbkim73@samsung.com> | 5786 | M: Sangbeom Kim <sbkim73@samsung.com> |
| 5781 | L: alsa-devel@alsa-project.org (moderated for non-subscribers) | 5787 | L: alsa-devel@alsa-project.org (moderated for non-subscribers) |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 901952355969..3ad653de7100 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
| @@ -2125,6 +2125,13 @@ config NET5501 | |||
| 2125 | ---help--- | 2125 | ---help--- |
| 2126 | This option enables system support for the Soekris Engineering net5501. | 2126 | This option enables system support for the Soekris Engineering net5501. |
| 2127 | 2127 | ||
| 2128 | config GEOS | ||
| 2129 | bool "Traverse Technologies GEOS System Support (LEDS, GPIO, etc)" | ||
| 2130 | select GPIOLIB | ||
| 2131 | depends on DMI | ||
| 2132 | ---help--- | ||
| 2133 | This option enables system support for the Traverse Technologies GEOS. | ||
| 2134 | |||
| 2128 | endif # X86_32 | 2135 | endif # X86_32 |
| 2129 | 2136 | ||
| 2130 | config AMD_NB | 2137 | config AMD_NB |
diff --git a/arch/x86/platform/geode/Makefile b/arch/x86/platform/geode/Makefile index 246b788847ff..5b51194f4c8d 100644 --- a/arch/x86/platform/geode/Makefile +++ b/arch/x86/platform/geode/Makefile | |||
| @@ -1,2 +1,3 @@ | |||
| 1 | obj-$(CONFIG_ALIX) += alix.o | 1 | obj-$(CONFIG_ALIX) += alix.o |
| 2 | obj-$(CONFIG_NET5501) += net5501.o | 2 | obj-$(CONFIG_NET5501) += net5501.o |
| 3 | obj-$(CONFIG_GEOS) += geos.o | ||
diff --git a/arch/x86/platform/geode/geos.c b/arch/x86/platform/geode/geos.c new file mode 100644 index 000000000000..c2e6d53558be --- /dev/null +++ b/arch/x86/platform/geode/geos.c | |||
| @@ -0,0 +1,128 @@ | |||
| 1 | /* | ||
| 2 | * System Specific setup for Traverse Technologies GEOS. | ||
| 3 | * At the moment this means setup of GPIO control of LEDs. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2008 Constantin Baranov <const@mimas.ru> | ||
| 6 | * Copyright (C) 2011 Ed Wildgoose <kernel@wildgooses.com> | ||
| 7 | * and Philip Prindeville <philipp@redfish-solutions.com> | ||
| 8 | * | ||
| 9 | * TODO: There are large similarities with leds-net5501.c | ||
| 10 | * by Alessandro Zummo <a.zummo@towertech.it> | ||
| 11 | * In the future leds-net5501.c should be migrated over to platform | ||
| 12 | * | ||
| 13 | * This program is free software; you can redistribute it and/or modify | ||
| 14 | * it under the terms of the GNU General Public License version 2 | ||
| 15 | * as published by the Free Software Foundation. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include <linux/kernel.h> | ||
| 19 | #include <linux/init.h> | ||
| 20 | #include <linux/io.h> | ||
| 21 | #include <linux/string.h> | ||
| 22 | #include <linux/module.h> | ||
| 23 | #include <linux/leds.h> | ||
| 24 | #include <linux/platform_device.h> | ||
| 25 | #include <linux/gpio.h> | ||
| 26 | #include <linux/input.h> | ||
| 27 | #include <linux/gpio_keys.h> | ||
| 28 | #include <linux/dmi.h> | ||
| 29 | |||
| 30 | #include <asm/geode.h> | ||
| 31 | |||
| 32 | static struct gpio_keys_button geos_gpio_buttons[] = { | ||
| 33 | { | ||
| 34 | .code = KEY_RESTART, | ||
| 35 | .gpio = 3, | ||
| 36 | .active_low = 1, | ||
| 37 | .desc = "Reset button", | ||
| 38 | .type = EV_KEY, | ||
| 39 | .wakeup = 0, | ||
| 40 | .debounce_interval = 100, | ||
