arm-trusted-firmware/include/drivers/st/stm32mp_ddr_test.h
Yann Gautier b4e1e8fbf0 fix(st-ddr): express memory size with size_t type
Express memory size with size_t type in structures.
Retrieve value as uint32_t from device tree and then cast it to size_t.
Combined with uintptr_t use, it ensures a generic algorithm whatever
the platform architecture, notably within systematic tests. Adapt also
their prototypes.

Move memory size print outside stm32mp_ddr_check_size() to adapt it to
related platform.

Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
Change-Id: Ic6e1a62d7a5e23cef49909a658098c800e7dae3f
2023-09-18 09:58:00 +02:00

17 lines
404 B
C

/*
* Copyright (C) 2022-2023, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef STM32MP_DDR_TEST_H
#define STM32MP_DDR_TEST_H
#include <stdint.h>
uintptr_t stm32mp_ddr_test_rw_access(void);
uintptr_t stm32mp_ddr_test_data_bus(void);
uintptr_t stm32mp_ddr_test_addr_bus(size_t size);
size_t stm32mp_ddr_check_size(void);
#endif /* STM32MP_DDR_TEST_H */