Re: [PATCH v3 05/11] arm: mach-k3: Add initial am62lx SoC support
Anshul Dalal <[email protected]> Tue, 4 Aug 2026 16:42:45 +0530
| Newsgroups | gmane.comp.boot-loaders.u-boot |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> > Signed-off-by: Bryan Brattlof <[email protected]> > --- [snip] > diff --git a/arch/arm/mach-k3/include/mach/am62l_hardware.h b/arch/arm/ma= ch-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.co= m/ > + */ > + > +#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[] =3D {}; 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 <[email protected]>