Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 18 May 2016 12:54:07 +0200 (CEST) Received: from smtpbguseast2.qq.com ([54.204.34.130]:47599 "EHLO smtpbguseast2.qq.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27029927AbcERKwrcJYk1 (ORCPT ); Wed, 18 May 2016 12:52:47 +0200 X-QQ-mid: bizesmtp3t1463568741t089t095 Received: from localhost.localdomain (unknown [222.92.8.142]) by esmtp4.qq.com (ESMTP) with id ; Wed, 18 May 2016 18:52:20 +0800 (CST) X-QQ-SSF: 01100000002000F0FF50000A0000000 X-QQ-FEAT: 3jlOKZxptE4beTid3bIc5lG/vY0McIy4J4sjpQuBtsXWloOL6g94M0oQXPsLB 16I04JRAUzzeiMqGpba+cgvI40Ac1qrIdrtuE732eNHM6cJz9kgpu+PueUoxw35Ltsjht5B aa4hDeHg3fusmHVbEzb9B7+Gx+var2GFAil7Sg3A2LnVc1YliuAnDDHddDMUvKyDJ2uE2x/ nOEajPippwyQ4OMmuT89x82KO3YGFthF8QYJqIQv1X8TVwEFWSCiwy/yk2eGWWlvIxMwStK clx1snq0f740aeCakQ5lVvly+H36EJf27ZFw== 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 2/9] MIPS: Loongson: Add Loongson-1A Kconfig options Date: Wed, 18 May 2016 18:49:56 +0800 Message-Id: <1463568601-25042-3-git-send-email-zhoubb@lemote.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463568601-25042-1-git-send-email-zhoubb@lemote.com> References: <1463568601-25042-1-git-send-email-zhoubb@lemote.com> 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: 53504 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 | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ac9bfad..dffa359 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1402,6 +1402,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 @@ -1856,6 +1864,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..35effa8 100644 --- a/arch/mips/loongson32/Kconfig +++ b/arch/mips/loongson32/Kconfig @@ -3,6 +3,22 @@ if MACH_LOONGSON32 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.1 ÿÿÿÿÿÿa