Skip to content

Commit

Permalink
devices/legacy: use pl011 for earlycon in aarch64
Browse files Browse the repository at this point in the history
Follow up of 5329be7 commit. It is more common to have a PL011 than
an UART console.

Signed-off-by: Matias Ezequiel Vara Larsen <[email protected]>
  • Loading branch information
MatiasVara authored and slp committed Sep 11, 2024
1 parent bc3fe15 commit c722d25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vmm/src/device_manager/kvm/mmio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ impl MMIODeviceManager {
.map_err(Error::BusError)?;

cmdline
.insert("earlycon", &format!("uart,mmio,0x{:08x}", self.mmio_base))
.insert(
"earlycon",
&format!("pl011,mmio32,0x{:08x}", self.mmio_base),
)
.map_err(Error::Cmdline)?;

let ret = self.mmio_base;
Expand Down

0 comments on commit c722d25

Please sign in to comment.