plat/st/common/stm32mp_dt.c
/*******************************************************************************
 * This function gets DDRCTRL base address information from the DT.
 * Returns value on success, and 0 on failure.
 ******************************************************************************/
This function gets DDRCTRL base address information from the DT.
Returns value on success, and 0 on failure.
This function gets DDRCTRL base address information from the DT . Returns value on success and 0 on failure .
uintptr_t dt_get_ddrctrl_base(void)
{
	int node;
	uint32_t array[4];
	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;
	}
	if (fdt_read_uint32_array(node, "reg", array, 4) < 0) {
		return 0;
	}
	return array[0];
}
uintptr_t dt_get_ddrctrl_base ( void ) { int node ; uint32_t array [ 4 ] ; node = fdt_node_offset_by_compatible ( fdt , -1 , DT_DDR_COMPAT ) ; if ( node < 0 ) { INFO ( " \n " , __func__ ) ; return 0 ; } if ( fdt_read_uint32_array ( node , " " , array , 4 ) < 0 ) { return 0 ; } return array [ 0 ] ; }
This function gets DDRCTRL base address information from the DT.
This function gets DDRCTRL base address information from the DT .