The following series adds testing of the whole SDRAM range to Qi. The test itself
is done from Steppingstone, with a small stack there and no dependencies on SDRAM, so
the whole range of SDRAM memory can be fully tested.
It's tested to work on 2442 and 6410 platforms.
However because there are no arrangements for buttons or other UI yet, currently
it only executes the memory test if it finds no valid kernels. This is dependent
on SDRAM operation to get that far even though the test itself isn't; in the
future we will start the test while still in steppingstone if the UI requests it
so there is no dependency on SDRAM operation at all.
The tests exercise the data bus with some constants and walking ones, and the
address bus with 0xffffffff or 0x00000000 stored according to a walking address
mask and all bits confirmed.
---
Andy Green (4):
qi-memory-test-when-no-kernels.patch
qi-clean-split-utils.c-by-phase.patch
qi-add-steppingstone-section-for-putc.patch
qi-add-memory-testing-routines.patch
include/qi.h | 5 ++
src/cpu/s3c2442/gta02.c | 2 -
src/cpu/s3c2442/qi.lds | 16 +++--
src/cpu/s3c2442/start.S | 14 +++-
src/cpu/s3c2442/start_qi.c | 1
src/cpu/s3c6410/gta03.c | 2 -
src/cpu/s3c6410/qi.lds | 16 +++--
src/cpu/s3c6410/start.S | 9 +++
src/cpu/s3c6410/start_qi.c | 3 +
src/memory-test.c | 145 ++++++++++++++++++++++++++++++++++++++++++++
src/phase2.c | 19 +++++-
src/utils-phase2.c | 111 ++++++++++++++++++++++++++++++++++
src/utils.c | 95 +++--------------------------
13 files changed, 330 insertions(+), 108 deletions(-)
create mode 100644 src/memory-test.c
create mode 100644 src/utils-phase2.c
--
Signature