|
| 1 | +diff --git a/include/plat/imx6/plat/machine/devices.h b/include/plat/imx6/plat/machine/devices.h |
| 2 | +index 892ee9c..414bfc7 100644 |
| 3 | +--- a/include/plat/imx6/plat/machine/devices.h |
| 4 | ++++ b/include/plat/imx6/plat/machine/devices.h |
| 5 | +@@ -13,7 +13,8 @@ |
| 6 | + |
| 7 | + /* These devices are used by the seL4 kernel. */ |
| 8 | + #ifdef CONFIG_PLAT_SABRE |
| 9 | +-#define UART_PADDR UART2_PADDR |
| 10 | ++//#define UART_PADDR UART2_PADDR |
| 11 | ++#define UART_PADDR UART1_PADDR |
| 12 | + #elif defined(CONFIG_PLAT_WANDQ) |
| 13 | + #define UART_PADDR UART1_PADDR |
| 14 | + #else |
| 15 | +@@ -39,6 +40,7 @@ |
| 16 | + //#define RESERVED_PADDR 0x02C00000 /* 84 MB */ |
| 17 | + #define IPU2_PADDR 0x02800000 /* 4 MB */ |
| 18 | + #define IPU1_PADDR 0x02400000 /* 4 MB */ |
| 19 | ++#define AIPS3_CONFIG_PADDR 0x0227C000 /* 4 pages */ |
| 20 | + //#define RESERVED_PADDR 0x0220C000 /* 1 MB */ |
| 21 | + #define MIPI_HSI_PADDR 0x02208000 /* 4 pages */ |
| 22 | + #define OPENVG_PADDR 0x02204000 /* 4 pages */ |
| 23 | +@@ -168,6 +170,7 @@ |
| 24 | + #define OCRAM_ALIASED_PADDR 0x00940000 /* 192 pages */ |
| 25 | + #define OCRAM_PADDR 0x00900000 /* 64 pages */ |
| 26 | + #define GPV4_PL301_CONFIG_PADDR 0x00800000 /* 1 MB */ |
| 27 | ++#define TCML_PADDR 0x007F8000 /* 8 pages */ |
| 28 | + //#define RESERVED_PADDR 0x00400000 /* 4 MB */ |
| 29 | + #define GPV3_PL301_CONFIG_PADDR 0x00300000 /* 1 MB */ |
| 30 | + #define GPV2_PL301_CONFIG_PADDR 0x00200000 /* 1 MB */ |
| 31 | +diff --git a/include/plat/imx6/plat/machine/hardware.h b/include/plat/imx6/plat/machine/hardware.h |
| 32 | +index 4365048..f2d0555 100644 |
| 33 | +--- a/include/plat/imx6/plat/machine/hardware.h |
| 34 | ++++ b/include/plat/imx6/plat/machine/hardware.h |
| 35 | +@@ -18,7 +18,8 @@ |
| 36 | + #include <plat/machine/devices.h> |
| 37 | + #include <arch/benchmark_overflowHandler.h> |
| 38 | + |
| 39 | +-#define physBase 0x10000000 |
| 40 | ++//#define physBase 0x10000000 |
| 41 | ++#define physBase 0x80000000 |
| 42 | + #define kernelBase 0xe0000000 |
| 43 | + |
| 44 | + static const kernel_frame_t BOOT_RODATA kernel_devices[] = { |
| 45 | +@@ -54,7 +55,8 @@ static const kernel_frame_t BOOT_RODATA kernel_devices[] = { |
| 46 | + static const p_region_t BOOT_RODATA avail_p_regs[] = { |
| 47 | + #if defined(CONFIG_PLAT_SABRE) |
| 48 | + /* Sabre has 1 GiB */ |
| 49 | +- { /* .start = */ 0x10000000, /* .end = */ 0x50000000 } |
| 50 | ++ //{ /* .start = */ 0x10000000, /* .end = */ 0x50000000 } |
| 51 | ++ { /* .start = */ 0x80000000, /* .end = */ 0xc0000000 } |
| 52 | + #elif defined(CONFIG_PLAT_WANDQ) |
| 53 | + /* Wandboard Quad: 2 GiB */ |
| 54 | + { /* .start = */ 0x10000000, /* .end = */ 0x90000000 } |
| 55 | +@@ -65,6 +67,7 @@ static const p_region_t BOOT_RODATA dev_p_regs[] = { |
| 56 | + // { /* .start = */ EIM_CS0_PADDR , /* .end = */ EIM_CS0_PADDR + (128 << 20)}, |
| 57 | + { /* .start = */ IPU2_PADDR , /* .end = */ IPU2_PADDR + ( 4 << 20)}, |
| 58 | + { /* .start = */ IPU1_PADDR , /* .end = */ IPU1_PADDR + ( 4 << 20)}, |
| 59 | ++ { /* .start = */ AIPS3_CONFIG_PADDR , /* .end = */ AIPS3_CONFIG_PADDR + ( 4 << 12)}, |
| 60 | + { /* .start = */ MIPI_HSI_PADDR , /* .end = */ MIPI_HSI_PADDR + ( 4 << 12)}, |
| 61 | + { /* .start = */ OPENVG_PADDR , /* .end = */ OPENVG_PADDR + ( 4 << 12)}, |
| 62 | + { /* .start = */ SATA_PADDR , /* .end = */ SATA_PADDR + ( 4 << 12)}, |
| 63 | +@@ -174,6 +177,7 @@ static const p_region_t BOOT_RODATA dev_p_regs[] = { |
| 64 | + { /* .start = */ OCRAM_ALIASED_PADDR , /* .end = */ OCRAM_ALIASED_PADDR + (192 << 12)}, |
| 65 | + { /* .start = */ OCRAM_PADDR , /* .end = */ OCRAM_PADDR + ( 64 << 12)}, |
| 66 | + { /* .start = */ GPV4_PL301_CONFIG_PADDR, /* .end = */ GPV4_PL301_CONFIG_PADDR + ( 1 << 20)}, |
| 67 | ++ { /* .start = */ TCML_PADDR , /* .end = */ TCML_PADDR + ( 8 << 12)}, |
| 68 | + { /* .start = */ GPV3_PL301_CONFIG_PADDR, /* .end = */ GPV3_PL301_CONFIG_PADDR + ( 1 << 20)}, |
| 69 | + { /* .start = */ GPV2_PL301_CONFIG_PADDR, /* .end = */ GPV2_PL301_CONFIG_PADDR + ( 1 << 20)}, |
| 70 | + { /* .start = */ DTCP_PADDR , /* .end = */ DTCP_PADDR + ( 4 << 12)}, |
| 71 | +diff --git a/src/plat/imx6/linker.lds b/src/plat/imx6/linker.lds |
| 72 | +index 836ca3c..a31ef7f 100644 |
| 73 | +--- a/src/plat/imx6/linker.lds |
| 74 | ++++ b/src/plat/imx6/linker.lds |
| 75 | +@@ -11,8 +11,12 @@ |
| 76 | + ENTRY(_start) |
| 77 | + |
| 78 | + /* WARNING: constants also defined in plat/machine/hardware.h */ |
| 79 | +-KERNEL_BASE = 0xe0000000; |
| 80 | +-PHYS_BASE = 0x10000000; |
| 81 | ++/* KERNEL_BASE = 0xe0000000; */ |
| 82 | ++/* PHYS_BASE = 0x10000000; */ |
| 83 | ++ |
| 84 | ++KERNEL_BASE = 0xe0000000; |
| 85 | ++PHYS_BASE = 0x80000000; |
| 86 | ++ |
| 87 | + KERNEL_OFFSET = KERNEL_BASE - PHYS_BASE; |
| 88 | + |
| 89 | + SECTIONS |
0 commit comments