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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot