Skip to contentSkip to conversation

mfd: ntxec: Add version number for EC in Tolino Vision

PATCH Applied Andreas Kemnade 2 participants 2 messages Jan 27, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mfd: ntxec: Add version number for EC in Tolino Vision

The EC firmware has a different version number than anything defined until now.

---
Changes in V2:
use the same formatting as the other version numbers

 drivers/mfd/ntxec.c       | 1 +
 include/linux/mfd/ntxec.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/mfd/ntxec.c +1 -0
index e16a7a82a929..b02785b10d48 100644
@@ -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;
include/linux/mfd/ntxec.h +1 -1
index cc6f07bfa2b3..e5880c346da9 100644
@@ -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
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 11 lines · Andreas Kemnade

The EC firmware has a different version number than anything defined until now.

---
Changes in V2:
use the same formatting as the other version numbers

 drivers/mfd/ntxec.c       | 1 +
 include/linux/mfd/ntxec.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]