summaryrefslogtreecommitdiff
path: root/drivers/w1
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2018-09-18 10:35:28 +0300
committerTom Rini <trini@konsulko.com>2018-09-28 20:22:35 -0400
commit543b98c85719ff0e5e80e9e18fbcc4dc50a2136b (patch)
treec8e3090cf9354f00fc32bb1ff0e0b2e5a3e4b6ea /drivers/w1
parentc924ee25aa0e837bf4ae207e9959babe23a372d6 (diff)
w1: identify devices with w1-eeprom uclass
When a new device is discovered, this may be a w1 eeprom device. Attempt to find the proper node and driver from the w1-eeprom subsystem. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/w1-uclass.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.c
index 44759fea44..aecf7fec77 100644
--- a/drivers/w1/w1-uclass.c
+++ b/drivers/w1/w1-uclass.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <dm.h>
#include <w1.h>
+#include <w1-eeprom.h>
#include <dm/device-internal.h>
@@ -98,6 +99,9 @@ static int w1_enumerate(struct udevice *bus)
debug("%s: Detected new device 0x%llx (family 0x%x)\n",
bus->name, rn, (u8)(rn & 0xff));
+
+ /* attempt to register as w1-eeprom device */
+ w1_eeprom_register_new_device(rn);
}
}