diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-09-01 08:59:28 +0200 |
---|---|---|
committer | ard <ard.biesheuvel@linaro.org> | 2015-12-13 19:18:28 +0100 |
commit | 2937367b8a4b0d46ce3312cb997e4a240b02cf15 (patch) | |
tree | 44454d1cfd965482d661c92d17264d6affa77a6a /arch/arm/mm/ioremap.c | |
parent | arm64/efi: refactor EFI init and runtime code for reuse by 32-bit ARM (diff) | |
download | linux-2937367b8a4b0d46ce3312cb997e4a240b02cf15.tar.xz linux-2937367b8a4b0d46ce3312cb997e4a240b02cf15.zip |
ARM: add support for generic early_ioremap/early_memremap
This enables the generic early_ioremap implementation for ARM.
It uses the fixmap region reserved for kmap. Since early_ioremap
is only supported before paging_init(), and kmap is only supported
afterwards, this is guaranteed not to cause any clashes.
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'arch/arm/mm/ioremap.c')
-rw-r--r-- | arch/arm/mm/ioremap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index 0c81056c1dd7..66a978d05958 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c @@ -30,6 +30,7 @@ #include <asm/cp15.h> #include <asm/cputype.h> #include <asm/cacheflush.h> +#include <asm/early_ioremap.h> #include <asm/mmu_context.h> #include <asm/pgalloc.h> #include <asm/tlbflush.h> @@ -469,3 +470,11 @@ int pci_ioremap_io(unsigned int offset, phys_addr_t phys_addr) } EXPORT_SYMBOL_GPL(pci_ioremap_io); #endif + +/* + * Must be called after early_fixmap_init + */ +void __init early_ioremap_init(void) +{ + early_ioremap_setup(); +} |