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 63CF3C636CD for ; Tue, 7 Feb 2023 14:53:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6C8CA85DD2; Tue, 7 Feb 2023 15:53:35 +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="SDi87TdK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 57B9285DD2; Tue, 7 Feb 2023 15:53:33 +0100 (CET) Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (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 19E9A85DC8 for ; Tue, 7 Feb 2023 15:53:31 +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-ej1-x632.google.com with SMTP id m1so1272308ejx.7 for ; Tue, 07 Feb 2023 06:53:31 -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=Q1D54xjQRq4l/t7hvXiB68w+SOE81FEF+kBMLo64NU0=; b=SDi87TdKrx+N8CXg6EXM+Wd10d5SXQDjGzHYgFBwWKdMVohP39Y390fTUUotcj3ki5 M/NieeChOIs12z9qL9+KITHcqzg4MOGxl5cU+T1bLjR1vdYT2Wi32cfqQG4BjpU04WIx d0Q5wMoU2pGg0S1HKEr3rjGlJgvoFPSmTE7UtNWdp+c+ybnheuJh3eJE+J8jZe05Umqt Nf5gEKTEApFJdhuDkLAhxTT31hlEElvgN/+iYd13GOhKPFr7DkeleWnvaykmrNwNE/Dq +1urEsYJiwhxApwTzrFKUyE66Y+qjvjqBplF63YcfgCGWSrj0FdlmKvBTj2UFwqsH5V6 GMiQ== 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=Q1D54xjQRq4l/t7hvXiB68w+SOE81FEF+kBMLo64NU0=; b=bLBhfqYPAYo57LLOHUQ2xRPRfpOsM9IwRj6d0bKMPc20mVr4387Q2pjImrPGVQO3Eb 35nhp808e7kRZnBCJDorwovUFmXEd9QF60GGvlWTxhaUL4HLhQqkty2dVsgAYN9y1nMW gD56QpfAksuo1oPwdKa01TgUexKcRsXNok4BbngECOBMJwANp7rQljGHgzRTsu4AdDYF A4ZhBBIRF9948KrHWKMSEwQqlXIrvcfVue/rw19RoKdrMoiOcS5T0cnj/ofk3xCFGb0V cJG9ZWjV9sL6kd5fx/6RsSSvGTkKCwSUu0kIEBsKF1I8hj2l7Qdsi0QHUfGut+3Zrn5M g9Uw== X-Gm-Message-State: AO0yUKWpvYh0GTtGdKYQtI5wXBO6D3ACCAlX+QCU0CYt5U2VaasI/PBC bZpwsTEx8Oj7k5UTfJOxZKE= X-Google-Smtp-Source: AK7set/oWYRNH+vxvompuOy+pjA+MaqWEz1q1DhYoRNa4F8Qn/eqc104apkv0mC//EIbd42TZnewAg== X-Received: by 2002:a17:906:6548:b0:88c:a6c7:af55 with SMTP id u8-20020a170906654800b0088ca6c7af55mr3819543ejn.28.1675781610802; Tue, 07 Feb 2023 06:53:30 -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 x16-20020a170906149000b00889c115cf6asm6987167ejc.145.2023.02.07.06.53.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Feb 2023 06:53:30 -0800 (PST) Message-ID: <31504d5d-4884-e60c-85db-4ded476dd071@gmail.com> Date: Tue, 7 Feb 2023 15:53:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 From: Johan Jonker Subject: [PATCH v2 05/10] 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: <241e9e7b-58d6-dfa5-fcb5-5660e6402021@gmail.com> Content-Language: en-US In-Reply-To: <241e9e7b-58d6-dfa5-fcb5-5660e6402021@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 --- 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