summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-04-05 00:22:17 +0000
committeradrian <adrian@FreeBSD.org>2013-04-05 00:22:17 +0000
commit2c677dafec0c92cf5f3a89fee74a022d226e4980 (patch)
treeb7cc669f57747c4a2ff546ccec3d686dccaefb2a
parent25cb76a4d89a6379be149d50a18261cbcc7700fb (diff)
downloadFreeBSD-src-2c677dafec0c92cf5f3a89fee74a022d226e4980.zip
FreeBSD-src-2c677dafec0c92cf5f3a89fee74a022d226e4980.tar.gz
* Add AR9330/AR9331 to the soc identifier enum;
* Set it when probing the CPU type.
-rw-r--r--sys/mips/atheros/ar71xx_setup.c2
-rw-r--r--sys/mips/atheros/ar71xx_setup.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/sys/mips/atheros/ar71xx_setup.c b/sys/mips/atheros/ar71xx_setup.c
index 34a7c80..c79286d 100644
--- a/sys/mips/atheros/ar71xx_setup.c
+++ b/sys/mips/atheros/ar71xx_setup.c
@@ -148,11 +148,13 @@ ar71xx_detect_sys_type(void)
rev = (id & AR933X_REV_ID_REVISION_MASK);
chip = "9330";
ar71xx_cpu_ops = &ar933x_chip_def;
+ ar71xx_soc = AR71XX_SOC_AR9330;
break;
case REV_ID_MAJOR_AR9331:
minor = 1;
rev = (id & AR933X_REV_ID_REVISION_MASK);
chip = "9331";
+ ar71xx_soc = AR71XX_SOC_AR9331;
ar71xx_cpu_ops = &ar933x_chip_def;
break;
diff --git a/sys/mips/atheros/ar71xx_setup.h b/sys/mips/atheros/ar71xx_setup.h
index 89f24903..5d77c61 100644
--- a/sys/mips/atheros/ar71xx_setup.h
+++ b/sys/mips/atheros/ar71xx_setup.h
@@ -38,7 +38,9 @@ enum ar71xx_soc_type {
AR71XX_SOC_AR7241,
AR71XX_SOC_AR7242,
AR71XX_SOC_AR9130,
- AR71XX_SOC_AR9132
+ AR71XX_SOC_AR9132,
+ AR71XX_SOC_AR9330,
+ AR71XX_SOC_AR9331,
};
extern enum ar71xx_soc_type ar71xx_soc;
OpenPOWER on IntegriCloud