From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Frank T. Lofaro Jr." Date: Fri, 04 Nov 2011 04:44:18 +0000 Subject: [lm-sensors] [PATCH] Drivers: hwmon: it87: Add support for ITE 8728 Message-Id: <1320381858.22997.YahooMailNeo@web161601.mail.bf1.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============8815903812512220665==" List-Id: To: lm-sensors@vger.kernel.org --===============8815903812512220665== Content-Type: multipart/alternative; boundary="-83809723-1680731830-1320381858=:22997" ---83809723-1680731830-1320381858=:22997 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable This patch allows the ITE 8728 chip to be detected and used.=0AThe chip app= ears to be compatible with the 8721.=0A=0ASigned-off-by: Frank T. Lofaro Jr= . =0A---=0A=A0drivers/hwmon/it87.c |=A0=A0=A0 3 +++=0A= =A01 files changed, 3 insertions(+), 0 deletions(-)=0A=0Adiff --git a/drive= rs/hwmon/it87.c b/drivers/hwmon/it87.c=0Aindex d912649..0b21d18 100644=0A--= - a/drivers/hwmon/it87.c=0A+++ b/drivers/hwmon/it87.c=0A@@ -17,6 +17,7 @@= =0A=A0 *=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 IT8720F=A0 Super I/O chip w/LPC i= nterface=0A=A0 *=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 IT8721F=A0 Super I/O chip= w/LPC interface=0A=A0 *=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 IT8726F=A0 Super = I/O chip w/LPC interface=0A+ *=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 IT8728F=A0 = Super I/O chip w/LPC interface=0A=A0 *=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 IT8= 758E=A0 Super I/O chip w/LPC interface=0A=A0 *=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 Sis950=A0=A0 A clone of the IT8705F=0A=A0 *=0A@@ -135,6 +136,7 @@ st= atic inline void superio_exit(void)=0A=A0#define IT8720F_DEVID 0x8720=0A=A0= #define IT8721F_DEVID 0x8721=0A=A0#define IT8726F_DEVID 0x8726=0A+#define I= T8728F_DEVID 0x8728=0A=A0#define IT87_ACT_REG=A0 0x30=0A=A0#define IT87_BAS= E_REG 0x60=0A=A0=0A@@ -1603,6 +1605,7 @@ static int __init it87_find(unsign= ed short *address,=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 sio_data= ->type =3D it8720;=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 break;= =0A=A0=A0=A0=A0=A0=A0=A0 case IT8721F_DEVID:=0A+=A0=A0=A0=A0=A0=A0 case IT8= 728F_DEVID:=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 sio_data->type = =3D it8721;=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 break;=0A=A0=A0= =A0=A0=A0=A0=A0 case 0xffff:=A0=A0=A0 /* No device at all */=0A-- =0A1.7.7.= 2 ---83809723-1680731830-1320381858=:22997 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
This patch allows the= ITE 8728 chip to be detected and used.
The chip appears to be compatibl= e with the 8721.

Signed-off-by: Frank T. Lofaro Jr. <ftlofaro@yah= oo.com>
---
 drivers/hwmon/it87.c |    3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git = a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c
index d912649..0b21d18 100= 644
--- a/drivers/hwmon/it87.c
+++ b/drivers/hwmon/it87.c
@@ -17,6= +17,7 @@
  *         =    IT8720F  Super I/O chip w/LPC interface
  * =            IT8721F  = Super I/O chip w/LPC interface
  *     &nb= sp;      IT8726F  Super I/O chip w/LPC interface
+ *         &nbs= p;  IT8728F  Super I/O chip w/LPC interface
  * &nbs= p;          IT8758E  Supe= r I/O chip w/LPC interface
  *      &= nbsp;     Sis950   A clone of the IT8705F
=   *
@@ -135,6 +136,7 @@ static inline void superio_exit(void)
&n= bsp;#define IT8720F_DEVID 0x8720
 #define IT8721F_DEVID 0x8721
&= nbsp;#define IT8726F_DEVID 0x8726
+#define IT8728F_DEVID 0x8728
 = ;#define IT87_ACT_REG  0x30
 #define IT87_BASE_REG 0x60
&nb= sp;
@@ -1603,6 +1605,7 @@ static int __init it87_find(unsigned short *ad= dress,
           = ;     sio_data->type =3D it8720;
          &nb= sp;     break;
      &= nbsp; case IT8721F_DEVID:
+       case IT8= 728F_DEVID:
          =       sio_data->type =3D it8721;
  = ;            &n= bsp; break;
        case 0xffff: = ;   /* No device at all */
--
1.7.7.2

= ---83809723-1680731830-1320381858=:22997-- --===============8815903812512220665== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors --===============8815903812512220665==--