[PATCH v2 2/8] board/tq: Add common SoM API

Peng Fan peng.fan at oss.nxp.com
Wed Mar 25 12:25:04 CET 2026


On Wed, Mar 25, 2026 at 10:57:55AM +0100, Alexander Feilke wrote:
>From: Alexander Feilke <alexander.feilke at ew.tq-group.com>
>
>Reduce code duplication by adding a default implementation.
>
>Signed-off-by: Alexander Feilke <alexander.feilke at ew.tq-group.com>
>Signed-off-by: Max Merchel <Max.Merchel at ew.tq-group.com>
>---
>+static inline void tq_som_check_bits_set(u32 address, u32 mask)
>+{
>+	while ((readl(address) & mask) != mask)
>+		;

You may need to use readl_poll_timeout API.

Regards
Peng

>+}
>+
>+#endif /* __TQ_SOM_H */
>-- 
>2.34.1
>


More information about the U-Boot mailing list