From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 05 Dec 2023 10:59:54 +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 1rASDZ-0041z1-3A for lore@lore.pengutronix.de; Tue, 05 Dec 2023 10:59:54 +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 1rASDa-0006YJ-41; Tue, 05 Dec 2023 10:59:54 +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 1rASDQ-0006Vx-F7; Tue, 05 Dec 2023 10:59:44 +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 1rASDQ-00DiGW-2h; Tue, 05 Dec 2023 10:59:44 +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 1rASDP-00EYdG-3C; Tue, 05 Dec 2023 10:59:44 +0100 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Tue, 5 Dec 2023 10:59:29 +0100 Message-Id: <20231205095929.3469672-2-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231205095929.3469672-1-a.fatoum@pengutronix.de> References: <20231205095929.3469672-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 1/2] 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