From patchwork Thu Apr 7 17:05:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 607590 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3qgq0L4Wvyz9ryW for ; Fri, 8 Apr 2016 03:12:34 +1000 (AEST) 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.b=W02wgxXK; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5B905B3849; Thu, 7 Apr 2016 19:11:06 +0200 (CEST) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MGRHFanN7Fjb; Thu, 7 Apr 2016 19:11:06 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F1901B396E; Thu, 7 Apr 2016 19:08:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 80D1CB396D for ; Thu, 7 Apr 2016 19:08:09 +0200 (CEST) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VQnF4W8r37-4 for ; Thu, 7 Apr 2016 19:08:09 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by theia.denx.de (Postfix) with ESMTPS id 3BB6CB3908 for ; Thu, 7 Apr 2016 19:06:50 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id v188so63438383wme.1 for ; Thu, 07 Apr 2016 10:06:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=Dyca7Ass2xSMG1qFwClWZJhgrhJ6nnEqWDO64h43470=; b=W02wgxXKBH9m5efcYOhSbYsONj1PHmoZ25ZFTs8elpPjddBK4i2cYpvO//6Wms9EXY LEFF0ySQmIlqmhQeg/5ndE3E+1FRHyH1hSopNB2l8N+3T+xBNa+NYl/V4Qz5L6TK7LL7 VunL0vnMXO53sc6GKdh8GauTiexldzeGR4mz1lLcFZtLKeXiGbEcRtLN64qNIlfyW5Se C4fBg57Un9NCwlojLpMSX+k5BzwioVLgpSv8+0e++VAWJpULqEjNfyXjRDex1uzORpM2 d114j+d3P62GjN4FNTDgGmtFDlpy+sYQzwFahTN+QxcjYhHR9XJdKzsv4oodX1haVh/b xlAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=Dyca7Ass2xSMG1qFwClWZJhgrhJ6nnEqWDO64h43470=; b=Mvzv/TtjHc36fCp2iwrjR6e5eD1gHWrAJVxKp50EdSlK9Vael+I6tp6zmQl7HCs8wO VHNyfdzBjB5joYr7ysKFo2tDttoh7O0UPUe1d7BE9dHzZ4RhGFrkojnPQQ7u5HtFH+LV L05FPJaDOBFOI2AMQzJx9UEw6CP0wYyDE+w35+cIXqz+qnIdirnHOlH5wsoS7NtMFyF8 GfSNW7Z4RLDuMkLCuQY3sN+/cV2XQCyNU+f/PdD4yFn5aeMqXnFl3mJMcoicY9OgKUHV mxrSfXGMBtvj8FyjwWKfIA+0UcZBWVWDV/+bkOr46u4pSnmd3WoY8UtTgsk4AyTb3m/S GWtQ== X-Gm-Message-State: AD7BkJLAJTwV3n2OET9u8U1HTJMKSRcSWxwqUPz2lx7Zxf0eHHZX0w1ZAP3XJu/Mz926cw== X-Received: by 10.28.65.7 with SMTP id o7mr5546519wma.0.1460048810594; Thu, 07 Apr 2016 10:06:50 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id u79sm25448409wmu.8.2016.04.07.10.06.49 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Apr 2016 10:06:50 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Thu, 7 Apr 2016 19:05:59 +0200 Message-Id: <888a56d46ca8d1e752cbb9c26992abf522d70668.1460048744.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Subject: [U-Boot] [PATCH 30/33] ARM64: zynqmp: Make DDR detection code work on 32bit system X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" Define u64 types to be usable on 32bit system because of 64bit address and size cells and 32bit shifts in the code. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 087578cb6b9c..529476b08268 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -63,8 +63,8 @@ static phys_size_t fdt_get_reg(const void *fdt, int nodeoffset, void *buf, int address_cells = fdt_address_cells(fdt, parent_offset); int size_cells = fdt_size_cells(fdt, parent_offset); char *p = buf; - phys_addr_t val; - phys_size_t vals; + u64 val; + u64 vals; debug("%s: addr_cells=%x, size_cell=%x, buf=%p, cell=%p\n", __func__, address_cells, size_cells, buf, cell); @@ -166,7 +166,7 @@ int dram_init(void) gd->ram_size = fdt_get_reg(blob, node, &tmp, cell, len / FDT_REG_SIZE); - debug("%s: Initial DRAM size %llx\n", __func__, gd->ram_size); + debug("%s: Initial DRAM size %llx\n", __func__, (u64)gd->ram_size); return 0; }