platform: Add generic FDT based platform support
authorAnup Patel <anup.patel@wdc.com>
Tue, 28 Apr 2020 03:53:30 +0000 (09:23 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 1 May 2020 05:03:05 +0000 (10:33 +0530)
commitf1aa9e54e00006ae70aeac638d5b75093520f65d
tree34ca3d90e5ef4c62062ced3119852e27eb11cb79
parent4d063538f0493916dc6263276c4c84f31446db41
platform: Add generic FDT based platform support

We add generic FDT based platform support which provides platform
specific functionality based on the FDT passed by previous booting
stage.

By default, the generic FDT platform makes following assumptions:
1. platform FW_TEXT_START is 0x80000000
2. platform features are default
3. platform stack size is default
4. platform has no quirks or work-arounds

The above assumptions (except 1) can be overridden by adding special
platform callbacks which will be called based on the FDT root node
compatible string.

By default, we compile OpenSBI generic platform as follows:
$ make PLATFORM=generic

For a non-standard FW_TEXT_START, we can compile OpenSBI generic
platform as follows:
$ make PLATFORM=generic FW_TEXT_START=<non_standard_text_start>

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
docs/platform/generic.md [new file with mode: 0644]
docs/platform/platform.md
platform/generic/config.mk [new file with mode: 0644]
platform/generic/include/platform_override.h [new file with mode: 0644]
platform/generic/objects.mk [new file with mode: 0644]
platform/generic/platform.c [new file with mode: 0644]