u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Anshul Dalal <anshuld@ti.com>
To: Bryan Brattlof <bb@ti.com>, <u-boot@lists.u-boot-project.org>
Cc: Peng Fan <peng.fan@nxp.com>, Tom Rini <trini@konsulko.com>,
	"Dan Carpenter" <dan.carpenter@linaro.org>,
	Anshul Dalal <anshuld@ti.com>, "Simon Glass" <sjg@chromium.org>,
	Alper Nebi Yasak <alpernebiyasak@gmail.com>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	Aristo Chen <aristo.chen@canonical.com>,
	Udit Kumar <u-kumar1@ti.com>, Andrew Davis <afd@ti.com>,
	Daniel Golle <daniel@makrotopia.org>,
	Johan Jonker <jbx6244@gmail.com>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Paresh Bhagat <p-bhagat@ti.com>, Swamil Jain <s-jain1@ti.com>,
	Neha Malcom Francis <n-francis@ti.com>,
	Shiva Tripathi <s-tripathi1@ti.com>,
	Apurva Nandan <a-nandan@ti.com>, Chintan Vankar <c-vankar@ti.com>,
	Francesco Dolcini <francesco.dolcini@toradex.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Siddharth Vadapalli <s-vadapalli@ti.com>,
	Hrushikesh Salunke <h-salunke@ti.com>,
	Manorit Chawdhry <m-chawdhry@ti.com>
Subject: Re: [PATCH v3 05/11] arm: mach-k3: Add initial am62lx SoC support
Date: Tue, 4 Aug 2026 16:42:45 +0530	[thread overview]
Message-ID: <DKG455BMPCLC.199BSNMXHFTG5@ti.com> (raw)
In-Reply-To: <20260803-am62lx-v3-5-b4f4302b09b4@ti.com>

On Tue Aug 4, 2026 at 5:39 AM IST, Bryan Brattlof wrote:
> Add initial mach-k3 files needed to support boards based on the AM62L
> family of SoCs
>
> Tested-by: Anshul Dalal <anshuld@ti.com>
> Signed-off-by: Bryan Brattlof <bb@ti.com>
> ---

[snip]

> diff --git a/arch/arm/mach-k3/include/mach/am62l_hardware.h b/arch/arm/mach-k3/include/mach/am62l_hardware.h
> new file mode 100644
> index 000000000000..7791511ff2a2
> --- /dev/null
> +++ b/arch/arm/mach-k3/include/mach/am62l_hardware.h
> @@ -0,0 +1,48 @@
> +/* SPDX-License-Identifier: GPL-2.0+ */
> +/*
> + * AM62Lx SoC definitions, structures etc.
> + *
> + * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
> + */
> +
> +#ifndef __ASM_ARCH_AM62L_HARDWARE_H
> +#define __ASM_ARCH_AM62L_HARDWARE_H
> +
> +#include <config.h>
> +#ifndef __ASSEMBLY__
> +#include <linux/bitops.h>
> +#endif
> +
> +#define CTRL_MMR0_BASE				0x00100000
> +#define WKUP_CTRL_MMR0_BASE			0x43000000
> +#define WKUP_CTRL_MMR1_BASE			0x43010000
> +
> +#define CTRLMMR_MAIN_DEVSTAT			(WKUP_CTRL_MMR1_BASE + 0x30)
> +#define MAIN_DEVSTAT_PRIMARY_BOOTMODE_MASK	GENMASK(6, 3)
> +#define MAIN_DEVSTAT_PRIMARY_BOOTMODE_SHIFT	3
> +#define MAIN_DEVSTAT_PRIMARY_BOOTMODE_CFG_MASK	GENMASK(9, 7)
> +#define MAIN_DEVSTAT_PRIMARY_BOOTMODE_CFG_SHIFT	7
> +#define MAIN_DEVSTAT_BACKUP_BOOTMODE_MASK	GENMASK(12, 10)
> +#define MAIN_DEVSTAT_BACKUP_BOOTMODE_SHIFT	10
> +#define MAIN_DEVSTAT_BACKUP_BOOTMODE_CFG_MASK	BIT(13)
> +#define MAIN_DEVSTAT_BACKUP_BOOTMODE_CFG_SHIFT	13
> +
> +/* Primary Bootmode MMC Config macros */
> +#define MAIN_DEVSTAT_PRIMARY_MMC_PORT_MASK	BIT(2)
> +#define MAIN_DEVSTAT_PRIMARY_MMC_PORT_SHIFT	2
> +#define MAIN_DEVSTAT_PRIMARY_MMC_FS_RAW_MASK	BIT(0)
> +#define MAIN_DEVSTAT_PRIMARY_MMC_FS_RAW_SHIFT	0
> +
> +/* Primary Bootmode USB Config macros */
> +#define MAIN_DEVSTAT_PRIMARY_USB_MODE_SHIFT	1
> +#define MAIN_DEVSTAT_PRIMARY_USB_MODE_MASK	BIT(1)
> +
> +/* Backup Bootmode USB Config macros */
> +#define MAIN_DEVSTAT_BACKUP_USB_MODE_MASK	BIT(0)
> +
> +/* address boot rom leaves its boot structure */
> +#define K3_BOOT_PARAM_TABLE_INDEX_OCRAM		0x70816e70
> +
> +static const u32 put_core_ids[] = {};

I have some issues with the use of put_core_ids here but looks like it
requires a more involved refactor of mach-k3 common code. I can take up
that cleanup once this is merged.

Reviewed-by: Anshul Dalal <anshuld@ti.com>

  reply	other threads:[~2026-08-04 11:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-04  0:09 [PATCH v3 00/11] arm: mach-k3: introduce basic support for the AM62L Bryan Brattlof
2026-08-04  0:09 ` [PATCH v3 01/11] firmware: scmi: switch to dev_ofnode during bind Bryan Brattlof
2026-08-04  0:09 ` [PATCH v3 02/11] tools: binman: extend ti_secure_rom to handle op-tee Bryan Brattlof
2026-08-04  0:09 ` [PATCH v3 03/11] soc: add data to identify the am62lx Bryan Brattlof
2026-08-04  0:09 ` [PATCH v3 04/11] boot/Kconfig: disable fit post processing for AM62L Bryan Brattlof
2026-08-04  0:09 ` [PATCH v3 05/11] arm: mach-k3: Add initial am62lx SoC support Bryan Brattlof
2026-08-04 11:12   ` Anshul Dalal [this message]
2026-08-04  0:09 ` [PATCH v3 06/11] board: ti: am62lx: add initial board files Bryan Brattlof
2026-08-04 11:14   ` Anshul Dalal
2026-08-04  0:09 ` [PATCH v3 07/11] arm: dts: k3-am62lx: Add binman support Bryan Brattlof
2026-08-04 11:20   ` Anshul Dalal
2026-08-04  0:09 ` [PATCH v3 08/11] configs: am62lx_evm: add initial defconfig Bryan Brattlof
2026-08-04 11:56   ` Anshul Dalal
2026-08-04 19:10     ` Bryan Brattlof
2026-08-04  0:09 ` [PATCH v3 09/11] doc: ti: k3: fix pygments warning parsing device-tree Bryan Brattlof
2026-08-04  0:09 ` [PATCH v3 10/11] doc: board: ti: correct path to tcl scripts Bryan Brattlof
2026-08-04 11:57   ` Anshul Dalal
2026-08-04 14:49   ` Andrew Davis
2026-08-04 19:08     ` Bryan Brattlof
2026-08-04  0:09 ` [PATCH v3 11/11] doc: board: ti: am62lx_evm: add initial docs for the AM62L-EVM Bryan Brattlof
2026-08-04 11:29   ` Anshul Dalal

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=DKG455BMPCLC.199BSNMXHFTG5@ti.com \
    --to=anshuld@ti.com \
    --cc=a-nandan@ti.com \
    --cc=afd@ti.com \
    --cc=alpernebiyasak@gmail.com \
    --cc=aristo.chen@canonical.com \
    --cc=bb@ti.com \
    --cc=c-vankar@ti.com \
    --cc=dan.carpenter@linaro.org \
    --cc=daniel@makrotopia.org \
    --cc=francesco.dolcini@toradex.com \
    --cc=h-salunke@ti.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jbx6244@gmail.com \
    --cc=m-chawdhry@ti.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=n-francis@ti.com \
    --cc=p-bhagat@ti.com \
    --cc=peng.fan@nxp.com \
    --cc=s-jain1@ti.com \
    --cc=s-tripathi1@ti.com \
    --cc=s-vadapalli@ti.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.org \
    --cc=u-kumar1@ti.com \
    --cc=vigneshr@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).