
Dear Rune,
in message 9F5558593173D21190EA0008C7B1769873138B@innsys1 you wrote:
Patch to do full March-C- memory test on the MPC8266ADS board.
I hesitate to include this.
First, as implemented now the code, while being generic for all boards using 860 class processors, is limited to the MPC8266ADS board. If we implement it, we should make it optional for all these boards.
Second, the code duplicates existing functionality (see the memory test code in post/memory.c). Instead of adding new versions of the same stuff again and again (and having to clean it all up later) we rather should get the post/ code working on your board, too.
Finally, there are some minor issues with your patch: - there is no README documentation for the new CFG_ variables - there are errors in the code; for example:
+int testdram (void) +{
- DECLARE_GLOBAL_DATA_PTR;
- MEMDATATYPE *pstart = (MEMDATATYPE *) CFG_SDRAM_BASE;
- MEMDATATYPE *pend;
- MEMDATATYPE *p;
- uint size;
- uint erraddr;
- pend = (MEMDATATYPE*)gd->ram_size;
This should read:
pend = pstart + (gd->ram_size / sizeof(MEMDATATYPE));
What do you suggest how to proceed?
Best regards,
Wolfgang Denk