[PATCH 13/26] x86: apl: Adjust how the UART gets its platform data
Simon Glass
sjg at chromium.org
Mon Dec 28 17:26:29 CET 2020
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 at 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!
More information about the U-Boot
mailing list