
5 Nov
2013
5 Nov
'13
11:38 p.m.
Hi Simon,
[...]
+Declaring Uclasses +------------------
+The demo uclass is declared like this:
+U_BOOT_CLASS(demo) = {
.id = UCLASS_DEMO,
+};
+It is also possible to specify special methods for probe, etc. The uclass +numbering comes from include/dm/uclass.h. To add a new uclass, add to the +end of the enum there, then declare your uclass as above.
I wonder if we cannot even automate the numbering here ;-)
We could but it would need some lookup mechanism. String search? I'll leave it as is at the moment but add something to the bottom of the README.
Yep, full ACK. Thanks!
Best regards, Marek Vasut