mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[ramips] use common get_system_type function
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17455 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user