[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/24] hw/arm/mps2-tz: Make SYSCLK frequency board-specific
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 01/24] hw/arm/mps2-tz: Make SYSCLK frequency board-specific |
Date: |
Fri, 5 Feb 2021 19:13:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 2/5/21 5:59 PM, Peter Maydell wrote:
> The AN524 has a different SYSCLK frequency from the AN505 and AN521;
> make the SYSCLK frequency a field in the MPS2TZMachineClass rather
> than a compile-time constant so we can support the AN524.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> hw/arm/mps2-tz.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/hw/arm/mps2-tz.c b/hw/arm/mps2-tz.c
> index 90caa914934..82ce6262817 100644
> --- a/hw/arm/mps2-tz.c
> +++ b/hw/arm/mps2-tz.c
> @@ -76,6 +76,7 @@ struct MPS2TZMachineClass {
> MachineClass parent;
> MPS2TZFPGAType fpga_type;
> uint32_t scc_id;
> + uint32_t sysclk_frq; /* Main SYSCLK frequency in Hz */
This is what I meant in my Stellaris read-only dc[] registers
comment here:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg776770.html
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
- [PATCH 00/24] hw/arm: New board model mps3-an524, Peter Maydell, 2021/02/05
- [PATCH 01/24] hw/arm/mps2-tz: Make SYSCLK frequency board-specific, Peter Maydell, 2021/02/05
- Re: [PATCH 01/24] hw/arm/mps2-tz: Make SYSCLK frequency board-specific,
Philippe Mathieu-Daudé <=
- [PATCH 02/24] hw/misc/mps2-scc: Support configurable number of OSCCLK values, Peter Maydell, 2021/02/05
- [PATCH 04/24] hw/arm/mps2-tz: Make the OSCCLK settings be configurable per-board, Peter Maydell, 2021/02/05
- [PATCH 08/24] hw/arm/mps2-tz: Condition IRQ splitting on number of CPUs, not board type, Peter Maydell, 2021/02/05
- [PATCH 13/24] hw/arm/mps2-tz: Move device IRQ info to data structures, Peter Maydell, 2021/02/05
- [PATCH 05/24] hw/misc/mps2-fpgaio: Make number of LEDs configurable by board, Peter Maydell, 2021/02/05
- [PATCH 06/24] hw/misc/mps2-fpgaio: Support SWITCH register, Peter Maydell, 2021/02/05