3 ms·
>No need to parse any device trees. If you just use the UART address that has been passed directly in a register, there's no need to look at the device tree.
by snvzz 3y ago
>No need to parse any device trees.
If you just use the UART address that has been passed directly in a register, there's no need to look at the device tree.
If the UART base address was fixed, you'd normally need to load this base address in a register yourself and offset the hardware registers of the UART from it.
Yet, the way it actually is, this non-fixed base address is already in a register; You need to do even less work.
- codedokode 3y agoThe problem with this approach is that usually there are more devices that registers. And registers are needed for other purposes rather than constantly storing UART's base address.