Skip to content
Snippets Groups Projects
Commit 3ac5bd0a authored by florian's avatar florian
Browse files

[adm8668] remove frequency from /proc/cpuinfo


This is not the place to expose it and duplicates code reading the
system frequency.

Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34551 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent a2565ae2
No related branches found
No related tags found
No related merge requests found
......@@ -36,16 +36,14 @@ void __init plat_mem_setup(void)
const char *get_system_type(void)
{
unsigned long chipid = ADM8668_CONFIG_REG(ADM8668_CR0);
int adj = (ADM8668_CONFIG_REG(ADM8668_CR3) >> 11) & 0xf;
int product, revision, mhz;
int product, revision;
static char ret[32];
product = chipid >> 16;
revision = chipid & 0xffff;
mhz = (SYS_CLOCK/1000000) + (adj * 5);
/* 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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment