]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: spi: rk_spi: use base variable with uintptr_t size
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:30:20 +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_spi.c file.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/spi/rk_spi.c

index 66b20fce9bac29011f06e136cd099dba26ce34db..7de943356adc32758e6c73fdca47d47211502389 100644 (file)
@@ -45,7 +45,7 @@ struct rockchip_spi_plat {
        struct dtd_rockchip_rk3288_spi of_plat;
 #endif
        s32 frequency;          /* Default clock frequency, -1 for none */
-       fdt_addr_t base;
+       uintptr_t base;
        uint deactivate_delay_us;       /* Delay to wait after deactivate */
        uint activate_delay_us;         /* Delay to wait after activate */
 };