From patchwork Sat Dec 21 07:54:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11306835 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E87313A4 for ; Sat, 21 Dec 2019 07:55:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C388206EF for ; Sat, 21 Dec 2019 07:55:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dPPRCLGp"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="QlsOmyiX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C388206EF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HTRDkuqiKJ6ElvdB91G4a5+QPZVtCyM00yWkJkr0jNo=; b=dPPRCLGp/e33V2 L6Ls7ZuhVtJ6lCQhXTtGOZ/0ADPQVWWiCh0jRsfNofNTRSypMKvkU5SlIaBi+CSmYiSNRoRnLLPUQ n2YJK7FnR7xJuXHZTjX8tnPuxo7brpXJUTazpdYpJU3zihpICY8y0feX7pxCnFBJuJWJmFe8VaLaM 4p81/WP7OYtQuGIVmJSNPWGPjoXfKyPLTz0B/CzVUvYm4i8FpsHV2JAalH0csgVcBTvZH24HRKOkj I4C94sRvSp4jWOGelkzdyAoEQ9SJYrvg07RdPlBWxEGwGf2dsbGVh6Bs54+Wwt6sU1Y3dMgPTYHCk rxeQFKZ2QjIRI/j+NDPw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iiZbV-0006Y6-CU; Sat, 21 Dec 2019 07:55:13 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iiZbM-0005Me-9Q for linux-rockchip@lists.infradead.org; Sat, 21 Dec 2019 07:55:05 +0000 Received: by mail-pg1-x541.google.com with SMTP id a33so6141503pgm.5 for ; Fri, 20 Dec 2019 23:55:03 -0800 (PST) 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; bh=PD7PDJsuTgCP1UNeKowZcnqFlFTcD11r0cEdAJpebdc=; b=QlsOmyiXdhACOT+Dgoqs2oT/LCR4Lh/z7BoRwe0BUoblcZIaUXolPu5898ysEd5f4W RdP63z5jA53NY2vpkap7151WfmP/qADXrkwBKJrHVnStsuM0kb1fTZjbR1aDgUVrTl9j SvmEUDzSO63FGQfGvut9XVWj8cvIzZfLdGR84= 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; bh=PD7PDJsuTgCP1UNeKowZcnqFlFTcD11r0cEdAJpebdc=; b=tDOplljbBhH9e7jHHt5mmGhmX49GoMXZCgEsM5L4SvmRf6OiFkBlG/fWMj+p8lH3mB N2ib0XdptGA7OuP34YDfamhM1ihCCSTEUME+SnruUOJiaMC/pC8b1yl6EfF23l/0/nYw cvgXUnm6Q07hGWG84wcO7gZw3l5Qvjbem0wSPlWp1XaHYonQjUS5t6cDd1BkgSaCswWS fLomlHO0FNEBurgsmeYRYhsz0LFUisKAIzcq5aV2kPHOdwbcMQ2jV1tJxTrD7MruHpqW 8bIP5NT8bpIr0D3xipKHrH2E6l2XwfvAyfxV1cEQ7TfrUNZSgrGvPVE1VGoIGn/ndkTC W7eg== X-Gm-Message-State: APjAAAW0N4hLqk1z10wLDv2IuKMiuvWFLrLyTpN++NsmkmS8GzDCyq+Y dg6x0SflsB9zDdFVTmkTF0lyYg== X-Google-Smtp-Source: APXvYqy/ytiGINEeMuwf5SQLkVgaG9b8hUQlP80YpzMKs8bZyx+lsFjMxPgxWcWcHJf4W3s8+lJ4mA== X-Received: by 2002:a63:1853:: with SMTP id 19mr18839965pgy.170.1576914902953; Fri, 20 Dec 2019 23:55:02 -0800 (PST) Received: from localhost.localdomain ([49.206.202.177]) by smtp.gmail.com with ESMTPSA id i9sm15551018pfk.24.2019.12.20.23.55.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 23:55:02 -0800 (PST) From: Jagan Teki To: Simon Glass , Kever Yang , Philipp Tomsich Subject: [PATCH 04/11] rk3399: Add boot flash script offet, size Date: Sat, 21 Dec 2019 13:24:33 +0530 Message-Id: <20191221075440.6944-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191221075440.6944-1-jagan@amarulasolutions.com> References: <20191221075440.6944-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191220_235504_403653_BE5C8429 X-CRM114-Status: UNSURE ( 8.28 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:541 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: u-boot@lists.denx.de, linux-amarula , Jagan Teki , linux-rockchip@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org 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 --- 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 127ca1f09c..92eb5cb750 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" \