Skip to content

Commit

Permalink
dma: update non-cached base address based on 2023.02 release memory map
Browse files Browse the repository at this point in the history
Update the non-cached LPDDR4 base address used in the dma example from
0xC000_0000 to 0xC800_0000, based on the 2023.02 release memory map.

Signed-off-by: Valentina Fernandez <[email protected]>
  • Loading branch information
vfalanis committed Feb 14, 2023
1 parent d602f23 commit 24f105b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions dma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Using this application, a shared uncached LPDDR4 memory space is accessed by li

## Description

In the Libero design, fabric LSRAM and fabric DMA Controller are interfaced to MSS via FIC. The shared LPDDR4 memory region (0XC0000000-0xC000FFFF) is accessed via uncached path for fabric. For more information about the Libero design, see [ICICLE Kit Reference Design](https://github.com/polarfire-soc/icicle-kit-reference-design).
In the Libero design, fabric LSRAM and fabric DMA Controller are interfaced to MSS via FIC. The shared LPDDR4 memory region (0XC8000000-0xC800FFFF) is accessed via uncached path for fabric. For more information about the Libero design, see [ICICLE Kit Reference Design](https://github.com/polarfire-soc/icicle-kit-reference-design).

The Microchip PolarFire SoC Yocto BSP includes the following support to access the uncached LPDDR4 region from user space.

Expand All @@ -22,7 +22,7 @@ The following table lists the addresses and sizes included in device tree nodes
| Component | Start Addr | Size |
| --- | --- | --- |
| LSRAM | 0x60000000 | 4 K |
| LPDDR4 | 0xC0000000 | 64 K |
| LPDDR4 | 0xC8000000 | 64 K |
| DMA Controller | 0x60010000 | 4 K |

The C application includes the following DMA register configuration to initiate data transfers.
Expand Down Expand Up @@ -56,7 +56,7 @@ locating device for fpga_lsram
located /dev/uio0
opened /dev/uio0 (r,w)
mapped 0x1000 bytes for /dev/uio0
mmap at c0000000 successful
mmap at c8000000 successful
# Choose one of the following options:
Enter 1 to perform memory test on LSRAM
Expand All @@ -77,7 +77,7 @@ locating device for fpga_lsram
located /dev/uio0
opened /dev/uio0 (r,w)
mapped 0x1000 bytes for /dev/uio0
mmap at c0000000 successful
mmap at c8000000 successful
# Choose one of the following options:
Enter 1 to perform memory test on LSRAM
Expand Down Expand Up @@ -113,7 +113,7 @@ locating device for fpga_lsram
located /dev/uio0
opened /dev/uio0 (r,w)
mapped 0x1000 bytes for /dev/uio0
mmap at c0000000 successful
mmap at c8000000 successful
# Choose one of the following options:
Enter 1 to perform memory test on LSRAM
Expand All @@ -125,7 +125,7 @@ Initialized LSRAM (64KB) with incremental pattern.
Fabric DMA controller configured for LSRAM to LPDDR4 data transfer.
DMAC Version = 0x20064
Source Address (LSRAM) - 0x60000000
Destination Address (LPDDR4) - 0xc0000000
Destination Address (LPDDR4) - 0xc8000000
Byte count - 0x10000
Expand Down
2 changes: 1 addition & 1 deletion dma/uio-dma-interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define FILENAME_LEN (256)

#define LSRAM_BASE 0x60000000U
#define UNCACHED_DDR_BASE 0xC0000000U
#define UNCACHED_DDR_BASE 0xC8000000U
#define SYSFS_PATH_LEN (128)
#define ID_STR_LEN (32)
#define UIO_DEVICE_PATH_LEN (32)
Expand Down

0 comments on commit 24f105b

Please sign in to comment.