mfd: ntxec: Add version number for EC in Tolino Vision
authorAndreas Kemnade <andreas@kemnade.info>
Fri, 27 Jan 2023 16:58:28 +0000 (17:58 +0100)
committerLee Jones <lee@kernel.org>
Wed, 22 Feb 2023 11:42:29 +0000 (11:42 +0000)
The EC firmware has a different version number than anything
defined until now.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230127165828.3256170-1-andreas@kemnade.info
drivers/mfd/ntxec.c
include/linux/mfd/ntxec.h

index e16a7a8..b02785b 100644 (file)
@@ -175,6 +175,7 @@ static int ntxec_probe(struct i2c_client *client)
        /* Bail out if we encounter an unknown firmware version */
        switch (version) {
        case NTXEC_VERSION_KOBO_AURA:
+       case NTXEC_VERSION_TOLINO_VISION:
                subdevs = ntxec_subdev;
                n_subdevs = ARRAY_SIZE(ntxec_subdev);
                break;
index cc6f07b..e5880c3 100644 (file)
@@ -34,5 +34,5 @@ static inline u16 ntxec_reg8(u8 value)
 /* Known firmware versions */
 #define NTXEC_VERSION_KOBO_AURA        0xd726  /* found in Kobo Aura */
 #define NTXEC_VERSION_TOLINO_SHINE2 0xf110 /* found in Tolino Shine 2 HD */
-
+#define NTXEC_VERSION_TOLINO_VISION 0xe135 /* found in Tolino Vision, contains RTC, ADC, PWM, home pad */
 #endif