]> git.baikalelectronics.ru Git - uboot.git/commit
x86: apl: Adjust how the UART gets its platform data
authorSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 17:40:05 +0000 (10:40 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
commitbca11cbe2e8aa11b40d7c0e6a9fefe1a1b994d20
tree3dc8118769ec6ce8f14fbaa22fdd6c22fed6f512
parentf2563c41fe84658f77ff6f514cc8959c63aa82be
x86: apl: Adjust how the UART gets its platform data

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
arch/x86/include/asm/arch-apollolake/uart.h