Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144920
b: refs/heads/master
c: 1fb137c
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Weiner authored and Chris Zankel committed May 12, 2009
1 parent 3ad5319 commit 50d4d81
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 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: 586411dcd1935f91796d5e8a29aa3cfdf01a01f4
refs/heads/master: 1fb137c1e33cd188b40b3c0d7283412efeeb783f
3 changes: 3 additions & 0 deletions trunk/arch/xtensa/platforms/s6105/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <asm/bootparam.h>

#include <variant/hardware.h>
#include <variant/gpio.h>

#include <platform/gpio.h>

void platform_halt(void)
Expand Down Expand Up @@ -47,6 +49,7 @@ void __init platform_setup(char **cmdline)

void __init platform_init(bp_tag_t *first)
{
s6_gpio_init();
gpio_request(GPIO_LED1_NGREEN, "led1_green");
gpio_request(GPIO_LED1_RED, "led1_red");
gpio_direction_output(GPIO_LED1_NGREEN, 1);
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/xtensa/variants/s6000/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ static struct gpio_chip gpiochip = {
.exported = 0, /* no exporting to userspace */
};

static int gpio_init(void)
int s6_gpio_init(void)
{
return gpiochip_add(&gpiochip);
}
device_initcall(gpio_init);
6 changes: 6 additions & 0 deletions trunk/arch/xtensa/variants/s6000/include/variant/gpio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _XTENSA_VARIANT_S6000_GPIO_H
#define _XTENSA_VARIANT_S6000_GPIO_H

extern int s6_gpio_init(void);

#endif /* _XTENSA_VARIANT_S6000_GPIO_H */

0 comments on commit 50d4d81

Please sign in to comment.