Changeset 47843


Ignore:
Timestamp:
2015-12-11T16:03:39+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

    r47842 r47843  
    8989                        reg = <0xc00 0x100>; 
    9090 
     91                        /* FIXME: there should be way to detect this */ 
     92                        clock-frequency = <50000000>; 
     93 
    9194                        interrupt-parent = <&gic>; 
    9295                        interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>; 
     
    102105                        compatible = "ralink,mt7621-spi"; 
    103106                        reg = <0xb00 0x100>; 
     107 
     108                        /* FIXME: there should be way to detect this */ 
     109                        clock-frequency = <50000000>; 
    104110 
    105111                        resets = <&rstctrl 18>; 
     
    244250 
    245251                mti,reserved-cpu-vectors = <7>; 
     252 
     253                timer { 
     254                        compatible = "mti,gic-timer"; 
     255                        interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>; 
     256 
     257                        /* FIXME: there should be way to detect this */ 
     258                        clock-frequency = <880000000>; 
     259                }; 
    246260        }; 
    247261 
  • trunk/target/linux/ramips/mt7621/config-4.3

    r47842 r47843  
    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.