From: Julien Grall <julien@xen.org>
To: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>,
sstabellini@kernel.org, Volodymyr_Babchuk@epam.com,
bertrand.marquis@arm.com
Cc: andrew.cooper3@citrix.com, george.dunlap@citrix.com,
jbeulich@suse.com, wl@xen.org, xen-devel@lists.xenproject.org,
van.freenix@gmail.com, Peng Fan <peng.fan@nxp.com>
Subject: Re: [PATCH 3/3] xen/arm: Add i.MX8QM platform support
Date: Mon, 28 Feb 2022 09:31:09 +0000 [thread overview]
Message-ID: <e55f32f9-4d24-77a9-026b-201536c73708@xen.org> (raw)
In-Reply-To: <20220228010711.11566-4-peng.fan@oss.nxp.com>
Hi Peng,
On 28/02/2022 01:07, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
> xen/arch/arm/Kconfig.debug | 3 +++
> xen/arch/arm/platforms/Makefile | 1 +
> xen/arch/arm/platforms/imx8qm.c | 44 +++++++++++++++++++++++++++++++++
> 3 files changed, 48 insertions(+)
> create mode 100644 xen/arch/arm/platforms/imx8qm.c
>
> diff --git a/xen/arch/arm/Kconfig.debug b/xen/arch/arm/Kconfig.debug
> index 9ecb446b3a..43ccd8fe62 100644
> --- a/xen/arch/arm/Kconfig.debug
> +++ b/xen/arch/arm/Kconfig.debug
> @@ -143,6 +143,9 @@ choice
> config EARLY_PRINTK_HIKEY960
> bool "Early printk with pl011 with Hikey 960"
> select EARLY_UART_PL011
> + config EARLY_PRINTK_IMX8QM
> + bool "Early printk with i.MX LPUART with i.MX8QM"
> + select EARLY_UART_IMX_LPUART
The goal of platform specific early printk is to select to UART address
(see EARLY_UART_BASE_ADDRESS).
However, we have deprecated them. So we should avoid adding new ones.
> config EARLY_PRINTK_JUNO
> bool "Early printk with pl011 on Juno platform"
> select EARLY_UART_PL011
> diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makefile
> index 8632f4115f..bec6e55d1f 100644
> --- a/xen/arch/arm/platforms/Makefile
> +++ b/xen/arch/arm/platforms/Makefile
> @@ -9,5 +9,6 @@ obj-$(CONFIG_ALL_PLAT) += sunxi.o
> obj-$(CONFIG_ALL64_PLAT) += thunderx.o
> obj-$(CONFIG_ALL64_PLAT) += xgene-storm.o
> obj-$(CONFIG_ALL64_PLAT) += brcm-raspberry-pi.o
> +obj-$(CONFIG_ALL64_PLAT) += imx8qm.o
> obj-$(CONFIG_MPSOC_PLATFORM) += xilinx-zynqmp.o
> obj-$(CONFIG_MPSOC_PLATFORM) += xilinx-zynqmp-eemi.o
> diff --git a/xen/arch/arm/platforms/imx8qm.c b/xen/arch/arm/platforms/imx8qm.c
> new file mode 100644
> index 0000000000..289c18e5f9
> --- /dev/null
> +++ b/xen/arch/arm/platforms/imx8qm.c
> @@ -0,0 +1,44 @@
> +/*
> + * xen/arch/arm/platforms/imx8qm.c
> + *
> + * i.MX 8QM setup
> + *
> + * Copyright 2022 NXP
> + *
> + * Peng Fan <peng.fan@nxp.com>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + */
> +
> +#include <xen/delay.h>
> +#include <xen/mm.h>
> +#include <xen/vmap.h>
> +#include <asm/io.h>
> +#include <asm/platform.h>
> +
> +static const char * const imx8qm_dt_compat[] __initconst =
> +{
> + "fsl,imx8qm",
> + NULL
> +};
> +
> +PLATFORM_START(imx8qm, "i.MX 8")
> + .compatible = imx8qm_dt_compat,
> +PLATFORM_END
We are only adding new platform definition when quirks are necessary. Do
you need specific quirks for the i.MX8QM?
A somewhat related question, is this series enough to boot Xen upstream
on the board?
Cheers,
--
Julien Grall
next prev parent reply other threads:[~2022-02-28 9:31 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-28 1:07 [PATCH 0/3] xen/arm: add i.MX lpuart and i.MX8QM initial support Peng Fan (OSS)
2022-02-28 1:07 ` [PATCH 1/3] xen/arm: Add i.MX lpuart driver Peng Fan (OSS)
2022-02-28 9:19 ` Julien Grall
2022-02-28 9:27 ` Peng Fan
2022-03-08 18:29 ` Julien Grall
2022-03-08 18:52 ` Julien Grall
2022-03-18 5:23 ` Peng Fan
2022-03-21 19:39 ` Julien Grall
2022-02-28 1:07 ` [PATCH 2/3] xen/arm: Add i.MX lpuart early printk support Peng Fan (OSS)
2022-02-28 9:24 ` Julien Grall
2022-03-18 5:26 ` Peng Fan
2022-02-28 1:07 ` [PATCH 3/3] xen/arm: Add i.MX8QM platform support Peng Fan (OSS)
2022-02-28 9:31 ` Julien Grall [this message]
2022-03-18 5:24 ` Peng Fan
2022-03-21 19:41 ` Julien Grall
2022-02-28 8:06 ` [PATCH 0/3] xen/arm: add i.MX lpuart and i.MX8QM initial support Jan Beulich
2022-02-28 8:12 ` Peng Fan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e55f32f9-4d24-77a9-026b-201536c73708@xen.org \
--to=julien@xen.org \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=bertrand.marquis@arm.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=peng.fan@nxp.com \
--cc=peng.fan@oss.nxp.com \
--cc=sstabellini@kernel.org \
--cc=van.freenix@gmail.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.