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: 1329355 X-Patchwork-Delegate: uboot@andestech.com Return-Path: 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=) 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=Dp4Uog4I; 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 4B6Cp075cDz9sRf for ; Wed, 15 Jul 2020 20:11:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 53F4181C3E; Wed, 15 Jul 2020 12:10:54 +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="Dp4Uog4I"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0668781C3E; Wed, 15 Jul 2020 12:10:43 +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-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) (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 2F13A81D39 for ; Wed, 15 Jul 2020 12:10:36 +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-x641.google.com with SMTP id o1so2203533plk.1 for ; Wed, 15 Jul 2020 03:10:36 -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=i47e+VswuZEiFW+hgamjwuJI7N9t6GVaZGVi7Z9gDk4=; b=Dp4Uog4IFZnOaKUrLcksV/uShyBLU3vTCo4RiV5zO9mX7ETIM4gkmtDv8XDZEZMqFe w7rcngwSBituqqnbXX5UkxNcSzgsW0eHdVceHIRCNYqqrAmcgvduz2aYvzQEVjHJIaEs CGdKHJ7AsgchCS2iujwEA0Hv26MIsHn6wxLQs= 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=i47e+VswuZEiFW+hgamjwuJI7N9t6GVaZGVi7Z9gDk4=; b=D25qyFeDtRoP5h+HaC3yQRsKfTr2J/QZNzg10fNj/QNVvosB64r/X3bwapRaMcOAYo 2LdoYFYDEfP38NQYPPi6hd8xkdVxQ9jkcYSAkMjsVTcFhFaUV5ZwUe+oV1L8wanJdZmD bL0UPmAaHqtdTsRiRUPTLfSCW9xNwLD+uqno/WO7FO2AEjHvCRsdOER93ORENT/mNQbZ G9Hu0xkKG9mqDVvqPWiKgEj5GfEnNR5jeTwvtQzj2Nvp3NTHh/fcoihcWDqCVfIwMCU2 Yud5x4h4qPoRth+E3yghzlu3oAKfNnXHBR2eP+MQOShEtomc99VvCz2TUTsuNGtozzHP MRJQ== X-Gm-Message-State: AOAM532YNVt4o1847JNExkH54RwDm0uabCZpAKQblc11+q5YCHE7KbDU ivFFXe/umG5CljFrmk0yqSCO+Q== X-Google-Smtp-Source: ABdhPJxpzW2rsVUHKQSFz9nuKfnOSVGoLrEnEz7GHpcY0fzO+9d6oTNWXBrOJAzUuVBrtWpvKvdIZA== 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-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean 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" \