Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43401
b: refs/heads/master
c: b2eba6b
h: refs/heads/master
i:
  43399: 8243ae7
v: v3
  • Loading branch information
Ben Dooks authored and Russell King committed Dec 7, 2006
1 parent 72fde48 commit 532de1d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86987d5bf4db7850a8dfb073c6a3506d4e0d2bcc
refs/heads/master: b2eba6bb44300b46cdd2e5d0b19d5f4bd7d001ac
50 changes: 49 additions & 1 deletion trunk/arch/arm/mach-s3c2410/mach-vr1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

#include <asm/arch/regs-serial.h>
#include <asm/arch/regs-gpio.h>
#include <asm/arch/leds-gpio.h>

#include "clock.h"
#include "devs.h"
Expand Down Expand Up @@ -313,6 +314,50 @@ static struct platform_device vr1000_dm9k1 = {
}
};

/* LEDS */

static struct s3c24xx_led_platdata vr1000_led1_pdata = {
.name = "led1",
.gpio = S3C2410_GPB0,
.def_trigger = "",
};

static struct s3c24xx_led_platdata vr1000_led2_pdata = {
.name = "led2",
.gpio = S3C2410_GPB1,
.def_trigger = "",
};

static struct s3c24xx_led_platdata vr1000_led3_pdata = {
.name = "led3",
.gpio = S3C2410_GPB2,
.def_trigger = "",
};

static struct platform_device vr1000_led1 = {
.name = "s3c24xx_led",
.id = 1,
.dev = {
.platform_data = &vr1000_led1_pdata,
},
};

static struct platform_device vr1000_led2 = {
.name = "s3c24xx_led",
.id = 2,
.dev = {
.platform_data = &vr1000_led2_pdata,
},
};

static struct platform_device vr1000_led3 = {
.name = "s3c24xx_led",
.id = 1,
.dev = {
.platform_data = &vr1000_led3_pdata,
},
};

/* devices for this board */

static struct platform_device *vr1000_devices[] __initdata = {
Expand All @@ -325,7 +370,10 @@ static struct platform_device *vr1000_devices[] __initdata = {
&serial_device,
&vr1000_nor,
&vr1000_dm9k0,
&vr1000_dm9k1
&vr1000_dm9k1,
&vr1000_led1,
&vr1000_led2,
&vr1000_led3,
};

static struct clk *vr1000_clocks[] = {
Expand Down

0 comments on commit 532de1d

Please sign in to comment.