[9] | 1 | /* |
---|
| 2 | This file is part of MutekP. |
---|
| 3 | |
---|
| 4 | MutekP is free software; you can redistribute it and/or modify it |
---|
| 5 | under the terms of the GNU General Public License as published by |
---|
| 6 | the Free Software Foundation; either version 2 of the License, or |
---|
| 7 | (at your option) any later version. |
---|
| 8 | |
---|
| 9 | MutekP is distributed in the hope that it will be useful, but |
---|
| 10 | WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 12 | General Public License for more details. |
---|
| 13 | |
---|
| 14 | You should have received a copy of the GNU General Public License |
---|
| 15 | along with MutekP; if not, write to the Free Software Foundation, |
---|
| 16 | Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
| 17 | |
---|
| 18 | UPMC / LIP6 / SOC (c) 2009 |
---|
| 19 | Copyright Ghassan Almaless <ghassan.almaless@gmail.com> |
---|
| 20 | */ |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | ///////////////////////////////////////// |
---|
| 24 | // Devices mapped segments |
---|
| 25 | ///////////////////////////////////////// |
---|
| 26 | #define TIMER0_BASE 0x03200000 |
---|
| 27 | #define TIMER0_SIZE 0x00000080 |
---|
| 28 | |
---|
| 29 | #define TIMER1_BASE 0x63200000 |
---|
| 30 | #define TIMER1_SIZE 0x00000080 |
---|
| 31 | |
---|
| 32 | #define TIMER2_BASE 0x83200000 |
---|
| 33 | #define TIMER2_SIZE 0x00000080 |
---|
| 34 | |
---|
| 35 | #define TIMER3_BASE 0xC3200000 |
---|
| 36 | #define TIMER3_SIZE 0x00000080 |
---|
| 37 | |
---|
| 38 | #define ICU_BASE 0x93400000 |
---|
| 39 | #define ICU_SIZE 0x00000020 |
---|
| 40 | |
---|
| 41 | #define DMA_BASE 0xB3200000 |
---|
| 42 | #define DMA_SIZE 0x00000014 |
---|
| 43 | |
---|
| 44 | #define TTY_BASE 0x95200000 |
---|
| 45 | #define TTY_SIZE 0x00000100 |
---|
| 46 | |
---|
| 47 | #define BD_BASE 0xB7200000 |
---|
| 48 | #define BD_SIZE 0x20 |
---|
| 49 | |
---|
| 50 | #define FB_XSIZE 512 |
---|
| 51 | #define FB_YSIZE 512 |
---|
| 52 | #define FB_BASE 0xD2200000 |
---|
| 53 | #define FB_SIZE FB_XSIZE*FB_YSIZE*2 |
---|
| 54 | //////////////////////////////////////// |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | ////////////////////////////////////////// |
---|
| 58 | // ROM mapped segments |
---|
| 59 | ////////////////////////////////////////// |
---|
| 60 | |
---|
| 61 | #define KTEXT_LMA_BASE 0xbf800000 |
---|
| 62 | #define KTEXT_LMA_SIZE 0x00020000 |
---|
| 63 | |
---|
| 64 | #define KDATA_LMA_BASE 0xbf820000 |
---|
| 65 | #define KDATA_LMA_SIZE 0x00020000 |
---|
| 66 | |
---|
| 67 | #define UTEXT_LMA_BASE 0xbf840000 |
---|
| 68 | #define UTEXT_LMA_SIZE 0x00060000 |
---|
| 69 | |
---|
| 70 | #define UDATA_LMA_BASE 0xbf8A0000 |
---|
| 71 | #define UDATA_LMA_SIZE 0x00020000 |
---|
| 72 | |
---|
| 73 | #define BOOT_BASE 0xbfc00000 |
---|
| 74 | #define BOOT_SIZE 0x00100000 |
---|
| 75 | ////////////////////////////////////////// |
---|
| 76 | |
---|
| 77 | ////////////////////////////////////////// |
---|
| 78 | // RAM |
---|
| 79 | ////////////////////////////////////////// |
---|
| 80 | |
---|
| 81 | //#define RAM_BASE 0x7F400000 |
---|
| 82 | //#define RAM_SIZE 0x01000000 |
---|
| 83 | #define MC0_M_BASE 0x10000000 |
---|
| 84 | //#define MC0_M_SIZE 0x00400000 |
---|
| 85 | #define MC0_M_SIZE 0x01000000 |
---|
| 86 | |
---|
| 87 | #define MC1_M_BASE 0x50000000 |
---|
| 88 | //#define MC1_M_SIZE 0x00400000 |
---|
| 89 | #define MC1_M_SIZE 0x01000000 |
---|
| 90 | |
---|
| 91 | #define MC2_M_BASE 0x80000000 |
---|
| 92 | //#define MC2_M_SIZE 0x00400000 |
---|
| 93 | #define MC2_M_SIZE 0x01000000 |
---|
| 94 | |
---|
| 95 | #define MC3_M_BASE 0xD0000000 |
---|
| 96 | //#define MC3_M_SIZE 0x00400000 |
---|
| 97 | #define MC3_M_SIZE 0x01000000 |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | ////////////////////////////////////////// |
---|
| 101 | |
---|
| 102 | ////////////////////////////////////////// |
---|
| 103 | // Application mapped segments |
---|
| 104 | ////////////////////////////////////////// |
---|
| 105 | |
---|
| 106 | #define KTEXT_BASE 0x80000000 |
---|
| 107 | #define KDATA_BASE 0x80020000 |
---|
| 108 | #define KDATA_SIZE 0x003E0000 |
---|
| 109 | |
---|
| 110 | #define USR_TEXT_BASE 0x7F400000 |
---|
| 111 | #define USR_DATA_BASE 0x7F460000 |
---|
| 112 | #define USR_DATA_SIZE 0X00B9F000 |
---|
| 113 | //////////////////////////////////////// |
---|
| 114 | |
---|
| 115 | //////////////////////////////////////// |
---|
| 116 | // Reserved segments |
---|
| 117 | //////////////////////////////////////// |
---|
| 118 | |
---|
| 119 | #define PROC0_BASE 0x01400000 |
---|
| 120 | #define PROC0_SIZE 0x00000020 |
---|
| 121 | |
---|
| 122 | #define PROC1_BASE 0x02400000 |
---|
| 123 | #define PROC1_SIZE 0x00000020 |
---|
| 124 | |
---|
| 125 | #define PROC2_BASE 0x03400000 |
---|
| 126 | #define PROC2_SIZE 0x00000020 |
---|
| 127 | |
---|
| 128 | #define PROC3_BASE 0x04400000 |
---|
| 129 | #define PROC3_SIZE 0x00000020 |
---|
| 130 | |
---|
| 131 | #define PROC4_BASE 0x43400000 |
---|
| 132 | #define PROC4_SIZE 0x00000020 |
---|
| 133 | |
---|
| 134 | #define PROC5_BASE 0x44400000 |
---|
| 135 | #define PROC5_SIZE 0x00000020 |
---|
| 136 | |
---|
| 137 | #define PROC6_BASE 0x45400000 |
---|
| 138 | #define PROC6_SIZE 0x00000020 |
---|
| 139 | |
---|
| 140 | #define PROC7_BASE 0x46400000 |
---|
| 141 | #define PROC7_SIZE 0x00000020 |
---|
| 142 | |
---|
| 143 | #define PROC8_BASE 0xA3400000 |
---|
| 144 | #define PROC8_SIZE 0x00000020 |
---|
| 145 | |
---|
| 146 | #define PROC9_BASE 0xA4400000 |
---|
| 147 | #define PROC9_SIZE 0x00000020 |
---|
| 148 | |
---|
| 149 | #define PROC10_BASE 0xA5400000 |
---|
| 150 | #define PROC10_SIZE 0x00000020 |
---|
| 151 | |
---|
| 152 | #define PROC11_BASE 0xA6400000 |
---|
| 153 | #define PROC11_SIZE 0x00000020 |
---|
| 154 | |
---|
| 155 | #define PROC12_BASE 0xE2400000 |
---|
| 156 | #define PROC12_SIZE 0x00000020 |
---|
| 157 | |
---|
| 158 | #define PROC13_BASE 0xE3400000 |
---|
| 159 | #define PROC13_SIZE 0x00000020 |
---|
| 160 | |
---|
| 161 | #define PROC14_BASE 0xE4400000 |
---|
| 162 | #define PROC14_SIZE 0x00000020 |
---|
| 163 | |
---|
| 164 | #define PROC15_BASE 0xE5400000 |
---|
| 165 | #define PROC15_SIZE 0x00000020 |
---|
| 166 | |
---|
| 167 | |
---|
| 168 | //////////////////////////////////////// |
---|