[PATCH v1] hwmon: Add RAA229621 for renesas spec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Brian Chiang<chiang.brian@xxxxxxxxxxxx>

According to the RAA229621 datasheet, add support for reading.

Signed-off-by: Brian Chiang<chiang.brian@xxxxxxxxxxxx>
---
 drivers/hwmon/pmbus/isl68137.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/hwmon/pmbus/isl68137.c b/drivers/hwmon/pmbus/isl68137.c
index 1a8caff1ac5f..c7a6b8d9c648 100644
--- a/drivers/hwmon/pmbus/isl68137.c
+++ b/drivers/hwmon/pmbus/isl68137.c
@@ -61,6 +61,7 @@ enum chips {
    raa228228,
    raa229001,
    raa229004,
+   raa229621,
 };

 enum variants {
@@ -70,6 +71,7 @@ enum variants {
    raa_dmpvr2_2rail_nontc,
    raa_dmpvr2_3rail,
    raa_dmpvr2_hv,
+   raa_dmpvr2_hvt,
 };

 static const struct i2c_device_id raa_dmpvr_id[];
@@ -264,6 +266,12 @@ static int isl68137_probe(struct i2c_client *client)
        info->R[PSC_POWER] = -1;
        info->read_word_data = raa_dmpvr2_read_word_data;
        break;
+   case raa_dmpvr2_hvt:
+       info->pages = 2;
+       info->func[0] &= ~PMBUS_HAVE_TEMP3;
+       info->func[1] &= ~PMBUS_HAVE_TEMP3;
+       info->read_word_data = raa_dmpvr2_read_word_data;
+       break;
    default:
        return -ENODEV;
    }
@@ -313,6 +321,7 @@ static const struct i2c_device_id raa_dmpvr_id[] = {
    {"raa228228", raa_dmpvr2_2rail_nontc},
    {"raa229001", raa_dmpvr2_2rail},
    {"raa229004", raa_dmpvr2_2rail},
+   {"raa229621", raa_dmpvr2_hvt},
    {}
 };

-- 
2.40.1




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux