1 /* 2 * Copyright (C) 2015 Atmel 3 * 4 * Boris Brezillon <boris.brezillon@free-electrons.com 5 * 6 * This file is licensed under the terms of the GNU General Public 7 * License version 2. This program is licensed "as is" without any 8 * warranty of any kind, whether express or implied. 9 * 10 */ 11 12 #ifndef __AT91_SOC_H 13 #define __AT91_SOC_H 14 15 #include <linux/sys_soc.h> 16 17 struct at91_soc { 18 u32 cidr_match; 19 u32 exid_match; 20 const char *name; 21 const char *family; 22 }; 23 24 #define AT91_SOC(__cidr, __exid, __name, __family) \ 25 { \ 26 .cidr_match = (__cidr), \ 27 .exid_match = (__exid), \ 28 .name = (__name), \ 29 .family = (__family), \ 30 } 31 32 struct soc_device * __init 33 at91_soc_init(const struct at91_soc *socs); 34 35 #define AT91RM9200_CIDR_MATCH 0x09290780 36 37 #define AT91SAM9260_CIDR_MATCH 0x019803a0 38 #define AT91SAM9261_CIDR_MATCH 0x019703a0 39 #define AT91SAM9263_CIDR_MATCH 0x019607a0 40 #define AT91SAM9G20_CIDR_MATCH 0x019905a0 41 #define AT91SAM9RL64_CIDR_MATCH 0x019b03a0 42 #define AT91SAM9G45_CIDR_MATCH 0x019b05a0 43 #define AT91SAM9X5_CIDR_MATCH 0x019a05a0 44 #define AT91SAM9N12_CIDR_MATCH 0x019a07a0 45 46 #define AT91SAM9M11_EXID_MATCH 0x00000001 47 #define AT91SAM9M10_EXID_MATCH 0x00000002 48 #define AT91SAM9G46_EXID_MATCH 0x00000003 49 #define AT91SAM9G45_EXID_MATCH 0x00000004 50 51 #define AT91SAM9G15_EXID_MATCH 0x00000000 52 #define AT91SAM9G35_EXID_MATCH 0x00000001 53 #define AT91SAM9X35_EXID_MATCH 0x00000002 54 #define AT91SAM9G25_EXID_MATCH 0x00000003 55 #define AT91SAM9X25_EXID_MATCH 0x00000004 56 57 #define AT91SAM9CN12_EXID_MATCH 0x00000005 58 #define AT91SAM9N12_EXID_MATCH 0x00000006 59 #define AT91SAM9CN11_EXID_MATCH 0x00000009 60 61 #define AT91SAM9XE128_CIDR_MATCH 0x329973a0 62 #define AT91SAM9XE256_CIDR_MATCH 0x329a93a0 63 #define AT91SAM9XE512_CIDR_MATCH 0x329aa3a0 64 65 #define SAMA5D2_CIDR_MATCH 0x0a5c08c0 66 #define SAMA5D21CU_EXID_MATCH 0x0000005a 67 #define SAMA5D22CU_EXID_MATCH 0x00000059 68 #define SAMA5D22CN_EXID_MATCH 0x00000069 69 #define SAMA5D23CU_EXID_MATCH 0x00000058 70 #define SAMA5D24CX_EXID_MATCH 0x00000004 71 #define SAMA5D24CU_EXID_MATCH 0x00000014 72 #define SAMA5D26CU_EXID_MATCH 0x00000012 73 #define SAMA5D27CU_EXID_MATCH 0x00000011 74 #define SAMA5D27CN_EXID_MATCH 0x00000021 75 #define SAMA5D28CU_EXID_MATCH 0x00000010 76 #define SAMA5D28CN_EXID_MATCH 0x00000020 77 78 #define SAMA5D3_CIDR_MATCH 0x0a5c07c0 79 #define SAMA5D31_EXID_MATCH 0x00444300 80 #define SAMA5D33_EXID_MATCH 0x00414300 81 #define SAMA5D34_EXID_MATCH 0x00414301 82 #define SAMA5D35_EXID_MATCH 0x00584300 83 #define SAMA5D36_EXID_MATCH 0x00004301 84 85 #define SAMA5D4_CIDR_MATCH 0x0a5c07c0 86 #define SAMA5D41_EXID_MATCH 0x00000001 87 #define SAMA5D42_EXID_MATCH 0x00000002 88 #define SAMA5D43_EXID_MATCH 0x00000003 89 #define SAMA5D44_EXID_MATCH 0x00000004 90 91 #define SAME70Q21_CIDR_MATCH 0x21020e00 92 #define SAME70Q21_EXID_MATCH 0x00000002 93 #define SAME70Q20_CIDR_MATCH 0x21020c00 94 #define SAME70Q20_EXID_MATCH 0x00000002 95 #define SAME70Q19_CIDR_MATCH 0x210d0a00 96 #define SAME70Q19_EXID_MATCH 0x00000002 97 98 #define SAMS70Q21_CIDR_MATCH 0x21120e00 99 #define SAMS70Q21_EXID_MATCH 0x00000002 100 #define SAMS70Q20_CIDR_MATCH 0x21120c00 101 #define SAMS70Q20_EXID_MATCH 0x00000002 102 #define SAMS70Q19_CIDR_MATCH 0x211d0a00 103 #define SAMS70Q19_EXID_MATCH 0x00000002 104 105 #define SAMV71Q21_CIDR_MATCH 0x21220e00 106 #define SAMV71Q21_EXID_MATCH 0x00000002 107 #define SAMV71Q20_CIDR_MATCH 0x21220c00 108 #define SAMV71Q20_EXID_MATCH 0x00000002 109 #define SAMV71Q19_CIDR_MATCH 0x212d0a00 110 #define SAMV71Q19_EXID_MATCH 0x00000002 111 112 #define SAMV70Q20_CIDR_MATCH 0x21320c00 113 #define SAMV70Q20_EXID_MATCH 0x00000002 114 #define SAMV70Q19_CIDR_MATCH 0x213d0a00 115 #define SAMV70Q19_EXID_MATCH 0x00000002 116 117 #endif /* __AT91_SOC_H */ 118