Changeset 34544


Ignore:
Timestamp:
2012-12-06T23:39:18+01:00 (5 years ago)
Author:
florian
Message:

[adm8668] move time related functions to their own file

Signed-off-by: Florian Fainelli <florian@…>

Location:
trunk/target/linux/adm8668/files/arch/mips/adm8668
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm8668/files/arch/mips/adm8668/Makefile

    r34543 r34544  
    44 
    55obj-y           := irq.o pci.o prom.o platform.o serial.o proc.o \ 
    6                    setup.o \ 
     6                   setup.o time.o \ 
    77                   net_core.o net_intr.o 
  • trunk/target/linux/adm8668/files/arch/mips/adm8668/platform.c

    r34543 r34544  
    8686        return 0; 
    8787} 
    88  
    89 void __init plat_time_init(void) 
    90 { 
    91         int adj = (ADM8668_CONFIG_REG(ADM8668_CR3) >> 11) & 0xf; 
    92  
    93         /* adjustable clock selection 
    94            CR3 bit 14~11, 0000 -> 175MHz, 0001 -> 180MHz, etc... */ 
    95  
    96         mips_hpt_frequency = (SYS_CLOCK + adj * 5000000) / 2; 
    97         printk("ADM8668 CPU clock: %d MHz\n", 2*mips_hpt_frequency / 1000000); 
    98 } 
    99  
    10088arch_initcall(adm8668_devs_register); 
Note: See TracChangeset for help on using the changeset viewer.