xref: /rk3399_ARM-atf/docs/plat/rockchip.rst (revision 24dba2b39f880e156965237dc49a253aa196585a)
1*24dba2b3SPaul BeesleyRockchip SoCs
2*24dba2b3SPaul Beesley=============
355617251SHeiko Stuebner
455617251SHeiko StuebnerTrusted Firmware-A supports a number of Rockchip ARM SoCs from both
555617251SHeiko StuebnerAARCH32 and AARCH64 fields.
655617251SHeiko Stuebner
755617251SHeiko StuebnerThis includes right now:
855617251SHeiko Stuebner-  rk3288: Quad-Core Cortex-A17 (past A12)
955617251SHeiko Stuebner-  rk3328: Quad-Core Cortex-A53
1055617251SHeiko Stuebner-  rk3368: Octa-Core Cortex-A53
1155617251SHeiko Stuebner-  rk3399: Hexa-Core Cortex-A53/A72
1255617251SHeiko Stuebner
1355617251SHeiko Stuebner
1455617251SHeiko StuebnerBoot Sequence
15*24dba2b3SPaul Beesley-------------
1655617251SHeiko Stuebner
1755617251SHeiko StuebnerFor AARCH32:
1855617251SHeiko Stuebner    Bootrom --> BL1/BL2 --> BL32 --> BL33 --> Linux kernel
1955617251SHeiko Stuebner
2055617251SHeiko StuebnerFor AARCH64:
2155617251SHeiko Stuebner    Bootrom --> BL1/BL2 --> BL31 --> BL33 --> Linux kernel
2255617251SHeiko Stuebner
2355617251SHeiko StuebnerBL1/2 and BL33 can currently be supplied from either:
2455617251SHeiko Stuebner-  Coreboot + Depthcharge
2555617251SHeiko Stuebner-  U-Boot - either separately as TPL+SPL or only SPL
2655617251SHeiko Stuebner
2755617251SHeiko Stuebner
2855617251SHeiko StuebnerHow to build
29*24dba2b3SPaul Beesley------------
3055617251SHeiko Stuebner
3155617251SHeiko StuebnerRockchip SoCs expect TF-A's BL31 (AARCH64) or BL32 (AARCH32) to get
3255617251SHeiko Stuebnerintegrated with other boot software like U-Boot or Coreboot, so only
3355617251SHeiko Stuebnerthese images need to get build from the TF-A repository.
3455617251SHeiko Stuebner
3555617251SHeiko StuebnerFor AARCH64 architectures the build command looks like
3655617251SHeiko Stuebner
3755617251SHeiko Stuebner    make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl32
3855617251SHeiko Stuebner
3955617251SHeiko Stuebnerwhile AARCH32 needs a slightly different command
4055617251SHeiko Stuebner
4155617251SHeiko Stuebner    make ARCH=aarch32 CROSS_COMPILE=arm-linux-gnueabihf- PLAT=rk3288 AARCH32_SP=sp_min bl32
4255617251SHeiko Stuebner
4355617251SHeiko StuebnerBoth need replacing the PLAT argument with the platform from above you
4455617251SHeiko Stuebnerwant to build for and the CROSS_COMPILE argument with you cross-
4555617251SHeiko Stuebnercompilation toolchain.
4655617251SHeiko Stuebner
4755617251SHeiko Stuebner
4855617251SHeiko StuebnerHow to deploy
49*24dba2b3SPaul Beesley-------------
5055617251SHeiko Stuebner
5155617251SHeiko StuebnerBoth upstream U-Boot and Coreboot projects contain instructions on where
5255617251SHeiko Stuebnerto put the built images during their respective build process.
5355617251SHeiko StuebnerSo after successfully building TF-A just follow their build instructions
5455617251SHeiko Stuebnerto continue.
55