From patchwork Tue Aug 24 09:44:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying-Chun Liu X-Patchwork-Id: 501795 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp2981011jab; Tue, 24 Aug 2021 02:44:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDqrxPfmACHsHKDoGUrid4ksPG/wyh/iJSuyB6PWqrcH1icjZP7zo5hPYjXK1vwXRHv73x X-Received: by 2002:a17:906:802:: with SMTP id e2mr6998164ejd.133.1629798278176; Tue, 24 Aug 2021 02:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629798278; cv=none; d=google.com; s=arc-20160816; b=NcHGaxrdgIUoVN3kpA/iikxhVw2lbYNvdrFru38QJwtQXvvCMMAkWx8k3teF+juXCh P8n/10yUGGTs1MMQ6rRar0wtPokSjI1aUjJv0bkVv+ApQ6uobeK2pR3w2p5bQsKh1Tg/ 1TUdLLlYFSuXspNPMAlWxZJTw/CpPwN2+zSJEHQl2fmWGg9TFRZpah1DR1eOsiX7YXii 9kDr/cHk5g6PzlTisbYahGVubShsieZd0V6qCr9zv9dEozbVlwUlXzH2PY2uZYr05pkt +OzvpXfZivrWI6L0QjwZQ/WBvI75W0EPskP6Bm/lKWHmp5RcBQbr91w2T2I7LL/Sa4Dm Qqdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=/29SYcr5eBTYn+zV1DyhYgtMGJPBrrpCAaawdrOP2BM=; b=oVmhWkyxtsHaHLOxX9SjtARlDkyJFG0v1zre5yxEinauxwkYwFYGHPJSOYKleETaCU yHpr3WuqJm5OvLJFZjV2MVEmzaQ11HiMGzHlrM9dRCq6tErc4dtPHJ/hlGCpjUJuUNzd UM5jJeNNn8imPGEETfuODU78w5BUzNJWF8ToUigjepG+d1YyEHuSefSRMGYPRTf3NpC3 m5/zw1NAk1aZFKBX/t/Qi30uD9UywR5riJjvul2e3OQ1qxbhfjqN9osj2aYYfvsJrDnL OVNmleQBefJOjD/6uTXlim0rAesQxAKYpQgPWW7tkTfIDd4poDpYEgjcPk07ZvQaGEn6 Cl/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tK+i1k6d; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id w17si11239282edr.212.2021.08.24.02.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 02:44:38 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tK+i1k6d; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E518681F74; Tue, 24 Aug 2021 11:44:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tK+i1k6d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B793F82DBA; Tue, 24 Aug 2021 11:44:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 177EF80A22 for ; Tue, 24 Aug 2021 11:44:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=grandpaul@gmail.com Received: by mail-pj1-x1036.google.com with SMTP id fs6so400419pjb.4 for ; Tue, 24 Aug 2021 02:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/29SYcr5eBTYn+zV1DyhYgtMGJPBrrpCAaawdrOP2BM=; b=tK+i1k6dZKrHovQk+kE+5kkCQ5Vh+4quitECRHygDAs6TfyjETPqp3lNtQCIPqYTMV FL3ETtpDdLLEusAb8QW7kPywux478ETth49C4ptLD12H0Pkrjm1xZp7DZ9HFqF9TkBh6 KH7uc98VQygR00KQEYV5IWM2nHxygYpexr83riE6tqFtousvYJyIlfDxvOsZumKMhQ1c j4v/3SUUTv4pBGHW9O8iN4Uhg7Tg9GiZIyjLTRYa1ewFYD+AOUXcpciCOuujjgc6u8KT FkfvSPO6Pew1/cM1HfXhd2uwVVheydOaF2OpLghplPEo+RA14BJ1AqUSYdNTD2u24QAX aYpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/29SYcr5eBTYn+zV1DyhYgtMGJPBrrpCAaawdrOP2BM=; b=S/TYyjcCwSTyJn2BhSUI+s4Nete6a9LI9BQu72hlfPz77LuOL1nMF3Fley+b3B71P/ qxI5XiQaV+FRt8X3KFYw375Jea6Ji72KQMVULJNO+Hhp2xJIi1wVvMxfA+vGgrpycGeo MnaX/pVIn+2G+PGHUfgHn8hLjAiXly1OAaznHs9KNt2kFH7Fgk7JauFqoRbNDDnJZRVE cCD9AjAucVm3r63NrAkYaY8gyYkD3X+Y0lQqMZVsGKFIs/g99TBDKgGQ2O9ihUZyxhc0 fKVJ/CKcHHVVLVd72B5I63pOgkTMLYlFYCl2UUaz6z9nVCHdLPdHs+HuS6A6pTI9Vch9 pUyw== X-Gm-Message-State: AOAM531/d3YQamGSeFg2Hc55rOCrnXtvq1FHzUa+hHqN3RKKGvFaCtb7 40Zi58i9Kr0VotsDjrz7zKrovAaFEOI= X-Received: by 2002:a17:90a:7107:: with SMTP id h7mr3679842pjk.177.1629798265208; Tue, 24 Aug 2021 02:44:25 -0700 (PDT) Received: from localhost (host-111-184-129-17.dynamic.kbtelecom.net. [111.184.129.17]) by smtp.gmail.com with ESMTPSA id fv23sm1922344pjb.49.2021.08.24.02.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 02:44:24 -0700 (PDT) From: Ying-Chun Liu To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" Subject: [PATCH v2 0/1] arm: imx8m: imx8mm-cl-iot-gate: Add support for detect memory size Date: Tue, 24 Aug 2021 17:44:18 +0800 Message-Id: <20210824094419.2199534-1-grandpaul@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean From: "Ying-Chun Liu (PaulLiu)" When purchasing imx8mm-cl-iot-gate it is able to customize the memory size. It could be 1GB, 2GB and 4GB. We implement board_phys_sdram_size() to detect the memory size for usage. This patch was trying to fix the regression on mainline U-boot for imx8mm-cl-iot-gate. However this is not related to the regression. But we should have this implemented anyway. v2: use hang() instead of while(1) Ying-Chun Liu (PaulLiu) (1): arm: imx8m: imx8mm-cl-iot-gate: Add support for detect memory size .../imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.32.0