HomeFreeBSD

Add support for the uart classes to set their default register shift value.

Description

Add support for the uart classes to set their default register shift value.
This is needed with the pl011 driver. Before this change it would default
to a shift of 0, however the hardware places the registers at 4-byte
addresses meaning the value should be 2.

This patch fixes this for the pl011 when configured using the fdt. The
other drivers have a default value of 0 to keep this a no-op.

MFC after: 1 week

Details

Provenance
andrewAuthored on
Parents
rS281437: Replace struct filedesc argument in getsock_cap with struct thread
Branches
Unknown
Tags
Unknown

Event Timeline