[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 12/25] hw/arm/mps2: Inline CMSDK_APB_TIMER creation
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 12/25] hw/arm/mps2: Inline CMSDK_APB_TIMER creation |
Date: |
Thu, 21 Jan 2021 23:14:47 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 1/21/21 8:06 PM, Peter Maydell wrote:
> The old-style convenience function cmsdk_apb_timer_create() for
> creating CMSDK_APB_TIMER objects is used in only two places in
> mps2.c. Most of the rest of the code in that file uses the new
> "initialize in place" coding style.
>
> We want to connect up a Clock object which should be done between the
> object creation and realization; rather than adding a Clock* argument
> to the convenience function, convert the timer creation code in
> mps2.c to the same style as is used already for the watchdog,
> dualtimer and other devices, and delete the now-unused convenience
> function.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> include/hw/timer/cmsdk-apb-timer.h | 21 ---------------------
> hw/arm/mps2.c | 18 ++++++++++++++++--
> 2 files changed, 16 insertions(+), 23 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
- [PATCH 11/25] hw/arm/armsse: Wire up clocks, (continued)
- [PATCH 11/25] hw/arm/armsse: Wire up clocks, Peter Maydell, 2021/01/21
- [PATCH 15/25] hw/arm/musca: Create and connect ARMSSE Clocks, Peter Maydell, 2021/01/21
- [PATCH 14/25] hw/arm/mps2-tz: Create and connect ARMSSE Clocks, Peter Maydell, 2021/01/21
- [PATCH 12/25] hw/arm/mps2: Inline CMSDK_APB_TIMER creation, Peter Maydell, 2021/01/21
- [PATCH 17/25] hw/arm/stellaris: Create Clock input for watchdog, Peter Maydell, 2021/01/21
- [PATCH 10/25] hw/arm/armsse: Rename "MAINCLK" property to "MAINCLK_FRQ", Peter Maydell, 2021/01/21
- [PATCH 20/25] hw/watchdog/cmsdk-apb-watchdog: Convert to use Clock input, Peter Maydell, 2021/01/21