[PATCH 13/26] x86: apl: Adjust how the UART gets its platform data

Simon Glass
2020-12-28T16:26:29Z

At present this driver calls malloc() to start a new platform data
structure, fills it in and tells driver model to use it.

We want to avoid malloc, particularly with the new version of of-platdata.
Create a new struct which encompasses both the dtd struct and the ns16550
one, to avoid this. Unfortunately we must copy the data into the right
place for the ns16550 driver. Add some comments about this.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

arch/x86/cpu/apollolake/uart.c | 43 ++++++++++++---------
arch/x86/include/asm/arch-apollolake/uart.h | 19 ++++++++-
2 files changed, 42 insertions(+), 20 deletions(-)

Applied to u-boot-dm/next, thanks!