Message ID | 20200519192340.16624-9-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=TSmkE5US; 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 49RQrP1Ck3z9sPK for <incoming@patchwork.ozlabs.org>; Wed, 20 May 2020 05:27:33 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3E698810DB; Tue, 19 May 2020 21:27:22 +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="TSmkE5US"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A2BA981E4B; Tue, 19 May 2020 21:25:02 +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-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) (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 1815581E3F for <u-boot@lists.denx.de>; Tue, 19 May 2020 21:24:58 +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-pj1-x1042.google.com with SMTP id l73so1492778pjb.1 for <u-boot@lists.denx.de>; Tue, 19 May 2020 12:24:58 -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 :mime-version:content-transfer-encoding; bh=E3cVPagWu9WBt6nhTDhaTTsD8dnBMhEElnF1hpAyA5Q=; b=TSmkE5USLxye1qUbtcZlIo6CjtcTBsSvcyfWaX/f28/UR5YN/jKO58IzpHZRItZTtd AqoowV6E54Dq2xNu5NZurCisN3h642QFnkqaKCbrr/iHrkcEs160ur4CM7IViP/+swjr LuINS2FsuwKuNOEYkuHVVbnElAsrsJuvI172A= 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=E3cVPagWu9WBt6nhTDhaTTsD8dnBMhEElnF1hpAyA5Q=; b=lC1JgBLaoCZXDvR0zIMq9u+z+caURLgeZnZNWSxFGmovk/nuOdilOrMGBzpPPvYYbr c0bQ7d+UquwWihJi+qoZMAa1aveUaaciZkl3ymZrBgJiqNk2n9JicS9NfQBoWsTHNZxF BNH72dvM3y4fbqjDxurMYI1zdMTULJ1VyEbgKFs60U9ZR/OBQCswPvijpQmLeVCUkcqu gNctau+jc70Oh+IZlZXBFK8QjShBCzwCUPwc3UsMrR1qE6+c2ZkWwbS8hGNUiM4KtunE p6815yMXCF+6ypD5f5MAokCCbNn9Sperhj3mchkjRKwlN/qY9q9/l8Kfzq14iz9iBJjz 2REg== X-Gm-Message-State: AOAM533q1TrX42lDCGw1GDvseUqoRdXE+dPEKXeuOmljXkKFOMHLGhYW jbxnm/qbVHxwISIU1tY3v2JIyg== X-Google-Smtp-Source: ABdhPJwmNZfcMaf8YQ9SmCGkue8O3ErKMuNOQrgk+dRXxRXT45SoBMqappv8jPuhzjvMNlL5Bix4Lw== X-Received: by 2002:a17:902:7281:: with SMTP id d1mr1056659pll.78.1589916296553; Tue, 19 May 2020 12:24:56 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:713c:4a0a:47eb:ffcd]) by smtp.gmail.com with ESMTPSA id w192sm222553pff.126.2020.05.19.12.24.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 12:24:55 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Rick Chen <rick@andestech.com>, Atish Patra <atish.patra@wdc.com>, Palmer Dabbelt <palmerdabbelt@google.com>, Bin Meng <bmeng.cn@gmail.com>, Paul Walmsley <paul.walmsley@sifive.com>, Anup Patel <anup.patel@wdc.com>, Sagar Kadam <sagar.kadam@sifive.com> Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v2 8/9] sifive: fu540: Add boot flash script offset, size Date: Wed, 20 May 2020 00:53:39 +0530 Message-Id: <20200519192340.16624-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200519192340.16624-1-jagan@amarulasolutions.com> References: <20200519192340.16624-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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> --- Changes for v2: - none include/configs/sifive-fu540.h | 2 ++ 1 file changed, 2 insertions(+)