This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH, AVR] Add support for ATmega8U2, ATmega16U2, ATmega32U2
- From: "Weddington, Eric" <Eric dot Weddington at atmel dot com>
- To: <binutils at sourceware dot org>
- Cc: <chertykov at gmail dot com>
- Date: Fri, 31 Jul 2009 08:22:52 -0600
- Subject: [PATCH, AVR] Add support for ATmega8U2, ATmega16U2, ATmega32U2
Hi,
Patch below adds support for new AVR devices: ATmega8U2, ATmega16U2, and ATmega32U2.
Ok to commit?
Eric Weddington
/gas:
2009-07-31 Eric B. Weddington <eric.weddington@atmel.com>
* config/tc-avr.c (mcu_types): Add atmega8u2, atmega16u2, atmega32u2.
* doc/c-avr.texi: Likewise.
Index: gas/config/tc-avr.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-avr.c,v
retrieving revision 1.64
diff -u -p -r1.64 tc-avr.c
--- gas/config/tc-avr.c 17 Jul 2009 15:22:11 -0000 1.64
+++ gas/config/tc-avr.c 31 Jul 2009 13:44:57 -0000
@@ -122,6 +122,9 @@ static struct mcu_type_s mcu_types[] =
{"attiny327", AVR_ISA_AVR35, bfd_mach_avr35},
{"at90usb82", AVR_ISA_AVR35, bfd_mach_avr35},
{"at90usb162", AVR_ISA_AVR35, bfd_mach_avr35},
+ {"atmega8u2", AVR_ISA_AVR35, bfd_mach_avr35},
+ {"atmega16u2", AVR_ISA_AVR35, bfd_mach_avr35},
+ {"atmega32u2", AVR_ISA_AVR35, bfd_mach_avr35},
{"atmega8", AVR_ISA_M8, bfd_mach_avr4},
{"atmega48", AVR_ISA_AVR4, bfd_mach_avr4},
{"atmega48p", AVR_ISA_AVR4, bfd_mach_avr4},
Index: gas/doc/c-avr.texi
===================================================================
RCS file: /cvs/src/src/gas/doc/c-avr.texi,v
retrieving revision 1.24
diff -u -p -r1.24 c-avr.texi
--- gas/doc/c-avr.texi 3 Feb 2009 17:24:36 -0000 1.24
+++ gas/doc/c-avr.texi 31 Jul 2009 13:44:58 -0000
@@ -54,7 +54,8 @@ Instruction set avr31 is for the classic
memory space (MCU types: atmega103, at43usb320).
Instruction set avr35 is for classic AVR core plus MOVW, CALL, and JMP
-instructions (MCU types: attiny167, attiny327, at90usb82, at90usb162).
+instructions (MCU types: attiny167, attiny327, at90usb82, at90usb162, atmega8u2,
+atmega16u2, atmega32u2).
Instruction set avr4 is for the enhanced AVR core with up to 8K program
memory space (MCU types: atmega48, atmega48p,atmega8, atmega88, atmega88p,