From patchwork Fri Jun 7 20:16:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 10982745 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 946991398 for ; Fri, 7 Jun 2019 20:18:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81F9D27031 for ; Fri, 7 Jun 2019 20:18:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75C9828BA6; Fri, 7 Jun 2019 20:18:37 +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.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,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 1F85627031 for ; Fri, 7 Jun 2019 20:18:36 +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 1hZLIH-0007iO-AM; Fri, 07 Jun 2019 20:16:57 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hZLIF-0007iJ-MA for xen-devel@lists.xenproject.org; Fri, 07 Jun 2019 20:16:55 +0000 X-Inumbo-ID: 30ae76b4-8961-11e9-8980-bc764e045a96 Received: from mail-pg1-x543.google.com (unknown [2607:f8b0:4864:20::543]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 30ae76b4-8961-11e9-8980-bc764e045a96; Fri, 07 Jun 2019 20:16:53 +0000 (UTC) Received: by mail-pg1-x543.google.com with SMTP id s27so1726155pgl.2 for ; Fri, 07 Jun 2019 13:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ojd2/zcOkZigKxNfDxnvmo6BY1ZK5fUIs7jogtgkqYw=; b=ppZzpvqXzQgw2IGAj7T8VXU59HJmLm8melDw0zOOty0iSsfoBp1jHawzg/X6ieV1B3 hN4A0I/5vi/L0M24DuPv/Dszn64B/uxtXsDuLd7OriaAhXzAzSxmQEX+qeTbrf5E0dXg FUrtnxFDT1FrCFkENlzYcfYw0YxmkmQqEs26kT/ThFQvWvcgS7rQkkWT4B2m9spqxPR2 AmzQR9RbOd50nGE/k3FAiY6JBIkVX6Lb5GZ0djexQl6Ynz5UTP9ClVCJuV/iiNR4+gq4 j2fQMxzIZAZbovkzvue1xRFJXLIPOaxipWLaEtls4k8r8EIP/CTAsiOGL8IEYeui/ZMK jg/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ojd2/zcOkZigKxNfDxnvmo6BY1ZK5fUIs7jogtgkqYw=; b=VYG88C/CeWGORxzcR/UTQsbIG/DV8p2KPU8BMbiNRrLJzDn1d9qkjnVrs6HR2AWM0T zqom4nve/D+EkENmtMt55c7ZIOFbfNHf7wKTqxzvppZosnz0d/bEp2lri4WVFkYCgTbE 76z4u38ClX8W2lnvRxP/fdv6dXyFgIMNrDwpIGXx0gBaq94d5oPf6QwOmBooXptkzrlA vCnV491iRwhQblUsERaq4G7ZYn7vZ+pNlepIKvT0Bo12yKK70wjFoKZ+t9JdEbqlvbKZ CvSLxdY6rSzLy8tcUshA/Bq7fVtGxBmUX5e/CiJ0zfq3yTpeUjMy4dDVHAxke2k2y74u iUIQ== X-Gm-Message-State: APjAAAWMZhPskjAfH0hrwGfCS+fivu93fQDeXsTk5ndSrozidzQmZa78 4TE0hRfQXgiGHNHy5EUvXXIVmrVL X-Google-Smtp-Source: APXvYqwM4xDQ7xSPoWGk7JCfi5B3Mvcrr9MNarKwJKioiSPYDxqzadCTzw15y3gu2NdhkTRZhjF/qw== X-Received: by 2002:aa7:82cd:: with SMTP id f13mr62627320pfn.203.1559938612455; Fri, 07 Jun 2019 13:16:52 -0700 (PDT) Received: from localhost.localdomain ([223.233.80.237]) by smtp.gmail.com with ESMTPSA id a12sm4407502pgq.0.2019.06.07.13.16.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Jun 2019 13:16:51 -0700 (PDT) From: Amit Singh Tomar To: xen-devel@lists.xenproject.org Date: Sat, 8 Jun 2019 01:46:34 +0530 Message-Id: <1559938596-5696-1-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Xen-devel] [RFC PATCH 0/2] XEN booting on i.MX8M platform 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: andre.przywara@arm.com, julien.grall@arm.com, sstabellini@kernel.org, peng.fan@nxp.com, Amit Singh Tomar MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series tries to enable XEN booting on i.MX 8MQuad Applications Processors[1]. Patch-set includes driver for UART controller found on i.MX8MQ SoC and debug code for earlyprintk support. Mainline dts binding that are used for platform discover has GPC as root interrupt parent is not yet supported in XEN, therefore following changes is needed to boot XEN on this platform. It has been tested on nitrogen8m board[2] by booting dom0 with RAMFS. [1]:https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/evaluation-kit-for-the-i.mx-8m-applications-processor:MCIMX8M-EVK [2]:https://boundarydevices.com/product/nitrogen8m/ Amit Singh Tomar (2): xen/arm: Add i.MX8MQ SoCs earlyprintk support xen/arm: Add UART driver for i.MX8MQ SoC xen/arch/arm/arm64/debug-imx8mq.inc | 54 +++++++ xen/drivers/char/Kconfig | 8 + xen/drivers/char/Makefile | 1 + xen/drivers/char/imx8mq-uart.c | 306 ++++++++++++++++++++++++++++++++++++ 4 files changed, 369 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-imx8mq.inc create mode 100644 xen/drivers/char/imx8mq-uart.c diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 6d635ba..7eac1786 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -13,7 +13,7 @@ #include "imx8mq-pinfunc.h" / { - interrupt-parent = <&gpc>; + interrupt-parent = <&gic>; #address-cells = <2>; #size-cells = <2>;