| 1 | \ Platform design choices |
|---|
| 2 | |
|---|
| 3 | fload ${BP}/cpu/arm/mmuparams.fth |
|---|
| 4 | |
|---|
| 5 | h# 0040.0000 constant /fb-mem \ The screen uses a little more than 3 MiB at 1200x900x24 |
|---|
| 6 | |
|---|
| 7 | \ OFW implementation choices |
|---|
| 8 | h# 0020.0000 constant /fw-mem |
|---|
| 9 | h# 0020.0000 constant /extra-mem |
|---|
| 10 | h# 0080.0000 constant /dma-mem |
|---|
| 11 | |
|---|
| 12 | h# fd00.0000 constant dma-mem-va |
|---|
| 13 | h# fd80.0000 constant extra-mem-va |
|---|
| 14 | h# fda0.0000 constant fw-mem-va |
|---|
| 15 | h# fdc0.0000 constant fb-mem-va |
|---|
| 16 | |
|---|
| 17 | h# fe00.0000 constant io-va \ We map IO (APB + AXI) space at this virtual address |
|---|
| 18 | h# fe30.0000 constant io2-va \ Mapping area for AXI2 space |
|---|
| 19 | |
|---|
| 20 | h# fe40.0000 constant mmp3-audio-va \ Used only if mmp3-audio-pa is defined |
|---|
| 21 | : audio-sram-va ( -- ) audio-sram-pa ; |
|---|
| 22 | |
|---|
| 23 | [ifdef] virtual-mode |
|---|
| 24 | h# f700.0000 constant fw-virt-base |
|---|
| 25 | h# 0100.0000 constant fw-virt-size \ 16 megs of mapping space |
|---|
| 26 | [else] |
|---|
| 27 | fw-mem-va value fw-virt-base |
|---|
| 28 | /fw-mem value fw-virt-size |
|---|
| 29 | [then] |
|---|
| 30 | |
|---|
| 31 | /fw-mem /page-table - constant page-table-offset |
|---|
| 32 | page-table-offset constant stack-offset \ Stack is below this |
|---|
| 33 | |
|---|
| 34 | \ fw-mem-pa page-table-offset + constant page-table-pa |
|---|
| 35 | |
|---|
| 36 | \ h# 0110.0000 constant def-load-base |
|---|
| 37 | h# 0c00.0000 constant def-load-base |
|---|
| 38 | |
|---|
| 39 | \ The heap starts at RAMtop, which on this system is "fw-mem-pa /fw-mem +" |
|---|
| 40 | |
|---|
| 41 | h# 0c.0000 constant heap-size |
|---|
| 42 | heap-size constant initial-heap-size |
|---|
| 43 | |
|---|
| 44 | \ RAM address where the Security Processor code places the subset of the dropin module |
|---|
| 45 | \ image that it copies out of SPI FLASH. |
|---|
| 46 | h# 900.0000 constant 'dropins \ Must agree with 'compressed in cforth/src/app/arm-xo-1.75/ |
|---|
| 47 | |
|---|
| 48 | h# 20000 constant dropin-offset \ Offset to dropin driver area in SPI FLASH |
|---|
| 49 | |
|---|
| 50 | \ SRAM usage |
|---|
| 51 | |
|---|
| 52 | sram-pa constant sram-va |
|---|
| 53 | |
|---|
| 54 | sram-va h# 2.0000 + constant 'ddr-recal |
|---|
| 55 | sram-va h# 2.0100 + constant 'ddr-self-refresh |
|---|
| 56 | sram-va h# 2.0400 + constant 'ddr-self-refresh-sp |
|---|
| 57 | |
|---|
| 58 | sram-pa h# 2.4000 + constant diagfb-pa \ Low-resolution frame buffer for startup numbers |
|---|