mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00

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
17 lines
404 B
C
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 */
|