Skip to content

Commit

Permalink
imx9: map flexspi peripheral interface
Browse files Browse the repository at this point in the history
Signed-off-by: Jouni Ukkonen <[email protected]>
  • Loading branch information
joukkone committed May 31, 2024
1 parent 0894f2e commit 9817f7d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm64/include/imx9/chip.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
#define CONFIG_DEVICEIO_BASEADDR 0x40000000
#define CONFIG_DEVICEIO_SIZE MB(512)

#define CONFIG_OCRAM_BASE_ADDR 0x20480000
#define CONFIG_OCRAM_SIZE KB(640)

#define CONFIG_FSPI_PER_BASEADDR 0x28000000
#define CONFIG_FSPI_PER_SIZE MB(128)

#define MPID_TO_CLUSTER_ID(mpid) ((mpid) & ~0xff)

#define IMX9_GPIO_NPORTS 4
Expand Down
8 changes: 8 additions & 0 deletions arch/arm64/src/imx9/imx9_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ static const struct arm_mmu_region g_mmu_regions[] =
MMU_REGION_FLAT_ENTRY("DRAM0_S0",
CONFIG_RAMBANK1_ADDR, CONFIG_RAMBANK1_SIZE,
MT_NORMAL | MT_RW | MT_SECURE),

MMU_REGION_FLAT_ENTRY("OCRAM",
CONFIG_OCRAM_BASE_ADDR, CONFIG_OCRAM_SIZE,
MT_NORMAL | MT_RW | MT_SECURE),

MMU_REGION_FLAT_ENTRY("FSPI_PERIPHERAL",
CONFIG_FSPI_PER_BASEADDR, CONFIG_FSPI_PER_SIZE,
MT_DEVICE_NGNRNE | MT_RW | MT_SECURE),
};

const struct arm_mmu_config g_mmu_config =
Expand Down

0 comments on commit 9817f7d

Please sign in to comment.