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
commita7d528722c52ff2e0c17d7dd7757e2b21126bfa8 (patch)
treeeaf1ffd7d299c2e708bce34b7cb828f401265a05 /target/linux/ar71xx/files/include
parent2d95d29bfd98f5323cd8fb768139f2238fcee84f (diff)
downloadupstream-a7d528722c52ff2e0c17d7dd7757e2b21126bfa8.tar.gz
upstream-a7d528722c52ff2e0c17d7dd7757e2b21126bfa8.tar.bz2
upstream-a7d528722c52ff2e0c17d7dd7757e2b21126bfa8.zip
improve SoC detection
SVN-Revision: 13349
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