[meta-arago,master/dunfell,v3,1/2] meta-arago-distro: add initial support for am62xx

Message ID 20220330125356.32492-1-reatmon@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [meta-arago,master/dunfell,v3,1/2] meta-arago-distro: add initial support for am62xx | expand

Commit Message

Ryan Eatmon March 30, 2022, 12:53 p.m. UTC
From: Nishanth Menon <nm@ti.com>

lets add support for the latest of TI SoC.

ti-tisdk-makefile: adding uboot r5 config variable for am62xx
packagegroup-arago-tisdk-addons: Add needed am62xx entries

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 .../packagegroup-arago-tisdk-addons-sdk-host.bb             | 4 ++++
 .../packagegroups/packagegroup-arago-tisdk-addons.bb        | 1 +
 .../ti-tisdk-makefile/Makefile_sysfw-image                  | 1 +
 .../ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb              | 6 ++++++
 4 files changed, 12 insertions(+)

Comments

Denys Dmytriyenko March 30, 2022, 4:44 p.m. UTC | #1
On Wed, Mar 30, 2022 at 07:53:55AM -0500, Ryan Eatmon via lists.yoctoproject.org wrote:
> From: Nishanth Menon <nm@ti.com>
> 
> lets add support for the latest of TI SoC.
> 
> ti-tisdk-makefile: adding uboot r5 config variable for am62xx
> packagegroup-arago-tisdk-addons: Add needed am62xx entries
> 
> Signed-off-by: Nishanth Menon <nm@ti.com>
> Signed-off-by: Ryan Eatmon <reatmon@ti.com>

This won't apply to master as is, so dunfell-only for now.

Reviewed-by: Denys Dmytriyenko <denys@konsulko.com>


> ---
>  .../packagegroup-arago-tisdk-addons-sdk-host.bb             | 4 ++++
>  .../packagegroups/packagegroup-arago-tisdk-addons.bb        | 1 +
>  .../ti-tisdk-makefile/Makefile_sysfw-image                  | 1 +
>  .../ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb              | 6 ++++++
>  4 files changed, 12 insertions(+)
> 
> diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb
> index c44f95ca..062948d0 100644
> --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb
> +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb
> @@ -57,6 +57,10 @@ UTILS_append_am64xx = " \
>      pru-icss-src \
>  "
>  
> +UTILS_append_am62xx = " \
> +    pru-icss-src \
> +"
> +
>  EXTRA_LIBS = ""
>  
>  EXTRA_LIBS_append_omap-a15 = " \
> diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
> index 099817c3..094c47a2 100644
> --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
> +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
> @@ -65,6 +65,7 @@ UTILS_append_k3 = " mmc-utils \
>  "
>  
>  UTILS_append_am64xx = " ti-rtos-firmware pru-icss"
> +UTILS_append_am62xx = " ti-rtos-firmware pru-icss"
>  UTILS_append_am65xx = " ti-rtos-firmware pru-icss pru-pwm-fw"
>  UTILS_append_j7 = " ti-rtos-firmware"
>  UTILS_append_j7-evm = " pru-icss"
> diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_sysfw-image b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_sysfw-image
> index aaf1f112..316483df 100644
> --- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_sysfw-image
> +++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_sysfw-image
> @@ -12,6 +12,7 @@ SYSFW_SOC_am65xx-evm = am65x
>  SYSFW_SOC_am65xx-hs-evm = am65x
>  SYSFW_SOC_am64xx-evm = am64x
>  SYSFW_SOC_am64xx-hs-evm = am64x
> +SYSFW_SOC_am62xx-evm = am62x
>  SYSFW_SOC_j7-evm = j721e
>  SYSFW_SOC_j7-hs-evm = j721e
>  SYSFW_SOC = $(SYSFW_SOC_$(PLATFORM))
> diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
> index 7bda8eed..f0a044f7 100644
> --- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
> +++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
> @@ -202,6 +202,10 @@ MAKEFILES_append_am64xx = " \
>                          pru-icss \
>  "
>  
> +MAKEFILES_append_am62xx = " \
> +                        pru-icss \
> +"
> +
>  # Use this to export kernel arch to ARCH
>  #
>  # We need to be very careful here. This class will also overwrite UBOOT_ARCH
> @@ -239,6 +243,7 @@ PRU_ICSS_INSTALL_TARGET_k2g = "pru-icss_install_k2g"
>  PRU_ICSS_INSTALL_TARGET_am65xx = "pru-icss_install_am65x"
>  PRU_ICSS_INSTALL_TARGET_j7 = "pru-icss_install_j721e"
>  PRU_ICSS_INSTALL_TARGET_am64xx = "pru-icss_install_am64x"
> +PRU_ICSS_INSTALL_TARGET_am62xx = "pru-icss_install_am62x"
>  
>  # Path to toolchains for the various cores in TI SOCs
>  #
> @@ -363,6 +368,7 @@ K3_UBOOT_MACHINE_R5_j7-evm = "j721e_evm_r5_config"
>  K3_UBOOT_MACHINE_R5_j7-hs-evm = "j721e_hs_evm_r5_config"
>  K3_UBOOT_MACHINE_R5_j7200-evm = "j7200_evm_r5_config"
>  K3_UBOOT_MACHINE_R5_j721s2-evm = "j721s2_evm_r5_config"
> +K3_UBOOT_MACHINE_R5_am62xx-evm = "am62xx_evm_r5_config"
>  
>  do_install_append_k3() {
>      cat >> ${D}/Rules.make << __EOF__
> -- 
> 2.17.1
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#13766): https://lists.yoctoproject.org/g/meta-arago/message/13766
> Mute This Topic: https://lists.yoctoproject.org/mt/90130362/3617104
> Group Owner: meta-arago+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub [denis@denix.org]
> -=-=-=-=-=-=-=-=-=-=-=-
> 
>

Patch

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb
index c44f95ca..062948d0 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb
@@ -57,6 +57,10 @@  UTILS_append_am64xx = " \
     pru-icss-src \
 "
 
+UTILS_append_am62xx = " \
+    pru-icss-src \
+"
+
 EXTRA_LIBS = ""
 
 EXTRA_LIBS_append_omap-a15 = " \
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
index 099817c3..094c47a2 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
@@ -65,6 +65,7 @@  UTILS_append_k3 = " mmc-utils \
 "
 
 UTILS_append_am64xx = " ti-rtos-firmware pru-icss"
+UTILS_append_am62xx = " ti-rtos-firmware pru-icss"
 UTILS_append_am65xx = " ti-rtos-firmware pru-icss pru-pwm-fw"
 UTILS_append_j7 = " ti-rtos-firmware"
 UTILS_append_j7-evm = " pru-icss"
diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_sysfw-image b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_sysfw-image
index aaf1f112..316483df 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_sysfw-image
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_sysfw-image
@@ -12,6 +12,7 @@  SYSFW_SOC_am65xx-evm = am65x
 SYSFW_SOC_am65xx-hs-evm = am65x
 SYSFW_SOC_am64xx-evm = am64x
 SYSFW_SOC_am64xx-hs-evm = am64x
+SYSFW_SOC_am62xx-evm = am62x
 SYSFW_SOC_j7-evm = j721e
 SYSFW_SOC_j7-hs-evm = j721e
 SYSFW_SOC = $(SYSFW_SOC_$(PLATFORM))
diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
index 7bda8eed..f0a044f7 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb
@@ -202,6 +202,10 @@  MAKEFILES_append_am64xx = " \
                         pru-icss \
 "
 
+MAKEFILES_append_am62xx = " \
+                        pru-icss \
+"
+
 # Use this to export kernel arch to ARCH
 #
 # We need to be very careful here. This class will also overwrite UBOOT_ARCH
@@ -239,6 +243,7 @@  PRU_ICSS_INSTALL_TARGET_k2g = "pru-icss_install_k2g"
 PRU_ICSS_INSTALL_TARGET_am65xx = "pru-icss_install_am65x"
 PRU_ICSS_INSTALL_TARGET_j7 = "pru-icss_install_j721e"
 PRU_ICSS_INSTALL_TARGET_am64xx = "pru-icss_install_am64x"
+PRU_ICSS_INSTALL_TARGET_am62xx = "pru-icss_install_am62x"
 
 # Path to toolchains for the various cores in TI SOCs
 #
@@ -363,6 +368,7 @@  K3_UBOOT_MACHINE_R5_j7-evm = "j721e_evm_r5_config"
 K3_UBOOT_MACHINE_R5_j7-hs-evm = "j721e_hs_evm_r5_config"
 K3_UBOOT_MACHINE_R5_j7200-evm = "j7200_evm_r5_config"
 K3_UBOOT_MACHINE_R5_j721s2-evm = "j721s2_evm_r5_config"
+K3_UBOOT_MACHINE_R5_am62xx-evm = "am62xx_evm_r5_config"
 
 do_install_append_k3() {
     cat >> ${D}/Rules.make << __EOF__