aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-04-05 17:44:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-05 17:44:13 -0400
commit930b440cd8256f3861bdb0a59d26efaadac7941a (patch)
tree145ac54e152834fed7bce78b3eb33e8ea4d90226 /arch/arm/mach-pxa
parentff050ad12c551233e546506409c89eb2f640d9f3 (diff)
parent077492acceeafc0a106f88b0780623d2321a8947 (diff)
Merge tag 'boards-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC board changes from Arnd Bergmann: "As we continue to replace board files with device tree descriptions, this part of the ARM support is getting smaller. We have basically just defconfig changes here this time, and a significant number of Renesas shmobile changes, as Renesas is still in the process of deprecating board file support" * tag 'boards-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (92 commits) ARM: enable fhandle in multi_v7_defconfig ARM: tegra: enable fhandle in tegra_defconfig ARM: update multi_v7_defconfig for Tegra ARM: add Marvell Dove and some drivers to multi_v7 defconfig ARM: fix duplicate symbols in multi_v5_defconfig ARM: pxa: add gpio keys information ARM: tegra: defconfig updates ARM: config: keystone: enable AEMIF/NAND support ARM: qcom: Enable basic support for Qualcomm platforms in multi_v7_defconfig ARM: kirkwood: Add HP T5325 devices to {multi|mvebu}_v5_defconfig ARM: config: Add mvebu_v5_defconfig ARM: config: Add a multi_v5_defconfig ARM: shmobile: r7s72100: update defconfig for I2C usage ARM: shmobile: Remove Lager DT reference legacy clock bits ARM: shmobile: Remove Koelsch DT reference legacy clock bits ARM: shmobile: Remove KZM9D board code ARM: mvebu: update defconfigs for Armada 375 and 38x ARM: dove: Enable watchdog support in the defconfig ARM: mvebu: Enable watchdog support in defconfig ARM: config: keystone: enable led support ...
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/corgi.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c
index f162f1b77cd2..57d60542f982 100644
--- a/arch/arm/mach-pxa/corgi.c
+++ b/arch/arm/mach-pxa/corgi.c
@@ -32,6 +32,7 @@
32#include <linux/spi/pxa2xx_spi.h> 32#include <linux/spi/pxa2xx_spi.h>
33#include <linux/mtd/sharpsl.h> 33#include <linux/mtd/sharpsl.h>
34#include <linux/input/matrix_keypad.h> 34#include <linux/input/matrix_keypad.h>
35#include <linux/gpio_keys.h>
35#include <linux/module.h> 36#include <linux/module.h>
36#include <video/w100fb.h> 37#include <video/w100fb.h>
37 38
@@ -405,6 +406,44 @@ static struct platform_device corgikbd_device = {
405 }, 406 },
406}; 407};
407 408
409static struct gpio_keys_button corgi_gpio_keys[] = {
410 {
411 .type = EV_SW,
412 .code = SW_LID,
413 .gpio = CORGI_GPIO_SWA,
414 .desc = "Lid close switch",
415 .debounce_interval = 500,
416 },
417 {
418 .type = EV_SW,
419 .code = SW_TABLET_MODE,
420 .gpio = CORGI_GPIO_SWB,
421 .desc = "Tablet mode switch",
422 .debounce_interval = 500,
423 },
424 {
425 .type = EV_SW,
426 .code = SW_HEADPHONE_INSERT,
427 .gpio = CORGI_GPIO_AK_INT,
428 .desc = "HeadPhone insert",
429 .debounce_interval = 500,
430 },
431};
432
433static struct gpio_keys_platform_data corgi_gpio_keys_platform_data = {
434 .buttons = corgi_gpio_keys,
435 .nbuttons = ARRAY_SIZE(corgi_gpio_keys),
436 .poll_interval = 250,
437};
438
439static struct platform_device corgi_gpio_keys_device = {
440 .name = "gpio-keys-polled",
441 .id = -1,
442 .dev = {
443 .platform_data = &corgi_gpio_keys_platform_data,
444 },
445};
446
408/* 447/*
409 * Corgi LEDs 448 * Corgi LEDs
410 */ 449 */
@@ -646,6 +685,7 @@ static struct platform_device sharpsl_rom_device = {
646static struct platform_device *devices[] __initdata = { 685static struct platform_device *devices[] __initdata = {
647 &corgiscoop_device, 686 &corgiscoop_device,
648 &corgifb_device, 687 &corgifb_device,
688 &corgi_gpio_keys_device,
649 &corgikbd_device, 689 &corgikbd_device,
650 &corgiled_device, 690 &corgiled_device,
651 &corgi_audio_device, 691 &corgi_audio_device,