From patchwork Fri Feb 8 14:29:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 1038675 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZFj4CyqH"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="Hue20UrH"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43wyJ15ggJz9sDr for ; Sat, 9 Feb 2019 01:29:53 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=wk8UswHv/h1ZmFNDlX87t/tfSUILQnMC5+DOz20YRno=; b=ZFj 4CyqHlisbc+fdtotExsZFYGpLvEi4GW9o0f5iMpQLQKJ/LUSFj/KRqrY+H6ovedunMtQbBut1XfY1 ycNKXahQq1FWRoeJnZO3SYBgxhhdSjcEVC6MLqLnTtG+LjBKCY9pbIMy7ZGYvCnrdsmvRFnrsNLl3 9keHrG5PzVVQVnsy13Hsh6yanNxwcSfSMiKZopGGbWQBO8JZJElltffGg65K6sY0zVmBZQsEVas95 T9r8kvqSNZQMsD1cOpMYy6ahsNL747BhHX6Vvn4PCzVwDwKbus47tezgKiHts/fPVtKgD1+am73gn vxnhRW7ImTV54jDsn/9+SYOBorqRdiQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs7A7-000800-Sa; Fri, 08 Feb 2019 14:29:51 +0000 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs7A5-0007zK-Eh for linux-snps-arc@lists.infradead.org; Fri, 08 Feb 2019 14:29:50 +0000 Received: from mailhost.synopsys.com (dc8-mailhost2.synopsys.com [10.13.135.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id 267FB24E0CCC; Fri, 8 Feb 2019 06:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1549636187; bh=7H55HUQ8hm8WyezpQWvaRTfNEBPDfJXniqLWxMya3e0=; h=From:To:Cc:Subject:Date:From; b=Hue20UrHX0FILwB2MLzaBBKjKFPyzqw2mcxeiyEc8lOhE7UPe1wdicYkkfLhbnpAS bqMRGHhntxN9lLwTRXAh/Bb+M/1GhdGbkpqBwkmGNDQE0g9zRuBs3EW/Y9wsge6Fo8 BkyqEKVqhRsCse2pMXKkWXmxemB1OdD30+QlpfLIzbSJ3rYmFODNLTwh8/y8ya+6lC GAdnJMBYw7TIfttAX1xyFtgPeJZRnUftj0mGn9b3VBGkS4eJRu50MplWf6zzoF/rHs eAYOjdyzl4Y5N7nLO0jegB88qMIffrbZ1CQeKxnQl40DntO2QAzr741qqy6KxsylWo EnMTSXOyTkp2w== Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 8B3CEA005A; Fri, 8 Feb 2019 14:29:44 +0000 (UTC) From: Alexey Brodkin To: linux-yocto@yoctoproject.org Subject: [PATCH] ARC: Add nsimhs- and hsdk-standard configs Date: Fri, 8 Feb 2019 17:29:40 +0300 Message-Id: <20190208142940.12691-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190208_062949_499711_120C77A7 X-CRM114-Status: GOOD ( 15.40 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.47.9 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bruce Ashfield , linux-snps-arc@lists.infradead.org, Alexey Brodkin , Ross Burton , Khem Raj MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org With ARC support ramping-up in upstream OE we're ready to build more complicated distributions and linux-yocto is a nice and configurable base for that. This commit adds support of 1 simulated board (nSIM) and the mast affordable and powerful to date development board (HSDK). Once Qemu port for ARC is functional (it's being actively developed now) we'll switch from nSIM to Qemu. Still it would be really good to keep nSIM support in linux-yocto for now as it allows for simpler testing as compared to real HW. Signed-off-by: Alexey Brodkin Cc: Bruce Ashfield --- arch/arc/arc.cfg | 8 ++++++ arch/arc/arc.scc | 5 ++++ bsp/hsdk/hsdk-standard.scc | 7 +++++ bsp/hsdk/hsdk.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++ bsp/hsdk/hsdk.scc | 7 +++++ bsp/nsimhs/nsimhs-standard.scc | 7 +++++ bsp/nsimhs/nsimhs.cfg | 9 +++++++ bsp/nsimhs/nsimhs.scc | 1 + 8 files changed, 105 insertions(+) create mode 100644 arch/arc/arc.cfg create mode 100644 arch/arc/arc.scc create mode 100644 bsp/hsdk/hsdk-standard.scc create mode 100644 bsp/hsdk/hsdk.cfg create mode 100644 bsp/hsdk/hsdk.scc create mode 100644 bsp/nsimhs/nsimhs-standard.scc create mode 100644 bsp/nsimhs/nsimhs.cfg create mode 100644 bsp/nsimhs/nsimhs.scc diff --git a/arch/arc/arc.cfg b/arch/arc/arc.cfg new file mode 100644 index 00000000..761f3ed9 --- /dev/null +++ b/arch/arc/arc.cfg @@ -0,0 +1,8 @@ +CONFIG_ARC=y +CONFIG_HIGH_RES_TIMERS=y + +CONFIG_ARC_CACHE=y + +# Enable unwinding +CONFIG_ARC_DBG=y +CONFIG_ARC_DW2_UNWIND=y diff --git a/arch/arc/arc.scc b/arch/arc/arc.scc new file mode 100644 index 00000000..bcc7c330 --- /dev/null +++ b/arch/arc/arc.scc @@ -0,0 +1,5 @@ +# patches are for everyone, but the kconfig data is just for ARC builds. +if [ "$KARCH" = "arc" ]; then + kconf hardware arc.cfg + include cfg/timer/hz_100.scc +fi diff --git a/bsp/hsdk/hsdk-standard.scc b/bsp/hsdk/hsdk-standard.scc new file mode 100644 index 00000000..29c46047 --- /dev/null +++ b/bsp/hsdk/hsdk-standard.scc @@ -0,0 +1,7 @@ +define KMACHINE hsdk +define KTYPE standard +define KARCH arc + +include ktypes/standard/standard.scc + +include hsdk.scc diff --git a/bsp/hsdk/hsdk.cfg b/bsp/hsdk/hsdk.cfg new file mode 100644 index 00000000..6d439021 --- /dev/null +++ b/bsp/hsdk/hsdk.cfg @@ -0,0 +1,61 @@ +# ARCv2 ISA +CONFIG_ISA_ARCV2=y + +# HSDK custom SoC +CONFIG_ARC_SOC_HSDK=y +CONFIG_SMP=y + +# Build default .dtb inside kernel image as a good starting point +CONFIG_ARC_BUILTIN_DTB_NAME="hsdk" + +# Enable passing command-line and .dtb from U-Boot +CONFIG_ARC_UBOOT_SUPPORT=y + +# Auto-selected by U-Boot support but if it is enabled slave cores won't start +# CONFIG_ARC_SMP_HALT_ON_RESET is not set + +# Serial port +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_8250_DW=y +CONFIG_SERIAL_OF_PLATFORM=y + +# DesignWare MobileStorage AKA DW MMC +CONFIG_MMC=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_PLTFM=y +CONFIG_MMC_DW=y + +# We use non-standard link base 0x9z to accommodate DCCM mapped to 0x8z +# on cores 1 & 3. +# Though we move xCCMs to 0x6z on early boot and may use all avaialble DDR +# starting from normal 0x8z thus LINUX_RAM_BASE. +CONFIG_LINUX_LINK_BASE=0x90000000 +CONFIG_LINUX_RAM_BASE=0x80000000 + +# Ethernet +CONFIG_NET_VENDOR_STMICRO=y +CONFIG_STMMAC_ETH=y +CONFIG_STMMAC_PLATFORM=y +CONFIG_MICREL_PHY=y + +# GPIO +CONFIG_GPIOLIB=y +CONFIG_GPIO_SYSFS=y +CONFIG_GPIO_DWAPB=y + +# Video +CONFIG_DRM=y +CONFIG_DRM_UDL=y +CONFIG_FB=y +CONFIG_FRAMEBUFFER_CONSOLE=y + +# Required for SOFTLOCKUP_DETECTOR +CONFIG_DEBUG_KERNEL=y + +# Soft lock-up detector +CONFIG_SOFTLOCKUP_DETECTOR=y +CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=10 + +# Performance counters +CONFIG_PERF_EVENTS=y diff --git a/bsp/hsdk/hsdk.scc b/bsp/hsdk/hsdk.scc new file mode 100644 index 00000000..2cfcb654 --- /dev/null +++ b/bsp/hsdk/hsdk.scc @@ -0,0 +1,7 @@ +include features/input/input.scc +include features/usb/ehci-hcd.scc +include features/usb/ohci-hcd.scc + +include cfg/usb-mass-storage.scc + +kconf hardware hsdk.cfg diff --git a/bsp/nsimhs/nsimhs-standard.scc b/bsp/nsimhs/nsimhs-standard.scc new file mode 100644 index 00000000..da749cd0 --- /dev/null +++ b/bsp/nsimhs/nsimhs-standard.scc @@ -0,0 +1,7 @@ +define KMACHINE nsimhs +define KTYPE standard +define KARCH arc + +include ktypes/standard/standard.scc + +include nsimhs.scc diff --git a/bsp/nsimhs/nsimhs.cfg b/bsp/nsimhs/nsimhs.cfg new file mode 100644 index 00000000..2475825d --- /dev/null +++ b/bsp/nsimhs/nsimhs.cfg @@ -0,0 +1,9 @@ +# ARCv2 ISA +CONFIG_ISA_ARCV2=y + +# Legacy ARC UART +CONFIG_SERIAL_ARC=y +CONFIG_SERIAL_ARC_CONSOLE=y + +# Built-in .dtb +CONFIG_ARC_BUILTIN_DTB_NAME="nsim_hs" diff --git a/bsp/nsimhs/nsimhs.scc b/bsp/nsimhs/nsimhs.scc new file mode 100644 index 00000000..93a3ab1b --- /dev/null +++ b/bsp/nsimhs/nsimhs.scc @@ -0,0 +1 @@ +kconf hardware nsimhs.cfg