mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +00:00
RP23XX_PSRAM_M1_TIMING was the constant 0x61a07102. The comment said it matched the Pico SDK, but it does not. The SDK computes the timing from clk_sys and the APS6404 limits (133 MHz SCK, 8 us maximum select, 18 ns minimum deselect). At 150 MHz it gives 0x60242202: field old SDK clkdiv 2 2 rxdelay 1 2 max_select 16 18 min_deselect 7 2 select_hold 3 0 The old RX delay samples the read data half a clk_sys cycle earlier than the SDK does. The constant is also wrong for any other clk_sys. Compute the fields from BOARD_SYS_FREQ at build time, with the SDK formula, and stop the build if a field is out of range. The result is identical to the SDK value at 48, 125, 150, 200, 266 and 300 MHz. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||