From: Riku Voipio <riku.voipio@movial.fi>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH] On n2100 systems,
Date: Tue, 16 Oct 2007 10:08:57 +0000 [thread overview]
Message-ID: <20071016100857.GA25544@kos.to> (raw)
On thecus n2100, the bootloader does not setup fans to run. In order
to protect the user from frying their gear, start up fans on boot.
Depends on:
f75375s: Add new style bindings
f75375s: allow setting up fans with platform_data
patches sent to lm-sensors mailing list.
Signed-off-by: Riku Voipio <riku.voipio@movial.fi>
---
arch/arm/mach-iop32x/n2100.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-iop32x/n2100.c b/arch/arm/mach-iop32x/n2100.c
index 1873bd8..5a4acff 100644
--- a/arch/arm/mach-iop32x/n2100.c
+++ b/arch/arm/mach-iop32x/n2100.c
@@ -16,6 +16,7 @@
#include <linux/mm.h>
#include <linux/init.h>
+#include <linux/f75375s.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/pci.h>
@@ -200,11 +201,21 @@ static struct platform_device n2100_serial_device = {
.resource = &n2100_uart_resource,
};
+static struct f75375s_platform_data n2100_f75375s = {
+ .pwm = { 255, 255 },
+ .pwm_enable = { 0, 0 },
+};
+
static struct i2c_board_info __initdata n2100_i2c_devices[] = {
{
I2C_BOARD_INFO("rtc-rs5c372", 0x32),
.type = "rs5c372b",
},
+ {
+ I2C_BOARD_INFO("f75375", 0x2e),
+ .type = "f75375",
+ .platform_data = &n2100_f75375s,
+ },
};
/*
--
1.5.3.1
--
"rm -rf" only sounds scary if you don't have backups
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next reply other threads:[~2007-10-16 10:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 10:08 Riku Voipio [this message]
2007-10-16 11:40 ` [lm-sensors] [PATCH] On n2100 systems, Lennert Buytenhek
2007-10-17 14:57 ` Jean Delvare
2007-10-17 15:19 ` Lennert Buytenhek
2007-10-17 21:42 ` Jean Delvare
2007-10-17 22:51 ` Lennert Buytenhek
2007-10-18 8:56 ` Riku Voipio
2007-10-19 15:36 ` Jean Delvare
2007-10-24 14:03 ` Riku Voipio
2007-10-25 11:45 ` Mark M. Hoffman
2007-10-25 11:59 ` Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071016100857.GA25544@kos.to \
--to=riku.voipio@movial.fi \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.