All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-rockchip][PATCH] add support for PX30 SoC
@ 2022-10-19  8:45 Quentin Schulz
  2022-10-19 14:46 ` [yocto] " Khem Raj
  2022-10-20 22:06 ` Trevor Woerner
  0 siblings, 2 replies; 3+ messages in thread
From: Quentin Schulz @ 2022-10-19  8:45 UTC (permalink / raw)
  To: yocto; +Cc: twoerner, Quentin Schulz, Quentin Schulz

From: Quentin Schulz <quentin.schulz@theobroma-systems.com>

Rockchip PX30 SoC is a quad-core ARM Cortex-A35 CPU fully implementing
the ARMv8-A instruction set with ARM Neon Advanced SIMD and Cryptography
Extensions.

This adds a base configuration file which can be included by PX30-based
boards and the required changes in U-Boot and TF-A for proper support.

Cc: Quentin Schulz <foss+yocto@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
---

Note: this was developed and tested on kirkstone branch only

 conf/machine/include/px30.inc                 | 21 +++++++++++++++++++
 .../trusted-firmware-a_%.bbappend             |  5 +++++
 recipes-bsp/u-boot/u-boot%.bbappend           |  2 ++
 3 files changed, 28 insertions(+)
 create mode 100644 conf/machine/include/px30.inc

diff --git a/conf/machine/include/px30.inc b/conf/machine/include/px30.inc
new file mode 100644
index 0000000..a3727fb
--- /dev/null
+++ b/conf/machine/include/px30.inc
@@ -0,0 +1,21 @@
+# Copyright (C) 2022 Theobroma Systems Design und Consulting
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "px30"
+
+DEFAULTTUNE ?= "cortexa35-crypto"
+
+require conf/machine/include/soc-family.inc
+require conf/machine/include/arm/armv8a/tune-cortexa35.inc
+require conf/machine/include/rockchip-defaults.inc
+require conf/machine/include/rockchip-wic.inc
+
+KBUILD_DEFCONFIG ?= "defconfig"
+KERNEL_CLASSES = "kernel-fitimage"
+KERNEL_IMAGETYPE = "fitImage"
+
+TFA_PLATFORM = "px30"
+TFA_BUILD_TARGET = "bl31"
+
+UBOOT_SUFFIX ?= "itb"
+UBOOT_ENTRYPOINT ?= "0x06000000"
diff --git a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
index 31024ce..814028b 100644
--- a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
+++ b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
@@ -4,6 +4,7 @@ DEPENDS:append:rk3399 = " virtual/arm-none-eabi-gcc-native"
 
 COMPATIBLE_MACHINE:append:rk3399 = "|rk3399"
 COMPATIBLE_MACHINE:append:rk3328 = "|rk3328"
+COMPATIBLE_MACHINE:append:px30 = "|px30"
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
 SRC_URI += "\
@@ -26,4 +27,8 @@ fixup_baudrate:rk3399() {
 	sed -i "s/#define RK3399_BAUDRATE\s\+.*/#define RK3399_BAUDRATE ${RK_CONSOLE_BAUD}/" ${S}/plat/rockchip/rk3399/rk3399_def.h
 }
 
+fixup_baudrate:px30() {
+	sed -i "s/#define PX30_BAUDRATE\s\+.*/#define PX30_BAUDRATE ${RK_CONSOLE_BAUD}/" ${S}/plat/rockchip/px30/px30_def.h
+}
+
 do_patch[postfuncs] += "fixup_baudrate"
diff --git a/recipes-bsp/u-boot/u-boot%.bbappend b/recipes-bsp/u-boot/u-boot%.bbappend
index 9108a36..de1f2ca 100644
--- a/recipes-bsp/u-boot/u-boot%.bbappend
+++ b/recipes-bsp/u-boot/u-boot%.bbappend
@@ -11,6 +11,8 @@ EXTRA_OEMAKE:append:rk3399 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-rk3399.elf"
 ATF_DEPENDS:rk3399 = " trusted-firmware-a:do_deploy"
 EXTRA_OEMAKE:append:rk3328 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-rk3328.elf"
 ATF_DEPENDS:rk3328 = " trusted-firmware-a:do_deploy"
+EXTRA_OEMAKE:append:px30 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-px30.elf"
+ATF_DEPENDS:px30 = " trusted-firmware-a:do_deploy"
 
 do_compile[depends] .= "${ATF_DEPENDS}"
 
-- 
2.37.3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [yocto] [meta-rockchip][PATCH] add support for PX30 SoC
  2022-10-19  8:45 [meta-rockchip][PATCH] add support for PX30 SoC Quentin Schulz
@ 2022-10-19 14:46 ` Khem Raj
  2022-10-20 22:06 ` Trevor Woerner
  1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2022-10-19 14:46 UTC (permalink / raw)
  To: Quentin Schulz; +Cc: yocto, twoerner, Quentin Schulz, Quentin Schulz

On Wed, Oct 19, 2022 at 1:45 AM Quentin Schulz <foss@0leil.net> wrote:
>
> From: Quentin Schulz <quentin.schulz@theobroma-systems.com>
>
> Rockchip PX30 SoC is a quad-core ARM Cortex-A35 CPU fully implementing
> the ARMv8-A instruction set with ARM Neon Advanced SIMD and Cryptography
> Extensions.
>
> This adds a base configuration file which can be included by PX30-based
> boards and the required changes in U-Boot and TF-A for proper support.
>

lgtm

> Cc: Quentin Schulz <foss+yocto@0leil.net>
> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
> ---
>
> Note: this was developed and tested on kirkstone branch only
>
>  conf/machine/include/px30.inc                 | 21 +++++++++++++++++++
>  .../trusted-firmware-a_%.bbappend             |  5 +++++
>  recipes-bsp/u-boot/u-boot%.bbappend           |  2 ++
>  3 files changed, 28 insertions(+)
>  create mode 100644 conf/machine/include/px30.inc
>
> diff --git a/conf/machine/include/px30.inc b/conf/machine/include/px30.inc
> new file mode 100644
> index 0000000..a3727fb
> --- /dev/null
> +++ b/conf/machine/include/px30.inc
> @@ -0,0 +1,21 @@
> +# Copyright (C) 2022 Theobroma Systems Design und Consulting
> +# Released under the MIT license (see COPYING.MIT for the terms)
> +
> +SOC_FAMILY = "px30"
> +
> +DEFAULTTUNE ?= "cortexa35-crypto"
> +
> +require conf/machine/include/soc-family.inc
> +require conf/machine/include/arm/armv8a/tune-cortexa35.inc
> +require conf/machine/include/rockchip-defaults.inc
> +require conf/machine/include/rockchip-wic.inc
> +
> +KBUILD_DEFCONFIG ?= "defconfig"
> +KERNEL_CLASSES = "kernel-fitimage"
> +KERNEL_IMAGETYPE = "fitImage"
> +
> +TFA_PLATFORM = "px30"
> +TFA_BUILD_TARGET = "bl31"
> +
> +UBOOT_SUFFIX ?= "itb"
> +UBOOT_ENTRYPOINT ?= "0x06000000"
> diff --git a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
> index 31024ce..814028b 100644
> --- a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
> +++ b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
> @@ -4,6 +4,7 @@ DEPENDS:append:rk3399 = " virtual/arm-none-eabi-gcc-native"
>
>  COMPATIBLE_MACHINE:append:rk3399 = "|rk3399"
>  COMPATIBLE_MACHINE:append:rk3328 = "|rk3328"
> +COMPATIBLE_MACHINE:append:px30 = "|px30"
>
>  FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
>  SRC_URI += "\
> @@ -26,4 +27,8 @@ fixup_baudrate:rk3399() {
>         sed -i "s/#define RK3399_BAUDRATE\s\+.*/#define RK3399_BAUDRATE ${RK_CONSOLE_BAUD}/" ${S}/plat/rockchip/rk3399/rk3399_def.h
>  }
>
> +fixup_baudrate:px30() {
> +       sed -i "s/#define PX30_BAUDRATE\s\+.*/#define PX30_BAUDRATE ${RK_CONSOLE_BAUD}/" ${S}/plat/rockchip/px30/px30_def.h
> +}
> +
>  do_patch[postfuncs] += "fixup_baudrate"
> diff --git a/recipes-bsp/u-boot/u-boot%.bbappend b/recipes-bsp/u-boot/u-boot%.bbappend
> index 9108a36..de1f2ca 100644
> --- a/recipes-bsp/u-boot/u-boot%.bbappend
> +++ b/recipes-bsp/u-boot/u-boot%.bbappend
> @@ -11,6 +11,8 @@ EXTRA_OEMAKE:append:rk3399 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-rk3399.elf"
>  ATF_DEPENDS:rk3399 = " trusted-firmware-a:do_deploy"
>  EXTRA_OEMAKE:append:rk3328 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-rk3328.elf"
>  ATF_DEPENDS:rk3328 = " trusted-firmware-a:do_deploy"
> +EXTRA_OEMAKE:append:px30 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-px30.elf"
> +ATF_DEPENDS:px30 = " trusted-firmware-a:do_deploy"
>
>  do_compile[depends] .= "${ATF_DEPENDS}"
>
> --
> 2.37.3
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> You automatically follow any topics you start or reply to.
> View/Reply Online (#58365): https://lists.yoctoproject.org/g/yocto/message/58365
> Mute This Topic: https://lists.yoctoproject.org/mt/94426665/1997914
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-rockchip][PATCH] add support for PX30 SoC
  2022-10-19  8:45 [meta-rockchip][PATCH] add support for PX30 SoC Quentin Schulz
  2022-10-19 14:46 ` [yocto] " Khem Raj
@ 2022-10-20 22:06 ` Trevor Woerner
  1 sibling, 0 replies; 3+ messages in thread
From: Trevor Woerner @ 2022-10-20 22:06 UTC (permalink / raw)
  To: Quentin Schulz; +Cc: yocto, Quentin Schulz

On Wed 2022-10-19 @ 10:45:00 AM, Quentin Schulz wrote:
> From: Quentin Schulz <quentin.schulz@theobroma-systems.com>
> 
> Rockchip PX30 SoC is a quad-core ARM Cortex-A35 CPU fully implementing
> the ARMv8-A instruction set with ARM Neon Advanced SIMD and Cryptography
> Extensions.
> 
> This adds a base configuration file which can be included by PX30-based
> boards and the required changes in U-Boot and TF-A for proper support.
> 
> Cc: Quentin Schulz <foss+yocto@0leil.net>
> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
> ---
> 
> Note: this was developed and tested on kirkstone branch only
> 
>  conf/machine/include/px30.inc                 | 21 +++++++++++++++++++
>  .../trusted-firmware-a_%.bbappend             |  5 +++++
>  recipes-bsp/u-boot/u-boot%.bbappend           |  2 ++
>  3 files changed, 28 insertions(+)
>  create mode 100644 conf/machine/include/px30.inc

Applied to meta-rockchip, both master and kirkstone branches.
Thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-20 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-19  8:45 [meta-rockchip][PATCH] add support for PX30 SoC Quentin Schulz
2022-10-19 14:46 ` [yocto] " Khem Raj
2022-10-20 22:06 ` Trevor Woerner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.