platform: Move platform common to lib/utils.
authorAtish Patra <atish.patra@wdc.com>
Tue, 18 Jun 2019 21:54:03 +0000 (14:54 -0700)
committerAnup Patel <anup.patel@wdc.com>
Wed, 19 Jun 2019 04:18:56 +0000 (09:48 +0530)
commit793e5e1184f04012804914bd922e68536f3b68dd
treecb2ec2a81ed5e832de5c9c8a79dca17fce599af8
parent98aaf8317b74414afa78078bc056670f46c45f41
platform: Move platform common to lib/utils.

Currently, platform/common contains platform/non-platform specific
common minimal drivers and libraries. This is helpful is all platforms
are built within opensbi framework.

Move them to lib/utils so that any external platform code also can
reuse the minimalistic drivers or other common libraries.

This patch doesn't introduce any functional changes.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Acked-by: Anup Patel <anup.patel@wdc.com>
38 files changed:
Makefile
include/sbi_utils/irqchip/plic.h [moved from platform/common/include/plat/irqchip/plic.h with 100% similarity]
include/sbi_utils/serial/sifive-uart.h [moved from platform/common/include/plat/serial/sifive-uart.h with 100% similarity]
include/sbi_utils/serial/uart8250.h [moved from platform/common/include/plat/serial/uart8250.h with 100% similarity]
include/sbi_utils/sys/clint.h [moved from platform/common/include/plat/sys/clint.h with 100% similarity]
include/sbi_utils/tinyfdt.h [moved from platform/common/include/plat/tinyfdt.h with 100% similarity]
lib/utils/irqchip/objects.mk [moved from platform/common/irqchip/objects.mk with 71% similarity]
lib/utils/irqchip/plic.c [moved from platform/common/irqchip/plic.c with 97% similarity]
lib/utils/libfdt/.clang-format [moved from platform/common/libfdt/.clang-format with 100% similarity]
lib/utils/libfdt/Makefile.libfdt [moved from platform/common/libfdt/Makefile.libfdt with 100% similarity]
lib/utils/libfdt/TODO [moved from platform/common/libfdt/TODO with 100% similarity]
lib/utils/libfdt/fdt.c [moved from platform/common/libfdt/fdt.c with 100% similarity]
lib/utils/libfdt/fdt.h [moved from platform/common/libfdt/fdt.h with 100% similarity]
lib/utils/libfdt/fdt_addresses.c [moved from platform/common/libfdt/fdt_addresses.c with 100% similarity]
lib/utils/libfdt/fdt_empty_tree.c [moved from platform/common/libfdt/fdt_empty_tree.c with 100% similarity]
lib/utils/libfdt/fdt_overlay.c [moved from platform/common/libfdt/fdt_overlay.c with 100% similarity]
lib/utils/libfdt/fdt_ro.c [moved from platform/common/libfdt/fdt_ro.c with 100% similarity]
lib/utils/libfdt/fdt_rw.c [moved from platform/common/libfdt/fdt_rw.c with 100% similarity]
lib/utils/libfdt/fdt_strerror.c [moved from platform/common/libfdt/fdt_strerror.c with 100% similarity]
lib/utils/libfdt/fdt_sw.c [moved from platform/common/libfdt/fdt_sw.c with 100% similarity]
lib/utils/libfdt/fdt_wip.c [moved from platform/common/libfdt/fdt_wip.c with 100% similarity]
lib/utils/libfdt/libfdt.h [moved from platform/common/libfdt/libfdt.h with 100% similarity]
lib/utils/libfdt/libfdt_env.h [moved from platform/common/libfdt/libfdt_env.h with 99% similarity]
lib/utils/libfdt/libfdt_internal.h [moved from platform/common/libfdt/libfdt_internal.h with 100% similarity]
lib/utils/libfdt/objects.mk [moved from platform/common/libfdt/objects.mk with 55% similarity]
lib/utils/libfdt/version.lds [moved from platform/common/libfdt/version.lds with 100% similarity]
lib/utils/objects.mk [moved from platform/common/objects.mk with 82% similarity]
lib/utils/serial/objects.mk [moved from platform/common/serial/objects.mk with 52% similarity]
lib/utils/serial/sifive-uart.c [moved from platform/common/serial/sifive-uart.c with 98% similarity]
lib/utils/serial/uart8250.c [moved from platform/common/serial/uart8250.c with 98% similarity]
lib/utils/sys/clint.c [moved from platform/common/sys/clint.c with 99% similarity]
lib/utils/sys/objects.mk [moved from platform/common/sys/objects.mk with 73% similarity]
lib/utils/tinyfdt.c [moved from platform/common/tinyfdt.c with 99% similarity]
platform/kendryte/k210/platform.c
platform/qemu/sifive_u/platform.c
platform/qemu/virt/platform.c
platform/sifive/fu540/platform.c
scripts/create-binary-archive.sh