From: paul s <mactel-linux.org-users@queuemail.com>
To: roberto@unbit.it
Cc: mactel-linux-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [Mactel-linux-devel] [PATCH] Support for Intel iMac in applesmc
Date: Wed, 23 Jul 2008 19:24:26 -0400 [thread overview]
Message-ID: <4887BDAA.6040303@queuemail.com> (raw)
In-Reply-To: <1216814135.5834.9.camel@sirius>
applying these changes manually to the 2.6.25.10 source loads the
applesmc on the imac 7,1 as well and recognizes the three fans...
cheers
paul
Roberto De Ioris wrote:
> Hi all, this patch (2.6.26 vanilla) add supports for fans and
> temperature sensors on intel iMac.
>
> Tested on iMac 24" 2.8ghz (iMac8,1), it supports the following sensors:
>
> cpu A
> ambient
> gpu
> gpu diode
> gpu heatsink
> hd bay 1
> memory controller
> optical drive
> power
>
> Signed-off-by: Roberto De Ioris <roberto@unbit.it>
> ---
> diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
> index aacc0c4..bc616c3 100644
> --- a/drivers/hwmon/applesmc.c
> +++ b/drivers/hwmon/applesmc.c
> @@ -98,6 +98,8 @@ static const char* temperature_sensors_sets[][36] = {
> "TH1P", "TH2P", "TH3P", "TMAP", "TMAS", "TMBS", "TM0P",
> "TM0S",
> "TM1P", "TM1S", "TM2P", "TM2S", "TM3S", "TM8P", "TM8S",
> "TM9P",
> "TM9S", "TN0H", "TS0C", NULL },
> +/* Set 5: iMac */
> + { "TC0D", "TA0P", "TG0P", "TG0D", "TG0H", "TH0P", "Tm0P",
> "TO0P", "Tp0C", NULL },
> };
>
> /* List of keys used to read/write fan speeds */
> @@ -1223,6 +1225,8 @@ static __initdata struct dmi_match_data
> applesmc_dmi_data[] = {
> { .accelerometer = 0, .light = 0, .temperature_set = 3 },
> /* MacPro: temperature set 4 */
> { .accelerometer = 0, .light = 0, .temperature_set = 4 },
> +/* iMac: temperature set 5 */
> + { .accelerometer = 0, .light = 0, .temperature_set = 5 },
> };
>
> /* Note that DMI_MATCH(...,"MacBook") will match "MacBookPro1,1".
> @@ -1248,6 +1252,10 @@ static __initdata struct dmi_system_id
> applesmc_whitelist[] = {
> DMI_MATCH(DMI_BOARD_VENDOR,"Apple"),
> DMI_MATCH(DMI_PRODUCT_NAME,"MacPro2") },
> (void*)&applesmc_dmi_data[4]},
> + { applesmc_dmi_match, "Apple iMac", {
> + DMI_MATCH(DMI_BOARD_VENDOR,"Apple"),
> + DMI_MATCH(DMI_PRODUCT_NAME,"iMac") },
> + (void*)&applesmc_dmi_data[5]},
> { .ident = NULL }
> };
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Mactel-linux-devel mailing list
> Mactel-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel
next prev parent reply other threads:[~2008-07-24 0:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-23 11:55 [PATCH] Support for Intel iMac in applesmc Roberto De Ioris
2008-07-23 23:24 ` paul s [this message]
2008-07-29 15:02 ` [lm-sensors] [PATCH 1/2] " Nicolas Boichat
2008-07-29 15:02 ` Nicolas Boichat
2008-07-29 15:07 ` [lm-sensors] [PATCH 2/2] applesmc: add support for Macbook v3 Nicolas Boichat
2008-07-29 15:07 ` Nicolas Boichat
2008-07-29 23:57 ` [lm-sensors] " Andrew Morton
2008-07-29 23:57 ` Andrew Morton
2008-07-29 23:54 ` [lm-sensors] [PATCH 1/2] Support for Intel iMac in applesmc Andrew Morton
2008-07-29 23:54 ` Andrew Morton
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=4887BDAA.6040303@queuemail.com \
--to=mactel-linux.org-users@queuemail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mactel-linux-devel@lists.sourceforge.net \
--cc=roberto@unbit.it \
/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.