diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-11-18 00:17:46 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-12-07 22:02:47 +0000 |
commit | be5f3623204e15cb8a95a6d381ae6eb074ba46b5 (patch) | |
tree | 52fb613a75ad0c563323de0ddcb646d595196d1b /arch/mips/include/asm/mach-ath79 | |
parent | 2dc7b4a1977e3bd3b7c819c63cab1baf7d260d89 (diff) | |
download | op-kernel-dev-be5f3623204e15cb8a95a6d381ae6eb074ba46b5.zip op-kernel-dev-be5f3623204e15cb8a95a6d381ae6eb074ba46b5.tar.gz |
MIPS: ath79: Store the SoC revision in a global variable
Knowing the exact revision of the SoC is required to make runtime decisions
in various code paths. We have determined the SoC revision already, so we
only need to store that in a global variable.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3027/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-ath79')
-rw-r--r-- | arch/mips/include/asm/mach-ath79/ath79.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-ath79/ath79.h b/arch/mips/include/asm/mach-ath79/ath79.h index 407c935..6d0c6c9 100644 --- a/arch/mips/include/asm/mach-ath79/ath79.h +++ b/arch/mips/include/asm/mach-ath79/ath79.h @@ -32,6 +32,7 @@ enum ath79_soc_type { }; extern enum ath79_soc_type ath79_soc; +extern unsigned int ath79_soc_rev; static inline int soc_is_ar71xx(void) { |