From patchwork Fri Apr 10 18:26:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1079 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7C45C3F0CC for ; Fri, 10 Apr 2020 20:27:14 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id 64sf2216702plf.19 for ; Fri, 10 Apr 2020 11:27:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586543232; cv=pass; d=google.com; s=arc-20160816; b=Op9ZKHa6gpKiBJjvFAazZl2j7u9EipcGhMVVtU/aYJBtHQpHJjiDhqT8cQZdwAL3OU y1hSoxyIZBl7naIjb9fDeArwdrPLejOyQ6B5k8VSzcIMC+AxBqbR7lPmIYA/0OATlGMw DWH7Lhre+nIWA3ouvG3rHxiizrut/XlrT4STLJhUHI/Aj8LEFIg/LnOJKKTbiumhPulW 8YMhIUjuZg7JKKH+R2bTMX6lYyfr/XpbmeB2ea8Sr/x53UEex0Tq66oJnA5wpcpyvmYi hCH4dDq/ZMTur8lOeIri+2DF+ebZe9Mz1+kZ5XucT/vVwu3epVry9pK1mNLnEIfPyZwM eiKg== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=V4+G9TraHwnY+qiVEG63+flwC3Tph9dVAyH1IcUcxwY=; b=mTlKcsWQ2tp7n/PM6KRT3A/O2tXZRzqi96cMqgVaBKZM+Ofs/XeJ2mx3WwbXPwLJZS wyzvIulCA5wHLTxfu0J3NdBd+H5QdPIuBvBAXS+sVPqfPmY7y+jUfxYlM9SHnfMgL6kT i8E12njib2L7MbZ1dGGGlkUeD7LkfAibJEX49oXdfzc++hP7hopVHarKwft5H5aeIeTS ntdbWg1zbZdtoNLhkuStqC18tjGNvtlMuGuMf1DzzBnD9t7boqF5W7F2E3Ne97wJA86m 5ACIYNJgxocQcYwPzyHy6b3nkOOBSMV5BBBQJh51UvKERJGmElSRp24B5nf+OOn4eDyK c6wQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LocK4TRu; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=V4+G9TraHwnY+qiVEG63+flwC3Tph9dVAyH1IcUcxwY=; b=WJQH4Iy7KA1vog3rgjxQ5OBfzTc/+x20QHhXauSJJX7pRlj7LriT5feH4m2/QTSDKf moAQeImTWlLLHHfexZoB8xn5dfb7HtIK6eePahyyuwWX7JEDCsF1ai85Ubk7Sm/c4mzB ccjI4/GHDaIf2LK1ym1m8RFNolP+GbCLdQl+E= 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:in-reply-to :references:mime-version:content-transfer-encoding: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=V4+G9TraHwnY+qiVEG63+flwC3Tph9dVAyH1IcUcxwY=; b=RkcX0xmG9isfXPgXLLp3u/VRcRZu0fyDykB7pRbNzXjtO7TPPZvh898IrbzmffFNS9 M4CrP6UP1CXQJXoOElgPmV9j692eBZpC+H5rwOijAuyR5e9pFPE9hblol+/S5indo+5V 8OSyELQezGgDcMa+Ouuss58qFED6wR85ofzkgRUJ//Pe3XyWoftookZnDBC2g3SpCKSq s02Kuu07rF4y2Fb39EjmbiUjzv1QYZD5vcfmsTC784TL50GoUXtWJ1q7GdTCwD6haEAs rONd3QQeNRseIOsls0p4MZ4MQfJrn1YBiPeAC9WYKqF8V0MhkeFs/ApSmVR2yHoApU+4 VvbQ== X-Gm-Message-State: AGi0PubppFoZpR/GfXjZL1pFAZCjfi4wsY46HAcr5vL8hEQVX+nqIDuT ocumzE+JP06jz/E4RFqgPsnQ8ok7 X-Google-Smtp-Source: APiQypJ0NfOkzhWYBUzgt9YP8VWicxY9XlPlMsXkDIj65xidea6qV58q4DufZNz/CrBx5XdDFne1zg== X-Received: by 2002:aa7:97a6:: with SMTP id d6mr6473728pfq.154.1586543232479; Fri, 10 Apr 2020 11:27:12 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:19d5:: with SMTP id 204ls1802798pfz.3.gmail; Fri, 10 Apr 2020 11:27:12 -0700 (PDT) X-Received: by 2002:a65:5884:: with SMTP id d4mr5236446pgu.401.1586543231941; Fri, 10 Apr 2020 11:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586543231; cv=none; d=google.com; s=arc-20160816; b=wMsBMxk4DVaH0cvKZcH2DRQGf1I7uJQYoOfp+4jFJ81bj1r1euoIoGqpwSO9fhLHIl lX4sbs5E+mUtV1aMrEGCpg3GzfOXfP1EbrSpMZZAi0/wQe2gelFCEq+88gc3g5F+wVHp 0v4mMBM33YkR5wXneDr9xf6UroWysyU4WAuvmCvz5rPXryQSvfy7V7tNjoPBiM4b24Dw 2pVmk4iojkg8CJhEmfURFA7HkhE6zMgjrC0pYbg4BEsGLP1gWCZH3UF2M86r42EBBRmA yXahCCX77L4Szq83vPn3ObXCpG9w6ahQJmEb9omWl0PC1Mldlw2PVh1Tk37udMqGytDS 9ABA== 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=4R0WqpdYliBRFD6P9shAumdZEaICffalbnt+KRBJLe0=; b=AaZT/xpYjlPBXOy7cBagPzVkBTFqXq4pgBoWwU3CggLiZH665/EMe98tOupvjFa/Rc 7tjFGxmnxxDttt9rgYHnaZsNo9O7afx1xLg9sEy5j35KBrZhT2gqljEe50Jw+zZeCjki wVU73R9Ms4Cq706NC55zgTDsZ0bM/yowxmKS8goRPbZ+r2CkM3yADTcqDTaOlvkdgfcR zXJX3P7ZV2gFNC6dgg4CpEaOtfQlNlIC3Zf+Nj+bKPIrWG5iHu3slne+AFEQU8V0Hm4B rhug18yCh6C1TafoZhMLeFcm2HEEP59LTQMsJPu4JFfXmokEfCru3T/EVaY7hBVggeaR kHFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LocK4TRu; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id ng17sor3578609pjb.11.2020.04.10.11.27.11 for (Google Transport Security); Fri, 10 Apr 2020 11:27:11 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:e013:: with SMTP id u19mr7092153pjy.54.1586543231664; Fri, 10 Apr 2020 11:27:11 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:e854:42b6:1a5:a40e]) by smtp.gmail.com with ESMTPSA id w90sm2214694pjj.2.2020.04.10.11.27.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 11:27:11 -0700 (PDT) From: Jagan Teki To: Tom Rini , Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 2/3] rk3399: Add boot flash script offset, size Date: Fri, 10 Apr 2020 23:56:30 +0530 Message-Id: <20200410182631.11951-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200410182631.11951-1-jagan@amarulasolutions.com> References: <20200410182631.11951-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LocK4TRu; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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: , Most of the SPI flash devices in rockchip (rk3399) are 16MiB size. So, let's use the script offset at the end of 8K.  This way it cannot overlap any offsets being used by software components in flash layout. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - new patch include/configs/rk3399_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index 89a8a44bbe..01a9174bd2 100644 --- a/include/configs/rk3399_common.h +++ b/include/configs/rk3399_common.h @@ -48,6 +48,8 @@ #define ENV_MEM_LAYOUT_SETTINGS \ "scriptaddr=0x00500000\0" \ + "script_offset_f=0xffe000\0" \ + "script_size_f=0x2000\0" \ "pxefile_addr_r=0x00600000\0" \ "fdt_addr_r=0x01f00000\0" \ "kernel_addr_r=0x02080000\0" \