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: 942 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1DA3D3F08E for ; Sat, 21 Dec 2019 08:55:05 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id d9sf4302449pgd.10 for ; Fri, 20 Dec 2019 23:55:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576914904; cv=pass; d=google.com; s=arc-20160816; b=y7wHNaMhtvOctPgrGyLz/BKPNbesGiR76ltmBM87/Tzsypq+4gRj1g7rnij3QaaeaZ r+MzgngNUGa1HwluOVrCwP26lA9m6L/LmSdJhsjJ/lLwLwSAb0WGfg4kd4ZyOKh/v2zn 4H+E7lw6UXKYD8gNeYTUTBO6xvVH10vMLZQ2yTtNvVLx+4x98jEtI492wPcQ6+9EscMu wuJd3kBquq1pl59Vc+dG982/weEcPdLfTPV6CQK67r5noR4I05/iI1afypval7HX4e+G UtApYW3F53coBjE3gNA5mhZhv0WlBfaI+NZR5r6j6F4eFrUmo3Tg4ld+YKRrZVpRTWCj JQRw== 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=o6u0vfLSRV8cwd5G/rNrsjSR+h6TNOweiOZhOATnNS4=; b=eCPN1fVaeIRW7nRm17X6Y6exrtoMNdQg2dXXUSY7kppf2xgzYHD03MenIjImGGtO3A /KcAk8FRJvS/Uin5XT+CrBW3dYRIxfyo3/scNYtgrOOzbPTxd4KOe/y67DOsKtE0lwvg TYvEHJknjVi+zhMadNphS/UKnAeJteqoXMTznO7bgZhx9PsiWEvwnKdEiAYWVeeKmsGL Cm5ceridMkN75l1H76GbPszYZk9Bv8GCrFOX0yT2ob+3xJTeIECfPE0NK0IaHJYygMfK vvEzmGWBucQW3bLrZnTvRtXbL7c5A3qXX51Xk2LepnItUgn1og9RT4pdowI5dmEom+Hr EX5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QlsOmyiX; 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=o6u0vfLSRV8cwd5G/rNrsjSR+h6TNOweiOZhOATnNS4=; b=Xq5CfqtqJDF93lt9DlmG/0i71XxRpsU2huLbRIpnqWaUNsT7iskxi6loYHrFeqZyA7 XElvsAPF2zqC5X5rz3R9xLNSw6BGTlO4Lhna8+1qVHHYoLv9qL0UEBpaKspqolWS+e02 MYyBTwi3eZBa4Um8Lh0DevgPEAcJn1ZgoTxmM= 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=o6u0vfLSRV8cwd5G/rNrsjSR+h6TNOweiOZhOATnNS4=; b=KeeScl1DjjrU/Lb25pCcy3QXZ2IrhpUmMjF8fyFtdCpDs5tNpJ/MzU1HMTSgnDyQWC l2mxG9Mt9o0hznErYis+SHlf8WhS4SioN8DxBd7yllQi/PAXnLn/fTb0pGu3qhGiBm2r m9WRW/Kqsw5pEK1wqxwN85U1LDo3XRGO/5yatCYARX41IKqu6jwxatyKPpO3j91mxQNF YW0HTCzZjFJwPrrQR+FsbRx4pv/leBh4Lw0SzxHbb9Des7E4NQn/sRzEWu/BSPNUcvBd FpmvgkOKm065lK/7ik8ZkKEmA0ApOXSb2eGE+mZbrqQJQFaR63SZ8tYzms0Q6prkof7b xn6g== X-Gm-Message-State: APjAAAWpNq8igYTQdovA1dLNH7I2GmcJSql5nkRin8d2toUyyQ0d4lgJ stCGsxkGdYkkmV0RhmRxgq5M6DQb X-Google-Smtp-Source: APXvYqxnnt0FPWA8fdqDZdIlCU4lsVPc5laa3YAs/P6/WC9Bfj0gZ0/xwJMv70XlJ7E7GZFUu1EcrQ== X-Received: by 2002:a17:902:6ac2:: with SMTP id i2mr19447664plt.221.1576914903820; Fri, 20 Dec 2019 23:55:03 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:880e:: with SMTP id l14ls2206496pfd.13.gmail; Fri, 20 Dec 2019 23:55:03 -0800 (PST) X-Received: by 2002:a63:3089:: with SMTP id w131mr20091666pgw.453.1576914903348; Fri, 20 Dec 2019 23:55:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576914903; cv=none; d=google.com; s=arc-20160816; b=m+x/Je5gxdkS5ujnkNwnfpgJ8Iw9zQdNlh7GKxwf5PqWuPY76oxQ7a1cR1w9sEjhWY pcsxlNrW8SnutC7fneUOa/xcij69vg/QkEsc9TU8KovCFyD49BVmbKqH2DHeh+Uvi2ol 7F99lc7ibFRc1F0/vooYlaMFOoT1fCSSmVxuxIauvJGiKTq4LFJgEB+dszMgRVD/K7t3 jpOKV7qt/HTfDqbOueE0ac0DVxhkjWgBJqp+Jl8MpHqqLTYyV7j200yvC9MpJ0EgPYE8 squok4+ecfzBxZCqtlk6Hdu22AXYf0NCH0LCXREXixC4OflVfGPXqkw0CISXXLFi7nay rCZQ== 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=PD7PDJsuTgCP1UNeKowZcnqFlFTcD11r0cEdAJpebdc=; b=q+jOvbWouX6b8hQ8NBEQdIuvurw97nrOMgcNI309v6kzk8+PvqMgTN47j2CWCelg6l TWj2nKejwwJKUtyyaA3fskkc1EhcEW+BxitzHz4j+TZZV1C36piQp6Hu2FJ/fnhOj54H 7jjJkI56SO1JmiLi5+g5Z9XVg6S/MGO2sYDNfaatvW6ebXuntj1rSlls2JQsm+A+5y+q rwYCtYSAPQlThOvf0yatxi64EFfjhb1+x9WBtFs7pkgYyrPOtzWNXTs7K/NY+aG3hBf1 +2/tBN9lOfhSwb0NQqzmdt1McaExtdbJDhWiczLi6/aCPavZ4nVS3tVIPjJSlj0BmZVZ qcnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QlsOmyiX; 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 6sor13434472pgi.43.2019.12.20.23.55.03 for (Google Transport Security); Fri, 20 Dec 2019 23:55:03 -0800 (PST) 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: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 Cc: u-boot@lists.denx.de, linux-amarula , linux-rockchip@lists.infradead.org, Jagan Teki 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 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=QlsOmyiX; 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 --- 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" \