[PATCH 0/5] hw/avr: Start using the Clock API

Philippe Mathieu-Daudé posted 5 patches 3 years, 8 months ago
Test docker-quick@centos7 passed
Test docker-mingw@fedora passed
Test checkpatch passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200814163924.11662-1-f4bug@amsat.org
hw/avr/atmega.h                |  2 ++
include/hw/char/avr_usart.h    | 32 ++---------------------
include/hw/timer/avr_timer16.h |  3 ++-
hw/avr/atmega.c                |  8 ++++--
hw/char/avr_usart.c            | 46 ++++++++++++++++++++++++++++++++++
hw/timer/avr_timer16.c         | 12 +++------
hw/char/trace-events           |  3 +++
7 files changed, 65 insertions(+), 41 deletions(-)
[PATCH 0/5] hw/avr: Start using the Clock API
Posted by Philippe Mathieu-Daudé 3 years, 8 months ago
In this series we slowly start to use the recently added
Clock API in the AVR ATmega MCU.

As the Clock Control Unit is not yet modelled, we simply
connect the XTAL sink to the UART and Timer sources.

Philippe Mathieu-Daudé (5):
  hw/avr/atmega: Introduce the I/O clock
  hw/timer/avr_timer16: Use the Clock API
  hw/char/avr_usart: Restrict register definitions to source
  hw/char/avr_usart: Use the Clock API
  hw/char/avr_usart: Trace baudrate changes

 hw/avr/atmega.h                |  2 ++
 include/hw/char/avr_usart.h    | 32 ++---------------------
 include/hw/timer/avr_timer16.h |  3 ++-
 hw/avr/atmega.c                |  8 ++++--
 hw/char/avr_usart.c            | 46 ++++++++++++++++++++++++++++++++++
 hw/timer/avr_timer16.c         | 12 +++------
 hw/char/trace-events           |  3 +++
 7 files changed, 65 insertions(+), 41 deletions(-)

-- 
2.21.3


Re: [PATCH 0/5] hw/avr: Start using the Clock API
Posted by Michael Rolnik 3 years, 8 months ago
Tested-by: Michael Rolnik <mrolnik@gmail.com>

On Fri, Aug 14, 2020 at 7:39 PM Philippe Mathieu-Daudé <f4bug@amsat.org>
wrote:

> In this series we slowly start to use the recently added
> Clock API in the AVR ATmega MCU.
>
> As the Clock Control Unit is not yet modelled, we simply
> connect the XTAL sink to the UART and Timer sources.
>
> Philippe Mathieu-Daudé (5):
>   hw/avr/atmega: Introduce the I/O clock
>   hw/timer/avr_timer16: Use the Clock API
>   hw/char/avr_usart: Restrict register definitions to source
>   hw/char/avr_usart: Use the Clock API
>   hw/char/avr_usart: Trace baudrate changes
>
>  hw/avr/atmega.h                |  2 ++
>  include/hw/char/avr_usart.h    | 32 ++---------------------
>  include/hw/timer/avr_timer16.h |  3 ++-
>  hw/avr/atmega.c                |  8 ++++--
>  hw/char/avr_usart.c            | 46 ++++++++++++++++++++++++++++++++++
>  hw/timer/avr_timer16.c         | 12 +++------
>  hw/char/trace-events           |  3 +++
>  7 files changed, 65 insertions(+), 41 deletions(-)
>
> --
> 2.21.3
>
>

-- 
Best Regards,
Michael Rolnik