aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-06-01 13:12:24 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-06-01 13:12:24 +0000
commitc0f1df073d04d6b41be21c36cba6b3473b7134c1 (patch)
tree0e858a42b6ccdb614ddfd9911c0a82d70a7bd61c /target/linux/ar71xx/files
parent6b89f2292cc93c77baf345faa6cc04101dc8ca8b (diff)
downloadupstream-c0f1df073d04d6b41be21c36cba6b3473b7134c1.tar.gz
upstream-c0f1df073d04d6b41be21c36cba6b3473b7134c1.tar.bz2
upstream-c0f1df073d04d6b41be21c36cba6b3473b7134c1.zip
ar71xx: export SoC revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27079 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/setup.c5
-rw-r--r--target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
index ba3ef3ea09..e12fdbf54c 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
@@ -44,6 +44,9 @@ EXPORT_SYMBOL_GPL(ar71xx_ref_freq);
enum ar71xx_soc_type ar71xx_soc;
EXPORT_SYMBOL_GPL(ar71xx_soc);
+u32 ar71xx_soc_rev;
+EXPORT_SYMBOL_GPL(ar71xx_soc_rev);
+
static char ar71xx_sys_type[AR71XX_SYS_TYPE_LEN];
static void ar71xx_restart(char *command)
@@ -171,6 +174,8 @@ static void __init ar71xx_detect_sys_type(void)
panic("ar71xx: unknown chip id:0x%08x\n", id);
}
+ ar71xx_soc_rev = rev;
+
sprintf(ar71xx_sys_type, "Atheros AR%s rev %u", chip, rev);
pr_info("SoC: %s\n", ar71xx_sys_type);
}
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
index 7c99dba665..a001f89dbc 100644
--- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
+++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
@@ -138,6 +138,7 @@ enum ar71xx_soc_type {
AR71XX_SOC_AR9342,
AR71XX_SOC_AR9344,
};
+extern u32 ar71xx_soc_rev;
extern enum ar71xx_soc_type ar71xx_soc;