--- zzzz-none-000/linux-2.6.39.4/arch/arm/mm/ioremap.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/arch/arm/mm/ioremap.c 2021-11-10 13:38:14.000000000 +0000 @@ -204,8 +204,12 @@ /* * Don't allow RAM to be mapped - this causes problems with ARMv6+ */ - if (WARN_ON(pfn_valid(pfn))) - return NULL; +#if defined(CONFIG_ARM_PUMA_C55_MEMORY) || (CONFIG_ARM_PUMA_C55_MEMORY >= 0) + /*--- but access to C55-P-Code should be uncached! ---*/ + if(mtype != MT_DEVICE) +#endif/*--- #if !defined(CONFIG_ARM_PUMA_C55_MEMORY) || (CONFIG_ARM_PUMA_C55_MEMORY == 0) ---*/ + if (WARN_ON(pfn_valid(pfn))) + return NULL; type = get_mem_type(mtype); if (!type)