Skip to content
Snippets Groups Projects
Commit 192c1e90 authored by Florian Fainelli's avatar Florian Fainelli
Browse files

move time related functions to their own file


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

SVN-Revision: 34544
parent 1f939889
No related branches found
No related tags found
No related merge requests found
......@@ -3,5 +3,5 @@
#
obj-y := irq.o pci.o prom.o platform.o serial.o proc.o \
setup.o \
setup.o time.o \
net_core.o net_intr.o
......@@ -85,16 +85,4 @@ int __devinit adm8668_devs_register(void)
return 0;
}
void __init plat_time_init(void)
{
int adj = (ADM8668_CONFIG_REG(ADM8668_CR3) >> 11) & 0xf;
/* adjustable clock selection
CR3 bit 14~11, 0000 -> 175MHz, 0001 -> 180MHz, etc... */
mips_hpt_frequency = (SYS_CLOCK + adj * 5000000) / 2;
printk("ADM8668 CPU clock: %d MHz\n", 2*mips_hpt_frequency / 1000000);
}
arch_initcall(adm8668_devs_register);
#include <linux/init.h>
#include <linux/kernel.h>
#include <asm/time.h>
#include <adm8668.h>
void __init plat_time_init(void)
{
int adj = (ADM8668_CONFIG_REG(ADM8668_CR3) >> 11) & 0xf;
/* adjustable clock selection
CR3 bit 14~11, 0000 -> 175MHz, 0001 -> 180MHz, etc... */
mips_hpt_frequency = (SYS_CLOCK + adj * 5000000) / 2;
printk("ADM8668 CPU clock: %d MHz\n", 2*mips_hpt_frequency / 1000000);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment