bdinfo: ppc: Move PPC-specific info into its own file
authorSimon Glass <sjg@chromium.org>
Sun, 10 May 2020 20:16:57 +0000 (14:16 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 25 Jun 2020 17:24:12 +0000 (13:24 -0400)
commit79d074d30196811478eb7242121f97cac405b6aa
tree00ace2bf2b0b1cf75aed710116be4b7bb886a2a6
parent59b0d7d839f135bc44d3459784337a657149f8b3
bdinfo: ppc: Move PPC-specific info into its own file

We don't really want to have PPC-specific code in a generic file. Create
a new arch-specific function to hold it, and move it into that.

Make the function weak so that any arch can implement it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/powerpc/lib/Makefile
arch/powerpc/lib/bdinfo.c [new file with mode: 0644]
cmd/bdinfo.c