platform: andes/ae350: Add fw_platform_init for platform initialization
authorYu Chien Peter Lin <peterlin@andestech.com>
Fri, 14 Oct 2022 00:32:49 +0000 (08:32 +0800)
committerAnup Patel <anup@brainfault.org>
Sun, 23 Oct 2022 05:00:21 +0000 (10:30 +0530)
commit6f3258e67187554b1202d3d2a065ef1adcdde3e6
tree3319ff8c5963d68bafaf19f713ae277d3ea17794
parent127a3f2ab4e4c8245046529ac6102aafe58b3a51
platform: andes/ae350: Add fw_platform_init for platform initialization

This patch adds fw_platform_init() to initialize ae350 platform.name
and platform.hart_count by parsing device tree.

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
platform/andes/ae350/platform.c
platform/andes/ae350/platform.h