[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/5] hw/arm/aspeed: Select console UART from machine
From: |
Cédric Le Goater |
Subject: |
Re: [PATCH 2/5] hw/arm/aspeed: Select console UART from machine |
Date: |
Tue, 31 Aug 2021 16:06:31 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 8/31/21 3:51 PM, Peter Delevoryas wrote:
> I’ll resend PATCH 5, and like you’re suggesting, I can use the existing
> ast2600-evb machine type for testing.
>
> # Setup serial_hd(1) as UART1 in 2600 SoC realize (I won’t include this
> in the diff though)
> UART5=serial_hd(0)
> UART1=serial_hd(1)
>
> qemu-system-arm -machine ast2600-evb -serial null -serial stdio
yes. that's one way to do it. But it's a bit hacky.
On the other hand, if we were to initialize all 5 UARTs, the user would
have to add 4 "-serial null" devices to use UART5 as a console (and none
for UART1). Which is not that good for a user API. We added the 'macs_mask'
for a similar reason btw.
I think your proposal plus the extra SoC property is better though.
Thanks for testing.
C.
- [PATCH 3/5] hw/arm/aspeed: Add fuji machine type, (continued)
[PATCH 2/5] hw/arm/aspeed: Select console UART from machine, pdel, 2021/08/27
Re: [PATCH 2/5] hw/arm/aspeed: Select console UART from machine, Cédric Le Goater, 2021/08/31
Re: [PATCH 2/5] hw/arm/aspeed: Select console UART from machine, Andrew Jeffery, 2021/08/31
Re: [PATCH 2/5] hw/arm/aspeed: Select console UART from machine, Cédric Le Goater, 2021/08/31
Re: [PATCH 2/5] hw/arm/aspeed: Select console UART from machine, Peter Delevoryas, 2021/08/31
Re: [PATCH 2/5] hw/arm/aspeed: Select console UART from machine, Philippe Mathieu-Daudé, 2021/08/31
Re: [PATCH 2/5] hw/arm/aspeed: Select console UART from machine, Cédric Le Goater, 2021/08/31
[PATCH 4/5] hw/arm/aspeed: Fix AST2600_CLK_SEL3 address, pdel, 2021/08/27
[PATCH 5/5] hw/arm/aspeed: Initialize AST2600 clock selection registers, pdel, 2021/08/27