Lines Matching +full:chip +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2010-2011 Jaiganesh Narayanan <jnarayanan@atheros.com>
6 * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
29 #include <asm/mach-ath79/ath79.h>
30 #include <asm/mach-ath79/ar71xx_regs.h>
45 char *chip = "????"; in ath79_detect_sys_type() local
46 u32 id; in ath79_detect_sys_type() local
52 id = ath79_reset_rr(AR71XX_RESET_REG_REV_ID); in ath79_detect_sys_type()
53 major = id & REV_ID_MAJOR_MASK; in ath79_detect_sys_type()
57 minor = id & AR71XX_REV_ID_MINOR_MASK; in ath79_detect_sys_type()
58 rev = id >> AR71XX_REV_ID_REVISION_SHIFT; in ath79_detect_sys_type()
63 chip = "7130"; in ath79_detect_sys_type()
68 chip = "7141"; in ath79_detect_sys_type()
73 chip = "7161"; in ath79_detect_sys_type()
80 chip = "7240"; in ath79_detect_sys_type()
81 rev = id & AR724X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
86 chip = "7241"; in ath79_detect_sys_type()
87 rev = id & AR724X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
92 chip = "7242"; in ath79_detect_sys_type()
93 rev = id & AR724X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
97 minor = id & AR913X_REV_ID_MINOR_MASK; in ath79_detect_sys_type()
98 rev = id >> AR913X_REV_ID_REVISION_SHIFT; in ath79_detect_sys_type()
103 chip = "9130"; in ath79_detect_sys_type()
108 chip = "9132"; in ath79_detect_sys_type()
115 chip = "9330"; in ath79_detect_sys_type()
116 rev = id & AR933X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
121 chip = "9331"; in ath79_detect_sys_type()
122 rev = id & AR933X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
127 chip = "9341"; in ath79_detect_sys_type()
128 rev = id & AR934X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
133 chip = "9342"; in ath79_detect_sys_type()
134 rev = id & AR934X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
139 chip = "9344"; in ath79_detect_sys_type()
140 rev = id & AR934X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
149 chip = "9533"; in ath79_detect_sys_type()
150 rev = id & QCA953X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
155 chip = "9556"; in ath79_detect_sys_type()
156 rev = id & QCA955X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
161 chip = "9558"; in ath79_detect_sys_type()
162 rev = id & QCA955X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
167 chip = "956X"; in ath79_detect_sys_type()
168 rev = id & QCA956X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
173 chip = "550X"; in ath79_detect_sys_type()
174 rev = id & QCA956X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
179 chip = "9343"; in ath79_detect_sys_type()
180 rev = id & QCA956X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
184 panic("ath79: unknown SoC, id:0x%08x", id); in ath79_detect_sys_type()
192 chip, ver, rev); in ath79_detect_sys_type()
195 chip, rev); in ath79_detect_sys_type()
197 sprintf(ath79_sys_type, "Atheros AR%s rev %u", chip, rev); in ath79_detect_sys_type()