Changeset 47875


Ignore:
Timestamp:
2015-12-12T07:42:05+01:00 (2 years ago)
Author:
blogic
Message:

ramips: use gic timer as clocksource for mt7621

  • Switches clocksource to gic timer.
  • Moves frequency definitions to dtsi since frequency was hardcoded anyway Will work on proper frequency detection later.

Signed-off-by: Nikolay Martynov <mar.kolya@…>

Location:
trunk/target/linux/ramips
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/dts/mt7621.dtsi

    r47872 r47875  
    2323        }; 
    2424 
     25        cpuclock: cpuclock@0 { 
     26                #clock-cells = <0>; 
     27                compatible = "fixed-clock"; 
     28 
     29                /* FIXME: there should be way to detect this */ 
     30                clock-frequency = <880000000>; 
     31        }; 
     32 
     33        sysclock: sysclock@0 { 
     34                #clock-cells = <0>; 
     35                compatible = "fixed-clock"; 
     36 
     37                /* FIXME: there should be way to detect this */ 
     38                clock-frequency = <50000000>; 
     39        }; 
     40 
    2541        palmbus@1E000000 { 
    2642                compatible = "palmbus"; 
     
    89105                        reg = <0xc00 0x100>; 
    90106 
     107                        clocks = <&sysclock>; 
     108 
    91109                        interrupt-parent = <&gic>; 
    92110                        interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>; 
     
    102120                        compatible = "ralink,mt7621-spi"; 
    103121                        reg = <0xb00 0x100>; 
     122 
     123                        clocks = <&sysclock>; 
    104124 
    105125                        resets = <&rstctrl 18>; 
     
    244264 
    245265                mti,reserved-cpu-vectors = <7>; 
     266 
     267                timer { 
     268                        compatible = "mti,gic-timer"; 
     269                        interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>; 
     270                        clocks = <&cpuclock>; 
     271                }; 
    246272        }; 
    247273 
  • trunk/target/linux/ramips/mt7621/config-4.3

    r47872 r47875  
    1818# CONFIG_CEVT_SYSTICK_QUIRK is not set 
    1919CONFIG_CLKDEV_LOOKUP=y 
     20CONFIG_CLKSRC_MIPS_GIC=y 
     21CONFIG_CLKSRC_OF=y 
    2022CONFIG_CLONE_BACKWARDS=y 
    2123CONFIG_CMDLINE="rootfstype=squashfs,jffs2" 
    2224CONFIG_CMDLINE_BOOL=y 
    2325# CONFIG_CMDLINE_OVERRIDE is not set 
     26CONFIG_COMMON_CLK=y 
    2427CONFIG_CPU_GENERIC_DUMP_TLB=y 
    2528CONFIG_CPU_HAS_PREFETCH=y 
     
    7982CONFIG_HAVE_CC_STACKPROTECTOR=y 
    8083CONFIG_HAVE_CLK=y 
     84CONFIG_HAVE_CLK_PREPARE=y 
    8185CONFIG_HAVE_CONTEXT_TRACKING=y 
    8286CONFIG_HAVE_C_RECORDMCOUNT=y 
Note: See TracChangeset for help on using the changeset viewer.