From patchwork Thu Dec 17 14:09:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1417696 X-Patchwork-Delegate: monstr@monstr.eu 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=xJzY2EGc; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CxYlf3XJYz9sW1 for ; Fri, 18 Dec 2020 01:09:34 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 23C1082BD5; Thu, 17 Dec 2020 15:09:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="xJzY2EGc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DA28782BD9; Thu, 17 Dec 2020 15:09:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 1D5EF82BA1 for ; Thu, 17 Dec 2020 15:09:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x62a.google.com with SMTP id ce23so38050397ejb.8 for ; Thu, 17 Dec 2020 06:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=y8r9zmJtInfzPcKM0vIPoinz+60zDPFCq//4scArOyw=; b=xJzY2EGcHrJWz/iqbGHgvjrvo8R2eZ7gYCltBRLYoQyoXX63oRsqkTZc1jCutkEt9u B72Snawk7MzlC6dSFJ3Z4dwve25B2/cGujanUQ+LuH7HzYEt9WafZFI4s+ZcX07kHFeO r92wbgX+MrVestZHdrqcWR0d39IIN06D3cbSe3aaxHQpu6659+2jBVmzHu4q7ZGtCUWd pRAE2t+C+urkxHbgxqh89iytNVuI5F+1NDrg/TVUa2LbLMKA6XAFU0Gmz+tFOe+/y87n BWEJOg0tlMADUbdaQyxL3EtsVnd6kECiATO5R6U8diTSuhBp23LfB6DVLkPTCtuTZ/lU Iyew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=y8r9zmJtInfzPcKM0vIPoinz+60zDPFCq//4scArOyw=; b=T+c0HSq8OfYpcHuChqNEhx7w+Uv5EYnShkU/fDifMkOv0GGH4KilkmpXuqN7fU4WcX tCZ1+Dnojy/VA6dSWrUJJv2rJyfhqLklJJmx7pydruX/LMoNuDhzbIncGofhpMZOlFdR dWQrzoGkGYhnBW1XVRk1gnVNWf0B/nyJ3mPb2HB5q3Ud3DuITBA4EkRwBjMlZEdARUW5 2Q/S6otDOLHU7/GL47nuG31gdHiZWYGGJYDSd1oJHKndavRt6SlP8HsRyGyVLwzxjdf1 0aRcLKju/6ZeE8HLCSilpKn7CUz6Ew3I8O/PSI+A7THMPMks4RBspfsxuDf8IA4Edr7m vvSw== X-Gm-Message-State: AOAM533yxOq4d7BmJJJWVvkuRTBMIosdZNz39NgPsKrHKPQ+oxIvk4Bk dktLKv9SNgJchIadG7uCD7fpYQx7KAVVhbaQ X-Google-Smtp-Source: ABdhPJw1LODlO02xEu9RPMY2crwIoJf3M0BUPmhyyxYyLm91goXB/gwhcGdM7Cl1A6ANGSTCotTJ7g== X-Received: by 2002:a17:906:5f97:: with SMTP id a23mr24405100eju.128.1608214157505; Thu, 17 Dec 2020 06:09:17 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id z10sm3783289ejl.30.2020.12.17.06.09.16 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Dec 2020 06:09:16 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: T Karthik Reddy , Michal Simek Subject: [PATCH 1/2] microblaze: Set script_offset_nor env variable Date: Thu, 17 Dec 2020 15:09:09 +0100 Message-Id: <52000119f29265013c668d48fe458772f76cff59.1608214147.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 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 From: T Karthik Reddy Set script_offset_nor env variable using CONFIG_BOOT_SCRIPT_OFFSET and nor flash start address to keep bootscript offset configurable. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- board/xilinx/microblaze-generic/microblaze-generic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c index e5909997690a..d4095c07c1e9 100644 --- a/board/xilinx/microblaze-generic/microblaze-generic.c +++ b/board/xilinx/microblaze-generic/microblaze-generic.c @@ -67,7 +67,10 @@ int board_late_init(void) status |= env_set_hex("ramdisk_addr_r", gd->ram_base + SZ_32M + SZ_4M + SZ_2M); - + if (IS_ENABLED(CONFIG_MTD_NOR_FLASH)) + status |= env_set_hex("script_offset_nor", + gd->bd->bi_flashstart + + CONFIG_BOOT_SCRIPT_OFFSET); if (status) printf("%s: Saving run time variables FAILED\n", __func__);