public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch, avr] atmel avr new devices set-4
@ 2014-07-15 10:00 S, Pitchumani
  2014-07-16 17:45 ` Denis Chertykov
  0 siblings, 1 reply; 2+ messages in thread
From: S, Pitchumani @ 2014-07-15 10:00 UTC (permalink / raw)
  To: gcc-patches, Denis Chertykov; +Cc: Georg-Johann Lay

[-- Attachment #1: Type: text/plain, Size: 605 bytes --]

Hi,

Attached patch adds support for new Atmel xmega devices (atxmega8e5,
atxmega16e5, atxmega32c3, atxmega32d3).

This patch is continuation of patch in
https://gcc.gnu.org/ml/gcc-patches/2014-07/msg01038.html

If OK, could someone commit please?

Regards,
Pitchumani


gcc/ChangeLog
2014-07-15  Pitchumani Sivanupandi <pitchumani.s@atmel.com>

    * config/avr/avr-mcus.def: Add new avrxmega2 devices (atxmega8e5,
    atxmega16e5, atxmega32c3, atxmega32d3).
    * config/avr/avr-tables.opt: Regenerate.
    * config/avr/t-multilib: Regenerate.
    * doc/avr-mmcu.texi: Regenerate.

[-- Attachment #2: atmel-avr-xmega-devices.patch --]
[-- Type: application/octet-stream, Size: 9956 bytes --]

diff --git a/gcc/config/avr/avr-mcus.def b/gcc/config/avr/avr-mcus.def
index 61c2969..00cd6ac 100644
--- a/gcc/config/avr/avr-mcus.def
+++ b/gcc/config/avr/avr-mcus.def
@@ -276,9 +276,13 @@ AVR_MCU ("atmega256rfr2",        ARCH_AVR6, AVR_ISA_NONE, "__AVR_ATmega256RFR2__
 AVR_MCU ("atmega2564rfr2",       ARCH_AVR6, AVR_ISA_NONE, "__AVR_ATmega2564RFR2__",    0x0200, 0x0, 4, "m2564rfr2")
 /* Xmega, 16K <= Flash < 64K, RAM <= 64K */
 AVR_MCU ("avrxmega2",        ARCH_AVRXMEGA2, AVR_ISA_NONE, NULL,                       0x2000, 0x0, 1, "x32a4")
+AVR_MCU ("atxmega8e5",       ARCH_AVRXMEGA2, AVR_ISA_NONE, "__AVR_ATxmega8E5__",       0x2000, 0x0, 1, "x8e5")
 AVR_MCU ("atxmega16a4",      ARCH_AVRXMEGA2, AVR_ISA_NONE, "__AVR_ATxmega16A4__",      0x2000, 0x0, 1, "x16a4")
 AVR_MCU ("atxmega16d4",      ARCH_AVRXMEGA2, AVR_ISA_NONE, "__AVR_ATxmega16D4__",      0x2000, 0x0, 1, "x16d4")
+AVR_MCU ("atxmega16e5",      ARCH_AVRXMEGA2, AVR_ISA_NONE, "__AVR_ATxmega16E5__",      0x2000, 0x0, 1, "x16e5")
 AVR_MCU ("atxmega32a4",      ARCH_AVRXMEGA2, AVR_ISA_NONE, "__AVR_ATxmega32A4__",      0x2000, 0x0, 1, "x32a4")
+AVR_MCU ("atxmega32c3",      ARCH_AVRXMEGA2, AVR_ISA_RMW,  "__AVR_ATxmega32C3__",      0x2000, 0x0, 1, "x32c3")
+AVR_MCU ("atxmega32d3",      ARCH_AVRXMEGA2, AVR_ISA_NONE, "__AVR_ATxmega32D3__",      0x2000, 0x0, 1, "x32d3")
 AVR_MCU ("atxmega32d4",      ARCH_AVRXMEGA2, AVR_ISA_NONE, "__AVR_ATxmega32D4__",      0x2000, 0x0, 1, "x32d4")
 AVR_MCU ("atxmega32x1",      ARCH_AVRXMEGA2, AVR_ISA_NONE, "__AVR_ATxmega32X1__",      0x2000, 0x0, 1, "x32x1")
 AVR_MCU ("atmxt112sl",       ARCH_AVRXMEGA2, AVR_ISA_NONE, "__AVR_ATMXT112SL__",       0x2000, 0x0, 1, "mxt112sl")
diff --git a/gcc/config/avr/avr-tables.opt b/gcc/config/avr/avr-tables.opt
index 1eb2055..ac6f80b 100644
--- a/gcc/config/avr/avr-tables.opt
+++ b/gcc/config/avr/avr-tables.opt
@@ -648,176 +648,188 @@ EnumValue
 Enum(avr_mcu) String(avrxmega2) Value(207)
 
 EnumValue
-Enum(avr_mcu) String(atxmega16a4) Value(208)
+Enum(avr_mcu) String(atxmega8e5) Value(208)
 
 EnumValue
-Enum(avr_mcu) String(atxmega16d4) Value(209)
+Enum(avr_mcu) String(atxmega16a4) Value(209)
 
 EnumValue
-Enum(avr_mcu) String(atxmega32a4) Value(210)
+Enum(avr_mcu) String(atxmega16d4) Value(210)
 
 EnumValue
-Enum(avr_mcu) String(atxmega32d4) Value(211)
+Enum(avr_mcu) String(atxmega16e5) Value(211)
 
 EnumValue
-Enum(avr_mcu) String(atxmega32x1) Value(212)
+Enum(avr_mcu) String(atxmega32a4) Value(212)
 
 EnumValue
-Enum(avr_mcu) String(atmxt112sl) Value(213)
+Enum(avr_mcu) String(atxmega32c3) Value(213)
 
 EnumValue
-Enum(avr_mcu) String(atmxt224) Value(214)
+Enum(avr_mcu) String(atxmega32d3) Value(214)
 
 EnumValue
-Enum(avr_mcu) String(atmxt224e) Value(215)
+Enum(avr_mcu) String(atxmega32d4) Value(215)
 
 EnumValue
-Enum(avr_mcu) String(atmxt336s) Value(216)
+Enum(avr_mcu) String(atxmega32x1) Value(216)
 
 EnumValue
-Enum(avr_mcu) String(atxmega16a4u) Value(217)
+Enum(avr_mcu) String(atmxt112sl) Value(217)
 
 EnumValue
-Enum(avr_mcu) String(atxmega16c4) Value(218)
+Enum(avr_mcu) String(atmxt224) Value(218)
 
 EnumValue
-Enum(avr_mcu) String(atxmega32a4u) Value(219)
+Enum(avr_mcu) String(atmxt224e) Value(219)
 
 EnumValue
-Enum(avr_mcu) String(atxmega32c4) Value(220)
+Enum(avr_mcu) String(atmxt336s) Value(220)
 
 EnumValue
-Enum(avr_mcu) String(atxmega32e5) Value(221)
+Enum(avr_mcu) String(atxmega16a4u) Value(221)
 
 EnumValue
-Enum(avr_mcu) String(avrxmega4) Value(222)
+Enum(avr_mcu) String(atxmega16c4) Value(222)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64a3) Value(223)
+Enum(avr_mcu) String(atxmega32a4u) Value(223)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64d3) Value(224)
+Enum(avr_mcu) String(atxmega32c4) Value(224)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64a3u) Value(225)
+Enum(avr_mcu) String(atxmega32e5) Value(225)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64a4u) Value(226)
+Enum(avr_mcu) String(avrxmega4) Value(226)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64b1) Value(227)
+Enum(avr_mcu) String(atxmega64a3) Value(227)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64b3) Value(228)
+Enum(avr_mcu) String(atxmega64d3) Value(228)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64c3) Value(229)
+Enum(avr_mcu) String(atxmega64a3u) Value(229)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64d4) Value(230)
+Enum(avr_mcu) String(atxmega64a4u) Value(230)
 
 EnumValue
-Enum(avr_mcu) String(avrxmega5) Value(231)
+Enum(avr_mcu) String(atxmega64b1) Value(231)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64a1) Value(232)
+Enum(avr_mcu) String(atxmega64b3) Value(232)
 
 EnumValue
-Enum(avr_mcu) String(atxmega64a1u) Value(233)
+Enum(avr_mcu) String(atxmega64c3) Value(233)
 
 EnumValue
-Enum(avr_mcu) String(avrxmega6) Value(234)
+Enum(avr_mcu) String(atxmega64d4) Value(234)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128a3) Value(235)
+Enum(avr_mcu) String(avrxmega5) Value(235)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128d3) Value(236)
+Enum(avr_mcu) String(atxmega64a1) Value(236)
 
 EnumValue
-Enum(avr_mcu) String(atxmega192a3) Value(237)
+Enum(avr_mcu) String(atxmega64a1u) Value(237)
 
 EnumValue
-Enum(avr_mcu) String(atxmega192d3) Value(238)
+Enum(avr_mcu) String(avrxmega6) Value(238)
 
 EnumValue
-Enum(avr_mcu) String(atxmega256a3) Value(239)
+Enum(avr_mcu) String(atxmega128a3) Value(239)
 
 EnumValue
-Enum(avr_mcu) String(atxmega256a3b) Value(240)
+Enum(avr_mcu) String(atxmega128d3) Value(240)
 
 EnumValue
-Enum(avr_mcu) String(atxmega256a3bu) Value(241)
+Enum(avr_mcu) String(atxmega192a3) Value(241)
 
 EnumValue
-Enum(avr_mcu) String(atxmega256d3) Value(242)
+Enum(avr_mcu) String(atxmega192d3) Value(242)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128a3u) Value(243)
+Enum(avr_mcu) String(atxmega256a3) Value(243)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128b1) Value(244)
+Enum(avr_mcu) String(atxmega256a3b) Value(244)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128b3) Value(245)
+Enum(avr_mcu) String(atxmega256a3bu) Value(245)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128c3) Value(246)
+Enum(avr_mcu) String(atxmega256d3) Value(246)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128d4) Value(247)
+Enum(avr_mcu) String(atxmega128a3u) Value(247)
 
 EnumValue
-Enum(avr_mcu) String(atmxt540s) Value(248)
+Enum(avr_mcu) String(atxmega128b1) Value(248)
 
 EnumValue
-Enum(avr_mcu) String(atmxt540sreva) Value(249)
+Enum(avr_mcu) String(atxmega128b3) Value(249)
 
 EnumValue
-Enum(avr_mcu) String(atxmega192a3u) Value(250)
+Enum(avr_mcu) String(atxmega128c3) Value(250)
 
 EnumValue
-Enum(avr_mcu) String(atxmega192c3) Value(251)
+Enum(avr_mcu) String(atxmega128d4) Value(251)
 
 EnumValue
-Enum(avr_mcu) String(atxmega256a3u) Value(252)
+Enum(avr_mcu) String(atmxt540s) Value(252)
 
 EnumValue
-Enum(avr_mcu) String(atxmega256c3) Value(253)
+Enum(avr_mcu) String(atmxt540sreva) Value(253)
 
 EnumValue
-Enum(avr_mcu) String(atxmega384c3) Value(254)
+Enum(avr_mcu) String(atxmega192a3u) Value(254)
 
 EnumValue
-Enum(avr_mcu) String(atxmega384d3) Value(255)
+Enum(avr_mcu) String(atxmega192c3) Value(255)
 
 EnumValue
-Enum(avr_mcu) String(avrxmega7) Value(256)
+Enum(avr_mcu) String(atxmega256a3u) Value(256)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128a1) Value(257)
+Enum(avr_mcu) String(atxmega256c3) Value(257)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128a1u) Value(258)
+Enum(avr_mcu) String(atxmega384c3) Value(258)
 
 EnumValue
-Enum(avr_mcu) String(atxmega128a4u) Value(259)
+Enum(avr_mcu) String(atxmega384d3) Value(259)
 
 EnumValue
-Enum(avr_mcu) String(avr1) Value(260)
+Enum(avr_mcu) String(avrxmega7) Value(260)
 
 EnumValue
-Enum(avr_mcu) String(at90s1200) Value(261)
+Enum(avr_mcu) String(atxmega128a1) Value(261)
 
 EnumValue
-Enum(avr_mcu) String(attiny11) Value(262)
+Enum(avr_mcu) String(atxmega128a1u) Value(262)
 
 EnumValue
-Enum(avr_mcu) String(attiny12) Value(263)
+Enum(avr_mcu) String(atxmega128a4u) Value(263)
 
 EnumValue
-Enum(avr_mcu) String(attiny15) Value(264)
+Enum(avr_mcu) String(avr1) Value(264)
 
 EnumValue
-Enum(avr_mcu) String(attiny28) Value(265)
+Enum(avr_mcu) String(at90s1200) Value(265)
+
+EnumValue
+Enum(avr_mcu) String(attiny11) Value(266)
+
+EnumValue
+Enum(avr_mcu) String(attiny12) Value(267)
+
+EnumValue
+Enum(avr_mcu) String(attiny15) Value(268)
+
+EnumValue
+Enum(avr_mcu) String(attiny28) Value(269)
 
diff --git a/gcc/config/avr/t-multilib b/gcc/config/avr/t-multilib
index 95cd3d2..3ce6d08 100644
--- a/gcc/config/avr/t-multilib
+++ b/gcc/config/avr/t-multilib
@@ -238,9 +238,13 @@ MULTILIB_MATCHES = \
 	mmcu?avr6=mmcu?atmega2561 \
 	mmcu?avr6=mmcu?atmega256rfr2 \
 	mmcu?avr6=mmcu?atmega2564rfr2 \
+	mmcu?avrxmega2=mmcu?atxmega8e5 \
 	mmcu?avrxmega2=mmcu?atxmega16a4 \
 	mmcu?avrxmega2=mmcu?atxmega16d4 \
+	mmcu?avrxmega2=mmcu?atxmega16e5 \
 	mmcu?avrxmega2=mmcu?atxmega32a4 \
+	mmcu?avrxmega2=mmcu?atxmega32c3 \
+	mmcu?avrxmega2=mmcu?atxmega32d3 \
 	mmcu?avrxmega2=mmcu?atxmega32d4 \
 	mmcu?avrxmega2=mmcu?atxmega32x1 \
 	mmcu?avrxmega2=mmcu?atmxt112sl \
diff --git a/gcc/doc/avr-mmcu.texi b/gcc/doc/avr-mmcu.texi
index d40b6dc..5c4ef3a 100644
--- a/gcc/doc/avr-mmcu.texi
+++ b/gcc/doc/avr-mmcu.texi
@@ -50,7 +50,7 @@
 
 @item avrxmega2
 ``XMEGA'' devices with more than 8@tie{}KiB and up to 64@tie{}KiB of program memory.
-@*@var{mcu}@tie{}= @code{atmxt112sl}, @code{atmxt224}, @code{atmxt224e}, @code{atmxt336s}, @code{atxmega16a4}, @code{atxmega16a4u}, @code{atxmega16c4}, @code{atxmega16d4}, @code{atxmega32a4}, @code{atxmega32a4u}, @code{atxmega32c4}, @code{atxmega32d4}, @code{atxmega32e5}, @code{atxmega32x1}.
+@*@var{mcu}@tie{}= @code{atmxt112sl}, @code{atmxt224}, @code{atmxt224e}, @code{atmxt336s}, @code{atxmega16a4}, @code{atxmega16a4u}, @code{atxmega16c4}, @code{atxmega16d4}, @code{atxmega16e5}, @code{atxmega32a4}, @code{atxmega32a4u}, @code{atxmega32c3}, @code{atxmega32c4}, @code{atxmega32d3}, @code{atxmega32d4}, @code{atxmega32e5}, @code{atxmega32x1}, @code{atxmega8e5}.
 
 @item avrxmega4
 ``XMEGA'' devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch, avr] atmel avr new devices set-4
  2014-07-15 10:00 [patch, avr] atmel avr new devices set-4 S, Pitchumani
@ 2014-07-16 17:45 ` Denis Chertykov
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Chertykov @ 2014-07-16 17:45 UTC (permalink / raw)
  To: S, Pitchumani; +Cc: gcc-patches, Georg-Johann Lay

2014-07-15 13:51 GMT+04:00 S, Pitchumani <Pitchumani.S@atmel.com>:
> Hi,
>
> Attached patch adds support for new Atmel xmega devices (atxmega8e5,
> atxmega16e5, atxmega32c3, atxmega32d3).
>
> This patch is continuation of patch in
> https://gcc.gnu.org/ml/gcc-patches/2014-07/msg01038.html
>
> If OK, could someone commit please?
>
> Regards,
> Pitchumani
>
>
> gcc/ChangeLog
> 2014-07-15  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
>
>     * config/avr/avr-mcus.def: Add new avrxmega2 devices (atxmega8e5,
>     atxmega16e5, atxmega32c3, atxmega32d3).
>     * config/avr/avr-tables.opt: Regenerate.
>     * config/avr/t-multilib: Regenerate.
>     * doc/avr-mmcu.texi: Regenerate.

Committed.

Denis.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-16 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-15 10:00 [patch, avr] atmel avr new devices set-4 S, Pitchumani
2014-07-16 17:45 ` Denis Chertykov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).