From b24256ae1eab66b12e361dc0e7873d081275ac24 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Tue, 10 Apr 2012 13:40:59 +0200
Subject: [PATCH 10/19] boot: Run a test pattern between clock configuration

---
 crt0_gnu.S |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/crt0_gnu.S b/crt0_gnu.S
index 784c9ce..bc54989 100644
--- a/crt0_gnu.S
+++ b/crt0_gnu.S
@@ -79,7 +79,6 @@ fiq_vector:
  * First of all, write a procedure, that can be called from C or asm,
  * to flip leds a number of times, after a small delay
  */
-
 flip_leds: /* input: r0 is the count of flips */
 
 	/* a delay */
@@ -139,10 +138,20 @@ _relocate_to_sram:
 	mov	r2, #0x00008000
 	str	r2, [r1]
 
+	/* test 4x the flip_leds procedure */
+	mov r0, #0x4
+	bl flip_leds
+
+	/* Call the lowlevel clock init function in ./driver/pmc.c */ 
 	ldr     r4, = lowlevel_clock_init
 	mov     lr, pc
 	bx      r4
 
+	/* test 8x the flip_leds procedure */
+	mov r0, #0x8
+	bl flip_leds
+
+
 #if 0
 _setup_clocks:
 /* Test if main oscillator is enabled */
-- 
1.7.9.5

