]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/earthlcd/favr-32-ezkit/favr-32-ezkit.c
avr32: Add simple paging support
[karo-tx-uboot.git] / board / earthlcd / favr-32-ezkit / favr-32-ezkit.c
index d2843c9d2b82c23cc0e157a5bcfcdbcf06d6135c..b0eca939b7f870f13f5f15a728e77e43e408e2e2 100644 (file)
 #include <asm/sdram.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/hmatrix.h>
+#include <asm/arch/mmu.h>
 #include <asm/arch/portmux.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
+struct mmu_vm_range mmu_vmr_table[CONFIG_SYS_NR_VM_REGIONS] = {
+       {
+               .virt_pgno      = CONFIG_SYS_FLASH_BASE >> PAGE_SHIFT,
+               .nr_pages       = CONFIG_SYS_FLASH_SIZE >> PAGE_SHIFT,
+               .phys           = (CONFIG_SYS_FLASH_BASE >> PAGE_SHIFT)
+                                       | MMU_VMR_CACHE_NONE,
+       }, {
+               .virt_pgno      = CONFIG_SYS_SDRAM_BASE >> PAGE_SHIFT,
+               .nr_pages       = EBI_SDRAM_SIZE >> PAGE_SHIFT,
+               .phys           = (CONFIG_SYS_SDRAM_BASE >> PAGE_SHIFT)
+                                       | MMU_VMR_CACHE_WRBACK,
+       },
+};
+
 static const struct sdram_config sdram_config = {
        /* MT48LC4M32B2P-6 (16 MB) */
        .data_bits      = SDRAM_DATA_32BIT,