Changeset 45730


Ignore:
Timestamp:
2015-05-23T17:28:02+02:00 (3 years ago)
Author:
blogic
Message:

ipq806x: add & enable cpufreq support

This change set enables frequency scaling on ipq806x, which speeds-up
the CPU and allows it to achieve its max frequency.

These patches are cherry-picked & backported from the following location:
*130-132: linux-next
*133-143: LKML - https://lkml.org/lkml/2015/3/21/15
*144: derived from other qcom similar dts
*145: derived from https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-3.14/drivers/cpufreq/cpufreq-krait.c

Signed-off-by: Mathieu Olivari <mathieu@…>

Location:
trunk/target/linux/ipq806x
Files:
29 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ipq806x/config-3.18

    r45729 r45730  
    4141CONFIG_ARM_GIC=y 
    4242CONFIG_ARM_HAS_SG_CHAIN=y 
     43# CONFIG_ARM_KIRKWOOD_CPUFREQ is not set 
    4344CONFIG_ARM_L1_CACHE_SHIFT=6 
    4445CONFIG_ARM_L1_CACHE_SHIFT_6=y 
    4546# CONFIG_ARM_LPAE is not set 
    4647CONFIG_ARM_PATCH_PHYS_VIRT=y 
     48CONFIG_ARM_QCOM_CPUFREQ=y 
    4749# CONFIG_ARM_SP805_WATCHDOG is not set 
    4850CONFIG_ARM_THUMB=y 
     
    6567CONFIG_COMPACTION=y 
    6668CONFIG_COREDUMP=y 
     69# CONFIG_CPUFREQ_DT is not set 
    6770CONFIG_CPU_32v6K=y 
    6871CONFIG_CPU_32v7=y 
     
    7477CONFIG_CPU_CP15=y 
    7578CONFIG_CPU_CP15_MMU=y 
     79CONFIG_CPU_FREQ=y 
     80# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set 
     81# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set 
     82CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y 
     83# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set 
     84# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set 
     85# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set 
     86# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set 
     87CONFIG_CPU_FREQ_GOV_PERFORMANCE=y 
     88# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set 
     89# CONFIG_CPU_FREQ_GOV_USERSPACE is not set 
     90CONFIG_CPU_FREQ_STAT=y 
     91# CONFIG_CPU_FREQ_STAT_DETAILS is not set 
    7692CONFIG_CPU_HAS_ASID=y 
    7793# CONFIG_CPU_ICACHE_DISABLE is not set 
     
    7995CONFIG_CPU_PM=y 
    8096CONFIG_CPU_RMAP=y 
     97# CONFIG_CPU_THERMAL is not set 
    8198CONFIG_CPU_TLB_V7=y 
    8299CONFIG_CPU_V7=y 
     
    112129CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y 
    113130CONFIG_GENERIC_CLOCKEVENTS_BUILD=y 
     131CONFIG_GENERIC_CPUFREQ_KRAIT=y 
    114132CONFIG_GENERIC_IDLE_POLL_SETUP=y 
    115133CONFIG_GENERIC_IO=y 
     
    204222CONFIG_IRQ_FORCED_THREADING=y 
    205223CONFIG_IRQ_WORK=y 
     224CONFIG_KPSS_XCC=y 
     225CONFIG_KRAITCC=y 
     226CONFIG_KRAIT_CLOCKS=y 
     227CONFIG_KRAIT_L2_ACCESSORS=y 
    206228# CONFIG_LEDS_REGULATOR is not set 
    207229CONFIG_LIBFDT=y 
     
    282304CONFIG_PM_CLK=y 
    283305# CONFIG_PM_DEBUG is not set 
     306CONFIG_PM_OPP=y 
    284307CONFIG_PM_SLEEP=y 
    285308CONFIG_PM_SLEEP_SMP=y 
     
    300323CONFIG_QCOM_BAM_DMA=y 
    301324CONFIG_QCOM_GSBI=y 
     325CONFIG_QCOM_HFPLL=y 
    302326CONFIG_QCOM_SCM=y 
    303327CONFIG_QCOM_WDT=y 
  • trunk/target/linux/ipq806x/config-4.0

    r45729 r45730  
    4242CONFIG_ARM_GIC=y 
    4343CONFIG_ARM_HAS_SG_CHAIN=y 
     44# CONFIG_ARM_KIRKWOOD_CPUFREQ is not set 
    4445CONFIG_ARM_L1_CACHE_SHIFT=6 
    4546CONFIG_ARM_L1_CACHE_SHIFT_6=y 
    4647# CONFIG_ARM_LPAE is not set 
    4748CONFIG_ARM_PATCH_PHYS_VIRT=y 
     49CONFIG_ARM_QCOM_CPUFREQ=y 
    4850# CONFIG_ARM_SMMU is not set 
    4951# CONFIG_ARM_SP805_WATCHDOG is not set 
     
    6769CONFIG_COMPACTION=y 
    6870CONFIG_COREDUMP=y 
     71# CONFIG_CPUFREQ_DT is not set 
    6972CONFIG_CPU_32v6K=y 
    7073CONFIG_CPU_32v7=y 
     
    7780CONFIG_CPU_CP15=y 
    7881CONFIG_CPU_CP15_MMU=y 
     82CONFIG_CPU_FREQ=y 
     83# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set 
     84# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set 
     85CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y 
     86# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set 
     87# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set 
     88# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set 
     89# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set 
     90CONFIG_CPU_FREQ_GOV_PERFORMANCE=y 
     91# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set 
     92# CONFIG_CPU_FREQ_GOV_USERSPACE is not set 
     93CONFIG_CPU_FREQ_STAT=y 
     94# CONFIG_CPU_FREQ_STAT_DETAILS is not set 
    7995CONFIG_CPU_HAS_ASID=y 
    8096# CONFIG_CPU_ICACHE_DISABLE is not set 
     
    8298CONFIG_CPU_PM=y 
    8399CONFIG_CPU_RMAP=y 
     100# CONFIG_CPU_THERMAL is not set 
    84101CONFIG_CPU_TLB_V7=y 
    85102CONFIG_CPU_V7=y 
     
    115132CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y 
    116133CONFIG_GENERIC_CLOCKEVENTS_BUILD=y 
     134CONFIG_GENERIC_CPUFREQ_KRAIT=y 
    117135CONFIG_GENERIC_IDLE_POLL_SETUP=y 
    118136CONFIG_GENERIC_IO=y 
     
    210228CONFIG_IRQ_FORCED_THREADING=y 
    211229CONFIG_IRQ_WORK=y 
     230CONFIG_KPSS_XCC=y 
     231CONFIG_KRAITCC=y 
     232CONFIG_KRAIT_CLOCKS=y 
     233CONFIG_KRAIT_L2_ACCESSORS=y 
    212234# CONFIG_LEDS_REGULATOR is not set 
    213235CONFIG_LIBFDT=y 
     
    223245CONFIG_MFD_QCOM_RPM=y 
    224246# CONFIG_MFD_SPMI_PMIC is not set 
     247CONFIG_MFD_SYSCON=y 
    225248CONFIG_MIGHT_HAVE_CACHE_L2X0=y 
    226249CONFIG_MIGHT_HAVE_PCI=y 
     
    294317CONFIG_PM_CLK=y 
    295318# CONFIG_PM_DEBUG is not set 
     319CONFIG_PM_OPP=y 
    296320CONFIG_PM_SLEEP=y 
    297321CONFIG_PM_SLEEP_SMP=y 
     
    312336CONFIG_QCOM_BAM_DMA=y 
    313337CONFIG_QCOM_GSBI=y 
     338CONFIG_QCOM_HFPLL=y 
    314339CONFIG_QCOM_SCM=y 
    315340CONFIG_QCOM_WDT=y 
  • trunk/target/linux/ipq806x/patches-3.18/700-add-gmac-dts-suport.patch

    r45729 r45730  
    128128 / { 
    129129        model = "Qualcomm IPQ8064"; 
    130 @@ -577,5 +578,42 @@ 
     130@@ -637,5 +638,42 @@ 
    131131                                dr_mode = "host"; 
    132132                        }; 
  • trunk/target/linux/ipq806x/patches-4.0/700-add-gmac-dts-suport.patch

    r45729 r45730  
    128128 / { 
    129129        model = "Qualcomm IPQ8064"; 
    130 @@ -479,5 +480,42 @@ 
     130@@ -539,5 +540,42 @@ 
    131131  
    132132                        status = "disabled"; 
Note: See TracChangeset for help on using the changeset viewer.