diff options
author | John Crispin <blogic@openwrt.org> | 2015-11-04 11:50:07 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-11-11 08:37:56 +0100 |
commit | 418d29c8706170c6801998e48341181b274a47a8 (patch) | |
tree | 4fb4ada53d40a1a4e97238bb07947e03872643bc /arch/mips/include/asm/mach-ralink/ralink_regs.h | |
parent | 81857db913e9782546d29b52cd3efc80c0145c23 (diff) | |
download | linux-stable-418d29c8706170c6801998e48341181b274a47a8.tar.gz linux-stable-418d29c8706170c6801998e48341181b274a47a8.tar.bz2 linux-stable-418d29c8706170c6801998e48341181b274a47a8.zip |
MIPS: ralink: Unify SoC id handling
This makes detection a lot easier for audio, wifi, ... drivers.
Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11440/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-ralink/ralink_regs.h')
-rw-r--r-- | arch/mips/include/asm/mach-ralink/ralink_regs.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-ralink/ralink_regs.h b/arch/mips/include/asm/mach-ralink/ralink_regs.h index bd93014490df..4c9fba68c8b2 100644 --- a/arch/mips/include/asm/mach-ralink/ralink_regs.h +++ b/arch/mips/include/asm/mach-ralink/ralink_regs.h @@ -13,6 +13,23 @@ #ifndef _RALINK_REGS_H_ #define _RALINK_REGS_H_ +enum ralink_soc_type { + RALINK_UNKNOWN = 0, + RT2880_SOC, + RT3883_SOC, + RT305X_SOC_RT3050, + RT305X_SOC_RT3052, + RT305X_SOC_RT3350, + RT305X_SOC_RT3352, + RT305X_SOC_RT5350, + MT762X_SOC_MT7620A, + MT762X_SOC_MT7620N, + MT762X_SOC_MT7621AT, + MT762X_SOC_MT7628AN, + MT762X_SOC_MT7688, +}; +extern enum ralink_soc_type ralink_soc; + extern __iomem void *rt_sysc_membase; extern __iomem void *rt_memc_membase; |