From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 07 Feb 2017 08:33:29 +0100 (CET) Received: from smtpbg278.qq.com ([113.108.11.203]:59870 "EHLO smtpbg278.qq.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23992903AbdBGHbJdaXHm (ORCPT ); Tue, 7 Feb 2017 08:31:09 +0100 X-QQ-mid: bizesmtp16t1486452572tifvkcdd Received: from software.domain.org (unknown [222.92.8.142]) by esmtp4.qq.com (ESMTP) with id ; Tue, 07 Feb 2017 15:29:31 +0800 (CST) X-QQ-SSF: 01100000002000F0FG61B00A0000000 X-QQ-FEAT: CtHL3CSvZC0VKuaQ3K+0u+9UcEHYtXVYBBFrTfPJIwbpZma4KJpk6NaMJSgSG kTRCi49eEkvQV+nDtk8XqfVx4QHF5HBhwOBjgb5IxTRzv37YmBrcTbNmw5pygYgAl/9aw/0 fnNvXKiCp6eGH6JkDaj/Ai8IRi5dJRXCXlevwmB4FZykQWZrf4+u7GTBFnLwRzyl4fFaMH3 OrgWBl1+nODf27WCIIRzOPvd/ZPHZ+Px464XSxFJ6ZHQxfOQFrwxgzv/K9XJH2uDDNsC/uJ Mt5hWlswTWacC/pwJugY5Xhc4hpdpIr9ODdw== X-QQ-GoodBg: 0 From: Binbin Zhou To: Ralf Baechle Cc: John Crispin , "Steven J . Hill" , linux-mips@linux-mips.org, Fuxin Zhang , Zhangjin Wu , Kelvin Cheung , Yang Ling , Binbin Zhou , HuaCai Chen Subject: [PATCH v4 4/8] MIPS: Loongson: Add Loongson-1A Kconfig options Date: Tue, 7 Feb 2017 15:29:06 +0800 Message-Id: <1486452550-10721-5-git-send-email-zhoubb@lemote.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1486452550-10721-1-git-send-email-zhoubb@lemote.com> References: <1486452550-10721-1-git-send-email-zhoubb@lemote.com> X-QQ-SENDSIZE: 520 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: 56695 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: zhoubb@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 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 b969522..b4f59c5 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1420,6 +1420,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 @@ -1884,6 +1893,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 -- 2.9.3