Skip to content

Commit

Permalink
Merge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git…
Browse files Browse the repository at this point in the history
…/ycmiao/pxa-linux-2.6 into devel
  • Loading branch information
Russell King authored and Russell King committed Mar 15, 2009
2 parents 97fb44e + cefdb2a commit 78772a7
Show file tree
Hide file tree
Showing 8 changed files with 432 additions and 34 deletions.
12 changes: 12 additions & 0 deletions arch/arm/mach-pxa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,18 @@ config PCM990_DISPLAY_NONE

endchoice

config MACH_CSB726
bool "Enable Cogent CSB726 System On a Module"
select PXA27x
select IWMMXT
help
Say Y here if you intend to run this kernel on a Cogent
CSB726 System On Module.

config CSB726_CSB701
bool "Enable supprot for CSB701 baseboard"
depends on MACH_CSB726

config PXA_EZX
bool "Motorola EZX Platform"
select PXA27x
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-pxa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ obj-$(CONFIG_MACH_CM_X300) += cm-x300.o
obj-$(CONFIG_PXA_EZX) += ezx.o

obj-$(CONFIG_MACH_INTELMOTE2) += imote2.o
obj-$(CONFIG_MACH_CSB726) += csb726.o
obj-$(CONFIG_CSB726_CSB701) += csb701.o

# Support for blinky lights
led-y := leds.o
Expand Down
61 changes: 61 additions & 0 deletions arch/arm/mach-pxa/csb701.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/gpio_keys.h>
#include <linux/input.h>
#include <linux/leds.h>

static struct gpio_keys_button csb701_buttons[] = {
{
.code = 0x7,
.gpio = 1,
.active_low = 1,
.desc = "SW2",
.type = EV_SW,
.wakeup = 1,
},
};

static struct gpio_keys_platform_data csb701_gpio_keys_data = {
.buttons = csb701_buttons,
.nbuttons = ARRAY_SIZE(csb701_buttons),
};

static struct gpio_led csb701_leds[] = {
{
.name = "csb701:yellow:heartbeat",
.default_trigger = "heartbeat",
.gpio = 11,
.active_low = 1,
},
};

static struct platform_device csb701_gpio_keys = {
.name = "gpio-keys",
.id = -1,
.dev.platform_data = &csb701_gpio_keys_data,
};

static struct gpio_led_platform_data csb701_leds_gpio_data = {
.leds = csb701_leds,
.num_leds = ARRAY_SIZE(csb701_leds),
};

static struct platform_device csb701_leds_gpio = {
.name = "leds-gpio",
.id = -1,
.dev.platform_data = &csb701_leds_gpio_data,
};

static struct platform_device *devices[] __initdata = {
&csb701_gpio_keys,
&csb701_leds_gpio,
};

static int __init csb701_init(void)
{
return platform_add_devices(devices, ARRAY_SIZE(devices));
}

module_init(csb701_init);

Loading

0 comments on commit 78772a7

Please sign in to comment.