mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-11 23:42:57 +00:00
remove frequency from /proc/cpuinfo
This is not the place to expose it and duplicates code reading the system frequency. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34551
This commit is contained in:
parent
e37f6fb458
commit
47ccbaaa91
@ -36,16 +36,14 @@ void __init plat_mem_setup(void)
|
|||||||
const char *get_system_type(void)
|
const char *get_system_type(void)
|
||||||
{
|
{
|
||||||
unsigned long chipid = ADM8668_CONFIG_REG(ADM8668_CR0);
|
unsigned long chipid = ADM8668_CONFIG_REG(ADM8668_CR0);
|
||||||
int adj = (ADM8668_CONFIG_REG(ADM8668_CR3) >> 11) & 0xf;
|
int product, revision;
|
||||||
int product, revision, mhz;
|
|
||||||
static char ret[32];
|
static char ret[32];
|
||||||
|
|
||||||
product = chipid >> 16;
|
product = chipid >> 16;
|
||||||
revision = chipid & 0xffff;
|
revision = chipid & 0xffff;
|
||||||
mhz = (SYS_CLOCK/1000000) + (adj * 5);
|
|
||||||
|
|
||||||
/* i getting fancy :\ */
|
/* i getting fancy :\ */
|
||||||
snprintf(ret, sizeof(ret), "ADM%xr%x %dMHz", product, revision, mhz);
|
snprintf(ret, sizeof(ret), "ADM%xr%x", product, revision);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user