From 875752adc8b6a25ebaf9f45cb3fd206065a80f0e Mon Sep 17 00:00:00 2001 From: Lukasz Majewski Date: Fri, 19 May 2023 12:43:52 +0200 Subject: serial: pl01x: Prepare the driver to support SPL_OF_PLATDATA This commit prepares the pl01x serial driver to be used with SPL_OF_PLATDATA enabled. Signed-off-by: Lukasz Majewski --- include/dm/platform_data/serial_pl01x.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/dm/platform_data') diff --git a/include/dm/platform_data/serial_pl01x.h b/include/dm/platform_data/serial_pl01x.h index e3d4e308a14..811697ce5c6 100644 --- a/include/dm/platform_data/serial_pl01x.h +++ b/include/dm/platform_data/serial_pl01x.h @@ -20,7 +20,11 @@ enum pl01x_type { * @skip_init: Don't attempt to change port configuration (also means @clock * is ignored) */ +#include struct pl01x_serial_plat { +#if CONFIG_IS_ENABLED(OF_PLATDATA) + struct dtd_serial_pl01x dtplat; +#endif unsigned long base; enum pl01x_type type; unsigned int clock; -- cgit v1.2.3