Message ID | a491ad00-047a-7423-5dce-1fd51bf173d6@gmail.com |
---|---|
State | Accepted |
Commit | 88a9e58b998dab620f6d7e71fda1a815f1a55058 |
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=DMf4Ue08; 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 4PZcxk6nkkz1yWt for <incoming@patchwork.ozlabs.org>; Mon, 13 Mar 2023 11:30:18 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B07E86113; Mon, 13 Mar 2023 01:30:15 +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="DMf4Ue08"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4660A8610A; Mon, 13 Mar 2023 01:30:13 +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-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (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 794A786113 for <u-boot@lists.denx.de>; Mon, 13 Mar 2023 01:30:06 +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-x529.google.com with SMTP id j11so42270391edq.4 for <u-boot@lists.denx.de>; Sun, 12 Mar 2023 17:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678667403; 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=R4xXOt/bAWm8fVNc/OY//d/umOEqpOaz532odWhuOOE=; b=DMf4Ue08oWyUzK/DD3F1RhB5BKOjzFOLzATlfSSPE4rlxKfi9TX2QHO6gU0HFRoEBQ b0ZuMDGo4UwIEUNv5PmQb/NtWuz7O3jrUB4mbSSdBB2B4WlRtuosvBfU4QL+z8nBUSUj 9N3ECaev3HtEjsLZYgWPXNQOt3wAaGpQ03ePz+iR4x4yUN1+BLMCRkZjRbYP1y4P6hKY oXEUaNzqyu1RGOkI9dvk30dFZFdvE6EkVB28nifgQWU7A9MRLES4gVTcAveYt0Kiu7uS /r2GCougqNT7BM31G6bcGptQavxu3ImzEvt1GKexIRXxZk5i6HVb6+a7NH6v7EyiBz81 EuCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678667403; 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=R4xXOt/bAWm8fVNc/OY//d/umOEqpOaz532odWhuOOE=; b=mYjgkIA2k3wIMIDpWx/0p20wkYeJDCv/NvV69ox0qbU75L2pTCz2Froi1rmBUNsHFV redGfB3p9b7wmdCG0vfNzODvyIsDi/gcUePhbEXq5OWJadKxP3mMzMwmRaCIqy3VfVc+ yjAsRzFFo6KVqShHbp36re5a+FMZGbLnzDUSZV70mqvV0BI9meCct2zecaUuR+1XSOyt RUa2U8y/8agoKScFRoMgLFgAqioCuxNyBwy+l3U5wCQYEE1aluMgb+rAlsI2EWfDOkmr AQ9CUZXbFw8i/l12u9En439H6j0zVrA59Go4cJMEiD9fUnj1k+i1LuqjWFBS7g8zHBPB i4sw== X-Gm-Message-State: AO0yUKXs2L2aAMo+vYyv9GFQPIMCV6+DkWnCPkr+wSWkU2Axx3Gsczs8 UraVXvjwwyLvx2ft2fVmCys= X-Google-Smtp-Source: AK7set8jDQK+tg45Um06RN4YIzC17iK6KEutYw/3MrMq2EZ1patmyWCtj3h+EpmaOGgDziN5dE1Uyw== X-Received: by 2002:a17:906:54c7:b0:927:dfc6:51e6 with SMTP id c7-20020a17090654c700b00927dfc651e6mr2581521ejp.6.1678667403689; Sun, 12 Mar 2023 17:30:03 -0700 (PDT) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id t25-20020a170906949900b008d427df3245sm2759642ejx.58.2023.03.12.17.30.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Mar 2023 17:30:03 -0700 (PDT) Message-ID: <a491ad00-047a-7423-5dce-1fd51bf173d6@gmail.com> Date: Mon, 13 Mar 2023 01:30:02 +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: [PATCH v8 09/24] rockchip: pwm: rk_pwm: use base variable with uintptr_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: <be3c5f12-9df4-0a52-4858-c44d848e9147@gmail.com> Content-Language: en-US In-Reply-To: <be3c5f12-9df4-0a52-4858-c44d848e9147@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 |
Fixes for Rockchip NFC driver part 1
|
expand
|
On Sun, 12 Mar 2023 at 18:30, Johan Jonker <jbx6244@gmail.com> wrote: > > 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 base variable with uintptr_t size in the > rk_pwm.c file. > > Signed-off-by: Johan Jonker <jbx6244@gmail.com> > --- > > Changed V8: > use uintptr_t instead of phys_addr_t > > Changed V6: > new patch > --- > drivers/pwm/rk_pwm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 071eb04f..1858d597 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; + uintptr_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 base variable with uintptr_t size in the rk_pwm.c file. Signed-off-by: Johan Jonker <jbx6244@gmail.com> --- Changed V8: use uintptr_t instead of phys_addr_t Changed V6: new patch --- drivers/pwm/rk_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1