Re:RISC-V SBI and the full boot process
by codedokode on Friday September 15, 2023 @08:32AM
(#37521986)
The 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.
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.