plat/st/common/stm32mp_dt.c
/*******************************************************************************
 * This function gets DDR size information from the DT.
 * Returns value in bytes on success, and 0 on failure.
 ******************************************************************************/
This function gets DDR size information from the DT.
Returns value in bytes on success, and 0 on failure.
This function gets DDR size information from the DT . Returns value in bytes on success and 0 on failure .
uint32_t dt_get_ddr_size(void)
{
	int node;
	node = fdt_node_offset_by_compatible(fdt, -1, DT_DDR_COMPAT);
	if (node < 0) {
		INFO("%s: Cannot read DDR node in DT\n", __func__);
		return 0;
	}
	return fdt_read_uint32_default(node, "st,mem-size", 0);
}
uint32_t dt_get_ddr_size ( void ) { int node ; node = fdt_node_offset_by_compatible ( fdt , -1 , DT_DDR_COMPAT ) ; if ( node < 0 ) { INFO ( " \n " , __func__ ) ; return 0 ; } return fdt_read_uint32_default ( node , " " , 0 ) ; }
This function gets DDR size information from the DT.
This function gets DDR size information from the DT .