Commit e2f01b0
committed
spi: ast2700: Adjust the minimum initial segment window size
On AST2700, due to limited bus memory space, no extra address space
is allocated for SPI memory. As a result, the SSP CPU accesses SPI
memory directly through SPI controller registers. The HW
automatically redirects accesses from the SPI controller register
space to SPI memory. Register offsets starting at 0x200 correspond
to SPI memory, where each byte represents 16MB.
When the FMC CS0 segment window size is 16MB and SSP needs to access
CS1, it must access offset 0x201, including for write operations.
However, the SPI controller does not support byte-aligned
write accesses. Therefore, each segment window must be 64MB aligned
to ensure proper 4-byte accesses by the SPI controller.
Signed-off-by: Chin-Ting Kuo <[email protected]>
Change-Id: I61c82b0570295a1077a21039c1a936c98464d0621 parent 675f45c commit e2f01b0
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
1025 | 1026 | | |
1026 | 1027 | | |
1027 | 1028 | | |
1028 | | - | |
| 1029 | + | |
1029 | 1030 | | |
1030 | 1031 | | |
1031 | 1032 | | |
| |||
0 commit comments