Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 01 Mar 2016 01:48:49 +0100 (CET) Received: from mail-pf0-f196.google.com ([209.85.192.196]:35898 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27015060AbcCAAsS6XL58 (ORCPT ); Tue, 1 Mar 2016 01:48:18 +0100 Received: by mail-pf0-f196.google.com with SMTP id q129so3618006pfb.3; Mon, 29 Feb 2016 16:48:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UOh90tlVJwZ0LnNFzPzF7ryTvPk0Xfp4dTSr0J06Vws=; b=e68AW1Br6dyD7bnwXQxELR9G7B1kHcXTtHphQonqFSLAbGMansk+AuALmLSTDfjwWp YY2GbJ6VhjXMot1LXFcld4FbCMB5yoblIK+VNsgNg5NEXqTGpo2N2R9XdN5u/uE8gWdC TVjaDDxO4ksusWCG6glxwv8f5S/J0Yq3QvvIkcXWsy3DDFip/GLqbfwNsOZsau6E74U1 T+bLDdoKSsCB+V2Y3ULkbQLgFj/cS4gvC3thCyIJmZCk4S+8yulc60UWh0kepRHfnLdX KQuGSfxhPcINLpD/sP7nhk7IdfL+cDurNvwi4JonLvblFZ42LtHEdlPx4OomfIhcgkIM 7nSg== X-Gm-Message-State: AD7BkJIHNgZJFSvUqRx4akk8irje8KooswmnL740rio46s91PKLU18NWv9qghcTJRUqIcQ== X-Received: by 10.98.93.1 with SMTP id r1mr26010080pfb.57.1456793292521; Mon, 29 Feb 2016 16:48:12 -0800 (PST) Received: from software.domain.org ([222.92.8.142]) by smtp.gmail.com with ESMTPSA id s197sm40683975pfs.62.2016.02.29.16.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Feb 2016 16:48:12 -0800 (PST) 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 v3 2/8] MIPS: Loongson: Add Loongson-1A Kconfig options Date: Tue, 1 Mar 2016 08:48:10 +0800 Message-Id: <1456793296-17120-3-git-send-email-zhoubb@lemote.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1456793296-17120-1-git-send-email-zhoubb@lemote.com> References: <1456793296-17120-1-git-send-email-zhoubb@lemote.com> 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: 52365 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 c5bf89cb..a6c157e 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1373,6 +1373,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 @@ -1821,6 +1829,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.1