Robobo
component_chipid.h
1 /* ----------------------------------------------------------------------------
2  * SAM Software Package License
3  * ----------------------------------------------------------------------------
4  * Copyright (c) 2012, Atmel Corporation
5  *
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following condition is met:
10  *
11  * - Redistributions of source code must retain the above copyright notice,
12  * this list of conditions and the disclaimer below.
13  *
14  * Atmel's name may not be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20  * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  * ----------------------------------------------------------------------------
28  */
29 
30 #ifndef _SAM3S8_CHIPID_COMPONENT_
31 #define _SAM3S8_CHIPID_COMPONENT_
32 
33 /* ============================================================================= */
35 /* ============================================================================= */
38 
39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
40 
41 typedef struct {
42  RoReg CHIPID_CIDR;
43  RoReg CHIPID_EXID;
44 } Chipid;
45 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
46 /* -------- CHIPID_CIDR : (CHIPID Offset: 0x0) Chip ID Register -------- */
47 #define CHIPID_CIDR_VERSION_Pos 0
48 #define CHIPID_CIDR_VERSION_Msk (0x1fu << CHIPID_CIDR_VERSION_Pos)
49 #define CHIPID_CIDR_EPROC_Pos 5
50 #define CHIPID_CIDR_EPROC_Msk (0x7u << CHIPID_CIDR_EPROC_Pos)
51 #define CHIPID_CIDR_EPROC_ARM946ES (0x1u << 5)
52 #define CHIPID_CIDR_EPROC_ARM7TDMI (0x2u << 5)
53 #define CHIPID_CIDR_EPROC_CM3 (0x3u << 5)
54 #define CHIPID_CIDR_EPROC_ARM920T (0x4u << 5)
55 #define CHIPID_CIDR_EPROC_ARM926EJS (0x5u << 5)
56 #define CHIPID_CIDR_EPROC_CA5 (0x6u << 5)
57 #define CHIPID_CIDR_EPROC_CM4 (0x7u << 5)
58 #define CHIPID_CIDR_NVPSIZ_Pos 8
59 #define CHIPID_CIDR_NVPSIZ_Msk (0xfu << CHIPID_CIDR_NVPSIZ_Pos)
60 #define CHIPID_CIDR_NVPSIZ_NONE (0x0u << 8)
61 #define CHIPID_CIDR_NVPSIZ_8K (0x1u << 8)
62 #define CHIPID_CIDR_NVPSIZ_16K (0x2u << 8)
63 #define CHIPID_CIDR_NVPSIZ_32K (0x3u << 8)
64 #define CHIPID_CIDR_NVPSIZ_64K (0x5u << 8)
65 #define CHIPID_CIDR_NVPSIZ_128K (0x7u << 8)
66 #define CHIPID_CIDR_NVPSIZ_256K (0x9u << 8)
67 #define CHIPID_CIDR_NVPSIZ_512K (0xAu << 8)
68 #define CHIPID_CIDR_NVPSIZ_1024K (0xCu << 8)
69 #define CHIPID_CIDR_NVPSIZ_2048K (0xEu << 8)
70 #define CHIPID_CIDR_NVPSIZ2_Pos 12
71 #define CHIPID_CIDR_NVPSIZ2_Msk (0xfu << CHIPID_CIDR_NVPSIZ2_Pos)
72 #define CHIPID_CIDR_NVPSIZ2_NONE (0x0u << 12)
73 #define CHIPID_CIDR_NVPSIZ2_8K (0x1u << 12)
74 #define CHIPID_CIDR_NVPSIZ2_16K (0x2u << 12)
75 #define CHIPID_CIDR_NVPSIZ2_32K (0x3u << 12)
76 #define CHIPID_CIDR_NVPSIZ2_64K (0x5u << 12)
77 #define CHIPID_CIDR_NVPSIZ2_128K (0x7u << 12)
78 #define CHIPID_CIDR_NVPSIZ2_256K (0x9u << 12)
79 #define CHIPID_CIDR_NVPSIZ2_512K (0xAu << 12)
80 #define CHIPID_CIDR_NVPSIZ2_1024K (0xCu << 12)
81 #define CHIPID_CIDR_NVPSIZ2_2048K (0xEu << 12)
82 #define CHIPID_CIDR_SRAMSIZ_Pos 16
83 #define CHIPID_CIDR_SRAMSIZ_Msk (0xfu << CHIPID_CIDR_SRAMSIZ_Pos)
84 #define CHIPID_CIDR_SRAMSIZ_48K (0x0u << 16)
85 #define CHIPID_CIDR_SRAMSIZ_1K (0x1u << 16)
86 #define CHIPID_CIDR_SRAMSIZ_2K (0x2u << 16)
87 #define CHIPID_CIDR_SRAMSIZ_6K (0x3u << 16)
88 #define CHIPID_CIDR_SRAMSIZ_24K (0x4u << 16)
89 #define CHIPID_CIDR_SRAMSIZ_4K (0x5u << 16)
90 #define CHIPID_CIDR_SRAMSIZ_80K (0x6u << 16)
91 #define CHIPID_CIDR_SRAMSIZ_160K (0x7u << 16)
92 #define CHIPID_CIDR_SRAMSIZ_8K (0x8u << 16)
93 #define CHIPID_CIDR_SRAMSIZ_16K (0x9u << 16)
94 #define CHIPID_CIDR_SRAMSIZ_32K (0xAu << 16)
95 #define CHIPID_CIDR_SRAMSIZ_64K (0xBu << 16)
96 #define CHIPID_CIDR_SRAMSIZ_128K (0xCu << 16)
97 #define CHIPID_CIDR_SRAMSIZ_256K (0xDu << 16)
98 #define CHIPID_CIDR_SRAMSIZ_96K (0xEu << 16)
99 #define CHIPID_CIDR_SRAMSIZ_512K (0xFu << 16)
100 #define CHIPID_CIDR_ARCH_Pos 20
101 #define CHIPID_CIDR_ARCH_Msk (0xffu << CHIPID_CIDR_ARCH_Pos)
102 #define CHIPID_CIDR_ARCH_AT91SAM9xx (0x19u << 20)
103 #define CHIPID_CIDR_ARCH_AT91SAM9XExx (0x29u << 20)
104 #define CHIPID_CIDR_ARCH_AT91x34 (0x34u << 20)
105 #define CHIPID_CIDR_ARCH_CAP7 (0x37u << 20)
106 #define CHIPID_CIDR_ARCH_CAP9 (0x39u << 20)
107 #define CHIPID_CIDR_ARCH_CAP11 (0x3Bu << 20)
108 #define CHIPID_CIDR_ARCH_AT91x40 (0x40u << 20)
109 #define CHIPID_CIDR_ARCH_AT91x42 (0x42u << 20)
110 #define CHIPID_CIDR_ARCH_AT91x55 (0x55u << 20)
111 #define CHIPID_CIDR_ARCH_AT91SAM7Axx (0x60u << 20)
112 #define CHIPID_CIDR_ARCH_AT91SAM7AQxx (0x61u << 20)
113 #define CHIPID_CIDR_ARCH_AT91x63 (0x63u << 20)
114 #define CHIPID_CIDR_ARCH_AT91SAM7Sxx (0x70u << 20)
115 #define CHIPID_CIDR_ARCH_AT91SAM7XCxx (0x71u << 20)
116 #define CHIPID_CIDR_ARCH_AT91SAM7SExx (0x72u << 20)
117 #define CHIPID_CIDR_ARCH_AT91SAM7Lxx (0x73u << 20)
118 #define CHIPID_CIDR_ARCH_AT91SAM7Xxx (0x75u << 20)
119 #define CHIPID_CIDR_ARCH_AT91SAM7SLxx (0x76u << 20)
120 #define CHIPID_CIDR_ARCH_SAM3UxC (0x80u << 20)
121 #define CHIPID_CIDR_ARCH_SAM3UxE (0x81u << 20)
122 #define CHIPID_CIDR_ARCH_SAM3AxC (0x83u << 20)
123 #define CHIPID_CIDR_ARCH_SAM4AxC (0x83u << 20)
124 #define CHIPID_CIDR_ARCH_SAM3XxC (0x84u << 20)
125 #define CHIPID_CIDR_ARCH_SAM4XxC (0x84u << 20)
126 #define CHIPID_CIDR_ARCH_SAM3XxE (0x85u << 20)
127 #define CHIPID_CIDR_ARCH_SAM4XxE (0x85u << 20)
128 #define CHIPID_CIDR_ARCH_SAM3XxG (0x86u << 20)
129 #define CHIPID_CIDR_ARCH_SAM4XxG (0x86u << 20)
130 #define CHIPID_CIDR_ARCH_SAM3SxA (0x88u << 20)
131 #define CHIPID_CIDR_ARCH_SAM4SxA (0x88u << 20)
132 #define CHIPID_CIDR_ARCH_SAM3SxB (0x89u << 20)
133 #define CHIPID_CIDR_ARCH_SAM4SxB (0x89u << 20)
134 #define CHIPID_CIDR_ARCH_SAM3SxC (0x8Au << 20)
135 #define CHIPID_CIDR_ARCH_SAM4SxC (0x8Au << 20)
136 #define CHIPID_CIDR_ARCH_AT91x92 (0x92u << 20)
137 #define CHIPID_CIDR_ARCH_SAM3NxA (0x93u << 20)
138 #define CHIPID_CIDR_ARCH_SAM3NxB (0x94u << 20)
139 #define CHIPID_CIDR_ARCH_SAM3NxC (0x95u << 20)
140 #define CHIPID_CIDR_ARCH_SAM3SDxB (0x99u << 20)
141 #define CHIPID_CIDR_ARCH_SAM3SDxC (0x9Au << 20)
142 #define CHIPID_CIDR_ARCH_SAM5A (0xA5u << 20)
143 #define CHIPID_CIDR_ARCH_AT75Cxx (0xF0u << 20)
144 #define CHIPID_CIDR_NVPTYP_Pos 28
145 #define CHIPID_CIDR_NVPTYP_Msk (0x7u << CHIPID_CIDR_NVPTYP_Pos)
146 #define CHIPID_CIDR_NVPTYP_ROM (0x0u << 28)
147 #define CHIPID_CIDR_NVPTYP_ROMLESS (0x1u << 28)
148 #define CHIPID_CIDR_NVPTYP_FLASH (0x2u << 28)
149 #define CHIPID_CIDR_NVPTYP_ROM_FLASH (0x3u << 28)
150 #define CHIPID_CIDR_NVPTYP_SRAM (0x4u << 28)
151 #define CHIPID_CIDR_EXT (0x1u << 31)
152 /* -------- CHIPID_EXID : (CHIPID Offset: 0x4) Chip ID Extension Register -------- */
153 #define CHIPID_EXID_EXID_Pos 0
154 #define CHIPID_EXID_EXID_Msk (0xffffffffu << CHIPID_EXID_EXID_Pos)
157 
158 
159 #endif /* _SAM3S8_CHIPID_COMPONENT_ */
Chipid hardware registers.
Definition: component_chipid.h:41
volatile const uint32_t RoReg
Definition: sam3n00a.h:49