Message ID | 20200420140514.25847-5-jagan@amarulasolutions.com |
---|---|
State | Changes Requested |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=E7xNRlA3; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 495T5C6XKXz9sR4 for <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2020 00:06:23 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 855BB81CEC; Mon, 20 Apr 2020 16:06:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="E7xNRlA3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EB2A981CEB; Mon, 20 Apr 2020 16:05:47 +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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (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 E0E2281CE0 for <u-boot@lists.denx.de>; Mon, 20 Apr 2020 16:05:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-pl1-x644.google.com with SMTP id d24so3982355pll.8 for <u-boot@lists.denx.de>; Mon, 20 Apr 2020 07:05:43 -0700 (PDT) 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; bh=dBEjQ7hjSgAkJvUZxt9wAMTIedFsqc60pLsW9v9UL6E=; b=E7xNRlA3c1ptXTnNOLdGgVEDsysxqu4vVuxSHpplEASQF97jZdiqIKC9XP/tsYhVux ez/sVz2WnEzI5wSoTHzQhuKpAAwOpAA/WOxmytab4N8j+GDzhMMdx1MtbgKQgYXUUhrR 8gDbQVzj2J+3jbxsKq2/xxwi4SiWyIMtTXQO0= 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; bh=dBEjQ7hjSgAkJvUZxt9wAMTIedFsqc60pLsW9v9UL6E=; b=Xdt3zYH6kg3eXW3OKC6DySAcKS6NseDyA1vNb7Wnlu132Gf6CrpFVYv2hGjPki50pU fr3BYL6bfhb57cHi/4OJjXNHB/iK22pRM1jIprkMZlgQ5ROVRFnkOiXsk6NQOKumMRtN sagqAOsSsOzLBrVeUL77G5cklO5gOFWR5V3Fqgn4Tae8ihm1M0GudwYOCA1gBsL/J23E Ke2XoWG9AQuhenfTfw2sfq8OaGLBlJqmoiJp5g7Vm9oakwaTBIIE+AiyKDUeokyUgg7M YZ2pIbO8fyhUo3GSgCo4q9J5KSIAKQkl0Fw0dLpq9kz8087GuX4v3RX2DzqeJ5c0Kybs b+SA== X-Gm-Message-State: AGi0Pua3mhQGTWwcKX3dINWdfXnDx9gjhash0KDRRVna0M9CugHJXzdw 7HtfND5BiYE2goaoxy7AcKHOHQ== X-Google-Smtp-Source: APiQypLYPCsrZS6AoiDFsXI0/oiEaVWih7Ale9ruwQ6K/vFGWmS4LMbIQ6rfK4IMIR2zoCVCxV5pZw== X-Received: by 2002:a17:90a:fd89:: with SMTP id cx9mr21208014pjb.64.1587391542433; Mon, 20 Apr 2020 07:05:42 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:7ddc:e17b:a9b3:404]) by smtp.gmail.com with ESMTPSA id z23sm1197219pfr.136.2020.04.20.07.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 07:05:41 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: pragnesh.patel@sifive.com, rick@andestech.com, u-boot@lists.denx.de Cc: bmeng.cn@gmail.com, sagar.kadam@sifive.com, paul.walmsley@sifive.com, troy.benjegerdes@sifive.com, palmerdabbelt@google.com, anup.patel@wdc.com, atish.patra@wdc.com, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH 4/5] sifive: fu540: Add boot flash script offset, size Date: Mon, 20 Apr 2020 19:35:13 +0530 Message-Id: <20200420140514.25847-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200420140514.25847-1-jagan@amarulasolutions.com> References: <20200420140514.25847-1-jagan@amarulasolutions.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
riscv: sifive/fu540: Booting from SPI
|
expand
|
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" \
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 <jagan@amarulasolutions.com> --- include/configs/sifive-fu540.h | 2 ++ 1 file changed, 2 insertions(+)