Ignore:
Timestamp:
2012-03-25T10:50:42+02:00 (5 years ago)
Author:
blogic
Message:

[ltq-dsl] fix for 3.2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ltq-dsl/src/ifxmips_atm_danube.c

    r28406 r31065  
    4141#include <linux/init.h> 
    4242#include <linux/ioctl.h> 
     43#include <linux/clk.h> 
    4344#include <asm/delay.h> 
    4445 
     
    110111    //*(unsigned long *)0xBF10201C &= ~((1 << 15) | (1 << 13) | (1 << 9)); 
    111112    //PPE_TOP_PMU_SETUP(IFX_PMU_ENABLE); 
    112     PPE_SLL01_PMU_SETUP(IFX_PMU_ENABLE); 
     113/*    PPE_SLL01_PMU_SETUP(IFX_PMU_ENABLE); 
    113114    PPE_TC_PMU_SETUP(IFX_PMU_ENABLE); 
    114115    PPE_EMA_PMU_SETUP(IFX_PMU_ENABLE); 
    115116    PPE_QSB_PMU_SETUP(IFX_PMU_ENABLE); 
    116117    PPE_TPE_PMU_SETUP(IFX_PMU_ENABLE); 
    117     DSL_DFE_PMU_SETUP(IFX_PMU_ENABLE); 
     118    DSL_DFE_PMU_SETUP(IFX_PMU_ENABLE);*/ 
     119    struct clk *clk = clk_get_sys("ltq_dsl", NULL); 
     120    clk_enable(clk); 
    118121} 
    119122 
    120123static inline void uninit_pmu(void) 
    121124{ 
    122     PPE_SLL01_PMU_SETUP(IFX_PMU_DISABLE); 
     125/*    PPE_SLL01_PMU_SETUP(IFX_PMU_DISABLE); 
    123126    PPE_TC_PMU_SETUP(IFX_PMU_DISABLE); 
    124127    PPE_EMA_PMU_SETUP(IFX_PMU_DISABLE); 
    125128    PPE_QSB_PMU_SETUP(IFX_PMU_DISABLE); 
    126129    PPE_TPE_PMU_SETUP(IFX_PMU_DISABLE); 
    127     DSL_DFE_PMU_SETUP(IFX_PMU_DISABLE); 
     130    DSL_DFE_PMU_SETUP(IFX_PMU_DISABLE);*/ 
    128131    //PPE_TOP_PMU_SETUP(IFX_PMU_DISABLE); 
     132    struct clk *clk = clk_get_sys("ltq_dsl", NULL); 
     133    clk_disable(clk); 
    129134} 
    130135 
Note: See TracChangeset for help on using the changeset viewer.