]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: pwm: rk_pwm: use base variable with uintptr_t size
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:30:02 +0000 (01:30 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:18 +0000 (17:28 +0800)
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>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pwm/rk_pwm.c

index 071eb04fda7e27b4d2a998d1c3784882cf2bcc1f..1858d5973386095e13d3fe10812881874b637aae 100644 (file)
@@ -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;