Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1933649imw; Sat, 9 Jul 2022 15:34:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5yiCQtjJ8oUN0Zoeh9IBJ3/3QxtL74wLLVLfAPlr+FEvmPffiW8UVZ02+SyazNw0gyO9x X-Received: by 2002:a63:91ca:0:b0:412:f686:d497 with SMTP id l193-20020a6391ca000000b00412f686d497mr9207698pge.367.1657406041503; Sat, 09 Jul 2022 15:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657406041; cv=none; d=google.com; s=arc-20160816; b=JYHx1tt4yz24QyKhyXF+v3+YjrAf2u7EliJjT9dZBsAGr+iGMqZLATvlNSkR4KW2q6 PsE9MSrmBHDZ7Y6mfrS+C/FyuLBtHc1OUyHwWOWEYfENNok3u1+FhavpIaOaWp36O8tM QDOaXPzcTHpMCL0QLI/HCx1sDDLbVo0ZBI83quC2x0P6XQTJQYd17Q1MiWWqU1leOWwR njwqkvMQkZR91ELAtusLGT+B35X4m+3D98aT+YTMYRqbBSLxsvlYPTjRanuhRRklQZ6Q TMCqDFNQu6qkLvF2LJPHVYlTjsDKO7wk8uvblUvfWpY0qRLG/mkkTeHFEdfHkC72xqEy tENA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=c+pbbkuTfdK3RD+xw+jDI7D4rUYNVSIOak1x3V2zW8Y=; b=nWBhkE/X6gGVxrlrRcnE9M+X5T2GLkLmRR4zEuqt3BIWH4FJgA/xl/dTDpnf44Clv4 tiOeDSiMV2k5gQ1qoHjHfvpFPJHz4WobNARMpcWOyFeLDifCOMVNPds7yXOgh+WLHior 4NG1CFdsME6nzqLSd3klFjw+XtXMYu9eJl3ajqCvefQityOWYt6/53dciOYyl2nX8NB6 xAhxI4x+rbxGTtBVLorF/R75TrcbsrtvvdDstfYyWa842eUEx5MvPyVhIWb/cZAJULbG xjGnOzErI1eX9InHSfsGHXcUuZqagJlGbqzmPFayL7lhlmCrMITeFh0/DVgoKmO1Lztv fkyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aICdV93j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb13-20020a17090ae7cd00b001e318172115si3868603pjb.39.2022.07.09.15.33.49; Sat, 09 Jul 2022 15:34:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aICdV93j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229459AbiGIVQU (ORCPT + 99 others); Sat, 9 Jul 2022 17:16:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiGIVQT (ORCPT ); Sat, 9 Jul 2022 17:16:19 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB0BFB1FF for ; Sat, 9 Jul 2022 14:16:17 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id y18so1526421plb.2 for ; Sat, 09 Jul 2022 14:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=c+pbbkuTfdK3RD+xw+jDI7D4rUYNVSIOak1x3V2zW8Y=; b=aICdV93jXxwJmbvGcHBbHwGyDRdI7NX1U4p9MYRjoL3DEX8cOykCUhtw31eWwfHRjB BovmjJaS29bmvBExHQuyfAyTiZjCrsjR4FlUqISc8W1OKwKSVMRIC9hKJEc0md+/hSCc zqiiQ8mbWq59/LoveRtGbmTHgiuwgtoxZuWJG4rb6F2mFdIQbUdFtUMSHMqXc+teUAcr RUmVOYgk++PUDVwWeS1zgiMI6w05paWtLPkHFir064I4rbtHZvzi1VzPklkyoasXGWGl i7Z6GZKVGzcNq9e1x4Z+RF0LEWCdG/rbWspDokcSK1zUStGPE3AxyasMlwDyi6ALRlNH sYgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=c+pbbkuTfdK3RD+xw+jDI7D4rUYNVSIOak1x3V2zW8Y=; b=I19KbQ1whQTnhPOffkZABSCMOjv4HiQtowqjYU/vJSsyklwZbA3vYP46VkQFaxgsfh LFzYD4Dv3e+Kz+IbMvhDqb6mIdD/Qg9n2DjnEbtsLQirWACBnEHxuyIbqxV778RO3630 qZHa1YFqbr3uxB3pHVDZ9PKGOMMF8ILyfnXQKhLqTc8DMvKpWtN9TukTRMcqE5oqTZCX xAL3021wgRQ8JMVqwlMh/jFphpYA0uHQ7XwOJ7x0ruPz1ZKNDIUX1tfWCim5pCzuvjXM eLCdQRuqCcGnZTsTt1jZxNYBs9wgnlEE+vr7kkZCq4PrVxD2oBdTObuv0W2qZnomi/ud 0XqQ== X-Gm-Message-State: AJIora93zYv1NCPRDQ3zzbYsaKZOCFyUGiWUfhescmkJ5XzPIQYFSUVI W5Dh0PkfYmJVi7/YLHK9THZj4amLHfM= X-Received: by 2002:a17:902:dac2:b0:16c:6a1:692c with SMTP id q2-20020a170902dac200b0016c06a1692cmr10180535plx.19.1657401377063; Sat, 09 Jul 2022 14:16:17 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id a8-20020a621a08000000b00528e84c3093sm1952354pfa.143.2022.07.09.14.16.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jul 2022 14:16:16 -0700 (PDT) From: Stafford Horne To: LKML Cc: Openrisc , Stafford Horne Subject: [PATCH 0/2] OpenRISC support for virt platform with PCI Date: Sun, 10 Jul 2022 06:15:47 +0900 Message-Id: <20220709211549.1163327-1-shorne@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This is a set of kernel patches which I have been using to support the new QEMU virt platform [1]. The virt platform supports PCI hence I have a patch here to add PCI support to OpenRISC. A defconfig is also included which turns on drivers supported devices include virt network cards and the goldfish RTC. [1] https://github.com/stffrdhrn/qemu/tree/or1k-virt-2 Stafford Horne (2): openrisc: Add pci bus support openrisc: Add virt defconfig arch/openrisc/Kconfig | 7 +- arch/openrisc/configs/virt_defconfig | 108 +++++++++++++++++++++++++++ arch/openrisc/include/asm/Kbuild | 1 + arch/openrisc/include/asm/io.h | 4 +- arch/openrisc/include/asm/pci.h | 36 +++++++++ 5 files changed, 151 insertions(+), 5 deletions(-) create mode 100644 arch/openrisc/configs/virt_defconfig create mode 100644 arch/openrisc/include/asm/pci.h -- 2.36.1