summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2022-11-19 22:56:46 +0100
committerWolfram Sang <wsa@kernel.org>2022-12-05 11:11:14 +0100
commit595d526e214829caa41bee4f4a1e8104f8d2026b (patch)
tree23aebcc6a2ae008b0b32933c5efb139351f9ae9c
parent051304c49aa1e5a445238b4cf2594ea3ff7f2341 (diff)
downloadi2c-tools-git-595d526e214829caa41bee4f4a1e8104f8d2026b.tar.gz
i2cdetect: display more functionality bits with '-F'
Original motivation was to add I2C_FUNC_SLAVE, so users can easily find out if their hardware supports being a target. While here, add HostNotify and 10-bit addressing as well. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
-rw-r--r--tools/i2cdetect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/i2cdetect.c b/tools/i2cdetect.c
index 066ec82..5ab4ea4 100644
--- a/tools/i2cdetect.c
+++ b/tools/i2cdetect.c
@@ -160,6 +160,12 @@ static const struct func all_func[] = {
.name = "I2C Block Write" },
{ .value = I2C_FUNC_SMBUS_READ_I2C_BLOCK,
.name = "I2C Block Read" },
+ { .value = I2C_FUNC_SMBUS_HOST_NOTIFY,
+ .name = "SMBus Host Notify" },
+ { .value = I2C_FUNC_10BIT_ADDR,
+ .name = "10-bit addressing" },
+ { .value = I2C_FUNC_SLAVE,
+ .name = "Target mode" },
{ .value = 0, .name = "" }
};