Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 23 Jan 2015 09:55:58 +0100 (CET) Received: from smtpbgau2.qq.com ([54.206.34.216]:51878 "EHLO smtpbgau2.qq.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27010716AbbAWIzx73pwG (ORCPT ); Fri, 23 Jan 2015 09:55:53 +0100 X-QQ-mid: bizesmtp7t1422003304t839t070 Received: from localhost.localdomain (unknown [222.92.8.142]) by esmtp4.qq.com (ESMTP) with id ; Fri, 23 Jan 2015 16:54:56 +0800 (CST) X-QQ-SSF: 01100000002000F0FI42B00A0000000 X-QQ-FEAT: rGijdusqze4DJndk8YbqgjNpQ/TuS0+OWPQ5kKei1kg7xaBC6GcUbrKTMZf2L xXWa0aa7LQEYCbVfqxt4IuUT1i9Oh33XLp0F60sm6M+q3fW97BPhlgd7Ki/yhczE0dPYDE9 zgtpWHYX4ECta6xYoAEASsW1/cjIrc/yhIsNJYG0vtHvTCLDUUz0ffQVU9sFFIKOXkjCrEH EB98nfzXMQvZbcqmL5/x2B95rOAkO1dMptM8hihU5KA== X-QQ-GoodBg: 0 From: Huacai Chen To: Ralf Baechle Cc: John Crispin , "Steven J. Hill" , linux-mips@linux-mips.org, Fuxin Zhang , Zhangjin Wu , Huacai Chen , Hongliang Tao Subject: [PATCH V7 0/8] MIPS: Loongson-3: Improve kernel functionality Date: Fri, 23 Jan 2015 16:54:47 +0800 Message-Id: <1422003289-2958-1-git-send-email-chenhc@lemote.com> X-Mailer: git-send-email 1.7.7.3 X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 45444 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: chenhc@lemote.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips This patchset is prepared for the next 3.20 release for Linux/MIPS. In this series we promote Loongson-3's ISA level to MIPS64R1 since it is not fully compatible with MIPS64R2. Multi-node DMA and coherent cache features are both added here. LEFI firmware interface is improved to make the kernel more generic (machtypes can be dropped). Besides, we add some basic platform drivers (GPIO, CPU Hwmon, ACPI init, oprofile, HPET and CPUFreq) for Loongson-3. V1 -> V2: 1, Add a patch to fix Loongson's CCA setting. 2, Rework the third patch. 3, Rebase the code for 3.19. V2 -> V3: 1, Remove patches which have merged in upstream. 2, Moving GPIO driver from arch/mips to drivers/gpio directory. 3, Optimize cacheflush by moving cpu_has_coherent_cache checking from local version to global version. V3 -> V4: 1, Don't build CPU Hwmon driver unconditionally. 2, Split the 2nd patch (Loongson GPIO driver) to two patches. V4 -> V5: 1, Cleanup Loongson-2F's GPIO driver before move to drivers/gpio. V5 -> V6: 1, Add perf support for Loongson-3. 2, Rebase the code for 3.20. V6 -> V7: 1, Rework the third and fifth patches. Huacai Chen(8): MIPS: Loongson: Introduce and use cpu_has_coherent_cache feature. MIPS: perf: Add hardware perf events support for Loongson-3. MIPS: Cleanup Loongson-2F's gpio driver. MIPS: Move Loongson GPIO driver to drivers/gpio. GPIO: Add Loongson-3A/3B GPIO driver support. MIPS: Loongson-3: Add CPU Hwmon platform driver. MIPS: Loongson-3: Add chipset ACPI platform driver. MIPS: Loongson: Make CPUFreq usable for Loongson-3. Signed-off-by: Huacai Chen Signed-off-by: Hongliang Tao --- arch/mips/Kconfig | 6 +- arch/mips/configs/lemote2f_defconfig | 1 + arch/mips/configs/loongson3_defconfig | 1 + arch/mips/include/asm/cpu-features.h | 3 + .../asm/mach-loongson/cpu-feature-overrides.h | 1 + arch/mips/include/asm/mach-loongson/gpio.h | 15 +- arch/mips/include/asm/mach-loongson/loongson.h | 5 + arch/mips/kernel/perf_event_mipsxx.c | 71 ++++++ arch/mips/kernel/smp.c | 3 +- arch/mips/loongson/Kconfig | 1 + arch/mips/loongson/common/Makefile | 1 - arch/mips/loongson/common/env.c | 9 + arch/mips/loongson/common/gpio.c | 139 ----------- arch/mips/loongson/common/pci.c | 6 + arch/mips/loongson/common/platform.c | 13 +- arch/mips/loongson/loongson-3/Makefile | 2 +- arch/mips/loongson/loongson-3/clock.c | 191 ++++++++++++++++ arch/mips/mm/c-r4k.c | 21 ++ drivers/cpufreq/Kconfig | 15 ++ drivers/cpufreq/Makefile | 1 + drivers/cpufreq/loongson3_cpufreq.c | 240 ++++++++++++++++++++ drivers/gpio/Kconfig | 6 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-loongson.c | 115 ++++++++++ drivers/platform/Kconfig | 3 + drivers/platform/Makefile | 1 + drivers/platform/mips/Kconfig | 26 ++ drivers/platform/mips/Makefile | 2 + drivers/platform/mips/acpi_init.c | 131 +++++++++++ drivers/platform/mips/cpu_hwmon.c | 206 +++++++++++++++++ 30 files changed, 1083 insertions(+), 153 deletions(-) delete mode 100644 arch/mips/loongson/common/gpio.c create mode 100644 arch/mips/loongson/loongson-3/clock.c create mode 100644 drivers/cpufreq/loongson3_cpufreq.c create mode 100644 drivers/gpio/gpio-loongson.c create mode 100644 drivers/platform/mips/Kconfig create mode 100644 drivers/platform/mips/Makefile create mode 100644 drivers/platform/mips/acpi_init.c create mode 100644 drivers/platform/mips/cpu_hwmon.c -- 1.7.7.3