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
const char *get_system_type(void)
{
unsigned long chipid = ADM8668_CONFIG_REG(ADM8668_CR0);
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;
static char ret[32];
product = chipid >> 16;
revision = chipid & 0xffff;
static char ret[32];
product = chipid >> 16;
revision = chipid & 0xffff;
- mhz = (SYS_CLOCK/1000000) + (adj * 5);
- snprintf(ret, sizeof(ret), "ADM%xr%x %dMHz", product, revision, mhz);
+ snprintf(ret, sizeof(ret), "ADM%xr%x", product, revision);