From: Denys Dmytriyenko <denis@denix.org>
To: Andrew Davis <afd@ti.com>
Cc: c-shilwant@ti.com, meta-ti@lists.yoctoproject.org,
Ryan Eatmon <reatmon@ti.com>
Subject: Re: [meta-ti][master/scarthgap][PATCH 2/3] meta-ti-bsp: Add Support for AM62L
Date: Tue, 4 Feb 2025 14:08:49 -0500 [thread overview]
Message-ID: <20250204190849.GI21608@denix.org> (raw)
In-Reply-To: <eb673423-a7e7-4d32-bf61-e1efad5e3f5a@ti.com>
On Tue, Feb 04, 2025 at 10:42:46AM -0600, Andrew Davis wrote:
> On 2/4/25 7:49 AM, Chirag Shilwant via lists.yoctoproject.org wrote:
> >- Add machine configuration for am62lxx-evm
> >- Add TFA, OPTEE, firmware & u-boot overrides
> >
> >Signed-off-by: Chirag Shilwant <c-shilwant@ti.com>
> >---
> > meta-ti-bsp/conf/machine/am62lxx-evm.conf | 16 ++++
> > meta-ti-bsp/conf/machine/include/am62lxx.inc | 14 ++++
> > meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb | 2 +
> > .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 6 ++
> > .../trusted-firmware-a-ti.inc | 3 +
> > meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 21 ++++++
> > .../Add-initial-support-for-AM62Lx-SoC.patch | 75 +++++++++++++++++++
> > .../optee/optee-os-ti-overrides.inc | 1 +
> > .../optee/optee-os_%.bbappend | 6 ++
> > 9 files changed, 144 insertions(+)
> > create mode 100644 meta-ti-bsp/conf/machine/am62lxx-evm.conf
> > create mode 100644 meta-ti-bsp/conf/machine/include/am62lxx.inc
> > create mode 100644 meta-ti-bsp/recipes-security/optee/files/Add-initial-support-for-AM62Lx-SoC.patch
...
> >diff --git a/meta-ti-bsp/conf/machine/include/am62lxx.inc b/meta-ti-bsp/conf/machine/include/am62lxx.inc
> >new file mode 100644
> >index 00000000..94eadd4b
> >--- /dev/null
> >+++ b/meta-ti-bsp/conf/machine/include/am62lxx.inc
> >@@ -0,0 +1,14 @@
> >+require conf/machine/include/k3.inc
> >+SOC_FAMILY:append = ":am62lxx"
> >+
> >+MACHINE_FEATURES += "screen"
> >+
> >+# Default tiboot3.bin on AM62L is for HS-FS
> >+IMAGE_BOOT_FILES += "tiboot3-am62lx-hs-fs-evm.bin"
> >+
> >+TFA_BOARD = "am62l"
> >+TFA_K3_SYSTEM_SUSPEND = "1"
> >+
> >+OPTEEMACHINE = "k3-am62lx"
> >+
> >+SERIAL_CONSOLES = "115200;ttyS2"
>
> Do the default SERIAL_CONSOLES in k3.inc not work?
Standard k3.inc defines ttyS0 and ttyS2 - I'm guessing this was overwritten
here due to no R5 or to avoid re-spawning the gettty?
> >--- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> >+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> >@@ -53,8 +53,10 @@ PLAT_SFX:am65xx = "am65xx"
> > PLAT_SFX:am64xx = "am64xx"
> > PLAT_SFX:am62xx = "am62xx"
> > PLAT_SFX:am62axx = "am62axx"
> >+PLAT_SFX:am62lxx = "am62lxx"
> > PLAT_SFX:am62pxx = "am62pxx"
> >+PACKAGECONFIG[ap-trusted-rom] = "BL1=${STAGING_DIR_HOST}/firmware/bl1.bin,,trusted-firmware-a"
> > PACKAGECONFIG[atf] = "BL31=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a"
> > PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os"
> > PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/ti-dm/${PLAT_SFX}/${DM_FIRMWARE},,ti-dm-fw"
> >@@ -68,6 +70,7 @@ PACKAGECONFIG:append:j722s = " dm"
> > PACKAGECONFIG:append:j742s2 = " dm"
> > PACKAGECONFIG:append:am62xx = " dm"
> > PACKAGECONFIG:append:am62axx = " dm"
> >+PACKAGECONFIG:append:am62lxx = " ap-trusted-rom"
> > PACKAGECONFIG:append:am62pxx = " dm"
> > COMPATIBLE_MACHINE = "(ti-soc)"
> >@@ -226,6 +229,16 @@ uboot_deploy_config:append:k3r5 () {
> > done
> > }
> >+uboot_deploy_config:append:am62lxx () {
> >+ for f in ${B}/${config}/tiboot3-*.bin; do
> >+ if [ -f "$f" ]; then
>
> Seems to be some mixed tabs and spaces. That is already an issue in this
> file I see, but no reason to keep doing it. I would prefer tabs everywhere
> but not sure if there is a standard is in Yocto.
u-boot-ti.inc is an old file and received modifications over many years before
there was any policy.
FTR, OE-Core official policy is to use tabs for shell code and 2-spcaes for
Python code. But layer maintainers can adopt a slightly different policy that
hopefully gets documented.
I'd suggest sticking to the OE-Core policy and I personally try to update
indentation when I modify large chunks of code. But we haven't done any global
cleanup for the same...
--
Denys
next prev parent reply other threads:[~2025-02-04 19:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 13:49 [meta-ti][master/scarthgap][PATCH 0/3] Add support for AM62L Chirag Shilwant
2025-02-04 13:49 ` [meta-ti][master/scarthgap][PATCH 1/3] trusted-firmware-a: Switch TFA to TI fork Chirag Shilwant
2025-02-04 16:25 ` Andrew Davis
2025-02-04 16:47 ` Ryan Eatmon
2025-02-04 19:16 ` Denys Dmytriyenko
2025-02-04 20:05 ` Andrew Davis
2025-02-05 9:46 ` Chirag Shilwant
2025-02-04 13:49 ` [meta-ti][master/scarthgap][PATCH 2/3] meta-ti-bsp: Add Support for AM62L Chirag Shilwant
2025-02-04 16:42 ` Andrew Davis
2025-02-04 16:46 ` Ryan Eatmon
2025-02-04 19:08 ` Denys Dmytriyenko [this message]
2025-02-04 16:45 ` Ryan Eatmon
2025-02-04 13:49 ` [meta-ti][master/scarthgap][PATCH 3/3] conf: machine: am62lxx-evm: Add logic to generate UBI filesystem images Chirag Shilwant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250204190849.GI21608@denix.org \
--to=denis@denix.org \
--cc=afd@ti.com \
--cc=c-shilwant@ti.com \
--cc=meta-ti@lists.yoctoproject.org \
--cc=reatmon@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.