mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
c924ee25aa
commit
543b98c857
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue