rPi: MMU Work

* Use U-Boot mmu code as base
* This will be factored out someday into common arch mmu
  code when we can read Flattened Device Trees
* Move mmu_init after serial_init.
  Temporary change as we will want serial_init to use
  memory mapped addresses... for debugging.
This commit is contained in:
Alexander von Gluck IV
2012-05-18 06:36:53 -05:00
parent 6d4270e3ce
commit 77591e9657
4 changed files with 639 additions and 37 deletions
+6 -3
View File
@@ -40,7 +40,6 @@
#define BCM2708_SDRAM_BASE 0x00000000
#define BCM2708_PERI_BASE 0x20000000
#define SDRAM_BASE BCM2708_SDRAM_BASE
#define ST_BASE (BCM2708_PERI_BASE + 0x3000)
// System Timer, sec 12.0, page 172
#define DMA_BASE (BCM2708_PERI_BASE + 0x7000)
@@ -80,8 +79,12 @@
#define VECT_BASE 0xffff0000
#define VECT_SIZE SIZE_4K
#define DEVICE_BASE ARM_CTRL_BASE
#define DEVICE_SIZE SIZE_4K
#define PERIPHERAL_BASE BCM2708_PERI_BASE
#define PERIPHERAL_SIZE 0x1000000
#define SDRAM_BASE BCM2708_SDRAM_BASE
#define SDRAM_SIZE 0x4000000
// 64Mb
/* UART */