Patchwork [U-Boot,v2] post, memory test: add memory_post_test() to include file

login
register
mail settings
Submitter Heiko Schocher
Date July 27, 2011, 6:31 a.m.
Message ID <1311748268-14521-1-git-send-email-hs@denx.de>
Download mbox | patch
Permalink /patch/106984/
State Accepted
Commit eaf5e65af582c80c73ad1db37862d1cf3adc741b
Headers show

Comments

Heiko Schocher - July 27, 2011, 6:31 a.m.
This include is needed, if this memory test is used "outside"
from post code, for example booting with nand_spl, and using
this memory test before copying u-boot code to RAM and jumping
to it.

Signed-off-by: Heiko Schocher <hs@denx.de>

---
changes for v2:
- make MAKEALL clean as Wolfgang Denk suggested
- rebased against 7130a579fdba5dd1bf99508fb0b1d13317542109


 include/post.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Wolfgang Denk - July 28, 2011, 8:39 p.m.
Dear Heiko Schocher,

In message <1311748268-14521-1-git-send-email-hs@denx.de> you wrote:
> This include is needed, if this memory test is used "outside"
> from post code, for example booting with nand_spl, and using
> this memory test before copying u-boot code to RAM and jumping
> to it.
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> 
> ---
> changes for v2:
> - make MAKEALL clean as Wolfgang Denk suggested
> - rebased against 7130a579fdba5dd1bf99508fb0b1d13317542109
> 
> 
>  include/post.h |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/include/post.h b/include/post.h
index 3f259b7..3d23d22 100644
--- a/include/post.h
+++ b/include/post.h
@@ -147,6 +147,7 @@  unsigned long post_time_ms (unsigned long base);
 extern struct post_test post_list[];
 extern unsigned int post_list_size;
 extern int post_hotkeys_pressed(void);
+extern int memory_post_test(int flags);
 
 /*
  *  If GCC is configured to use a version of GAS that supports