diff options
author | Olof Johansson <olof@lixom.net> | 2012-11-21 04:12:49 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-11-21 05:13:12 -0500 |
commit | a33ee3e6949e244f9166a7f7e764886432304ecd (patch) | |
tree | 257ae924259d68bea516f833c9728d596e7757b5 /arch/arm/mm | |
parent | 06f31cb0f601728f24b85c51972eee6bdc94a1d1 (diff) | |
parent | 52530343331dc111e0899bfc976f21ace5b5c95c (diff) |
Merge tag 'highbank-debugll-cleanup' of git://sources.calxeda.com/kernel/linux into next/soc
From Rob Herring:
Use common debug_ll_init function and remove the static mapping code
from mach-highbank.
* tag 'highbank-debugll-cleanup' of git://sources.calxeda.com/kernel/linux:
ARM: highbank: use common debug_ll_io_init
ARM: implement debug_ll_io_init()
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/mmu.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 941dfb9e9a78..39719bb93caa 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -876,6 +876,22 @@ static void __init pci_reserve_io(void) | |||
876 | #define pci_reserve_io() do { } while (0) | 876 | #define pci_reserve_io() do { } while (0) |
877 | #endif | 877 | #endif |
878 | 878 | ||
879 | #ifdef CONFIG_DEBUG_LL | ||
880 | void __init debug_ll_io_init(void) | ||
881 | { | ||
882 | struct map_desc map; | ||
883 | |||
884 | debug_ll_addr(&map.pfn, &map.virtual); | ||
885 | if (!map.pfn || !map.virtual) | ||
886 | return; | ||
887 | map.pfn = __phys_to_pfn(map.pfn); | ||
888 | map.virtual &= PAGE_MASK; | ||
889 | map.length = PAGE_SIZE; | ||
890 | map.type = MT_DEVICE; | ||
891 | create_mapping(&map); | ||
892 | } | ||
893 | #endif | ||
894 | |||
879 | static void * __initdata vmalloc_min = | 895 | static void * __initdata vmalloc_min = |
880 | (void *)(VMALLOC_END - (240 << 20) - VMALLOC_OFFSET); | 896 | (void *)(VMALLOC_END - (240 << 20) - VMALLOC_OFFSET); |
881 | 897 | ||