August 13, 2018

The U-Boot "driver model" scheme

It is important to understand that U-Boot has a history. The source code reflects that history and you will find a mix of code that either predates some clever new idea and that incorporates and embraces the new scheme. The "driver model" scheme is a perfect example, and understanding it is crucial to what I am doing trying to assimilate a new network chip into U-Boot support for my s5p6818 chip. Various systems use it (eth, i2c, ...) but I am most interesting in the ethernet driver business. U-Boot supports legacy drivers that don't buy into the driver model. In fact it looks like the designware.c ethernet driver can switch hit based on CONFIG_DM_ETH.


Have any comments? Questions? Drop me a line!

Tom's electronics pages / [email protected]