aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/include
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-11-25 17:39:12 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-11-25 17:39:12 +0000
commitea8f5369e9895ac6a7ff900fc4958cb9d6fb9975 (patch)
treec2af8741cc40e22f51c3dbdbdef32539c31fc9a6 /target/linux/ar71xx/files/include
parent1004fcf830718fcff2f13dc6e95f9da692922b1c (diff)
downloadupstream-ea8f5369e9895ac6a7ff900fc4958cb9d6fb9975.tar.gz
upstream-ea8f5369e9895ac6a7ff900fc4958cb9d6fb9975.tar.bz2
upstream-ea8f5369e9895ac6a7ff900fc4958cb9d6fb9975.zip
[ar71xx] improve SoC detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13349 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/include')
-rw-r--r--target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/ar71xx.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/ar71xx.h
index 729ec9452b..8dbe021614 100644
--- a/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/ar71xx.h
+++ b/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/ar71xx.h
@@ -92,6 +92,17 @@ extern u32 ar71xx_ahb_freq;
extern u32 ar71xx_cpu_freq;
extern u32 ar71xx_ddr_freq;
+enum ar71xx_soc_type {
+ AR71XX_SOC_UNKNOWN,
+ AR71XX_SOC_AR7130,
+ AR71XX_SOC_AR7141,
+ AR71XX_SOC_AR7161,
+ AR71XX_SOC_AR9130,
+ AR71XX_SOC_AR9132
+};
+
+extern enum ar71xx_soc_type ar71xx_soc;
+
/*
* PLL block
*/
@@ -321,6 +332,7 @@ extern void ar71xx_ddr_flush(u32 reg);
#define REV_ID_CHIP_AR7141 0xa1
#define REV_ID_CHIP_AR7161 0xa2
#define REV_ID_CHIP_AR9130 0xb0
+#define REV_ID_CHIP_AR9132 0xb1
#define REV_ID_REVISION_MASK 0x3
#define REV_ID_REVISION_SHIFT 2