--- zzzz-none-000/linux-5.15.111/arch/arm/include/asm/memory.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/arch/arm/include/asm/memory.h 2024-02-07 09:27:16.000000000 +0000 @@ -7,6 +7,12 @@ * * Note: this file should not be included by non-asm/.h files */ + +/* + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017, Intel Corporation. + */ + #ifndef __ASM_ARM_MEMORY_H #define __ASM_ARM_MEMORY_H @@ -154,7 +160,11 @@ * have CONFIG_ARM_PATCH_PHYS_VIRT. Assembly code must always use * PLAT_PHYS_OFFSET and not PHYS_OFFSET. */ +#ifdef CONFIG_ARCH_AVALANCHE +#define PLAT_PHYS_OFFSET UL(CONFIG_ARM_AVALANCHE_SDRAM_ADDRESS) +#else #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET) +#endif #ifndef __ASSEMBLY__