From patchwork Mon Jul 29 13:19:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stewart Hildebrand X-Patchwork-Id: 11063829 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D201514DB for ; Mon, 29 Jul 2019 13:20:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3DAA26E38 for ; Mon, 29 Jul 2019 13:20:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7D6726E3A; Mon, 29 Jul 2019 13:20:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C53427C2D for ; Mon, 29 Jul 2019 13:20:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hs5Yp-0004W4-L1; Mon, 29 Jul 2019 13:19:31 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hs5Yn-0004Vq-Io for xen-devel@lists.xenproject.org; Mon, 29 Jul 2019 13:19:29 +0000 X-Inumbo-ID: 7cde296f-b203-11e9-8980-bc764e045a96 Received: from webmail.dornerworks.com (unknown [12.207.209.150]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 7cde296f-b203-11e9-8980-bc764e045a96; Mon, 29 Jul 2019 13:19:27 +0000 (UTC) From: Stewart Hildebrand To: Date: Mon, 29 Jul 2019 09:19:18 -0400 Message-ID: X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Originating-IP: [172.27.12.5] X-ClientProxiedBy: Mcbain.dw.local (172.27.1.45) To Mcbain.dw.local (172.27.1.45) Subject: [Xen-devel] [PATCH v2 0/2] Raspberry Pi 4 support X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , Andre Przywara , Volodymyr Babchuk Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is a series to enable UART console for Raspberry Pi 4. Note that I'm relying on the firmware to initialize the UART (i.e. enable_uart=1 in config.txt), since full UART initialization on this platform requires accessing some registers outside the range specified in the brcm,bcm2835-aux-uart node. I have been able to get Xen+dom0+domUs booting. Tested with Xen 4.12 and 4.13-unstable (b4c8a27d5b) and Linux 4.19.y (Raspberry Pi linux tree + a couple of patches). Please see [1] for build instructions and limitations. New in v2: * Drop early printk alias * Set reg-shift and reg-io-width in the Xen driver * Blacklist other aux peripherals in platform settings (spi1, spi2, and a couple of base aux registers) Thanks, Stewart Hildebrand DornerWorks, Ltd [1] https://github.com/dornerworks/xen-rpi4-builder Stewart Hildebrand (2): ns16550: Add compatible string for Raspberry Pi 4 xen/arm: platform: Add Raspberry Pi platform xen/arch/arm/platforms/Makefile | 1 + xen/arch/arm/platforms/brcm-raspberry-pi.c | 55 ++++++++++++++++++++++ xen/drivers/char/ns16550.c | 7 +++ 3 files changed, 63 insertions(+) create mode 100644 xen/arch/arm/platforms/brcm-raspberry-pi.c