From patchwork Tue Feb 12 12:41:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chee, Tien Fong" X-Patchwork-Id: 1040548 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=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43zMjT4qLmz9sMl for ; Tue, 12 Feb 2019 23:41:49 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 4E1E3C2208E; Tue, 12 Feb 2019 12:41:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 627A2C21E4F; Tue, 12 Feb 2019 12:41:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B3F12C21E4F; Tue, 12 Feb 2019 12:41:41 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lists.denx.de (Postfix) with ESMTPS id C66FBC21DF3 for ; Tue, 12 Feb 2019 12:41:40 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2019 04:41:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,362,1544515200"; d="scan'208";a="132957856" Received: from pg-iccf0436.altera.com ([10.104.2.187]) by FMSMGA003.fm.intel.com with ESMTP; 12 Feb 2019 04:41:37 -0800 From: tien.fong.chee@intel.com To: u-boot@lists.denx.de Date: Tue, 12 Feb 2019 20:41:34 +0800 Message-Id: <1549975294-892-1-git-send-email-tien.fong.chee@intel.com> X-Mailer: git-send-email 1.7.7.4 Cc: Marek Vasut , Tom Rini , Tien Fong Chee , Ching Liang See , Michal Simek , Westergteen Dalon Subject: [U-Boot] [PATCH] fpga: Add support for getting external data address and length X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Tien Fong Chee This function supports getting both data address and length for existing FPGA subimage and FPGA external data. Signed-off-by: Tien Fong Chee Reviewed-by: Michal Simek --- cmd/fpga.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index 88a8e3f..b1f224b 100644 --- a/cmd/fpga.c +++ b/cmd/fpga.c @@ -343,9 +343,9 @@ static int do_fpga_loadmk(cmd_tbl_t *cmdtp, int flag, int argc, return CMD_RET_FAILURE; } - /* get fpga subimage data address and length */ - if (fit_image_get_data(fit_hdr, noffset, &fit_data, - &data_size)) { + /* get fpga subimage/external data address and length */ + if (fit_image_get_data_and_size(fit_hdr, noffset, + &fit_data, &data_size)) { puts("Fpga subimage data not found\n"); return CMD_RET_FAILURE; }