summary refs log tree commit diff stats
path: root/hw/i2c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-13 12:35:33 +0000
committerPeter Maydell <peter.maydell@linaro.org>2025-01-13 12:35:33 +0000
commit1bb7f615a517ba85ebdbbd30d8de2120b4598d12 (patch)
treef9b894e3603092e8abe0edab61e407b9da48b488 /hw/i2c
parent80b8b01f89387181378aa251e7a5454470ec5045 (diff)
downloadfocaccia-qemu-1bb7f615a517ba85ebdbbd30d8de2120b4598d12.tar.gz
focaccia-qemu-1bb7f615a517ba85ebdbbd30d8de2120b4598d12.zip
tests/qtest/boot-serial-test: Initialize PL011 Control register
The tests using the PL011 UART of the virt and raspi machines
weren't properly enabling the UART and its transmitter previous
to sending characters. Follow the PL011 manual initialization
recommendation by setting the proper bits of the control register.

Update the ASM code prefixing:

  *UART_CTRL = UART_ENABLE | TX_ENABLE;

to:

  while (true) {
      *UART_DATA = 'T';
  }

Note, since commit 51b61dd4d56 ("hw/char/pl011: Warn when using
disabled transmitter") incomplete PL011 initialization can be
logged using the '-d guest_errors' command line option.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/i2c')
0 files changed, 0 insertions, 0 deletions