From patchwork Wed Jul 15 10:09:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1505 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AEAB43F1DD for ; Wed, 15 Jul 2020 12:10:36 +0200 (CEST) Received: by mail-io1-f72.google.com with SMTP id l1sf1078272ioh.18 for ; Wed, 15 Jul 2020 03:10:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594807835; cv=pass; d=google.com; s=arc-20160816; b=U8IKw1GSL5hhFODwJv9gbi2RZaOQaDdyrMbZfCoS/unP2LYVN3fjSyi5D9skWyiYqH zOUabf1k7dqzW1ZBHGRJ0JUwk3bjTawtk4lHFU4PA3So9wcG0OPCnGvxZ2jUWysd4rJH TNWf5RF0U5nk5ssAHo4gxf/agYfa6/7gDAoiTwaMSTGetB0GwogqQmjBg2cN1zf9BttX 5H22Oku8WjPsVPNEbvEBIgLZVBU18YECs+ZT8XbvPO1J/RsvblsQf2mwLbwrCHo30Qby GLHekxYfqdIfqzmqJEWRP6VYY1jGfbbXqrMz/PiNulD7RMjVYhhCSEi85yKQb7mjS69g tdJA== 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=D6UH1anE8PzvP4Ko65Up5WF0AJ35ADFpKlkXPVRvUBM=; b=uDXAm+nvlrVGbh8fx3C6aXCJjjG3A/n7Ysys1Zvtl9dlip3fIUjVO7DwqW+9dV8L41 1Nh0A7noex7PhXKfDJy9s1vYQZSxTQby0WEAtQGvG2EvEdvTKJaWagF4t3YanTVtES4y A0ZHUtC872CGklKHGDxl1Z+ahHk7jCcdLCIoGGwAz4Fy2ChQxCp/VVjiXeNOZgoR3SY+ nemT20B4QA4kjCB8e2HQ01AOUBWZcq5ZDzQ6ewnihBTs7dPmcITCUgFX1LT3ODR2IGVZ RUu0bUnebAj2CffPUpx2lbf+P7EUY4K5U97sDSCwrmB4KH9UbpjYL0Zvl1jYKa44nhE3 HL5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Dp4Uog4I; 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=D6UH1anE8PzvP4Ko65Up5WF0AJ35ADFpKlkXPVRvUBM=; b=Qz/ynlmAsjhuQUR4lKXmVnrh/W2j0vm+O3ZTpaGXv0wSusOuCuWFrgcQ+5Q+iJiwHf PHOkq8MZrgeJbmzM9unBCSdtVsHJBiTjXY3MOzOeHR3H2V/GuvChyQUv8iuciYzIHzy+ LI6zhSC2Y1j97Mj+KzHuYHKCJaP/ENucb7OKk= 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=D6UH1anE8PzvP4Ko65Up5WF0AJ35ADFpKlkXPVRvUBM=; b=MzCwTsv/hLiqnHbE32EqkyHMig/+HqgKj1wJhgc2dfStOgaBVzNuDVtBA7aZRPydpC 9XNRzQuEaykL84fIXwIj6maBVTIgcnYoc7PsjylNt63qrQcD5CzQK1m9Hh+K3wSvEtuT GyuHMpkb3NZxLxIepxTrqMz7CiMSV677FjoAH71WD/1Smz/I6cjj4xuyyqB2C7h+eC/U ZB0LIXY+C95Vmv4Qby1t+m/3zRq2HhsMfSxHF5pA9PeFG3mX6a/oidY+O10v5NxsJ2mP Vluhvy98jw/seh6VUiTa4Q/aS/id23fsc6Nw4ann6nCIsmCMIA37XH5htnPWp+MQ7lbO V6Dg== X-Gm-Message-State: AOAM530fr5PULLj2vGEyXZBABr+S3/ytUvlGy5oewP3KIoytCpDcsE1P R6ijQTXWte4NJSfrTIj9/s9Yl+A2 X-Google-Smtp-Source: ABdhPJyTQDDGgOONGOBu8Ilhwj+QpXSCQyYtTPYljePMhPTOCpcuDYsH1ahJ47GvA0VoaMx6kRXPlg== X-Received: by 2002:a02:c785:: with SMTP id n5mr10981861jao.75.1594807835391; Wed, 15 Jul 2020 03:10:35 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5e:da02:: with SMTP id x2ls314715ioj.3.gmail; Wed, 15 Jul 2020 03:10:35 -0700 (PDT) X-Received: by 2002:a6b:ba03:: with SMTP id k3mr9267351iof.72.1594807834955; Wed, 15 Jul 2020 03:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594807834; cv=none; d=google.com; s=arc-20160816; b=UTzi52K8itqBHj72GbGHubHOh20x8KAj2Z1j/upu+RMnuKZ0hESwz6OHxW65yfpYe1 XHBaYvNqdCxbBDIPmKYeROIXkNBaoQyvvypb0sl6/xmY7qhDZEDKLUt7r7+OvQLq0wm+ 5oKmVH3ywFlPtUu74XmsA40NAsmTCC7LFDojCN9EWXpApspCtKl69i8b9zMUTC8boQ5d RIoYeOJPvvSvGaSQhndLEzrqTkJO7jp4AaOED9eaBZgUw3U9yqDa2KZmEROssRu4P10D xVfUc+3ItiIDESx71YdvEiI+kfMnwmueYuzHziCDRjXjZp/WhHSbtSeLlRZDUvoU504y AU1w== 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=i47e+VswuZEiFW+hgamjwuJI7N9t6GVaZGVi7Z9gDk4=; b=ixABrYiml8+gtGO1esSuXs/OivSuZA2rzYxhEUpUQIwfxzdqcPOvAFAe/wVOgDsig6 oEOBhnyxjQyW2Zy8W4VvRIuZUCB/OpUDEHee541c7G7pjPpf9L6Lm6cnHgemwUD0EYBJ nF2412pJrSmU7QRwYJN+jf8Bp25q7CPevHHNiN7sVn33xvj1GAkUWdNUnZbsxreVZ0oT mHUlhRPhfhHVt8DiSUREs1QHDYrfGYdyNvGsuP+YDbhdSLmoGFDDYFRPR/j9rmhEkWGQ sPjSelSYVR0wY2iCVBoIgyNj2B+H9fNmUFBj8YNuOIB1VyAdVpWnVJuWemhvR5XM11aB Nssg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Dp4Uog4I; 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 k12sor1006840ilg.141.2020.07.15.03.10.34 for (Google Transport Security); Wed, 15 Jul 2020 03:10:34 -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:8d86:: with SMTP id v6mr7883943plo.200.1594807834622; Wed, 15 Jul 2020 03:10:34 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9887:56a8:c916:cfdb]) by smtp.gmail.com with ESMTPSA id p127sm1658577pfb.17.2020.07.15.03.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 03:10:33 -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 , Bin Meng Subject: [PATCH v5 5/6] sifive: fu540: Add boot flash script offset, size Date: Wed, 15 Jul 2020 15:39:02 +0530 Message-Id: <20200715100903.161363-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715100903.161363-1-jagan@amarulasolutions.com> References: <20200715100903.161363-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=Dp4Uog4I; 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 v5: - rebase on master 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" \