diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:34 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:34 +0000 |
commit | 298202afb8c19917b1f74968388d6093b675be25 (patch) | |
tree | 3b7d671ae5b37e59c17b5c73ee92dadf40c4e0ef /target/linux/ramips/files/arch/mips/include/asm | |
parent | aec7426483c0ac4682b83f26e347c93b64833c17 (diff) | |
download | master-31e0f0ae-298202afb8c19917b1f74968388d6093b675be25.tar.gz master-31e0f0ae-298202afb8c19917b1f74968388d6093b675be25.tar.bz2 master-31e0f0ae-298202afb8c19917b1f74968388d6093b675be25.zip |
share machine registration code
SVN-Revision: 17456
Diffstat (limited to 'target/linux/ramips/files/arch/mips/include/asm')
-rw-r--r-- | target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h | 16 | ||||
-rw-r--r-- | target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x.h | 3 |
2 files changed, 16 insertions, 3 deletions
diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h new file mode 100644 index 0000000000..267d9f3c62 --- /dev/null +++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h @@ -0,0 +1,16 @@ +/* + * Ralink machine types + * + * Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + */ + +enum ramips_mach_type { + RAMIPS_MACH_GENERIC, + RAMIPS_MACH_WHR_G300N, /* Buffalo WHR-G300N */ +}; + +extern enum ramips_mach_type ramips_mach; diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x.h index 85331a5ba9..445bafa3d0 100644 --- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x.h +++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x.h @@ -23,9 +23,6 @@ void rt288x_detect_sys_freq(void) __init; extern unsigned long rt288x_cpu_freq; extern unsigned long rt288x_sys_freq; -extern unsigned long rt288x_mach_type; -#define RT288X_MACH_GENERIC 0 - #define RT288X_CPU_IRQ_BASE 0 #define RT288X_INTC_IRQ_BASE 8 #define RT288X_INTC_IRQ_COUNT 32 |