x86: broadwell: Move init of debug UART to cpu.c
authorSimon Glass <sjg@chromium.org>
Fri, 26 Apr 2019 03:58:50 +0000 (21:58 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 05:02:12 +0000 (13:02 +0800)
commit6b83b29578907da0561b5055ad09d8d8dbcfb098
tree3f9edc3edac98a2eba8d4a9b522407f22e376512
parent4eabf1e54b7ad1d1d7511af65570743ed756f85c
x86: broadwell: Move init of debug UART to cpu.c

At present the debug UART is set up in sdram.c which is not the best place
since it has nothing in particular to do with SDRAM. Since we want to
support initing this in SPL too, move it to a common file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: added 'broadwell' tag in the commit title]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/broadwell/cpu.c
arch/x86/cpu/broadwell/sdram.c