summaryrefslogtreecommitdiff
path: root/target/linux/ramips/files/arch/mips/ralink/rt288x
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-08-31 18:53:31 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-08-31 18:53:31 +0000
commitaec7426483c0ac4682b83f26e347c93b64833c17 (patch)
tree87e09082fe7802dc9f610202b72d67a03a1fb723 /target/linux/ramips/files/arch/mips/ralink/rt288x
parentf4afb9a4f951ae34bda05969a179496bad27c869 (diff)
downloadmtk-20170518-aec7426483c0ac4682b83f26e347c93b64833c17.zip
mtk-20170518-aec7426483c0ac4682b83f26e347c93b64833c17.tar.gz
mtk-20170518-aec7426483c0ac4682b83f26e347c93b64833c17.tar.bz2
use common get_system_type function
SVN-Revision: 17455
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt288x')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c5
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c7
2 files changed, 3 insertions, 9 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c b/target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c
index 0c47df8..e7c3787 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c
@@ -15,11 +15,10 @@
#include <linux/init.h>
#include <linux/module.h>
+#include <asm/mach-ralink/common.h>
#include <asm/mach-ralink/rt288x.h>
#include <asm/mach-ralink/rt288x_regs.h>
-unsigned char rt288x_sys_type[RT288X_SYS_TYPE_LEN];
-
unsigned long rt288x_cpu_freq;
EXPORT_SYMBOL_GPL(rt288x_cpu_freq);
@@ -39,7 +38,7 @@ void __init rt288x_detect_sys_type(void)
n1 = rt288x_sysc_rr(SYSC_REG_CHIP_NAME1);
id = rt288x_sysc_rr(SYSC_REG_CHIP_ID);
- snprintf(rt288x_sys_type, RT288X_SYS_TYPE_LEN,
+ snprintf(ramips_sys_type, RAMIPS_SYS_TYPE_LEN,
"Ralink %c%c%c%c%c%c%c%c id:%u rev:%u",
(char) (n0 & 0xff), (char) ((n0 >> 8) & 0xff),
(char) ((n0 >> 16) & 0xff), (char) ((n0 >> 24) & 0xff),
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c b/target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c
index 920f44a..05184f0 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c
@@ -73,11 +73,6 @@ static void __init rt288x_early_serial_setup(void)
err);
}
-const char *get_system_type(void)
-{
- return rt288x_sys_type;
-}
-
unsigned int __cpuinit get_c0_compare_irq(void)
{
return CP0_LEGACY_COMPARE_IRQ;
@@ -91,7 +86,7 @@ void __init ramips_soc_setup(void)
rt288x_detect_sys_type();
rt288x_detect_sys_freq();
- printk(KERN_INFO "%s running at %lu.%02lu MHz\n", get_system_type(),
+ printk(KERN_INFO "%s running at %lu.%02lu MHz\n", ramips_sys_type,
rt288x_cpu_freq / 1000000,
(rt288x_cpu_freq % 1000000) * 100 / 1000000);