• Home
  • Raw
  • Download

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>
54 char *chip = "????"; in ath79_detect_sys_type() local
55 u32 id; in ath79_detect_sys_type() local
61 id = ath79_reset_rr(AR71XX_RESET_REG_REV_ID); in ath79_detect_sys_type()
62 major = id & REV_ID_MAJOR_MASK; in ath79_detect_sys_type()
66 minor = id & AR71XX_REV_ID_MINOR_MASK; in ath79_detect_sys_type()
67 rev = id >> AR71XX_REV_ID_REVISION_SHIFT; in ath79_detect_sys_type()
72 chip = "7130"; in ath79_detect_sys_type()
77 chip = "7141"; in ath79_detect_sys_type()
82 chip = "7161"; in ath79_detect_sys_type()
89 chip = "7240"; in ath79_detect_sys_type()
90 rev = id & AR724X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
95 chip = "7241"; in ath79_detect_sys_type()
96 rev = id & AR724X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
101 chip = "7242"; in ath79_detect_sys_type()
102 rev = id & AR724X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
106 minor = id & AR913X_REV_ID_MINOR_MASK; in ath79_detect_sys_type()
107 rev = id >> AR913X_REV_ID_REVISION_SHIFT; in ath79_detect_sys_type()
112 chip = "9130"; in ath79_detect_sys_type()
117 chip = "9132"; in ath79_detect_sys_type()
124 chip = "9330"; in ath79_detect_sys_type()
125 rev = id & AR933X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
130 chip = "9331"; in ath79_detect_sys_type()
131 rev = id & AR933X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
136 chip = "9341"; in ath79_detect_sys_type()
137 rev = id & AR934X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
142 chip = "9342"; in ath79_detect_sys_type()
143 rev = id & AR934X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
148 chip = "9344"; in ath79_detect_sys_type()
149 rev = id & AR934X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
158 chip = "9533"; in ath79_detect_sys_type()
159 rev = id & QCA953X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
164 chip = "9556"; in ath79_detect_sys_type()
165 rev = id & QCA955X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
170 chip = "9558"; in ath79_detect_sys_type()
171 rev = id & QCA955X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
176 chip = "956X"; in ath79_detect_sys_type()
177 rev = id & QCA956X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
182 chip = "9343"; in ath79_detect_sys_type()
183 rev = id & QCA956X_REV_ID_REVISION_MASK; in ath79_detect_sys_type()
187 panic("ath79: unknown SoC, id:0x%08x", id); in ath79_detect_sys_type()
195 chip, ver, rev); in ath79_detect_sys_type()
198 chip, rev); in ath79_detect_sys_type()
200 sprintf(ath79_sys_type, "Atheros AR%s rev %u", chip, rev); in ath79_detect_sys_type()