• Marcel Moolenaar's avatar
    Don't expose the uart_ops structure directly, but instead have · f8100ce2
    Marcel Moolenaar authored
    it obtained through the uart_class structure. This allows us
    to declare the uart_class structure as weak and as such allows
    us to reference it even when it's not compiled-in.
    It also allows is to get the uart_ops structure by name, which
    makes it possible to implement the dt tag handling in uart_getenv().
    The side-effect of all this is that we're using the uart_class
    structure more consistently which means that we now also have
    access to the size of the bus space block needed by the hardware
    when we map the bus space, eliminating any hardcoding.