From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 22 Nov 2023 19:55:43 +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 1r5sNy-004ivP-2m for lore@lore.pengutronix.de; Wed, 22 Nov 2023 19:55:43 +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 1r5sNz-0003Bn-0H; Wed, 22 Nov 2023 19:55:43 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r5sNu-0003BY-8f; Wed, 22 Nov 2023 19:55:38 +0100 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r5sNt-00As7d-Sh; Wed, 22 Nov 2023 19:55:37 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1r5sNt-008cot-2a; Wed, 22 Nov 2023 19:55:37 +0100 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Wed, 22 Nov 2023 19:55:35 +0100 Message-Id: <20231122185535.2051569-1-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH] v7a: barebox: define state for all supported board variants 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: , Cc: Ahmad Fatoum 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 Boot up is broken on some of the Raspberry Pi and STM32MP1 board we support, because boot method is changed to bootchooser, but state isn't defined. Fix this by extending state definition to the missed boards. Signed-off-by: Ahmad Fatoum --- configs/platform-v7a/dts/bootstate.dtsi | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/configs/platform-v7a/dts/bootstate.dtsi b/configs/platform-v7a/dts/bootstate.dtsi index c77df2e19d65..cd24d74d4aea 100644 --- a/configs/platform-v7a/dts/bootstate.dtsi +++ b/configs/platform-v7a/dts/bootstate.dtsi @@ -39,8 +39,11 @@ }; #endif -/** Raspberry Pi 3 Model B ****************************************************/ -#ifdef bcm2837_rpi_3_dts +/** Raspberry Pi **************************************************************/ +#if defined(bcm2836_rpi_2_dts) || \ + defined(bcm2837_rpi_3_dts) || \ + defined(bcm2837_rpi_cm3_dts) || \ + defined(bcm2711_rpi_4_dts) / { aliases { state = &state; @@ -101,8 +104,10 @@ }; #endif -/** LXA MC1 *******************************************************************/ -#ifdef stm32mp157c_lxa_mc1_dts +/** STM32MP1 ******************************************************************/ +#if defined(stm32mp157c_lxa_mc1_dts) || \ + defined(stm32mp157c_dk2_dts) || \ + defined(stm32mp157c_ev1_dts) / { aliases { state = &state_mmc0; -- 2.39.2