[U-Boot] [PATCH 11/20] w1: enumerate sandbox driver if configured
Eugen Hristev
eugen.hristev at microchip.com
Thu Jul 19 09:57:59 UTC 2018
Add a sandbox eeprom on the bus as a device, if sandbox driver is configured.
Signed-off-by: Eugen Hristev <eugen.hristev at microchip.com>
---
drivers/w1/w1-uclass.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.c
index cfddda3..e58c1ca 100644
--- a/drivers/w1/w1-uclass.c
+++ b/drivers/w1/w1-uclass.c
@@ -142,6 +142,11 @@ static int w1_enumerate(struct udevice *bus)
}
}
+#ifdef CONFIG_W1_EEPROM_SANDBOX
+ /* before we are finished, add a sandbox device if we can */
+ w1_new_device(bus, W1_FAMILY_EEP_SANDBOX);
+#endif
+
return 0;
}
--
2.7.4
More information about the U-Boot
mailing list