Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 17 Jun 2015 12:14:29 +0200 (CEST) Received: from smtpbg298.qq.com ([184.105.67.102]:46391 "EHLO smtpbg298.qq.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27007818AbbFQKOGgp6pp (ORCPT ); Wed, 17 Jun 2015 12:14:06 +0200 X-QQ-mid: bizesmtp4t1434536032t335t049 Received: from software.domain.org (unknown [222.92.8.142]) by esmtp4.qq.com (ESMTP) with id ; Wed, 17 Jun 2015 18:13:51 +0800 (CST) X-QQ-SSF: 01100000002000F0F742000A0000000 X-QQ-FEAT: 9NFkmNiL4hdfE73Rrueiaqg/QNKc1JXCjFw5yDPi/+dN4EDKOAahp1X9zWLAz xRrbtYJ7/Ot+RAA51XPNIJeAyj86dfnCK/V7mE9SpdhkFMgYKQwn62rNHh7c93DkjJNL3kb 6Y9Tmno5Xm+xGEAQG/1s4yAI63iMVsHmhM3UdnBpoubapV36bcGRb8QSuPf3zpIcwSA2gcc 64fPlDqvDUzcjscY9niF05bdxguZ899xwQ0z+EMWJ7E2aWEHo9sN5+yPLdsCNM20= 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 , Binbin Zhou , Chunbo Cui , Huacai Chen Subject: [PATCH v2 2/8] MIPS: Loongson: Add Loongson-1A Kconfig options Date: Wed, 17 Jun 2015 18:32:40 +0800 Message-Id: <1434537166-5385-3-git-send-email-zhoubb@lemote.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1434537166-5385-1-git-send-email-zhoubb@lemote.com> References: <1434537166-5385-1-git-send-email-zhoubb@lemote.com> X-QQ-SENDSIZE: 520 X-QQ-FName: A30F4AF172BD46FAAF64F0205EF71FF0 X-QQ-LocalIP: 127.0.0.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: 47951 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: Chunbo Cui Signed-off-by: Binbin Zhou Signed-off-by: Huacai Chen --- arch/mips/Kconfig | 11 +++++++++++ arch/mips/loongson32/Kconfig | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index cf09f42..0918915 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1327,6 +1327,14 @@ 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 + 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 @@ -1770,6 +1778,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 7704f20..741867c 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 + select CSRC_R4K + 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 -- 1.9.0