From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B663C6FA8E for ; Fri, 3 Mar 2023 00:14:02 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BEFB985C75; Fri, 3 Mar 2023 01:13:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EkWeZP0/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 00A9885CF6; Fri, 3 Mar 2023 01:13:57 +0100 (CET) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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 15B4185CD9 for ; Fri, 3 Mar 2023 01:13:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ed1-x52e.google.com with SMTP id s11so3843915edy.8 for ; Thu, 02 Mar 2023 16:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677802431; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=PMyF75eGzWIhMAiKHgkIfNXlKes6tn4Y+2ZtfFGj9RI=; b=EkWeZP0/gUospE2t6KMy99mU3vlZSRTtHkYHec6hgVJIfMzWezhYzc1iba2Pll/n79 kUBHiCETyqM59qvNbeYJioWuNAAdp4BB/51grJUmBkHQbTDlorF8QWyobC7KkMDtx7qQ fJQOv+WHsbnyTj/4j1wqGUDe+u84VYr8th9yTHfZD8w6lE4rFLjAi5w5r/n60kphCd5K NLJU9BR1OSdwnHgm9/NkJKR5sLAJ1id74a6AkkYq1jUgiyICRejeP5N2ZzwtnHJIXV16 FjTGTGe53vYpLqSkDQWaVKgI4IyDYc4sdP9Auw1O7tYRK+zctyze8XW93ReW+duAlWMA 2V3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677802431; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PMyF75eGzWIhMAiKHgkIfNXlKes6tn4Y+2ZtfFGj9RI=; b=e97/1mFXBBEmJDKl2HKB1+SobHeP2Gb1OS0kSBCPY9HKt4uYdq9V/Jyh12oYKDE5Si IathWUc9kiQfJJzzyzK4o+/CZg21WCx3pUj1zXWetbyadZbR+cktln0ldr2iV9miYjjg /uJY60BdcwPnAaQB9H/4ce8JO3JPoBsuh4R+3WaVGSR/0FQUl7g2gai6Ng5Ntlpg1P8x incERp4AiEUbBKlBm3CZT1w+KFepGm00GGHfy4ewH7jNYihb5MCwSweJNQr+V0+qZDdU NmIxb0XMZpjk+zIT1ZG/GrmZgy8c1ILtBdfJzIa2YuwMx2Ku75W1D5lxDovDm+Z+wkT8 jEEQ== X-Gm-Message-State: AO0yUKVcYQEiZ3WilXGnZ8r9G+v8a0oauhnhfbT58MCP7OvWESstt5SR y74/k88zIkgrvE926ehJ/hI= X-Google-Smtp-Source: AK7set/kpMk7SSb+g23M2a/3GZE7rciRKG1gKB8HDCIYIthZVXbdDnaDq+sDzaKDUWUC4uZ69RMVTQ== X-Received: by 2002:a17:906:468d:b0:8b1:1f2d:ecf1 with SMTP id a13-20020a170906468d00b008b11f2decf1mr13917201ejr.67.1677802431636; Thu, 02 Mar 2023 16:13:51 -0800 (PST) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id i2-20020a17090685c200b008dcaf24bf77sm284551ejy.36.2023.03.02.16.13.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Mar 2023 16:13:51 -0800 (PST) Message-ID: Date: Fri, 3 Mar 2023 01:13:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: Johan Jonker Subject: [PATCH v6 08/22] rockchip: timer: dw-apb-timer: use reg variable with phys_addr_t size To: dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com, sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com Cc: u-boot@lists.denx.de, yifeng.zhao@rock-chips.com References: <7256f237-4b7b-f7d7-834f-f7c3fb8984d7@gmail.com> Content-Language: en-US In-Reply-To: <7256f237-4b7b-f7d7-834f-f7c3fb8984d7@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use a reg variable with phys_addr_t size in the dw-apb-timer.c file. Signed-off-by: Johan Jonker --- Changed V6: remove cast change title --- drivers/timer/dw-apb-timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/timer/dw-apb-timer.c b/drivers/timer/dw-apb-timer.c index 10f0a9f6..c92728da 100644 --- a/drivers/timer/dw-apb-timer.c +++ b/drivers/timer/dw-apb-timer.c @@ -23,7 +23,7 @@ #define DW_APB_CTRL 0x8 struct dw_apb_timer_priv { - fdt_addr_t regs; + phys_addr_t regs; struct reset_ctl_bulk resets; }; -- 2.20.1