From patchwork Tue Apr 7 09:26:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1070 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 116D43F032 for ; Tue, 7 Apr 2020 11:27:12 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id e8sf1018315pjd.0 for ; Tue, 07 Apr 2020 02:27:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586251630; cv=pass; d=google.com; s=arc-20160816; b=XqbD41djTJc3HkQo7yd+mT1ngGkZyM8sQ1Svn1myconZDH5haZ2sY0LItSTEj4BjJn TyPZ9oqQZRp6fmG/BT+J/T+iLLxKGqb08Nfisq4D/2ZwicEg1JFIahxnI+HzpANof5Ml v5qTGTvAnOZw05E4YYyu/eGkze+w9s3cukVt7rDVJINh7vrnsJtkykVJ92DXoNOiGdaR /i9m8ES7VxXCS7UwE7XPaZrTX6t84BAx3ZzYyofB3PCogubVr7l1COBbE+B3ra+PUcRx qSFHcd0duO0SggRk9BvpRCaD93wY/UG5CSYCu+rOd3sOWOAPNBJ4KlE/1KYlGyO2p6+r eciw== 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:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=8rJ/5Tm4csJONTg26sBkqdAWyu64gog0x77OldgywnM=; b=ORE+pVARnXIG7lDEOwkih/S7teU+M/Jf68GwYaZpAUgv9BQg73ZP6jMroelo6IRHfv 1T9D/h4/FFH1m3jBHfL6Wom4meibz448g9aNPRLDAZIqjCZ7ApPPzjlOq976p0mJhO3D QaV9vojrzajOW/oHLp5TEYNIAralN++QWw7y1y9Y30n2ZuOlr7IywXT6SMmmIZhtTMRt wEvdNE/y9jo1Fl9HCNnVWoR5khY+n7U9EtairsoMl5Pdf6Wfy6h1ShkcyiDymBL1vFmI 6fj9qhvKSWQZRY1bxwpkmd7hDc2JWdhjUElRZfwp0dcJJq4iWSqr6T5b2Q63hd5BIVY7 5VJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NIL8bo7q; 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=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=8rJ/5Tm4csJONTg26sBkqdAWyu64gog0x77OldgywnM=; b=hBKGdjiBUgFeV1l46SW8iD8d2MfaFOzDuvjYE1hiq0XGyAUYQo7TKzpTAMj5ugSOcP yosv7qK3Q/AKthdrpoo065Moe+Cq/EBkuiUxQkdh2n2mMl80yVYsKNaN+Oz2IIOr8pwH 1iLpTSdgTUoq9F0sPGnIphZzb1w1e8F3P8u7U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references: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=8rJ/5Tm4csJONTg26sBkqdAWyu64gog0x77OldgywnM=; b=DSue82HnZE83PF31BXRxFOWbQ9A2ahpQ09wNWq4y9emTgV29TFnWk9DKn85d5JRzQQ lSuD/Z5OlBb9r7r4A1kikLvqrKomlNH8fsL8TEAdX1FDy3NWohmR0KqCpY4Nt7VsbT8K 4GrQbWMmo2C20lqCFgGfMUvVnuMRbJoQTvlUkleaXaOlj5dhQKeC52JhpVMi7tKIkXGh cajv1h5vreNHOA/831AfluF6txbcw8m2pZLRix3fEj51z5g5NUZZ+0YVIorw3QWV3vU1 Qpc9sPfJ2pyJO5VnDKnM2GnM+PhKCNG7w4o+re3NdUAfFH/7F1Kxo5xL+1tTW5jMn65C RWcg== X-Gm-Message-State: AGi0PuY9odwiKts+mHavRhPj2l8cBI+huXjrZJu2tBa0V7lHuBxg/OtZ tlTCM2RZ5b/cTo4JsSNnTxfcT3Tx X-Google-Smtp-Source: APiQypK9S6GBcJSQC0oIiHutRrbsTs7NgXQxc7UWcNjiSyXpAKPLsQ8zqEyL17l74EKi7a9J5y/M8g== X-Received: by 2002:a17:90a:8cf:: with SMTP id 15mr1704485pjn.76.1586251630413; Tue, 07 Apr 2020 02:27:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:834c:: with SMTP id z12ls1814233pln.5.gmail; Tue, 07 Apr 2020 02:27:10 -0700 (PDT) X-Received: by 2002:a17:902:7795:: with SMTP id o21mr1588497pll.335.1586251629912; Tue, 07 Apr 2020 02:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586251629; cv=none; d=google.com; s=arc-20160816; b=0bqWelMBH9Eaha2PhpVOl4erRhOgk0XoZCgiwxbJF9EqEPugrWm4oHkXgTLh6l2T6b joHgj2h1xbZKh27ELBz9lHaeJ0G9z+MGM/6lbSwRvEMkI1z3yVhwWf2lJ+9d1FcQ3Eet tQi4FkmZYl6oAiGAJ/CpH8aMOnAZipVEOhVYXxSKbgihkShpCUTJ9kyJ6GVjdBXSpbxG KI7YdV7OAPyPW3HUveunlNBgJ/oNwdSuQHbDjJwGRDDnLKYHJbBaGWUPH4OGDxnBAPXZ 1U7NDzcciaSznn3MRFzJX6dGdBUJqDJQ8Pg1iURFw9a6efXx8vqcC3OdrycTyADzArfY 1kMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s76zQQoj7gNUkn/4Gl0moOv9fgMkF54UrGm+NhmJae0=; b=BNPH8ZJajRqsR91+LS9JR7O2SmM+D6fBBbSGxwYaEDInvILwtrQ1TbxrbMQctIN8t5 J2Jjvf55oTWF8oIQRrs6HF5vbWhpyJIr6bIRC4auQrXzmEQa9QR+KkLuS0xExMl6HeYq 5h44gYJTJvNrm+VtK2dv3Za+oLmI0t8lqmokCHD9AXmzUGZXAOjL6PFrzOaZMNhRgoJe hNGUjFDOq9AsZrHYY1rjoTukVFnUinEVTdnaG/Hi0miV+pdCq1LOJANAM+URNneLwCgk zmp4p32ie8l8ledUwsyZBbP+AHmiVhZDyByurapB7pJs/Th8yui9O++K4pw87/cS9hzK VrrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NIL8bo7q; 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 e6sor2800178plt.67.2020.04.07.02.27.09 for (Google Transport Security); Tue, 07 Apr 2020 02:27:09 -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:a985:: with SMTP id bh5mr1545870plb.163.1586251629449; Tue, 07 Apr 2020 02:27:09 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:79b0:3a91:34a5:abd7]) by smtp.gmail.com with ESMTPSA id 66sm13759436pfb.150.2020.04.07.02.27.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2020 02:27:08 -0700 (PDT) From: Jagan Teki 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 Subject: [PATCH 2/2] sifive: fu540: Add U-Boot proper sector start Date: Tue, 7 Apr 2020 14:56:51 +0530 Message-Id: <20200407092651.9636-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200407092651.9636-1-jagan@amarulasolutions.com> References: <20200407092651.9636-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NIL8bo7q; 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: , Add U-Boot proper sector start offset for SiFive FU540. This value is based on the partition layout supported by SiFive FU540. u-boot.itb need to write on this specific offset so-that the SPL will retrieve it from here and load. Signed-off-by: Jagan Teki --- Note: On top of https://patchwork.ozlabs.org/cover/1263480/ common/spl/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 07eee56219..4c36864602 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -308,7 +308,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR ARCH_MX6 || ARCH_MX7 || \ ARCH_ROCKCHIP || ARCH_MVEBU || ARCH_SOCFPGA || \ ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \ - OMAP44XX || OMAP54XX || AM33XX || AM43XX + OMAP44XX || OMAP54XX || AM33XX || AM43XX || TARGET_SIFIVE_FU540 help Use sector number for specifying U-Boot location on MMC/SD in raw mode. @@ -325,6 +325,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \ OMAP54XX || AM33XX || AM43XX || ARCH_K3 default 0x4000 if ARCH_ROCKCHIP + default 0x1000 if TARGET_SIFIVE_FU540 help Address on the MMC to load U-Boot from, when the MMC is being used in raw mode. Units: MMC sectors (1 sector = 512 bytes).