u-boot/drivers/ram
Matthias Schiffer 5fecea171d treewide: use dev_read_addr_*_ptr() where appropriate
A follow-up to commit 842fb5de42
("drivers: use devfdt_get_addr_size_index_ptr when cast to pointer")
and commit 320a1938b6
("drivers: use devfdt_get_addr_index_ptr when cast to pointer").

In addition to using the *_ptr variants of these functions where the
address is cast to a pointer, this also changes devfdt_get_addr_*() to
dev_read_addr_*() in a few places. Some variable and field types are
changed from fdt_addr_t or phys_addr_t to void* where the cast was
happening later.

This patch fixes a number of compile warnings when building a 32bit
U-Boot with CONFIG_PHYS_64BIT=y. In some places, it also fixes error
handling where the return value of dev_read_addr() etc. was checked for
NULL instead of FDT_ADDR_T_NONE.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-10-13 14:01:42 -06:00
..
aspeed ram: ast2600: Keep MPLL power on 2023-03-06 17:03:56 -05:00
cadence ram: cadence: add driver for Cadence EDAC 2023-05-13 04:01:30 +02:00
k3-ddrss treewide: use dev_read_addr_*_ptr() where appropriate 2023-10-13 14:01:42 -06:00
mediatek board: mediatek: update config headers 2023-08-03 09:40:49 -04:00
octeon global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
renesas board: schneider: add RZN1 board support 2023-05-13 04:01:30 +02:00
rockchip common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
sifive ram: sifive: Fix -Wint-to-pointer-cast warnings 2021-10-20 10:59:09 +08:00
starfive ram: starfive: Read memory size information from EEPROM 2023-07-12 13:21:40 +08:00
stm32mp1 STM32 MCU: 2023-10-04 10:49:30 -04:00
bmips_ram.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
imxrt_sdram.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
k3-am654-ddrss.c treewide: use dev_read_addr_*_ptr() where appropriate 2023-10-13 14:01:42 -06:00
k3-am654-ddrss.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig ram: cadence: add driver for Cadence EDAC 2023-05-13 04:01:30 +02:00
Makefile board: schneider: add RZN1 board support 2023-05-13 04:01:30 +02:00
mpc83xx_sdram.c global: Remove unused CONFIG symbols 2022-12-22 10:31:48 -05:00
ram-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
sandbox_ram.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32_sdram.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00