plat/st/common/stm32mp_dt.c
/*******************************************************************************
 * This function gets PWR base address information from the DT.
 * Returns value on success, and 0 on failure.
 ******************************************************************************/
This function gets PWR base address information from the DT.
Returns value on success, and 0 on failure.
This function gets PWR base address information from the DT . Returns value on success and 0 on failure .
uintptr_t dt_get_pwr_base(void)
{
	int node;
	const fdt32_t *cuint;
	node = fdt_node_offset_by_compatible(fdt, -1, DT_PWR_COMPAT);
	if (node < 0) {
		INFO("%s: Cannot read PWR node in DT\n", __func__);
		return 0;
	}
	cuint = fdt_getprop(fdt, node, "reg", NULL);
	if (cuint == NULL) {
		return 0;
	}
	return fdt32_to_cpu(*cuint);
}
uintptr_t dt_get_pwr_base ( void ) { int node ; const fdt32_t * cuint ; node = fdt_node_offset_by_compatible ( fdt , -1 , DT_PWR_COMPAT ) ; if ( node < 0 ) { INFO ( " \n " , __func__ ) ; return 0 ; } cuint = fdt_getprop ( fdt , node , " " , NULL ) ; if ( cuint == NULL ) { return 0 ; } return fdt32_to_cpu ( * cuint ) ; }
This function gets PWR base address information from the DT.
This function gets PWR base address information from the DT .