From patchwork Tue Aug 29 08:38:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binbin Zhou X-Patchwork-Id: 9926897 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B877E6022E for ; Tue, 29 Aug 2017 08:46:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A79B628898 for ; Tue, 29 Aug 2017 08:46:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C33F28897; Tue, 29 Aug 2017 08:46:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FAA228897 for ; Tue, 29 Aug 2017 08:46:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751663AbdH2IqK (ORCPT ); Tue, 29 Aug 2017 04:46:10 -0400 Received: from SMTPBG179.QQ.COM ([119.147.194.222]:50689 "EHLO smtpbg179.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751670AbdH2IqH (ORCPT ); Tue, 29 Aug 2017 04:46:07 -0400 X-Greylist: delayed 466 seconds by postgrey-1.27 at vger.kernel.org; Tue, 29 Aug 2017 04:46:06 EDT X-QQ-mid: bizesmtp5t1503995875tp51mpnyw Received: from software.domain.org (unknown [222.92.8.142]) by esmtp4.qq.com (ESMTP) with id ; Tue, 29 Aug 2017 16:37:54 +0800 (CST) X-QQ-SSF: 01100000008000F0FJF1B00A0000000 X-QQ-FEAT: 7eDRq1lSlwuLAQqnPDolwS5hO76kxenU+NEZckGoergHXiy20aLIRtjQTklU5 FY8bc2hED2dLg3r5DeoMaLFRceG7UPFeHGk8hz7P40pHQH9zXkvsD3KrhneOchORcaohtyS 3EsTonR2cANatlIe21VeChgMb2S3qxljZVPFAFT4ATLDyngOTJt4ozdIbfQuxVDxdoboK6y yWUC+KFOdKFVUc29aHY87eyfslPCSmEr1Sy4JMlwRn84ZAP4ezAy+BvRA2HY4RMscNHSBdT CQmMX0U43UroEc/yg3lYHMnohd4ubdHW0orx7DXuBbEvZEconobO4vIAg= X-QQ-GoodBg: 0 From: Binbin Zhou To: Ralf Baechle , James Hogan Cc: John Crispin , "Steven J . Hill" , Aurelien Jarno , Fuxin Zhang , Zhangjin Wu , Kelvin Cheung , Yang Ling , =?UTF-8?q?=E8=B0=A2=E8=87=B4=E9=82=A6?= , Stephen Boyd , Michael Turquette , linux-mips@linux-mips.org, linux-clk@vger.kernel.org, Binbin Zhou , HuaCai Chen Subject: [PATCH RESEND v8 4/9] MIPS: Loongson: Add Loongson-1A Kconfig options Date: Tue, 29 Aug 2017 16:38:41 +0800 Message-Id: <1503995926-17125-5-git-send-email-zhoubb@lemote.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1503995926-17125-1-git-send-email-zhoubb@lemote.com> References: <1503995926-17125-1-git-send-email-zhoubb@lemote.com> X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:lemote.com:qybgweb:qybgweb14 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added Kconfig options include: Loongson-1A CPU and machine definition, CPU cache features, 32-bit kernel and early printk support. Signed-off-by: Binbin Zhou Signed-off-by: HuaCai Chen --- arch/mips/Kconfig | 12 ++++++++++++ arch/mips/loongson32/Kconfig | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 9891a12..6a4373a8 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1424,6 +1424,15 @@ config CPU_LOONGSON2F have a similar programming interface with FPGA northbridge used in Loongson2E. +config CPU_LOONGSON1A + bool "Loongson 1A" + depends on SYS_HAS_CPU_LOONGSON1A + select CPU_LOONGSON1 + select LEDS_GPIO_REGISTER + help + The Loongson 1A is a 32-bit SoC, which implements the MIPS32 + release 2 instruction set. + config CPU_LOONGSON1B bool "Loongson 1B" depends on SYS_HAS_CPU_LOONGSON1B @@ -1891,6 +1900,9 @@ config SYS_HAS_CPU_LOONGSON2F select CPU_SUPPORTS_ADDRWINCFG if 64BIT select CPU_SUPPORTS_UNCACHED_ACCELERATED +config SYS_HAS_CPU_LOONGSON1A + bool + config SYS_HAS_CPU_LOONGSON1B bool diff --git a/arch/mips/loongson32/Kconfig b/arch/mips/loongson32/Kconfig index 3c0c2f2..6e0f6ec 100644 --- a/arch/mips/loongson32/Kconfig +++ b/arch/mips/loongson32/Kconfig @@ -1,8 +1,28 @@ if MACH_LOONGSON32 +config ZONE_DMA + prompt "Zone DMA" + bool + choice prompt "Machine Type" +config LOONGSON1_LS1A + bool "Loongson LS1A board" + select CEVT_R4K if !MIPS_EXTERNAL_TIMER + select CSRC_R4K if !MIPS_EXTERNAL_TIMER + select SYS_HAS_CPU_LOONGSON1A + select DMA_NONCOHERENT + select BOOT_ELF32 + select IRQ_MIPS_CPU + select SYS_SUPPORTS_32BIT_KERNEL + select SYS_SUPPORTS_LITTLE_ENDIAN + select SYS_SUPPORTS_HIGHMEM + select SYS_SUPPORTS_MIPS16 + select SYS_HAS_EARLY_PRINTK + select USE_GENERIC_EARLY_PRINTK_8250 + select COMMON_CLK + config LOONGSON1_LS1B bool "Loongson LS1B board" select CEVT_R4K if !MIPS_EXTERNAL_TIMER