From patchwork Thu Aug 15 08:09:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1972675 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=skn8pHtt; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=YBqXM+9D; 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) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WkyV14kRdz1yXZ for ; Thu, 15 Aug 2024 18:10:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BF70188A29; Thu, 15 Aug 2024 10:10:05 +0200 (CEST) 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=1723709405; bh=efJO5G58F0gEctwu3FgAMvIyEfS59IkqA2cUjzguJFA=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=skn8pHttEfyNeR63UA30jmUg0YJl62of0xppKeroVYI4xp48lEcEpvMackpm4Yb29 pNDKvL+Rd39Ct9cf5YoHlpi2aqDK89RtQnyl79FpJEzkwPV4wKbuLqm7qhG/7tYYzz gCB0N2ZKMe/sECt2PgshI70RWOXruEAGc56wm1NSkvCPjaFc/WF/6xHbXNYGd5b0g+ CXKE/jUertlrs3c4WSZ6q5O+LB61zYW+6IvfWzslmuBK8gGmjdD4hHAnTn23oJGPb2 e2Yh9iW9txqdz9CecNST5o6HkSDKmkx9MpMW90seGFUgDlJDbRx2KB/5+DiMNP0ykN qo8xgOBUf+luw== 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 E4D36889C9; Thu, 15 Aug 2024 10:10:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1723709405; bh=efJO5G58F0gEctwu3FgAMvIyEfS59IkqA2cUjzguJFA=; h=From:To:Cc:Subject:Date:From; b=YBqXM+9D6aG+ShLXR/f5sXzlMxF+AZfh0AdbFe27gV4Dhf2KcRXJZM4SQCjM3jN8w ze7riMQN6LhfiHVr06HRZNgKIyVNGxbaoDH6ru1jA81XsDA+09tkCnyRo6HCj3M0r/ ULKPrk3mtIyB9h3rg2A2YDIWIamK044yMN0wFBNww5DKrPHyoBKJYlBTsEzYcz3Ve2 lhQA64Y2c7lWBYzQVL8/zYROI+X9uxkrMTcNW+G3PtYTJxu7bWUaKBcu8vfkS4eEWG INBmNLLmTkhCgMoN9y2ucdSbKttRts9A1OcsZ7HhYGRQdqWK3U2SxXtug/uj1jMsOo tsvNbCBn0b5+g== From: Lukasz Majewski To: Teresa Remmet Cc: Tom Rini , Marek Vasut , u-boot@lists.denx.de, Lukasz Majewski Subject: [PATCH] config: imx: Define CFG_SYS_UBOOT_BASE for Phytec's imx8mm SoM QSPI boot Date: Thu, 15 Aug 2024 10:09:48 +0200 Message-Id: <20240815080948.457524-1-lukma@denx.de> X-Mailer: git-send-email 2.39.2 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 image offset when booting from SPI-NOR (QSPI, FSPI driver) is different than one for SD card / eMMC as extra space (0x1000) is consumed by FSPI configuration header (CONFIG_FSPI_CONF_HEADER). Signed-off-by: Lukasz Majewski --- include/configs/phycore_imx8mm.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/configs/phycore_imx8mm.h b/include/configs/phycore_imx8mm.h index 0910ae2d87..92c30022a8 100644 --- a/include/configs/phycore_imx8mm.h +++ b/include/configs/phycore_imx8mm.h @@ -11,8 +11,17 @@ #include #include +#define UBOOT_ITB_OFFSET 0x57C00 +#define FSPI_CONF_BLOCK_SIZE 0x1000 +#define UBOOT_ITB_OFFSET_FSPI \ + (UBOOT_ITB_OFFSET + FSPI_CONF_BLOCK_SIZE) +#ifdef CONFIG_FSPI_CONF_HEADER +#define CFG_SYS_UBOOT_BASE \ + (QSPI0_AMBA_BASE + UBOOT_ITB_OFFSET_FSPI) +#else #define CFG_SYS_UBOOT_BASE \ (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512) +#endif #ifdef CONFIG_SPL_BUILD /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */