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 573BEC61DA4 for ; Thu, 16 Feb 2023 17:59:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9105685BB7; Thu, 16 Feb 2023 18:59:43 +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="gCoHwWJt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5BCCD85B9E; Thu, 16 Feb 2023 18:59:21 +0100 (CET) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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 C84D685B9A for ; Thu, 16 Feb 2023 18:59:14 +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-x534.google.com with SMTP id w3so5982824edc.2 for ; Thu, 16 Feb 2023 09:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=je2XLdGSVHF77e+XxaahJdU5PEwZYYwpNeuQDjboRB8=; b=gCoHwWJtwKseHMQJOTG9RJq8UIebx+KpycDs1BaXOKKupSf9yLXN+Y55JwxUq3dBCV nCGaEthoU/Scb73jcShY1XCj9Al40Q9wyS+pjK+Qvx5EscrKL/i/qQLzf3JB8zsNh1I7 T3rnVrKa8ZFo1x5ehwYkxtFagbljTmbYHJHWiuZfZKEZ/PwaIcaIFROtqmbJI6UHDGji RxoTPjWHee2GwsoqogI7FarUrwpjjEMp85R1NApUIwlj8nkGrHcIF/tdWNxKSiuony9f 8KbjM4Cy293eaYnsRZflLR1X9y7QC/zEaWoNYYwBkbN4oKnao2zmWt6jXyqkjg1ofjbJ jASA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=je2XLdGSVHF77e+XxaahJdU5PEwZYYwpNeuQDjboRB8=; b=uF8RtjUvttdQMl7lANaX97FwP62oU2hAeyG5J6wkrY3I4XbeYg+TBy4R10Vz/WB8zi Q/7vRrZ68/MKt1RwH43JDSkS4aTWarIfhQd+dWhBc4+apWoAu5U5BeLx8I7uzrNg8Jz3 oPguZ3dyX8pMdTZP8TqXgIvHjH52LSiLZMQ6RrLEf1BzN5jZvVYjDq1lU6MH+/AM9iEL T4B/SPOZK2G4uBQ/na1qMJQDnPe19FR8jtJj7pwmTpCv7iPvMTYhQg9QYHhvNdOwTO95 4pRGwbd+i2U9RD3UPnLf04u74KA5bounKeFzp+39F9QQmj7jjQYWJUzJmr8BupnEpw6/ Vlpw== X-Gm-Message-State: AO0yUKWgw9tHDDq4eKeDCGGN+Ev6A7f+qVVuqgZubeNaD0uboBOHd/97 SX4NPs8pWvZUR50/rd8Y3l4= X-Google-Smtp-Source: AK7set8lEyp/jJYdd+ZhQuI5x/ZSXdwrwWmf1o7rn9ki8LWkBLedWDYUsiwEvObLHID/+8Lc1nyeuQ== X-Received: by 2002:a05:6402:26c9:b0:4a3:43c1:842f with SMTP id x9-20020a05640226c900b004a343c1842fmr3800032edd.3.1676570354433; Thu, 16 Feb 2023 09:59:14 -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 r23-20020a50c017000000b004a233e03afdsm1200805edb.46.2023.02.16.09.59.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Feb 2023 09:59:14 -0800 (PST) Message-ID: <48f1f8e7-240c-6161-53dd-804905f5904d@gmail.com> Date: Thu, 16 Feb 2023 18:59:13 +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 v3 05/11] rockchip: timer: dw-apb-timer: convert dev_read_addr output to phys_addr_t To: dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com, sjg@chromium.org Cc: philipp.tomsich@vrull.eu, kever.yang@rock-chips.com, u-boot@lists.denx.de, yifeng.zhao@rock-chips.com References: <111b67cc-1ec6-14b2-31d4-d2261b8b7a03@gmail.com> Content-Language: en-US In-Reply-To: <111b67cc-1ec6-14b2-31d4-d2261b8b7a03@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 convert dev_read_addr output to phys_addr_t in the dw-apb-timer.c file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/timer/dw-apb-timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/timer/dw-apb-timer.c b/drivers/timer/dw-apb-timer.c index 10f0a9f6..f55a3c54 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; }; @@ -92,7 +92,7 @@ static int dw_apb_timer_of_to_plat(struct udevice *dev) if (CONFIG_IS_ENABLED(OF_REAL)) { struct dw_apb_timer_priv *priv = dev_get_priv(dev); - priv->regs = dev_read_addr(dev); + priv->regs = (phys_addr_t)dev_read_addr(dev); } return 0; -- 2.20.1