From patchwork Fri Mar 29 11:18:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1917803 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=Imi1nGPo; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=ZWN0iZHX; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V5dFS0ZMpz1yYV for ; Fri, 29 Mar 2024 22:18:36 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 89C2688250; Fri, 29 Mar 2024 12:18:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711711104; bh=xpKIc+xtdlqUUk7w8asBibEWHSjtttOouNLaGh/041M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Imi1nGPoR1T+xXsUvpVxUzGKhxaeg96lII+qtb2R7u2SgM0Byo+gh87BpCd9WSLyi TfGg2C0ckvlJcG0ZXxnToGak04ceNeGd2kGo/RSxZOHskIlXCzAFUl1pgQBRqBmPN2 vbuXB9fGpu1/8ha2UpJqmLlL5l/Y0hLRvn4pgBVMZbmOsDHbM0nmFjAEmTHYdthojy +6wMcD+2pyaksbS55JDXNK6PWLUf7Hf2RL7knG4eV1Q+xFKFcWzl/aUAZe4oAF6h3J cJcuUlFu99w5b0oDkJEcNwwjBYR2K6RqPqupJYr1mi4xevxj4veUE/fbb9xK/lr3Ay 3ZhKb6wVoJtlQ== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 310CE88224; Fri, 29 Mar 2024 12:18:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711711103; bh=xpKIc+xtdlqUUk7w8asBibEWHSjtttOouNLaGh/041M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZWN0iZHXY9d05RvE8zZGACXVaSKFEvCcyRFNMo3n4vfxYCPTRmwliIPDj0ei7PESs VqD7ND7LJVeXxWJ3ringTcyfueND9EMyrUBgh/1zi7OwTMO2IftbBgf8l9/y6RlARl 87eHzTS5BjoRo5/yvZ45Eop48zMemlAS6g3ZS5YqLYRioXSqh1ItWO2qbRBPyH+hBZ tUNpM0G/tecNl4rkITrqYzxInBwPSpglevPMkRVlqlUNUHCsjoNtgyuCuMdfxAJEj1 EuN80LdJNEYX7dYeysRjbjOp4RtUObT0TwfHB04woGrFsT5ABo+T742HaXCxUCp99e F5GgCA5Gw2lag== From: Lukasz Majewski To: Stefano Babic , u-boot@lists.denx.de, Fabio Estevam Cc: Lukasz Majewski , Tom Rini Subject: [PATCH 1/4] arm: spl: xea: Remove I2S pins configuration from early initialization Date: Fri, 29 Mar 2024 12:18:06 +0100 Message-Id: <20240329111809.3959962-2-lukma@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240329111809.3959962-1-lukma@denx.de> References: <20240329111809.3959962-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean XEA is not supporting and using I2S codec, so there is no need to configure pins for it. Signed-off-by: Lukasz Majewski --- (no changes since v1) board/liebherr/xea/spl_xea.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index df354cac64..551ed6fbae 100644 --- a/board/liebherr/xea/spl_xea.c +++ b/board/liebherr/xea/spl_xea.c @@ -112,13 +112,6 @@ const iomux_cfg_t iomux_setup[] = { MX28_PAD_I2C0_SCL__I2C0_SCL, MX28_PAD_I2C0_SDA__I2C0_SDA, - /* I2S Codec */ - MX28_PAD_SAIF0_BITCLK__SAIF0_BITCLK, - MX28_PAD_SAIF0_LRCLK__SAIF0_LRCLK, - MX28_PAD_SAIF0_MCLK__SAIF0_MCLK, - MX28_PAD_SAIF0_SDATA0__SAIF0_SDATA0, - MX28_PAD_SAIF1_SDATA0__SAIF1_SDATA0, - /* PWR-Hold */ MX28_PAD_SPDIF__GPIO_3_27, From patchwork Fri Mar 29 11:18:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1917804 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=i5lYl1Fx; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=t2E7eMvI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V5dFc5H4Vz1yYV for ; Fri, 29 Mar 2024 22:18:44 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 091EA88224; Fri, 29 Mar 2024 12:18:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711711107; bh=4etpwCtHCK9Zs6jSwtB12OyWve4UsIRTqx0mmsWrHkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=i5lYl1Fx0pNInK3DRsw+wkaRUFyZZNPFD+T8rtg+9s6gLRKnmpMnWwvvCBuu5BnBV HQic5vy8QeKhihp51DyVxJGSCwL/MAPAF+JeTwLdaQNyuGt3cFvwjEn80Cl86BZZt9 IYM+pPs75RPxcC6gyHyJ9005EfMhn5koR+Ovai6OQku03mOfKT+KzfZz3+y172HJuw 91b9cfasvMg0t+VUxjlE2F2+jbwvZ95XHwiLfnQkFWU+KBr/dpMb4bQdsz8PcnmO3z +cs0CHO5y5qYlAjWtG+aZqrh8/RZIrA145ODvgbUe8WhV++FAxAyr6+kNRINNYkM7D HGAtI8mtmgt3w== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 95A2E88234; Fri, 29 Mar 2024 12:18:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711711103; bh=4etpwCtHCK9Zs6jSwtB12OyWve4UsIRTqx0mmsWrHkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t2E7eMvI7oSEVuWuof2UYslJHajibndp/4ZvCpen9TYsM7m6a/LA0felCP4BKPWJ+ x6Xg+X+ZSkQKjMRoQHVDYDYz1SB/tej+wXF7r2D8F1dnD81T0fDsOpe1moy13U+fZj Qs4+uCTAS3CQdWHgBatw8RmLoGFWjv1juXXPi1KhUY+HhDUuUrz/cj0LQNigp06mwJ /7pasNpoilyJygkaBdVnuY6Jz/OdBzgTwY2CZBmi+I8Ybi4WV/Lww6+mxEu7GEHati LcX1mGcZSpSnzIC6soaflHFebGGzHZ0vM3B4Aqvf0e0KGStrQmbjwxh7Gu/9WAn/Nr D688HLNY2fnbA== From: Lukasz Majewski To: Stefano Babic , u-boot@lists.denx.de, Fabio Estevam Cc: Lukasz Majewski , Tom Rini Subject: [PATCH 2/4] arm: spl: Add definition for PHY reset GPIO for XEA HW rev. 2 Date: Fri, 29 Mar 2024 12:18:07 +0100 Message-Id: <20240329111809.3959962-3-lukma@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240329111809.3959962-1-lukma@denx.de> References: <20240329111809.3959962-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The imx287 based XEA board's revision 2 uses GPIO_3_21 for PHY reset It is safe to keep the GPIO_2_13 as well, as in the SPL SPI1 is not used for transmission. This simplifies the code, as the proper configuration is performed either in falcon boot's read DTB or in u-boot proper (with correct FIT configuration chosen). Signed-off-by: Lukasz Majewski --- (no changes since v1) board/liebherr/xea/spl_xea.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index 551ed6fbae..4068a2ad49 100644 --- a/board/liebherr/xea/spl_xea.c +++ b/board/liebherr/xea/spl_xea.c @@ -225,7 +225,8 @@ const iomux_cfg_t iomux_setup[] = { MX28_PAD_ENET0_TXD0__ENET0_TXD0 | MUX_CONFIG_ENET, MX28_PAD_ENET0_TXD1__ENET0_TXD1 | MUX_CONFIG_ENET, MX28_PAD_ENET0_TXD3__ENET1_TXD1 | MUX_CONFIG_ENET, - MX28_PAD_SSP1_CMD__GPIO_2_13, /* PHY reset */ + MX28_PAD_SSP1_CMD__GPIO_2_13, /* PHY reset HW Rev. 1*/ + MX28_PAD_SAIF0_LRCLK__GPIO_3_21, /* PHY reset HW Rev. 2*/ /* TIVA boot control */ MX28_PAD_GPMI_RDY3__GPIO_0_23 | MUX_CONFIG_BOOT, /* TIVA0 */ From patchwork Fri Mar 29 11:18:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1917805 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=fhjELbpJ; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=ncVO/9Tr; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V5dFp12nYz1yYV for ; Fri, 29 Mar 2024 22:18:54 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7335B88256; Fri, 29 Mar 2024 12:18:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711711107; bh=+/XeB/RfsBz270dI2tAJRZEbtuZIjJY5m7v6Ub4jYbM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=fhjELbpJyYMbiDwexs6V1O+9Z+XkghgUQ5rack9yI8EpkQvU/m4LxRUDPwxgJ3aBI Op+4tMAZRoBBg75kS+W7tNrSEjRMr1gxaBfqiSYw+yZu2WjheYy5wzTUw25rqpmuCJ lxj9mUMMex4rbrcG2mZ8RuQYRP6mQ7PLAr+ksoUcKVoTHSanlTiGnNWNyxHqAFnH1t n0ZIKtZPc76FHsHff4qiapndZtEneL9MKfbB75xPgJ4EKcwYm0EsMaVkG0Tvfm+aZF sRsKIsmP0HQht/TdtuxS0fodW9GV1UBGDyIOBCCeOtPYVw/3e7HN7sVKaUQG96HeWT aA88dmRVmqKMw== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 0B75288247; Fri, 29 Mar 2024 12:18:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711711104; bh=+/XeB/RfsBz270dI2tAJRZEbtuZIjJY5m7v6Ub4jYbM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ncVO/9TrH4y3iWOXYzvpuHlkzx4nQ+5dPBITZUHbA/lqvXOSx8NqlzeemVMWwGvIJ kLYCevgj3pyBhjzB3fu7kpp94HbgkH8BJGOhFbiQZjp3sVTRvimWKSpErMy/a3GfxJ Uwx7M1kgjIUrDsHOJ1cWHhqPACJVfztI+MF9kQO4m1zZe86q1g3LoGeeLZWFTdv8p/ dwlq3dgiD+jT5p1mrpCYkFz0XFBe5/iOKcIIP/XbP1ORxSr4odXhFugTkuNvGFvIUa 7G0Ljkkd1mrq2Sc2dIPI3vFxMEqGZc8icKbJi2TnBanK2a87Z33tUS9jo6HSpBCAeO BqjknpsFXiZDw== From: Lukasz Majewski To: Stefano Babic , u-boot@lists.denx.de, Fabio Estevam Cc: Lukasz Majewski , Anatolij Gustschin , Simon Glass , Tom Rini Subject: [PATCH 3/4] arm: xea: Add support for reading SoM (CPU) board HW revision Date: Fri, 29 Mar 2024 12:18:08 +0100 Message-Id: <20240329111809.3959962-4-lukma@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240329111809.3959962-1-lukma@denx.de> References: <20240329111809.3959962-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The XEA board now has several HW revisions for SoM boards. This patch provides support for reading this revision ID values in early u-boot proper as production devices boot via falcon boot with correct DTB flashed at production (so there is no need to alter SPL). Additionally, the maximal SPL size (~55KiB) constraint is not allowing having even simplified FIT support in it. As a result it was necessary to handle reading GPIOs values solely in u-boot proper as one configuration (i.e. 'single binary' - imx28_xea_sb_defconfig) is not using SPL framework. Moreover, the 'board_som_rev' environment variable will be used to point correct configuration from the Linux FIT file. Additionally, as now XEA has its second HW revision - this information is printed when u-boot proper starts. Signed-off-by: Lukasz Majewski --- Changes in v2: Remove "inline" from get_som_rev() function definition Squash with 'config: xea: Enable late board initialization to set revision variable' Update commit message Squash with 'arm: xea: Print information about XEA's SoM HW revision' board/liebherr/xea/spl_xea.c | 11 ++++++++ board/liebherr/xea/xea.c | 49 ++++++++++++++++++++++++++++++++++ configs/imx28_xea_defconfig | 1 + configs/imx28_xea_sb_defconfig | 1 + 4 files changed, 62 insertions(+) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index 4068a2ad49..6cf8f8390e 100644 --- a/board/liebherr/xea/spl_xea.c +++ b/board/liebherr/xea/spl_xea.c @@ -231,6 +231,17 @@ const iomux_cfg_t iomux_setup[] = { /* TIVA boot control */ MX28_PAD_GPMI_RDY3__GPIO_0_23 | MUX_CONFIG_BOOT, /* TIVA0 */ MX28_PAD_GPMI_WRN__GPIO_0_25 | MUX_CONFIG_BOOT, /* TIVA1 */ + + /* HW revision ID Base Board */ + MX28_PAD_LCD_D12__GPIO_1_12, + MX28_PAD_LCD_D13__GPIO_1_13, + MX28_PAD_LCD_D14__GPIO_1_14, + + /* HW revision ID (SoM) */ + MX28_PAD_LCD_D15__GPIO_1_15, + MX28_PAD_LCD_D16__GPIO_1_16, + MX28_PAD_LCD_D17__GPIO_1_17, + MX28_PAD_LCD_D18__GPIO_1_18, }; u32 mxs_dram_vals[] = { diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c index c8ac526cb4..0a6fd7f143 100644 --- a/board/liebherr/xea/xea.c +++ b/board/liebherr/xea/xea.c @@ -216,6 +216,34 @@ int spl_start_uboot(void) return !boot_tiva0 || !boot_tiva1; } #else +/* + * Reading the HW ID number for XEA SoM module + * + * GPIOs from Port 1 (GPIO1_15, GPIO1_16, GPIO1_17 and GPIO1_18) + * are used to store HW revision information. + * Reading of GPIOs values is performed before the Device Model is + * bring up as the proper DTB needs to be chosen first. + * + * Moreover, this approach is required as "single binary" configuration + * of U-Boot (imx28_xea_sb_defconfig) is NOT using SPL framework, so + * only minimal subset of functionality is provided when ID is read. + * + * Hence, the direct registers' access. + */ +#define XEA_SOM_HW_ID_GPIO_PORT (MXS_PINCTRL_BASE + (0x0900 + ((1) * 0x10))) +#define XEA_SOM_REV_MASK GENMASK(18, 15) +#define XEA_SOM_REV_SHIFT 15 + +static u8 get_som_rev(void) +{ + struct mxs_register_32 *reg = + (struct mxs_register_32 *)XEA_SOM_HW_ID_GPIO_PORT; + + u32 tmp = ~readl(®->reg); + u8 id = (tmp & XEA_SOM_REV_MASK) >> XEA_SOM_REV_SHIFT; + + return id; +} int board_early_init_f(void) { @@ -253,6 +281,27 @@ int board_init(void) return 0; } +#if defined(CONFIG_BOARD_LATE_INIT) +int board_late_init(void) +{ + int ret = env_set_ulong("board_som_rev", get_som_rev()); + + if (ret) + printf("Cannot set XEA's SoM revision env variable!\n"); + + return 0; +} +#endif + +#if defined(CONFIG_DISPLAY_BOARDINFO) +int checkboard(void) +{ + printf("Board: LWE XEA SoM HW rev %d\n", get_som_rev()); + + return 0; +} +#endif + int dram_init(void) { return mxs_dram_init(); diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig index 64a0561a34..6098c1f3be 100644 --- a/configs/imx28_xea_defconfig +++ b/configs/imx28_xea_defconfig @@ -39,6 +39,7 @@ CONFIG_BOOTCOMMAND="run ${bootpri} ; run ${bootsec}" CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="run prebootcmd" CONFIG_BOARD_EARLY_INIT_F=y +CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_NO_BSS_LIMIT=y CONFIG_SPL_BOARD_INIT=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set diff --git a/configs/imx28_xea_sb_defconfig b/configs/imx28_xea_sb_defconfig index 9872d35c1b..8d48d8c507 100644 --- a/configs/imx28_xea_sb_defconfig +++ b/configs/imx28_xea_sb_defconfig @@ -23,6 +23,7 @@ CONFIG_BOOTARGS="console=ttyAMA0,115200n8" CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="run prebootcmd" CONFIG_BOARD_EARLY_INIT_F=y +CONFIG_BOARD_LATE_INIT=y # CONFIG_SPL_FRAMEWORK is not set CONFIG_SPL_NO_BSS_LIMIT=y CONFIG_SPL_BOARD_INIT=y From patchwork Fri Mar 29 11:18:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1917806 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=Q5XJES6j; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=enFxlTkL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V5dG014tfz1yYV for ; Fri, 29 Mar 2024 22:19:04 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E0CF48825B; Fri, 29 Mar 2024 12:18:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711711107; bh=+W3JYNpNOkN73XMXqNST3tlCtZYNVaq2zGtC1pfNiPI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Q5XJES6jePvrNDyOCEtm062Zwg3FyIwE+hHgDdslfVhNqF8Nb4ni6FG19MluOT1pJ 1W9Gx22juMRKY43m9Z8f2mMBJlPxc4mJEnTRGAOU3w8PDwIqQgzg3YdX6gRX5cS8zA 1zVd0134aM2UZom8adlnvakRHJ3upV/MdyBaCjsyo/6uliDOXafWWgDZBAsl2CyVke DreZsS831bxTrNBm9A0dHdNwY27QmlPqD198dkNuWrbTsYQejoPQceMc/oMFifTafJ MTSFrL+AcuwHfjjxTjnV17ra6XXBqGQztMj9G0sKQZsruL5ONzmk97tv3fTXWIKehq CoNZLWhSO6gTQ== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 7D0DD88234; Fri, 29 Mar 2024 12:18:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711711104; bh=+W3JYNpNOkN73XMXqNST3tlCtZYNVaq2zGtC1pfNiPI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=enFxlTkLhF4CK//N3QJc7GChOyIKkO+w6vHIi+K2xikncCOYxsFmfPuKCiLSzVpXr RRDbFtwvqCF9aTF8C31j5inZ1zL18yvVRguksekuoP2/xDsx62RcX8hmI39JSEVwZ6 XtD3J7nnrFALiPCEPspl5cdFkIQ1y/MSCDkyWLyWak7wC869IysbmqT1O+HVbjMz+S oy5b5p6TAXZ21525UDdnAGzm7G45J+0ZfSlW69O26LjDBNjaUuzhnDVIYU0kdLTYBA +QCMnKMBjMOyD4hZyTjtM+Re3/Ikx7hEhKMS39s3oyfvc7Ntiem3Ja5CffOBNI0Y0l RFpXyUrmC1s5g== From: Lukasz Majewski To: Stefano Babic , u-boot@lists.denx.de, Fabio Estevam Cc: Lukasz Majewski , Simon Glass , Tom Rini Subject: [PATCH 4/4] config: xea: Add limits for SPL and u-boot proper sizes Date: Fri, 29 Mar 2024 12:18:09 +0100 Message-Id: <20240329111809.3959962-5-lukma@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240329111809.3959962-1-lukma@denx.de> References: <20240329111809.3959962-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The XEA board has following hard constraints regarding size of binaries: - u-boot.sb < 48 KiB - u-boot.img < 448 KiB Added values are supposed to avoid exceeding size of binaries during future u-boot development. Signed-off-by: Lukasz Majewski --- (no changes since v1) configs/imx28_xea_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig index 6098c1f3be..822a329187 100644 --- a/configs/imx28_xea_defconfig +++ b/configs/imx28_xea_defconfig @@ -21,12 +21,15 @@ CONFIG_SPL_MMC=y CONFIG_SPL_SERIAL=y CONFIG_SPL_STACK=0x20000 CONFIG_SPL_SYS_MALLOC_F_LEN=0x1000 +CONFIG_SPL_SIZE_LIMIT=0xa000 CONFIG_SPL=y CONFIG_ENV_OFFSET_REDUND=0x90000 CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI=y CONFIG_SYS_LOAD_ADDR=0x42000000 CONFIG_SPL_PAYLOAD="u-boot.img" +CONFIG_HAS_BOARD_SIZE_LIMIT=y +CONFIG_BOARD_SIZE_LIMIT=458752 CONFIG_TIMESTAMP=y CONFIG_FIT=y # CONFIG_BOOTMETH_EXTLINUX is not set