]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use PLATFORM for initializing Marvell ArmadaXP and Armada38X
authormw <mw@FreeBSD.org>
Wed, 4 Apr 2018 08:40:49 +0000 (08:40 +0000)
committermw <mw@FreeBSD.org>
Wed, 4 Apr 2018 08:40:49 +0000 (08:40 +0000)
commit52e9cf497d85af83921f4dc9d033b3d80b59d783
tree785427bebf5cf14ea19de167ff7305c5cbc0e736
parent052fdd587b6eaf37b5149054b929402e22469c42
Use PLATFORM for initializing Marvell ArmadaXP and Armada38X

Spliting armv5 and armv7 machdep is necessary for adding Armada38X and
ArmadaXP to GENERIC config.
PLATFORM framework checks SOC type in FDT and will select proper
initialization function implementation during runtime.
Pointers to SoC specific implementation are stored in array of
platform_method_t and provided to framework by FDT_PLATFORM_DEF macro.
PLATFORM framework supports also reset function. To simplify implementation
cpu_reset is moved from mv_common to armv5 and armv7 machdep.

Armada38X and ArmadaXP share now common list of files, so resolve all
dependencies as well.

Submitted by: Rafal Kozik <rk@semihalf.com>
      Marcin Wojtas <mw@semihalf.com>
Reviewed by: mw
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14744
14 files changed:
sys/arm/conf/ARMADA38X
sys/arm/conf/ARMADAXP
sys/arm/mv/armada38x/armada38x_mp.c
sys/arm/mv/armada38x/armada38x_pl310.c
sys/arm/mv/armada38x/armada38x_pl310.h [new file with mode: 0644]
sys/arm/mv/armada38x/std.armada38x
sys/arm/mv/armadaxp/armadaxp_mp.c
sys/arm/mv/armadaxp/std.mv78x60
sys/arm/mv/armv5_machdep.c [moved from sys/arm/mv/mv_machdep.c with 85% similarity]
sys/arm/mv/files.arm7
sys/arm/mv/files.mv
sys/arm/mv/mv_armv7_machdep.c [new file with mode: 0644]
sys/arm/mv/mv_common.c
sys/arm/mv/std-pj4b.mv