From patchwork Wed Jun 8 16:53:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2043 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C04173F1F7 for ; Wed, 8 Jun 2022 18:54:05 +0200 (CEST) Received: by mail-ej1-f72.google.com with SMTP id pv1-20020a170907208100b00710f5f8105csf5037539ejb.17 for ; Wed, 08 Jun 2022 09:54:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654707245; cv=pass; d=google.com; s=arc-20160816; b=NaaD4RXMKfqfH2BI4Jw05+CA0CVtyda0Gu/piGgbnoxKi888XnByo9Gq24Lih3zdx3 MxY9V2fpr2GZVHLNUTI8YQX2x/+rHV38SzELx9pHIFp5ODZ1tocRa6kzTOVKZDFgcX2e xeusiwo9FV3B4YD3qVdEnQV4n1bTWYysUxeN8WsrvOY3Vi8yocGq0XXc7owf/CL5WyA0 469QcpPMFz9JuUpnuZyBDy943xTJtKBAsSYI0P84vxKPBqfyk+QxrM/6vpT3Soag9Ofg pg3hYYfCFNVq43KxPzSynoKYP578dzF/Wb8Qge+iq8BOdlZMlqb04qp0Rs5AYWOnn7HL q/rQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=6ZGjbOqUJeHXm8zFQx4b0S3atjFtdpngBBcqQo9qDIs=; b=QS68cr4NE0YpfPJL0/1UXOXbgsJjDeAntzELkK1mtAlWieN1kpwuvVPyEcn0r4snHg V2G0mC+nVwd/8ma0WLTRxeHbNl/w1NV7VkY9NTQoqcH5aZWco2PuOtxnRXZY5EMbZHil 4zz37uuaeGdnu0UbYPt9pAr99NZ0Sgcs6qFcNq9QBe7LD12S2RCX6n4anj1BSCi9+Brk WTs9rg+QAaY5IhuzXJ/ObpfR6kSYH1JIhPebiUODA4imto2O9/yTT28qyGrrapUXgZ2a HEUTDQngSpfBMq8Ce81xxnQbT8d6Yti237MzwtMlEs7f9h+T1gRFsetO7mHQX1wGELpa SavA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KLIKaSWq; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=6ZGjbOqUJeHXm8zFQx4b0S3atjFtdpngBBcqQo9qDIs=; b=fhfpN0Bycv7NbggUXXJU3om9Ikbtu/Fv1dD0fJwvTOr5LigXptrRQCJh6mYMJPYBgy j5uWEc84w+QbxtyQpCw4e2G9s8htWoef376XtN1D4M5CJDGpCRz3Sh7Otrb5s+IDIkLd /K+q+XVwaYzf9bvbTcs5QYU5FAFspZuF1exbc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=6ZGjbOqUJeHXm8zFQx4b0S3atjFtdpngBBcqQo9qDIs=; b=KR9uE9MAW+P1Kp5nfk4hBCUYxYFfEWFwaSJx414owyGBpWTzx2VdkA89Z41qDYaAnJ wIPWPGQIOB/28NMTX9jJlFZ5CdiGNPnqwHfRWQYdkxFHpwURs/24306qwyt+A+gG0wBr N0NdmHe6F3VWW2AUHhGpPv03M+xJvvL/1XV6oFKXdiQJVCQpvKBAEcUC+Hkh0enIYMJe vVqF8fim0wdD4ydzHwAgeX3jAFz7ZV+edVsQbh+LTC/dzkvb3Mauo5/HAjjxxdLrOMqD Z/dv+6WOVK46XUksXKQdH4nLEpnVhgC4TVMqfYLNqsXT2TMH+TmdVqRrIT+B6RX+rLx+ 9Nog== X-Gm-Message-State: AOAM5336BaYJkBrQ90/56HeKMJKv46llWENUoDlaUKyO89ZQdX+2QGqF QAVS+jUl079a+9L9CwSm5UIM1CMW X-Google-Smtp-Source: ABdhPJzpTdPlZsiRUInis0WRJsYEC8KW58ahXtAGhwuwvHwGZwqfhosq31+qLWA4jUGQFHPz+lr2/g== X-Received: by 2002:a05:6402:4386:b0:431:9cc4:1214 with SMTP id o6-20020a056402438600b004319cc41214mr7228757edc.45.1654707245619; Wed, 08 Jun 2022 09:54:05 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:2741:b0:41f:7eee:e393 with SMTP id z1-20020a056402274100b0041f7eeee393ls195615edd.3.gmail; Wed, 08 Jun 2022 09:54:04 -0700 (PDT) X-Received: by 2002:a05:6402:3594:b0:431:4cb8:c7b6 with SMTP id y20-20020a056402359400b004314cb8c7b6mr22115198edc.334.1654707244655; Wed, 08 Jun 2022 09:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654707244; cv=none; d=google.com; s=arc-20160816; b=ISKHmGi9k1CENUTkixhmXywj6ZcWPzhJ0Jqo1vtG5OIbKmUPlNNi3BYowazdbIAIfu 3vEmhePfsYX2g/5P58cn/KmIrUHUfZiXQt6m0aijTTu7W7FWgaXBmcFYIjduXPjsbBW5 JrJ+POZxyiMDKM2qKcGuQK0HfKn92NXerzi7IeFVrLh0oEa2NPt0clDYon12axxsC6gv qP63LPflx9zMbdU+YJ4QUQGIHWTYQnOCvhFqfTRRBNdM2sl2RIDOHB72bVUavH8cChOO d/jWoZ4Y07+/YwvUKf1QVkG518gfLOjg7+nUSlMDTfHWkw7huqWp6q6oBM7380X0gS1s g7Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=XvYv87ukHvyE+DctfWOfxaFamOoD8EomQVqR2av1d1E=; b=rUMV4GRErh6sdDQkZWJDXtd3qZczybkhV2/sesvDH+RBC7AFO3OoSTIdVL23j8Ua1m vA+OEXwJ8A8X4GGIjUz/jVGPJdurjFzct6CZWCGiBFrbsCGsR8oewJ2dAV293AGLhT4q 9UXi3jTNqGM5H2jBLMMuEVgiY8QXGU3mqqbAxTBrfJEl3JED8HwekggdlJSrqPOffBZk tkONRSPWN1tS7Ig+hMC7nerukqH5sD6ztlCU7I8Xn0hPjUDOOfahM/URZR1I+MmfiEJs SwmvwPG3NBScpJt9YR6Hc/JJMtd9fZ1a8WD9D45HUHlo0qGfWxz9R+y1HWcvlce3xTEf T7gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KLIKaSWq; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id r1-20020a1709060d4100b006ff445e5d40sor10023474ejh.4.2022.06.08.09.54.04 for (Google Transport Security); Wed, 08 Jun 2022 09:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:54c3:b0:6ef:d07b:c8ec with SMTP id c3-20020a17090654c300b006efd07bc8ecmr32124140ejp.687.1654707244489; Wed, 08 Jun 2022 09:54:04 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-116-90-174.pool80116.interbusiness.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id jt2-20020a170906dfc200b006f4cb79d9a8sm9410251ejc.75.2022.06.08.09.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 09:54:04 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Michael Trimarchi , Ariel D'Alessandro Subject: [PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver Date: Wed, 8 Jun 2022 18:53:57 +0200 Message-Id: <20220608165400.1575815-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220608165400.1575815-1-dario.binacchi@amarulasolutions.com> References: <20220608165400.1575815-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KLIKaSWq; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , It allows to boot from NAND. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defconfig index 49f425300151..08f52e50609b 100644 --- a/configs/imx8mn_bsh_smm_s2_defconfig +++ b/configs/imx8mn_bsh_smm_s2_defconfig @@ -30,8 +30,10 @@ CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_BOOTROM_SUPPORT=y CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x300 +CONFIG_SPL_DMA=y CONFIG_SPL_I2C=y CONFIG_SPL_MTD_SUPPORT=y +CONFIG_SPL_NAND_SUPPORT=y CONFIG_SPL_POWER=y CONFIG_SPL_WATCHDOG=y CONFIG_SYS_PROMPT="> " @@ -65,6 +67,9 @@ CONFIG_SYS_NAND_USE_FLASH_BBT=y CONFIG_NAND_MXS=y CONFIG_NAND_MXS_DT=y CONFIG_SYS_NAND_ONFI_DETECTION=y +CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y +CONFIG_SYS_NAND_U_BOOT_OFFS=0xD8000 +CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND=0x4058000 CONFIG_PHYLIB=y CONFIG_PHY_NXP_TJA11XX=y CONFIG_DM_ETH=y