From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 11 Jan 2024 19:03:22 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rNzOk-00DGTo-2E for lore@lore.pengutronix.de; Thu, 11 Jan 2024 19:03:22 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rNzOj-0007g8-MB; Thu, 11 Jan 2024 19:03:21 +0100 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rNzOf-0007fu-Ro; Thu, 11 Jan 2024 19:03:17 +0100 Message-ID: <1a1688bb-0ceb-467d-8dad-45a53005edf6@pengutronix.de> Date: Thu, 11 Jan 2024 19:03:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: =?UTF-8?Q?Leonard_G=C3=B6hrs?= , distrokit@pengutronix.de References: <20240111150117.3678555-1-l.goehrs@pengutronix.de> <20240111150117.3678555-2-l.goehrs@pengutronix.de> From: Ahmad Fatoum In-Reply-To: <20240111150117.3678555-2-l.goehrs@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [DistroKit] [PATCH v1 1/5] tf-a: add patch to auto-detect the correct UART on i.MX8M X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Hello Leonard, On 11.01.24 16:01, Leonard Göhrs wrote: > diff --git a/configs/platform-v8a/platformconfig b/configs/platform-v8a/platformconfig > index b71b361..6925dac 100644 > --- a/configs/platform-v8a/platformconfig > +++ b/configs/platform-v8a/platformconfig > @@ -216,7 +216,7 @@ PTXCONF_TF_A_ARM_ARCH_MAJOR_8=y > PTXCONF_TF_A_ARM_ARCH_MAJOR=8 > PTXCONF_TF_A_PLATFORMS="imx8mq imx8mm imx8mn imx8mp" > PTXCONF_TF_A_ARM_ARCH_MINOR=0 > -PTXCONF_TF_A_EXTRA_ARGS="" > +PTXCONF_TF_A_EXTRA_ARGS="IMX_BOOT_UART_BASE=0" Patches below add auto as alias for 0. I think that would be better as to be more descriptive. > +diff --git a/plat/imx/imx8m/imx8mm/platform.mk b/plat/imx/imx8m/imx8mm/platform.mk > +index 22791fda4c2c..1b4a1f2f37c7 100644 > +--- a/plat/imx/imx8m/imx8mm/platform.mk > ++++ b/plat/imx/imx8m/imx8mm/platform.mk > +@@ -159,6 +159,9 @@ BL32_SIZE ?= 0x2000000 > + $(eval $(call add_define,BL32_SIZE)) > + > + IMX_BOOT_UART_BASE ?= 0x30890000 > ++ifeq (${IMX_BOOT_UART_BASE},auto) > ++ override IMX_BOOT_UART_BASE := 0 > ++endif Here ^. Cheers, Ahmad -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |