[PATCH] arm: mach-k3: am642_init: Unlock MCU PADCFG regs
Nishanth Menon
nm at ti.com
Fri Jan 14 20:27:50 CET 2022
On 16:14-20211215, Christian Gmeiner wrote:
> From: Michael Liebert <liebert at ibv-augsburg.de>
>
> Currently only the PADCFG registers of the main domain are unlocked.
> Also unlock PADCFG registers of MCU domain, so MCU pin muxing can be configured by u-boot or Linux.
>
> Signed-off-by: Michael Liebert <liebert at ibv-augsburg.de>
> Tested-by: Christian Gmeiner <christian.gmeiner at gmail.com>
> ---
> arch/arm/mach-k3/am642_init.c | 3 +++
> arch/arm/mach-k3/include/mach/am64_hardware.h | 2 ++
> 2 files changed, 5 insertions(+)
>
> diff --git a/arch/arm/mach-k3/am642_init.c b/arch/arm/mach-k3/am642_init.c
> index 533905daeb..958fa05af4 100644
> --- a/arch/arm/mach-k3/am642_init.c
> +++ b/arch/arm/mach-k3/am642_init.c
> @@ -37,6 +37,9 @@ static void ctrl_mmr_unlock(void)
> mmr_unlock(CTRL_MMR0_BASE, 3);
> mmr_unlock(CTRL_MMR0_BASE, 5);
> mmr_unlock(CTRL_MMR0_BASE, 6);
> +
> + /* Unlock all MCU_PADCFG_MMR1 module registers */
> + mmr_unlock(MCU_PADCFG_MMR1_BASE, 1);
> }
>
> /*
> diff --git a/arch/arm/mach-k3/include/mach/am64_hardware.h b/arch/arm/mach-k3/include/mach/am64_hardware.h
> index 96383437d5..e06e1f9532 100644
> --- a/arch/arm/mach-k3/include/mach/am64_hardware.h
> +++ b/arch/arm/mach-k3/include/mach/am64_hardware.h
> @@ -12,6 +12,8 @@
>
> #define PADCFG_MMR1_BASE 0xf0000
>
> +#define MCU_PADCFG_MMR1_BASE 0x04080000
> +
> #define MAIN_DEVSTAT_PRIMARY_BOOTMODE_MASK 0x00000078
> #define MAIN_DEVSTAT_PRIMARY_BOOTMODE_SHIFT 3
>
Acked-by: Nishanth Menon <nm at ti.com>
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
More information about the U-Boot
mailing list