Message ID | dce0b74a-0c7d-991b-b924-b89c4db08282@gmail.com |
---|---|
State | Accepted |
Delegated to: | Kever Yang |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=jeb5ccKY; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PYBrf2NwVz1yWp for <incoming@patchwork.ozlabs.org>; Sat, 11 Mar 2023 03:50:58 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 19D7985F5F; Fri, 10 Mar 2023 17:50: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=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="jeb5ccKY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 26FEE85F82; Fri, 10 Mar 2023 17:50:51 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 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 8FE2A85F57 for <u-boot@lists.denx.de>; Fri, 10 Mar 2023 17:50:48 +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 cw28so23001863edb.5 for <u-boot@lists.denx.de>; Fri, 10 Mar 2023 08:50:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678467048; 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=s04/BRIYPsV0l974KRi75uhTNAQZbq5mQZUCjpK0K5Y=; b=jeb5ccKYtHRhfR5ZqyTVCEe7rYg+1hf7Bg9onacQZILsP1K1B4qBYv0PtP9Ab83ceq RiK9r7dlhK0JXlFCLZd7vbYjEGhNw4E1oQJYBc6QOVzjgHHHuJPEpJo5cype8jC35rxh d/9thyObLxVOezmSHrQ8n02FwnFbRIgw+RQdyUoJCHKtrodsx3Wd40dbUPdd9aYATjHJ je3xBWAOYG6KsLSa5IeaJ5XwoG8KPl9KshYXQICDiKjW2XRfZuYz0YjFrPnFZWMjVND3 nWm4fHFLg+00j3t/dw+IsX+ZynwEMsh/1rW0Lr9Way7/EJuig9XuakMXOPbK2rMCTAKG LORg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678467048; 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=s04/BRIYPsV0l974KRi75uhTNAQZbq5mQZUCjpK0K5Y=; b=h7MVKUtArZkkPH+LcekgCWIflwm/bZEaid9RhHL3JUVvOLukuRisOM/GabanVYzI6G qKRCqPW7A4AIEQnXHeScx0HyG1iebcONkQ6vrRmGu6kqkUvGSSXOvzNMJbMtTGxxQb57 K7/w/C/XOdFbJDs2sMAsf5zFxE3IB2G949vasSxLeE01WffGLmkVDH0GQTG2jHvC1FyA XZbJuGdf4IUmp/iDvcqWnEvL8fRUMd+M3i58Lv5DxKXugZ/OTg2cMtG+ouUKk2UrG+5z tnDbqlXdUY2ASEh3JiG0Ti3RYQgw01bSYHeAJCh1dykMA5cHLgAuS/Von4d2GAuBcmiC v0gg== X-Gm-Message-State: AO0yUKXqZI4IvexQ/zPJwqiyh/gUMM1beOOdxF0J7schVsS/49KtADai QebJor070KAeE8M2rm/ULxM= X-Google-Smtp-Source: AK7set909YSqCnP2eEXRDPL+QjP5+VuUfh8gT2DyhdW1IPKsf8cr/e4/sgs4M4+/SiDRlJcQFX3BjQ== X-Received: by 2002:a50:ee92:0:b0:4c2:96d0:c0cb with SMTP id f18-20020a50ee92000000b004c296d0c0cbmr26847996edr.23.1678467048109; Fri, 10 Mar 2023 08:50:48 -0800 (PST) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id w7-20020a50d787000000b004c19f1891fasm228074edi.59.2023.03.10.08.50.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Mar 2023 08:50:47 -0800 (PST) Message-ID: <dce0b74a-0c7d-991b-b924-b89c4db08282@gmail.com> Date: Fri, 10 Mar 2023 17:50:46 +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 <jbx6244@gmail.com> Subject: [RESEND PATCH v7 09/23] rockchip: pwm: rk_pwm: 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: <4caa17bc-6d32-5b07-68f3-f5ced40bfcbb@gmail.com> Content-Language: en-US In-Reply-To: <4caa17bc-6d32-5b07-68f3-f5ced40bfcbb@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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
None
|
expand
|
diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 071eb04f..b2784530 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -30,7 +30,7 @@ struct rockchip_pwm_data { }; struct rk_pwm_priv { - fdt_addr_t base; + phys_addr_t base; ulong freq; u32 conf_polarity; const struct rockchip_pwm_data *data;
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 rk_pwm.c file. Signed-off-by: Johan Jonker <jbx6244@gmail.com> --- Changed V6: new patch --- drivers/pwm/rk_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1