feat(st-clock): stub fdt_get_rcc_secure_state

The function fdt_get_rcc_secure_state() is only used in BL32.
Put it under flag to avoid compilation errors.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: If57c65bef0b1a3f7349527720f94fde26edbb73c
This commit is contained in:
Yann Gautier 2023-06-13 18:44:51 +02:00 committed by Yann Gautier
parent b1718c6382
commit 19c38081d3

View file

@ -248,6 +248,7 @@ const fdt32_t *fdt_rcc_read_prop(const char *prop_name, int *lenp)
return cuint;
}
#if defined(IMAGE_BL32)
/*
* Get the secure state for rcc node in device tree.
* @return: true if rcc is configured for secure world access, false if not.
@ -266,6 +267,7 @@ bool fdt_get_rcc_secure_state(void)
return true;
}
#endif
/*
* Get the clock ID of the given node in device tree.