Changeset 34556


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

[adm8668] move clock frequencies into clock driver

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

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

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm8668/files/arch/mips/adm8668/clock.c

    r34550 r34556  
    2020 
    2121static struct clk uart_clk = { 
    22         .rate   = ADM8668_UARTCLK_FREQ, 
     22        .rate   = 62500000, 
    2323}; 
    2424 
     
    7171         */ 
    7272        adj = (ADM8668_CONFIG_REG(ADM8668_CR3) >> 11) & 0xf; 
    73         sys_clk.rate = SYS_CLOCK + adj * 5000000; 
     73        sys_clk.rate = 175000000 + (adj * 5000000); 
    7474 
    7575        pr_info("ADM8668 CPU clock: %lu MHz\n", sys_clk.rate / 1000000); 
  • trunk/target/linux/adm8668/files/arch/mips/include/asm/mach-adm8668/adm8668.h

    r34553 r34556  
    99#ifndef  __ADM8668_H__ 
    1010#define  __ADM8668_H__ 
    11  
    12 #define SYS_CLOCK               175000000 
    1311 
    1412/*=======================  Physical Memory Map  ============================*/ 
     
    2927#define ADM8668_PCICFG_BASE     0x12200000 
    3028#define ADM8668_PCIDAT_BASE     0x12400000 
    31  
    32 /** onboard uart **/ 
    33 #define ADM8668_UARTCLK_FREQ    62500000 
    3429 
    3530/* interrupt levels */ 
Note: See TracChangeset for help on using the changeset viewer.