AVR: Add some more avrxmega3 devices

Message ID c7248441-747b-4e87-92d1-ca01cc79de7a@gjlay.de
State New
Headers
Series AVR: Add some more avrxmega3 devices |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply

Commit Message

Georg-Johann Lay April 15, 2024, 5:32 p.m. UTC
  Applied the following patch..

Johann

--

     AVR: Add 8 more avrxmega3 MCUs.

     gcc/
             * config/avr/avr-mcus.def: Add: avr16du14, avr16du20, 
avr16du28,
             avr16du32, avr32du14, avr32du20, avr32du28,  avr32du32.
             * doc/avr-mmcu.texi: Rebuild.

@code{attiny426}, @code{attiny427}, @code{attiny804}, @code{attiny806}, 
@code{attiny807}, @code{attiny814}, @code{attiny816}, @code{attiny817}, 
@code{attiny824}, @code{attiny826}, @code{attiny827}, @code{attiny1604}, 
@code{attiny1606}, @code{attiny1607}, @code{attiny1614}, 
@code{attiny1616}, @code{attiny1617}, @code{attiny1624}, 
@code{attiny1626}, @code{attiny1627}, @code{attiny3214}, 
@code{attiny3216}, @code{attiny3217}, @code{attiny3224}, 
@code{attiny3226}, @code{attiny3227}, @code{atmega808}, 
@code{atmega809}, @code{atmega1608}, @code{atmega1609}, 
@code{atmega3208}, @code{atmega3209}, @code{atmega4808}, 
@code{atmega4809}, @code{avr16dd14}, @code{avr16dd20}, @code{avr16dd28}, 
@code{avr16dd32}, @code{avr16ea28}, @code{avr16ea32}, @code{avr16ea48}, 
@code{avr16eb14}, @code{avr16eb20}, @code{avr16eb28}, @code{avr16eb32}, 
@code{avr32da28}, @code{avr32da32}, @code{avr32da48}, @code{avr32db28}, 
@code{avr32db32}, @code{avr32db48}, @code{avr32dd14}, @code{avr32dd20}, 
@code{avr32dd28}, @code{avr32dd32}, @code{avr32ea28}, @code{avr32ea32}, 
@code{avr32ea48}.
+@*@var{mcu}@tie{}= @code{attiny202}, @code{attiny204}, 
@code{attiny212}, @code{attiny214}, @code{attiny402}, @code{attiny404}, 
@code{attiny406}, @code{attiny412}, @code{attiny414}, @code{attiny416}, 
@code{attiny416auto}, @code{attiny417}, @code{attiny424}, 
@code{attiny426}, @code{attiny427}, @code{attiny804}, @code{attiny806}, 
@code{attiny807}, @code{attiny814}, @code{attiny816}, @code{attiny817}, 
@code{attiny824}, @code{attiny826}, @code{attiny827}, @code{attiny1604}, 
@code{attiny1606}, @code{attiny1607}, @code{attiny1614}, 
@code{attiny1616}, @code{attiny1617}, @code{attiny1624}, 
@code{attiny1626}, @code{attiny1627}, @code{attiny3214}, 
@code{attiny3216}, @code{attiny3217}, @code{attiny3224}, 
@code{attiny3226}, @code{attiny3227}, @code{atmega808}, 
@code{atmega809}, @code{atmega1608}, @code{atmega1609}, 
@code{atmega3208}, @code{atmega3209}, @code{atmega4808}, 
@code{atmega4809}, @code{avr16dd14}, @code{avr16dd20}, @code{avr16dd28}, 
@code{avr16dd32}, @code{avr16du14}, @code{avr16du20}, @code{avr16du28}, 
@code{avr16du32}, @code{avr16ea28}, @code{avr16ea32}, @code{avr16ea48}, 
@code{avr16eb14}, @code{avr16eb20}, @code{avr16eb28}, @code{avr16eb32}, 
@code{avr32da28}, @code{avr32da32}, @code{avr32da48}, @code{avr32db28}, 
@code{avr32db32}, @code{avr32db48}, @code{avr32dd14}, @code{avr32dd20}, 
@code{avr32dd28}, @code{avr32dd32}, @code{avr32du14}, @code{avr32du20}, 
@code{avr32du28}, @code{avr32du32}, @code{avr32ea28}, @code{avr32ea32}, 
@code{avr32ea48}.

  @item @anchor{avrxmega4}avrxmega4
  ``XMEGA'' devices with more than 64@tie{}KiB and up to 128@tie{}KiB of 
program memory.
  

Patch

diff --git a/gcc/config/avr/avr-mcus.def b/gcc/config/avr/avr-mcus.def
index 27812d441f7..068875a2c60 100644
--- a/gcc/config/avr/avr-mcus.def
+++ b/gcc/config/avr/avr-mcus.def
@@ -379,6 +379,10 @@  AVR_MCU ("avr16dd14",        ARCH_AVRXMEGA3, 
AVR_ISA_NONE,  "__AVR_AVR16DD14__",
  AVR_MCU ("avr16dd20",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16DD20__",   0x7800, 0x0, 0x4000, 0x8000)
  AVR_MCU ("avr16dd28",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16DD28__",   0x7800, 0x0, 0x4000, 0x8000)
  AVR_MCU ("avr16dd32",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16DD32__",   0x7800, 0x0, 0x4000, 0x8000)
+AVR_MCU ("avr16du14",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16DU14__",   0x7800, 0x0, 0x4000, 0x8000)
+AVR_MCU ("avr16du20",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16DU20__",   0x7800, 0x0, 0x4000, 0x8000)
+AVR_MCU ("avr16du28",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16DU28__",   0x7800, 0x0, 0x4000, 0x8000)
+AVR_MCU ("avr16du32",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16DU32__",   0x7800, 0x0, 0x4000, 0x8000)
  AVR_MCU ("avr32da28",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DA28__",   0x7000, 0x0, 0x8000, 0x8000)
  AVR_MCU ("avr32da32",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DA32__",   0x7000, 0x0, 0x8000, 0x8000)
  AVR_MCU ("avr32da48",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DA48__",   0x7000, 0x0, 0x8000, 0x8000)
@@ -389,6 +393,10 @@  AVR_MCU ("avr32dd14",        ARCH_AVRXMEGA3, 
AVR_ISA_NONE,  "__AVR_AVR32DD14__",
  AVR_MCU ("avr32dd20",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DD20__",   0x7000, 0x0, 0x8000, 0x8000)
  AVR_MCU ("avr32dd28",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DD28__",   0x7000, 0x0, 0x8000, 0x8000)
  AVR_MCU ("avr32dd32",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DD32__",   0x7000, 0x0, 0x8000, 0x8000)
+AVR_MCU ("avr32du14",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DU14__",   0x7000, 0x0, 0x8000, 0x8000)
+AVR_MCU ("avr32du20",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DU20__",   0x7000, 0x0, 0x8000, 0x8000)
+AVR_MCU ("avr32du28",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DU28__",   0x7000, 0x0, 0x8000, 0x8000)
+AVR_MCU ("avr32du32",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR32DU32__",   0x7000, 0x0, 0x8000, 0x8000)
  AVR_MCU ("avr16eb14",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16EB14__",   0x7800, 0x0, 0x4000, 0x8000)
  AVR_MCU ("avr16eb20",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16EB20__",   0x7800, 0x0, 0x4000, 0x8000)
  AVR_MCU ("avr16eb28",        ARCH_AVRXMEGA3, AVR_ISA_NONE, 
"__AVR_AVR16EB28__",   0x7800, 0x0, 0x4000, 0x8000)
diff --git a/gcc/doc/avr-mmcu.texi b/gcc/doc/avr-mmcu.texi
index dcbf4ef7247..671e66e7ffb 100644
--- a/gcc/doc/avr-mmcu.texi
+++ b/gcc/doc/avr-mmcu.texi
@@ -54,7 +54,7 @@ 

  @item @anchor{avrxmega3}avrxmega3
  ``XMEGA'' devices with up to 64@tie{}KiB of combined program memory 
and RAM, and with program memory visible in the RAM address space.
-@*@var{mcu}@tie{}= @code{attiny202}, @code{attiny204}, 
@code{attiny212}, @code{attiny214}, @code{attiny402}, @code{attiny404}, 
@code{attiny406}, @code{attiny412}, @code{attiny414}, @code{attiny416}, 
@code{attiny416auto}, @code{attiny417}, @code{attiny424},