[ramips] use common get_system_type function
[openwrt.git] / target / linux / ramips / files / arch / mips / ralink / rt288x / rt288x.c
index cd429a1..e7c3787 100644 (file)
 #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);
 
 unsigned long rt288x_sys_freq;
 EXPORT_SYMBOL_GPL(rt288x_sys_freq);
 
-void __iomem * rt288x_intc_base;
 void __iomem * rt288x_sysc_base;
 void __iomem * rt288x_memc_base;
 
@@ -40,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),
This page took 0.021374 seconds and 4 git commands to generate.