[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for-6.2 09/25] clock: Provide builtin multiplier/divider
From: |
Luc Michel |
Subject: |
Re: [PATCH for-6.2 09/25] clock: Provide builtin multiplier/divider |
Date: |
Sun, 15 Aug 2021 23:27:17 +0200 |
Hi Peter,
On 10:33 Thu 12 Aug , Peter Maydell wrote:
> diff --git a/hw/core/clock.c b/hw/core/clock.c
> index fc5a99683f8..c371b9e977a 100644
> --- a/hw/core/clock.c
> +++ b/hw/core/clock.c
> @@ -133,10 +143,21 @@ char *clock_display_freq(Clock *clk)
> return freq_to_str(clock_get_hz(clk));
> }
>
> +void clock_set_mul_div(Clock *clk, uint32_t multiplier, uint32_t divider)
> +{
> + assert(divider != 0);
> +
Maybe add a trace here to ease debugging?
> + clk->multiplier = multiplier;
> + clk->divider = divider;
> +}
> +
Otherwise:
Reviewed-by: Luc Michel <luc@lmichel.fr>
- Re: [PATCH for-6.2 06/25] hw/arm/armv7m: Create input clocks, (continued)
Re: [PATCH for-6.2 09/25] clock: Provide builtin multiplier/divider,
Luc Michel <=
Re: [PATCH for-6.2 09/25] clock: Provide builtin multiplier/divider, Damien Hedde, 2021/08/17
[PATCH for-6.2 10/25] hw/arm: Don't allocate separate MemoryRegions in stm32 SoC realize, Peter Maydell, 2021/08/12
Re: [PATCH for-6.2 10/25] hw/arm: Don't allocate separate MemoryRegions in stm32 SoC realize, Alistair Francis, 2021/08/12
Re: [PATCH for-6.2 10/25] hw/arm: Don't allocate separate MemoryRegions in stm32 SoC realize, Luc Michel, 2021/08/17
[PATCH for-6.2 12/25] hw/arm/stm32f205: Wire up sysclk and refclk, Peter Maydell, 2021/08/12