Skip to content

Commit

Permalink
imx8mp_iot_gate: fix physical memory layout
Browse files Browse the repository at this point in the history
There is a hole within the DRAM memory banks used by this
board in between 0x56000000-0x58000000.
  • Loading branch information
skalk committed Dec 16, 2024
1 parent 2e46f4f commit 5c71086
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/board/imx8mp_iot_gate/platform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*/
Bootstrap::Platform::Board::Board()
:
early_ram_regions(Memory_region { ::Board::RAM_BASE, ::Board::RAM_SIZE }),
late_ram_regions(Memory_region { }),
early_ram_regions(Memory_region { ::Board::RAM_0_BASE, ::Board::RAM_0_SIZE }),
late_ram_regions(Memory_region { ::Board::RAM_1_BASE, ::Board::RAM_1_SIZE }),
core_mmio(Memory_region { ::Board::UART_BASE, ::Board::UART_SIZE },
Memory_region { ::Board::Cpu_mmio::IRQ_CONTROLLER_DISTR_BASE,
::Board::Cpu_mmio::IRQ_CONTROLLER_DISTR_SIZE },
Expand Down
6 changes: 4 additions & 2 deletions src/include/hw/spec/arm_64/imx8mp_iot_gate_board.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ namespace Hw::Imx8mp_iot_gate_board {
using Serial = Hw::Imx_uart;

enum {
RAM_BASE = 0x40000000,
RAM_SIZE = 0xC0000000, /* 2 GiB */
RAM_0_BASE = 0x40000000,
RAM_0_SIZE = 0x16000000,
RAM_1_BASE = 0x58000000,
RAM_1_SIZE = 0x68000000,

UART_BASE = 0x30890000, /* UART3 */
UART_SIZE = 0x1000,
Expand Down

0 comments on commit 5c71086

Please sign in to comment.