Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331348
b: refs/heads/master
c: 1b90e06
h: refs/heads/master
v: v3
  • Loading branch information
Jamie Lentin authored and Jason Cooper committed Sep 22, 2012
1 parent 6a18bfa commit 50f7030
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 27 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: 55fb8b06813b190a9366fee396fac109638a9c9d
refs/heads/master: 1b90e06b14291ce3c252bd10e4ce981a08152e2e
10 changes: 10 additions & 0 deletions trunk/arch/arm/boot/dts/kirkwood-dnskw.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
};
};

gpio_fan {
/* Fan: ADDA AD045HB-G73 40mm 6000rpm@5v */
compatible = "gpio-fan";
gpios = <&gpio1 14 1
&gpio1 13 1>;
gpio-fan,speed-map = <0 0
3000 1
6000 2>;
};

ocp@f1000000 {
sata@80000 {
status = "okay";
Expand Down
26 changes: 0 additions & 26 deletions trunk/arch/arm/mach-kirkwood/board-dnskw.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <linux/of.h>
#include <linux/gpio.h>
#include <linux/input.h>
#include <linux/gpio-fan.h>
#include <linux/leds.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -67,29 +66,6 @@ static unsigned int dnskw_mpp_config[] __initdata = {
0
};

/* Fan: ADDA AD045HB-G73 40mm 6000rpm@5v */
static struct gpio_fan_speed dnskw_fan_speed[] = {
{ 0, 0 },
{ 3000, 1 },
{ 6000, 2 },
};
static unsigned dnskw_fan_pins[] = {46, 45};

static struct gpio_fan_platform_data dnskw_fan_data = {
.num_ctrl = ARRAY_SIZE(dnskw_fan_pins),
.ctrl = dnskw_fan_pins,
.num_speed = ARRAY_SIZE(dnskw_fan_speed),
.speed = dnskw_fan_speed,
};

static struct platform_device dnskw_fan_device = {
.name = "gpio-fan",
.id = -1,
.dev = {
.platform_data = &dnskw_fan_data,
},
};

static void dnskw_power_off(void)
{
gpio_set_value(36, 1);
Expand All @@ -114,8 +90,6 @@ void __init dnskw_init(void)
kirkwood_ehci_init();
kirkwood_ge00_init(&dnskw_ge00_data);

platform_device_register(&dnskw_fan_device);

/* Register power-off GPIO. */
if (gpio_request(36, "dnskw:power:off") == 0
&& gpio_direction_output(36, 0) == 0)
Expand Down

0 comments on commit 50f7030

Please sign in to comment.