Skip to content

hw/avr: Introduce few Arduino boards

Philippe Mathieu-Daudé qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest18 patches 6 repliesIn review
  2. v38 patches 10 repliesSuperseded
  3. v28 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC10 patches13 repliesSuperseded

Changes in v4 from the cover letter

- Rebased on Michael's v41
- Drop 'extram' unused field (Igor)
- Renamed devices AVR -> Atmel (Aleksandar) (I haven't renamed structure names to ease review)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18MAINTAINERS: Move machine test to the machine section (not ARCH one)MAINTAINERS+1 -10 replies
2/18MAINTAINERS: Move the AVR machines in new section (not within ARM)MAINTAINERS+16 -130 replies
3/18tests/acceptance: Do not set the machine type manuallytests/acceptance/machine_avr6.py+0 -10 replies
4/18tests/acceptance: Keep multilines comment consistent with other teststests/acceptance/machine_avr6.py+3 -50 replies
5/18hw/char/avr: Reduce USART I/O sizehw/char/avr_usart.c+1 -10 replies
6/18hw/timer/avr_timer16: Rename memory region debugging namehw/timer/avr_timer16.c+3 -30 replies
7/18hw/misc/avr_mask: Remove unused includeinclude/hw/misc/avr_mask.h+0 -10 replies
8/18hw/avr/Makefile: Use CONFIG_AVR_SAMPLE variablehw/avr/Makefile.objs+1 -10 replies
9/18hw/char: Rename avr_usart -> atmel_usartMAINTAINERS hw/avr/Kconfig hw/avr/sample.c +4 more+13 -130 replies
10/18hw/timer: Rename avr_timer16 -> atmel_timer16MAINTAINERS hw/avr/Kconfig hw/avr/sample.c +4 more+13 -130 replies
11/18hw/misc: Rename avr_mask -> atmel_powerMAINTAINERS hw/avr/Kconfig hw/avr/sample.c +4 more+13 -130 replies
12/18hw/avr: Introduce ATMEL_ATMEGA_MCU confighw/avr/Kconfig+4 -10 replies
13/18hw/avr: Add some ATmega microcontrollershw/avr/Makefile.objs hw/avr/atmel_atmega.c hw/avr/atmel_atmega.h+513 -00 replies
14/18hw/avr: Add some Arduino boardsdefault-configs/avr-softmmu.mak hw/avr/Kconfig hw/avr/Makefile.objs +1 more+181 -00 replies
15/18tests/boot-serial-test: Test some Arduino boards (AVR based)tests/qtest/boot-serial-test.c+2 -01 reply
16/18tests/acceptance: Test the Arduino MEGA2560 boardtests/acceptance/machine_avr6.py+1 -10 replies
17/18hw/avr: Remove the unrealistic AVR 'sample' boarddefault-configs/avr-softmmu.mak hw/avr/Kconfig hw/avr/Makefile.objs +2 more+0 -3020 replies
18/18.travis.yml: Run the AVR acceptance tests.travis.yml+1 -10 replies

Reviews trailers per patch

2 of 18 patches have a Reviewed-by or Acked-by.

PatchIgor MammedovThomas Huth
1/18
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18R-b
15/18A-b
16/18
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/18] hw/avr: Introduce few Arduino boards

Hi,

This series add the arduino boards, aiming at removing the 'sample' board that doesn't follow any specification.

Since v3:
- Rebased on Michael's v41
- Drop 'extram' unused field (Igor)
- Renamed devices AVR -> Atmel (Aleksandar) (I haven't renamed structure names to ease review)

Since v2:
- rebased on Michael's v40

Since v1:
- Addressed Igor comments
- Addressed Aleksandar comments
- Fixed UART issue (was due to IRQ shifted by 2 in CPU)

Since Michael's work is not yet merged, Various of my patches
- which are trivials or simple renames - could be squashed directly on his patches, if we ever care.
[I believe sending this patches is easier/quicker than keeping asking Michael to respin his series infinitely].

Michael, do you mind testing it? The full series is available
here: https://gitlab.com/philmd/qemu/commits/arduino-v4

Regards,

Phil.

Obsoletes: <[email protected]>
Based-on: <[email protected]>
https://www.mail-archive.com/[email protected]/msg671707.html

Philippe Mathieu-Daudé (18):
MAINTAINERS: Move machine test to the machine section (not ARCH one)
MAINTAINERS: Move the AVR machines in new section (not within ARM) tests/acceptance: Do not set the machine type manually tests/acceptance: Keep multilines comment consistent with other tests hw/char/avr: Reduce USART I/O size
hw/timer/avr_timer16: Rename memory region debugging name hw/misc/avr_mask: Remove unused include
hw/avr/Makefile: Use CONFIG_AVR_SAMPLE variable
hw/char: Rename avr_usart -> atmel_usart
hw/timer: Rename avr_timer16 -> atmel_timer16
hw/misc: Rename avr_mask -> atmel_power
hw/avr: Introduce ATMEL_ATMEGA_MCU config
hw/avr: Add some ATmega microcontrollers
hw/avr: Add some Arduino boards
tests/boot-serial-test: Test some Arduino boards (AVR based) tests/acceptance: Test the Arduino MEGA2560 board
hw/avr: Remove the unrealistic AVR 'sample' board .travis.yml: Run the AVR acceptance tests

 default-configs/avr-softmmu.mak               |   2 +-
 hw/avr/atmel_atmega.h                         |  48 ++
 .../hw/char/{avr_usart.h => atmel_usart.h}    |  10 +-
 include/hw/misc/{avr_mask.h => atmel_power.h} |  11 +-
 .../timer/{avr_timer16.h => atmel_timer16.h}  |  10 +-
 hw/avr/arduino.c                              | 175 +++++++
 hw/avr/atmel_atmega.c                         | 464 ++++++++++++++++++
 hw/avr/sample.c                               | 295 -----------
 hw/char/{avr_usart.c => atmel_usart.c}        |   6 +-
 hw/misc/{avr_mask.c => atmel_power.c}         |   4 +-
 hw/timer/{avr_timer16.c => atmel_timer16.c}   |  10 +-
 tests/qtest/boot-serial-test.c                |   3 +-
 .travis.yml                                   |   2 +-
 MAINTAINERS                                   |  29 +-
 hw/avr/Kconfig                                |  11 +-
 hw/avr/Makefile.objs                          |   3 +-
 hw/char/Kconfig                               |   2 +-
 hw/char/Makefile.objs                         |   2 +-
 hw/misc/Kconfig                               |   2 +-
 hw/misc/Makefile.objs                         |   2 +-
 hw/timer/Kconfig                              |   2 +-
 hw/timer/Makefile.objs                        |   2 +-
 tests/acceptance/machine_avr6.py              |  11 +-
 23 files changed, 751 insertions(+), 355 deletions(-)
 create mode 100644 hw/avr/atmel_atmega.h
 rename include/hw/char/{avr_usart.h => atmel_usart.h} (93%)
 rename include/hw/misc/{avr_mask.h => atmel_power.h} (89%)
 rename include/hw/timer/{avr_timer16.h => atmel_timer16.h} (92%)
 create mode 100644 hw/avr/arduino.c
 create mode 100644 hw/avr/atmel_atmega.c
 delete mode 100644 hw/avr/sample.c
 rename hw/char/{avr_usart.c => atmel_usart.c} (99%)
 rename hw/misc/{avr_mask.c => atmel_power.c} (97%)
 rename hw/timer/{avr_timer16.c => atmel_timer16.c} (98%)
Signature · 1 line
2.21.1