1 /* Copyright (C) 2009-2013 Free Software Foundation, Inc.
2    Contributed by Anatoly Sokolov (aesok@post.ru)
3 
4    This file is part of GCC.
5 
6    GCC is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3, or (at your option)
9    any later version.
10 
11    GCC is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15 
16    You should have received a copy of the GNU General Public License
17    along with GCC; see the file COPYING3.  If not see
18    <http://www.gnu.org/licenses/>.  */
19 
20 #ifndef IN_GEN_AVR_MMCU_TEXI
21 #include "config.h"
22 #include "system.h"
23 #include "coretypes.h"
24 #include "tm.h"
25 #endif /* IN_GEN_AVR_MMCU_TEXI */
26 
27 /* List of all known AVR MCU architectures.
28    Order as of enum avr_arch from avr.h.  */
29 
30 const avr_arch_t
31 avr_arch_types[] =
32 {
33   /* unknown device specified */
34   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, NULL,              "avr2"  },
35   /*
36     A  M  J  LM E  E  E  X  R   d S   S O   A
37     S  U  M  PO L  L  I  M  A   a t   F ff  r
38     M  L  P  MV P  P  J  E  M   t a   R s   c
39              XW M  M  M  G  P   a r     e   h
40                    X  P  A  D     t     t   ID   */
41   { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, "1",   "avr1"  },
42   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0060, 32, "2",   "avr2"  },
43   { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0x0060, 32, "25",  "avr25" },
44   { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0x0060, 32, "3",   "avr3"  },
45   { 0, 0, 1, 0, 1, 0, 0, 0, 0, 0x0060, 32, "31",  "avr31" },
46   { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0x0060, 32, "35",  "avr35" },
47   { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0x0060, 32, "4",   "avr4"  },
48   { 0, 1, 1, 1, 0, 0, 0, 0, 0, 0x0060, 32, "5",   "avr5"  },
49   { 0, 1, 1, 1, 1, 1, 0, 0, 0, 0x0060, 32, "51",  "avr51" },
50   { 0, 1, 1, 1, 1, 1, 1, 0, 0, 0x0060, 32, "6",   "avr6"  },
51 
52   { 0, 1, 1, 1, 0, 0, 0, 1, 0, 0x2000,  0, "102", "avrxmega2" },
53   { 0, 1, 1, 1, 1, 1, 0, 1, 0, 0x2000,  0, "104", "avrxmega4" },
54   { 0, 1, 1, 1, 1, 1, 0, 1, 1, 0x2000,  0, "105", "avrxmega5" },
55   { 0, 1, 1, 1, 1, 1, 1, 1, 0, 0x2000,  0, "106", "avrxmega6" },
56   { 0, 1, 1, 1, 1, 1, 1, 1, 1, 0x2000,  0, "107", "avrxmega7" }
57 };
58 
59 const avr_arch_info_t
60 avr_texinfo[] =
61 {
62   { ARCH_AVR1,
63     "This ISA is implemented by the minimal AVR core and supported "
64     "for assembler only." },
65   { ARCH_AVR2,
66     "``Classic'' devices with up to 8@tie{}KiB of program memory." },
67   { ARCH_AVR25,
68     "``Classic'' devices with up to 8@tie{}KiB of program memory and with "
69     "the @code{MOVW} instruction." },
70   { ARCH_AVR3,
71     "``Classic'' devices with 16@tie{}KiB up to 64@tie{}KiB of "
72     " program memory." },
73   { ARCH_AVR31,
74     "``Classic'' devices with 128@tie{}KiB of program memory." },
75   { ARCH_AVR35,
76     "``Classic'' devices with 16@tie{}KiB up to 64@tie{}KiB of "
77     "program memory and with the @code{MOVW} instruction." },
78   { ARCH_AVR4,
79     "``Enhanced'' devices with up to 8@tie{}KiB of program memory." },
80   { ARCH_AVR5,
81     "``Enhanced'' devices with 16@tie{}KiB up to 64@tie{}KiB of "
82     "program memory." },
83   { ARCH_AVR51,
84     "``Enhanced'' devices with 128@tie{}KiB of program memory." },
85   { ARCH_AVR6,
86     "``Enhanced'' devices with 3-byte PC, i.e.@: with more than 128@tie{}KiB "
87     "of program memory." },
88   { ARCH_AVRXMEGA2,
89     "``XMEGA'' devices with more than 8@tie{}KiB and up to 64@tie{}KiB "
90     "of program memory." },
91   { ARCH_AVRXMEGA4,
92     "``XMEGA'' devices with more than 64@tie{}KiB and up to 128@tie{}KiB "
93     "of program memory." },
94   { ARCH_AVRXMEGA5,
95     "``XMEGA'' devices with more than 64@tie{}KiB and up to 128@tie{}KiB "
96     "of program memory and more than 64@tie{}KiB of RAM." },
97   { ARCH_AVRXMEGA6,
98     "``XMEGA'' devices with more than 128@tie{}KiB of program memory." },
99   { ARCH_AVRXMEGA7,
100     "``XMEGA'' devices with more than 128@tie{}KiB of program memory "
101     "and more than 64@tie{}KiB of RAM." }
102 };
103 
104 const avr_mcu_t
105 avr_mcu_types[] =
106 {
107 #define AVR_MCU(NAME, ARCH, MACRO, SP8, ERR_SKIP, DATA_SEC, N_FLASH, LIBNAME)\
108   { NAME, ARCH, MACRO, SP8, ERR_SKIP, DATA_SEC, N_FLASH, LIBNAME },
109 #include "avr-mcus.def"
110 #undef AVR_MCU
111     /* End of list.  */
112   { NULL, ARCH_UNKNOWN, NULL, 0, 0, 0, 0, NULL }
113 };
114 
115