From patchwork Thu Jan 17 10:35:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1026592 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="iXEVguFm"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="GaWRxe86"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43gNTJ3M2bz9rxp for ; Thu, 17 Jan 2019 23:20:52 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id E5A25C21E75; Thu, 17 Jan 2019 12:20:48 +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, 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 3A7CFC21E63; Thu, 17 Jan 2019 12:20:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7B92BC21E75; Thu, 17 Jan 2019 10:35:12 +0000 (UTC) Received: from esa5.hgst.iphmx.com (esa5.hgst.iphmx.com [216.71.153.144]) by lists.denx.de (Postfix) with ESMTPS id 09F32C21D4A for ; Thu, 17 Jan 2019 10:35:10 +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=1547721311; x=1579257311; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=auurU12NS1maaas1mLWJhujZVECMUYSyMKlLhVVNbwY=; b=iXEVguFmNhruvc7p5XuB4C5LiFQ3Hkf9C2Ahcy8TU5YSYSywA7j+2EcF dmqUM6ZMoHbH1+TRk+7+ViDF8XHaAYBpojlTFAHCbfbKnqUSzIr8y1lHb UsYPSajwGwer2CXnXxnLWhY0UOdIwkbZqjLLpSifndG0E3AhJuuQwSwqH joqOe5HfyZEPl+mcG2jHPQ+I4iSq7qvWyYK7KULPfBLLlnDVLfASz/vGu KAAg+7rrBd6MftzN7FVCWeMynCE6fmzKj6VUalCo9Dtb1ooe1M3dEGsnG /H/l24L4Z0WOb2PKZpCJMXCJuWBNOMTP/OeTSBAqGXzl7DjuMZ2GRCBw3 g==; X-IronPort-AV: E=Sophos;i="5.56,488,1539619200"; d="scan'208";a="100261317" Received: from mail-dm3nam05lp2053.outbound.protection.outlook.com (HELO NAM05-DM3-obe.outbound.protection.outlook.com) ([104.47.49.53]) by ob1.hgst.iphmx.com with ESMTP; 17 Jan 2019 18:35:06 +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=49pZaw41ADwu7SWbErcOrggwkcik05tNY6qzlN+PZvs=; b=GaWRxe86OLNH7utJIQnhE8VHnxzPFwa5+2ykEx3PSlaJRwgQ3ZIic3sbhqRxn0z9R8ouj1k1UTrEdNJ/M+2uwnbp3eXIH9Wt4uMT3C28Pq8dCMhSi4CN/zHEmy2n55UXv0PUq1mM17wGWgIdbyKt911wX/q77CGyxY6jZp4xtsg= Received: from BYAPR04MB5303.namprd04.prod.outlook.com (20.178.49.148) by BYAPR04MB5557.namprd04.prod.outlook.com (20.178.232.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.24; Thu, 17 Jan 2019 10:35:04 +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.018; Thu, 17 Jan 2019 10:35:04 +0000 From: Anup Patel To: Rick Chen , Bin Meng , Joe Hershberger , Lukas Auer , Masahiro Yamada , Simon Glass Thread-Topic: [PATCH 01/11] riscv: Rename cpu/qemu to cpu/generic Thread-Index: AQHUrlBOsIjM/auyIEa5didDDQixwQ== Date: Thu, 17 Jan 2019 10:35:04 +0000 Message-ID: <20190117103435.36564-2-anup.patel@wdc.com> References: <20190117103435.36564-1-anup.patel@wdc.com> In-Reply-To: <20190117103435.36564-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR0101CA0017.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::27) 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: [106.51.16.164] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR04MB5557; 6:8Rs1roKjE0bxvCwcArzqqSnB2NA+tNpNEa3el4AC9f8o6yIJ3vBrqSo2f5H4TOCpoqsMhQRcAzsspHHmYwpg3qwQirmQ6EoKyGpif+fNolISOe3zR60smeya3PG/QwtuLnpgP13NBUqItVOLmfgOfEzsuBX308zU0QZZDUMM0nufo0mD9y76InHgiVID/zAPbx3811cBBUeCpVP5wdF/34lo72JnilCEzkdvSmXtPPm38RWSc0uS1GqfGl3+r39k/gws8RwvYAw9B5I0I6Ea8uXSBe3W4EhxaMBCoQfZcqilaGG6cAboa+m6LkeBAYeyWXCLWhbvKscxmFraMe5WGU0TFFYXL7yHiXftcnvxT7VexpWP0BpBscvSRu4vD6RL40zQEqk6+ZdLnKXvabPwpiePBU4bDhUs2Fr15tZZYQEVgkSk7oO2XORVeECTnoXgqVGdUjGBpPaGKokJzBhwWA==; 5:Klk69vet492qDqzHhjXJgphNGyRT36fqP+jqMUTpBLdY7FgQ4lCINmIMRKoCjTXjjWPhs33guLssEFYfEGZIgpPLOT68nfV1ov1vWWHzKnFeIvaA0JrFAoETTW/W+055JbI1vgfLQXGLXER3nWS7LdG8rp5tvqhMmkFI3oAqPNu58fXdlo6WtxVTCAAlYcJ+Dll52mkgaHUTBsQIMPieYQ==; 7:4akpj3sOiSv/NNjZqvlhfmsbHLv+tjIjiAAW6Ta2TbU84hUNvVm2uPbqTyIwM/gqjBNN6jRQg+NHJUeYE6Kq9W86sL7K/1efjIyURvACqDucQrR0mCcenyhbdRaT5BjL+bvcNbqSZfOEFDHpXeHBfw== x-ms-office365-filtering-correlation-id: f3fa8e18-d5b1-4b2e-da0e-08d67c677111 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:BYAPR04MB5557; x-ms-traffictypediagnostic: BYAPR04MB5557: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 0920602B08 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(136003)(346002)(39860400002)(366004)(376002)(189003)(199004)(7736002)(106356001)(9456002)(3846002)(6116002)(52116002)(105586002)(50226002)(6486002)(6436002)(110136005)(54906003)(71200400001)(71190400001)(99286004)(8676002)(8936002)(81166006)(81156014)(1076003)(305945005)(76176011)(102836004)(68736007)(186003)(55236004)(26005)(6506007)(386003)(316002)(78486014)(11346002)(446003)(66066001)(6512007)(5660300001)(44832011)(86362001)(486006)(478600001)(97736004)(14454004)(72206003)(36756003)(256004)(25786009)(2906002)(476003)(53936002)(2616005)(7416002)(39060400002)(4326008)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR04MB5557; H:BYAPR04MB5303.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: iGm7Px6TeAiZ0cx5WXJRJRUvMz/uZeA4zwmva5jp+forpVlT/Em6SZrOEQw0w/LvC6HyLHovUm/cKc2IehhkbA7GvbWaVlB6O8D0cdVzBSu/XU7/mzgXPcSjHfsnx2mHdH2TGBhheUXIrSIwTgNcS7pzqbFKND0iBWQy5XuwH7GlTB/bILK2ViLT5MvvEw8Sqr8VI3ZJtK8Sj/MjPX7MKQzTIDGsfIVd+3cEtrloXvCOKWI82MErIkqZlgeaLRKHvaHYQe6a5CviUvyy817hWTXHxk4NLffAAnF6WEeNtWFtpX/lqWkWDpnMkm6Y+TblXWJdP0gST8JUEH4DxlHPMYuJzov6Tg0IQ8ewbLA2emhnfctMQ9YWs44KHunSbA2v3/WWYK1dBH9/mN8IZ0kU6Vpw9NqGKFukWFXMfd9Pb9M= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3fa8e18-d5b1-4b2e-da0e-08d67c677111 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jan 2019 10:35:00.6849 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB5557 X-Mailman-Approved-At: Thu, 17 Jan 2019 12:20:42 +0000 Cc: Palmer Dabbelt , U-Boot Mailing List , Alexander Graf , Christoph Hellwig , Paul Walmsley Subject: [U-Boot] [PATCH 01/11] 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 --- 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