OSDN Git Service

Merge tag 'soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / arch / arm / mm / mmu.c
index 99b47b9..9f06102 100644 (file)
@@ -876,6 +876,22 @@ static void __init pci_reserve_io(void)
 #define pci_reserve_io() do { } while (0)
 #endif
 
+#ifdef CONFIG_DEBUG_LL
+void __init debug_ll_io_init(void)
+{
+       struct map_desc map;
+
+       debug_ll_addr(&map.pfn, &map.virtual);
+       if (!map.pfn || !map.virtual)
+               return;
+       map.pfn = __phys_to_pfn(map.pfn);
+       map.virtual &= PAGE_MASK;
+       map.length = PAGE_SIZE;
+       map.type = MT_DEVICE;
+       create_mapping(&map);
+}
+#endif
+
 static void * __initdata vmalloc_min =
        (void *)(VMALLOC_END - (240 << 20) - VMALLOC_OFFSET);