ar71xx: export SoC revision
authorGabor Juhos <juhosg@openwrt.org>
Wed, 1 Jun 2011 13:12:24 +0000 (13:12 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 1 Jun 2011 13:12:24 +0000 (13:12 +0000)
SVN-Revision: 27079

target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h

index ba3ef3ea09404015292caefb9e85fc7b01dcf85d..e12fdbf54ce6ceb484413962270fe4a8ca4ff4c7 100644 (file)
@@ -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);
 }
index 7c99dba66525e92ac5820e60aec90be3f0f2cf5d..a001f89dbc988980c1bc24c7b5fd3501d0dfb045 100644 (file)
@@ -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;