From patchwork Wed Jan 23 16:48:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1030056 X-Patchwork-Delegate: uboot@andestech.com 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.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="bNtNWgaR"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="TUCzcOrE"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43lB8N5fF4z9s3l for ; Thu, 24 Jan 2019 03:49:24 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 69EC8C21DAF; Wed, 23 Jan 2019 16:49:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_DNSWL_BLOCKED, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 5DEA5C21DED; Wed, 23 Jan 2019 16:49:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2B5DCC21DA6; Wed, 23 Jan 2019 16:49:04 +0000 (UTC) Received: from esa5.hgst.iphmx.com (esa5.hgst.iphmx.com [216.71.153.144]) by lists.denx.de (Postfix) with ESMTPS id 5D40AC21DB6 for ; Wed, 23 Jan 2019 16:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1548262140; x=1579798140; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+1dHWBdw2XLpAcMfCWYr+PqC98zOpyZ5wR1sDvmGbmU=; b=bNtNWgaRHnQ42RQ2SLO/Hr8rcEKkzqKOswYcAeyVKToMNr2z0QsvgCrb VCi/rG3xK8Jfcjy+VSfj5uPKsr4vjvpXLNBAbEFu7+1EG/tNOILdoX2on j/nXJViL0S+uVchzkLVYbxHCX4x/fADkCsIWBW9EEzu9dHmWMVPuS8HVh A9RjhBw79xfWqSQjLtVVBFFjcGTVbIgdv5ZBy3atCM0ZGllYs8ny//E/H oIg7HsF+1PVqC6CidlM5X4et+UhPANznKVC/gDJLzj5cY9lCdOzp8Oky4 s6DQBnZ8lGuYMUEW62amfOQaGVUL2giIKfvdjCbfreWntPXY3qwtMFGeV Q==; X-IronPort-AV: E=Sophos;i="5.56,512,1539619200"; d="scan'208";a="100839795" Received: from mail-sn1nam04lp2057.outbound.protection.outlook.com (HELO NAM04-SN1-obe.outbound.protection.outlook.com) ([104.47.44.57]) by ob1.hgst.iphmx.com with ESMTP; 24 Jan 2019 00:48:57 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iHDjkn2y8af6w0D8nrocEn5MgT/9t0sM/TjNyKkoQ2c=; b=TUCzcOrEeq23uwZpimGN84SPXRmMmzHi67pCDRjp7wXD7fSMT6M8t6phyO9TN2e58eFXhZ+C+dseb7jLuaD8wAmFPWQg8PkLj4gDcUZqniINQydiyOZLJ2MY/yJBk7/0PHIYd/cnvgzlYHsgn+td02eH0FRC2MEdG2aUcG3IDco= Received: from BYAPR04MB5303.namprd04.prod.outlook.com (20.178.49.148) by BYAPR04MB4405.namprd04.prod.outlook.com (20.176.252.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.16; Wed, 23 Jan 2019 16:48:56 +0000 Received: from BYAPR04MB5303.namprd04.prod.outlook.com ([fe80::add1:92cc:65d7:5d94]) by BYAPR04MB5303.namprd04.prod.outlook.com ([fe80::add1:92cc:65d7:5d94%2]) with mapi id 15.20.1537.031; Wed, 23 Jan 2019 16:48:56 +0000 From: Anup Patel To: Rick Chen , Bin Meng , Joe Hershberger , Michal Simek , Michal Simek , Lukas Auer , Masahiro Yamada , Simon Glass Thread-Topic: [PATCH v4 03/15] riscv: Rename cpu/qemu to cpu/generic Thread-Index: AQHUszuHSZ3XzCWY0Uyflvi4RrpwQg== Date: Wed, 23 Jan 2019 16:48:55 +0000 Message-ID: <20190123164808.128994-4-anup.patel@wdc.com> References: <20190123164808.128994-1-anup.patel@wdc.com> In-Reply-To: <20190123164808.128994-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR01CA0077.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::17) To BYAPR04MB5303.namprd04.prod.outlook.com (2603:10b6:a03:c8::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [49.207.49.227] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR04MB4405; 6:zbDHht1WfPhKKFSMq5Xec25xKeVmwC2RD+ZneRWFRoyQxcu5ILiZNwgjLRRvbpbJk4KYUZN4D/JWVOrNtHBvrQ7CzvfX3+f+dSYfVmet/xaVLcnVtvYPruxlJIXlFQa+/CJBySnPI+j3M83NH2z5xLXDUpmkeyfabB2iJ+EDWh3ompj+jIhD8WSimeKA+R7aPoc/OSDec+FjuN84KHfP3I1LqLtlAk7miR9qFTDyOC/5QAo+ITFaDM85maOB14TbuiYZ9tRcTnPS2bRTD2PCo7RPpVA9dNFuDR+vv2OYVOFWzZcW+nNpl/QXB2nw608nlpi3r5XHBxp0qwaZM+xM2bbCQhGKjIVsym7/E3xWbLg8aEIl7sCWvedS3V1KwO/2fatUiFjVnP19qPk83KRXKdULI435Ask2ULYcUBui5zbGhi5v172c7yyimt8Qgk1vJIi5bToXFg3FuhYKJoXdOw==; 5:XR+aTuKwku30YqHvaWWXXy+qEtOBUeCRsXCAXIcfWkfUeG/KbRpzhuDe9ZUf+DaVWdUvRU49qEKjQn696AnPjEfGxUDQs81RzjonTHh72/KaZG3zGmuTyKFscTy9eWtLz+1hP0Q/XEbhpmZE/gZvAhkHdEfzdgf3fDTyNCFKNBIaezs2bheu/Gtbt0eQ+X91egoQb7Sk5xidVMKYUTNzJQ==; 7:LHswrWMgJWCxR3PVJPVykqhDeUBfO3rOjjcFKlDTpAZWQIyURnd7wSA8b29II4Nir9OCKxqRjEN5vBA+EmQItSGEDl8PBtONOytGx1SSYKUGZlOKFxjuSq1xCzK5fvvJ4onEFZX7irZaKOSD5l9wWA== x-ms-office365-filtering-correlation-id: 12e6825f-a1cf-42a6-664a-08d68152a9d2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:BYAPR04MB4405; x-ms-traffictypediagnostic: BYAPR04MB4405: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 0926B0E013 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(376002)(39860400002)(136003)(396003)(366004)(199004)(189003)(72206003)(8936002)(478600001)(97736004)(50226002)(14454004)(186003)(2906002)(105586002)(256004)(81166006)(81156014)(7736002)(305945005)(106356001)(11346002)(8676002)(2616005)(476003)(110136005)(54906003)(66066001)(36756003)(446003)(316002)(68736007)(71200400001)(99286004)(6436002)(52116002)(76176011)(6116002)(3846002)(486006)(44832011)(25786009)(55236004)(6506007)(7416002)(86362001)(1076003)(6486002)(386003)(26005)(102836004)(4326008)(53936002)(39060400002)(6512007)(71190400001)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR04MB4405; H:BYAPR04MB5303.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: WsSPtxQh+XOOQkC9ttESUOJShaKqSAXVkqLMB215nj/DhSV3/02NMXJk/67Hhd0ph+jhmOu6JTE8kQotY3ZxoXDA1M9kIhmnmnyp3yD3/JxtwFp5TMmvpJXl5I3GdeSJcNfRAiVka9C/6I/Ld6FvbrMhjWVWovJV+cecCThdchqdTi6PnkiYC7jlP99x3AHzN4fjljovuRVDU32Uc/YOOYZlwOs/pNxstgYV93bBhI+ffXNMbustXnBAcThBqMbKZxO5dgHuI8dqRuDYoPo9KultZ8e1Xu/YKLvgFfaGfs9zsTnJywHECYU6DkpBrRWHzficSSb4KUvP0x3AC3IJBVE0FbqXY8pFaOztPsSbwP5jx/Msvruc1zPE6bA7Omy5B6qweaCvb76/E1n8Yr/n6qnqkXY9S6PQ9wwvpYrKzzc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12e6825f-a1cf-42a6-664a-08d68152a9d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jan 2019 16:48:51.7192 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4405 Cc: Palmer Dabbelt , U-Boot Mailing List , Alexander Graf , Christoph Hellwig , Paul Walmsley Subject: [U-Boot] [PATCH v4 03/15] riscv: Rename cpu/qemu to cpu/generic X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The QEMU CPU support under arch/riscv is pretty much generic and works fine for SiFive Unleashed as well. In fact, there will be quite a few RISC-V SOCs for which QEMU CPU support will work fine. This patch renames cpu/qemu to cpu/generic to indicate the above fact. If there are SOC specific errata workarounds required in cpu/generic then those can be done at runtime in cpu/generic based on CPU vendor specific DT compatible string. Signed-off-by: Anup Patel Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer Reviewed-by: Bin Meng --- arch/riscv/Kconfig | 2 +- arch/riscv/cpu/{qemu => generic}/Kconfig | 2 +- arch/riscv/cpu/{qemu => generic}/Makefile | 0 arch/riscv/cpu/{qemu => generic}/cpu.c | 0 arch/riscv/cpu/{qemu => generic}/dram.c | 0 board/emulation/qemu-riscv/Kconfig | 4 ++-- 6 files changed, 4 insertions(+), 4 deletions(-) rename arch/riscv/cpu/{qemu => generic}/Kconfig (91%) rename arch/riscv/cpu/{qemu => generic}/Makefile (100%) rename arch/riscv/cpu/{qemu => generic}/cpu.c (100%) rename arch/riscv/cpu/{qemu => generic}/dram.c (100%) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index c45e4d73a8..6879047ff7 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -22,7 +22,7 @@ source "board/emulation/qemu-riscv/Kconfig" # platform-specific options below source "arch/riscv/cpu/ax25/Kconfig" -source "arch/riscv/cpu/qemu/Kconfig" +source "arch/riscv/cpu/generic/Kconfig" # architecture-specific options below diff --git a/arch/riscv/cpu/qemu/Kconfig b/arch/riscv/cpu/generic/Kconfig similarity index 91% rename from arch/riscv/cpu/qemu/Kconfig rename to arch/riscv/cpu/generic/Kconfig index f48751e6de..1d6ab5032d 100644 --- a/arch/riscv/cpu/qemu/Kconfig +++ b/arch/riscv/cpu/generic/Kconfig @@ -2,7 +2,7 @@ # # Copyright (C) 2018, Bin Meng -config QEMU_RISCV +config GENERIC_RISCV bool select ARCH_EARLY_INIT_R imply CPU diff --git a/arch/riscv/cpu/qemu/Makefile b/arch/riscv/cpu/generic/Makefile similarity index 100% rename from arch/riscv/cpu/qemu/Makefile rename to arch/riscv/cpu/generic/Makefile diff --git a/arch/riscv/cpu/qemu/cpu.c b/arch/riscv/cpu/generic/cpu.c similarity index 100% rename from arch/riscv/cpu/qemu/cpu.c rename to arch/riscv/cpu/generic/cpu.c diff --git a/arch/riscv/cpu/qemu/dram.c b/arch/riscv/cpu/generic/dram.c similarity index 100% rename from arch/riscv/cpu/qemu/dram.c rename to arch/riscv/cpu/generic/dram.c diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig index 0d865acf10..88d07d568e 100644 --- a/board/emulation/qemu-riscv/Kconfig +++ b/board/emulation/qemu-riscv/Kconfig @@ -7,7 +7,7 @@ config SYS_VENDOR default "emulation" config SYS_CPU - default "qemu" + default "generic" config SYS_CONFIG_NAME default "qemu-riscv" @@ -18,7 +18,7 @@ config SYS_TEXT_BASE config BOARD_SPECIFIC_OPTIONS # dummy def_bool y - select QEMU_RISCV + select GENERIC_RISCV imply SYS_NS16550 imply VIRTIO_MMIO imply VIRTIO_NET