On Mon Nov 24, 2025 at 5:06 AM CET, Udit Kumar wrote: > > On 11/20/2025 9:33 PM, Markus Schneider-Pargmann (TI.com) wrote: >> Add a small helper that uses memory regions referenced by the R5 >> devicetree node to calculate the LPM meta data address. >> >> Tested-by: Anshul Dalal <[email protected]> >> Signed-off-by: Markus Schneider-Pargmann (TI.com) <[email protected]> >> --- >> arch/arm/mach-k3/common.c | 43 +++++++++++++++++++++++++++++++++++++++++++ >> arch/arm/mach-k3/common.h | 1 + >> 2 files changed, 44 insertions(+) >> >> diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c >> index >> b28c2cd5776f29d75d54da9078e5fb17768d69c9..191254b391af68cb6c277f986069ed87211f2fc1 >> 100644 >> --- a/arch/arm/mach-k3/common.c >> +++ b/arch/arm/mach-k3/common.c >> @@ -16,6 +16,8 @@ >> #include <linux/printk.h> >> #include "common.h" >> #include <dm.h> >> +#include <dm/of_access.h> >> +#include <dm/ofnode.h> >> #include <remoteproc.h> >> #include <asm/cache.h> >> #include <linux/soc/ti/ti_sci_protocol.h> >> @@ -36,6 +38,7 @@ >> #include <wait_bit.h> >> >> #define CLKSTOP_TRANSITION_TIMEOUT_MS 10 >> +#define K3_R5_MEMREGION_LPM_METADATA_OFFSET 0x108000 >> >> #define PROC_BOOT_CTRL_FLAG_R5_CORE_HALT 0x00000001 >> #define PROC_BOOT_STATUS_FLAG_R5_WFI 0x00000002 >> @@ -191,6 +194,42 @@ bool wkup_ctrl_is_lpm_exit(void) >> } >> >> #if IS_ENABLED(CONFIG_K3_IODDR) >> +int wkup_r5f_am62_lpm_meta_data_addr(u64 *meta_data_addr) > > device specific function in common file ? >
Thanks, it is common between am62a7 and am62p5. Also thanks for the other reviews, I am addressing most of it in my next version. Best Markus
signature.asc
Description: PGP signature

