From patchwork Thu Jun 4 20:39:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1337 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 587A43F086 for ; Thu, 4 Jun 2020 22:41:26 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id l144sf5677212pfd.8 for ; Thu, 04 Jun 2020 13:41:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591303285; cv=pass; d=google.com; s=arc-20160816; b=jKZHfOVAzIsDqP+12awpMHBuYaLQtijw0BG/hXGs2rs6m11HrjXgsf7/pBQMHhIeXI X4M4zpFKq6L/Q3o7bc7lAPZNsvdElo3+P7RXmgAAi18F6kgmGqjPy66jRX2bNUpHBH/T x+k2aZ5uxfXmC1/NP7mA906dnQTW6t312+UtTrPac74IKsjGENdboxqgrhoanxIXi4Em AopfqzQyBdXzkItb1Ldy/9aazdAA5zCK8Ub3nxdrmvUGsdcdckJuHIqMAi6vXRWZAu6/ QITxp0hsPy60/wwENJujENPdFL75Vmn883quX3B9Ql2i7kl6taKlTOuCX/9jdMsgFc3j fc9Q== 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=RSdGCtZct8NpsnmXdNOyBJwIWq2WwzVE4G0Qv7nCmNA=; b=EMMFfFHpwO7x1yGE5AjD79JLowBl7rHOWOBlxj5qade49Y9Pv9PWJON3qvjkl5kYFC 55mcIU0XnWLYpN2KiD6SmbiSGOmWz85hPsOCbwp9zVy1G/v/0O2V1Edowkkr+wQ4dwCm Sttj6MPR/LzVT7/6CTwTj9yx1rl7vdu+ekOPUzRIMoyprxBDIeNOHqjr7nE9sjH8JERz tF/9XfuJvnWKjxx2lCEyuLgYrXJsqOrOygaBA3JtJKS4CR2HMjQmZAunmq+b5Z01jLTQ oYwVXuq6+60ZtENsqiteMR6SCuEBcZyVyUPSX0xKWkAlCXLkvCK8qgH7qKF4CF+moL/q 6kPg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VxiKlafu; 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=RSdGCtZct8NpsnmXdNOyBJwIWq2WwzVE4G0Qv7nCmNA=; b=RyfwmBCnc1oX8Jg8uPDcpsfGimeP/8/5DVEqlAJ8WMOK38OW9crcFyInyXHoPeoArX chfwZKSBPzI9T+RbuB43clkJaNTga2dSwaCmNLkV8FRqDJZmpHewcen04Ram5FmoDnUq pKiY6yJzGTNiW6jEbHd8SFlHi0sd8Lc5hlAHY= 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: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=RSdGCtZct8NpsnmXdNOyBJwIWq2WwzVE4G0Qv7nCmNA=; b=skOJzfcldBBv5OCmgmIHy5Ln/VAWp0cOxYHKF/YO8Gzi4pAta4xK3HvOo5wDHZhb75 G/j78sztm7lBWXx3X4caILLckH5Ko7smJ7isfWuS/wIi1mDKgGEAao1otXRGD9PS7quA 9+5Whdqj967bJqeGGKakzXCpNLVg5b7UiCKNg/9/GC+YTZbFRrSUJzEh2LV5qdqG+shS edG1cX1aBerIr2ttWDP9AqccReKvucj/CtMtICeJZ9YNoFMdJ2DnvZADSStPQaL0ThyI PE6D5ITEvq4GwBHL/9K8hIJ0TSnJkP2Mt/go5HKx6DG+/fCpAIDSUBQoCT5lEnh0+RnL w3mQ== X-Gm-Message-State: AOAM532/Y8xmMygUcGb44ZkJRrP4llGCQpvnZ9JSd7cPCFj1QGEG6Ugc 683foGqxr6B1QJ80zdtIhScEY5hj X-Google-Smtp-Source: ABdhPJxGbGp5BYCucYHJ9yGI7HpR0nmaJW7lLn46hamxbPNUXeBZramk7ICVQPTkjOPohmu0GtPiEA== X-Received: by 2002:aa7:9494:: with SMTP id z20mr5955418pfk.314.1591303285078; Thu, 04 Jun 2020 13:41:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:2c94:: with SMTP id s142ls1051593pfs.4.gmail; Thu, 04 Jun 2020 13:41:24 -0700 (PDT) X-Received: by 2002:aa7:9f11:: with SMTP id g17mr6059421pfr.278.1591303284605; Thu, 04 Jun 2020 13:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591303284; cv=none; d=google.com; s=arc-20160816; b=nATqkhMI1r7XWhcGLXQutas/eIGDOUcdg/XxvpOYffZnke/nGAz4xqCHwea9h6IxzS sVlxnnnTVe5mQKAYPgQm9QQFyDzz+TuLP7zkq6uSfPC+wTHBhPbu05iHJnjyrbWSRROg pyr1PEFlnhX2u24xHaCJ8vGMW+QQuPLFXa9emfMJBYI1jo5VhqpZsKwPi6qY8zTr0a7D eWY5afgiwQgo8aWQ3SfX0w/+rxcB+WYBTU2I1GWs+F/jrL9SSbLSepWXLCFlDKK9AuoH jNnfVkiqMUrFEtJOpP5tU2c4Rg2XfTPoyV8Ja+Y+VxjCdaCSxH2+nM8SfuF2mT1tVQSh i6/g== 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=r5kMS41zXYlBEHWhY5QbZCxmO48PkAoZe0uyrMIIX4o=; b=RfGcUv1WPRKHhJXhRSEnOAkI0piaNSMiYFVMcXSS4rmlddZLDMJbr5g0lPLa1k+zsI EEp3sVtzf+rQKPk1QUxfGyhQsdvdIk5sJ9gCfN/cqpI69tnQsgqlNjmt2/hSNRYnwxIQ V1sCUA4lHogDVpu9r0YIWIHC0RMXajXxDY+aqH/5puojJDgmJIa5RXKoDnDm9tI7/M84 nuRyePrA0oGIPWL0PANb9TFC5GCLkShixR+5czBua0tb34ofWb90y++G01J29OZS7VnU DWCNre9jYRQBVvy8ks34fBoNadtBFy78J8D5ZiPhSuPlfhVuolHuQ9LdDUWeqW1CuxdF krmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VxiKlafu; 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 f18sor7626067plb.10.2020.06.04.13.41.24 for (Google Transport Security); Thu, 04 Jun 2020 13:41:24 -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:902:714e:: with SMTP id u14mr6470123plm.175.1591303284307; Thu, 04 Jun 2020 13:41:24 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:41f4:94a8:1af3:a574]) by smtp.gmail.com with ESMTPSA id cm13sm6463775pjb.5.2020.06.04.13.41.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 13:41:23 -0700 (PDT) From: Jagan Teki To: Rick Chen , Atish Patra , Palmer Dabbelt , Bin Meng , Paul Walmsley , Anup Patel , Sagar Kadam Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 5/6] sifive: fu540: Add boot flash script offset, size Date: Fri, 5 Jun 2020 02:09:48 +0530 Message-Id: <20200604203949.550290-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200604203949.550290-1-jagan@amarulasolutions.com> References: <20200604203949.550290-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VxiKlafu; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@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: , HiFive-Unleashed-A00 has SPI flash with 32MiB size. So, let's use the script offset at the end of 4K. This way it cannot overlap any offsets being used by software components in flash layout. So, SF distrocmd will pick the script at desired script address and run. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng --- Changes for v3: - none include/configs/sifive-fu540.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/sifive-fu540.h b/include/configs/sifive-fu540.h index 72c841eb9b..68fda14d76 100644 --- a/include/configs/sifive-fu540.h +++ b/include/configs/sifive-fu540.h @@ -62,6 +62,8 @@ "kernel_addr_r=0x84000000\0" \ "fdt_addr_r=0x88000000\0" \ "scriptaddr=0x88100000\0" \ + "script_offset_f=0x1fff000\0" \ + "script_size_f=0x1000\0" \ "pxefile_addr_r=0x88200000\0" \ "ramdisk_addr_r=0x88300000\0" \ "type_guid_gpt_loader1=" TYPE_GUID_LOADER1 "\0" \