aboutsummaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2023-05-19 12:43:52 +0200
committerStefano Babic <sbabic@denx.de>2023-07-11 14:40:04 +0200
commit875752adc8b6a25ebaf9f45cb3fd206065a80f0e (patch)
tree8bfd3270db32cf3a24cb934d7eabab69f4717ae2 /include/dm
parentfdef5e1502a6b847acf3252c0f21739a3a4e181c (diff)
downloadu-boot-875752adc8b6a25ebaf9f45cb3fd206065a80f0e.zip
u-boot-875752adc8b6a25ebaf9f45cb3fd206065a80f0e.tar.gz
u-boot-875752adc8b6a25ebaf9f45cb3fd206065a80f0e.tar.bz2
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 <lukma@denx.de>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/platform_data/serial_pl01x.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dm/platform_data/serial_pl01x.h b/include/dm/platform_data/serial_pl01x.h
index e3d4e30..811697c 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 <dt-structs.h>
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;