diff options
| author | Johan Jonker <[email protected]> | 2023-03-13 01:30:02 +0100 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2023-05-06 17:28:18 +0800 |
| commit | 88a9e58b998dab620f6d7e71fda1a815f1a55058 (patch) | |
| tree | b0557150dc742c3059a5bb16f0b06347a4684495 | |
| parent | e9eddb75c5bf867ac2c773138afb64b92b6100e8 (diff) | |
rockchip: pwm: rk_pwm: use base variable with uintptr_t size
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | drivers/pwm/rk_pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 071eb04fda7..1858d597338 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; |
