summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/bfin/bf537Stamp/start
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/bfin/bf537Stamp/start/start.S12
-rw-r--r--c/src/lib/libbsp/bfin/bf537Stamp/startup/bspstart.c22
2 files changed, 17 insertions, 17 deletions
diff --git a/c/src/lib/libbsp/bfin/bf537Stamp/start/start.S b/c/src/lib/libbsp/bfin/bf537Stamp/start/start.S
index 43c3398dbb..2a05e02f34 100644
--- a/c/src/lib/libbsp/bfin/bf537Stamp/start/start.S
+++ b/c/src/lib/libbsp/bfin/bf537Stamp/start/start.S
@@ -59,30 +59,30 @@ __start:
p0.l = start;
p1.h = HI(CEC_EVT15);
p1.l = LO(CEC_EVT15);
-
+
[p1] = p0;
r0 = 0x8000 (z);
sti r0;
raise 15;
-
+
p0.h = wait;
p0.l = wait;
reti = p0;
rti;
-
+
/* wait for event 15 */
wait:
jump wait;
-
+
start:
[--sp] = reti; /* allow us to process interrupts later */
/* mask interrupts for now */
cli r0;
-
+
p0.h = _bss_start;
p0.l = _bss_start;
p1.h = _end;
@@ -90,7 +90,7 @@ start:
r0 = p0;
r1 = p1;
r1 = r1 - r0;
- p1 = r1;
+ p1 = r1;
r0 = 0;
/* Set _bss_start until _end to zero */
diff --git a/c/src/lib/libbsp/bfin/bf537Stamp/startup/bspstart.c b/c/src/lib/libbsp/bfin/bf537Stamp/startup/bspstart.c
index 7a54306d75..dc25bbf3bb 100644
--- a/c/src/lib/libbsp/bfin/bf537Stamp/startup/bspstart.c
+++ b/c/src/lib/libbsp/bfin/bf537Stamp/startup/bspstart.c
@@ -4,7 +4,7 @@
* board, and monitor specific initialization and configuration.
* The generic CPU dependent initialization has been performed
* before this routine is invoked.
- *
+ *
* Copyright (c) 2006 by Atos Automacao Industrial Ltda.
* written by Alain Schaefer <alain.schaefer@easc.ch>
* and Antonio Giovanini <antonio@atos.com.br>
@@ -105,16 +105,16 @@ void bsp_start(void)
/*
* initPLL
- *
+ *
* Routine to initialize the PLL. The BF537 Stamp uses a 27 Mhz XTAL. BISON
* See "../bf537Stamp/include/bsp.h" for more information.
*/
static void initPLL(void) {
-
+
#ifdef BISON
unsigned int n;
-
+
/* Configure PLL registers */
*((uint16_t*)PLL_LOCKCNT) = 0x1000;
*((uint16_t*)PLL_DIV) = PLL_CSEL|PLL_SSEL;
@@ -124,16 +124,16 @@ static void initPLL(void) {
asm("cli r0;");
asm("idle;");
asm("sti r0;");
-
+
/* Delay for PLL stabilization */
- for (n=0; n<200; n++) {}
+ for (n=0; n<200; n++) {}
#endif
-
+
}
/*
* initEBIU
- *
+ *
* Configure extern memory
*/
@@ -153,8 +153,8 @@ static void initEBIU(void) {
*((uint32_t*)EBIU_AMBCTL0) = 0x7bb07bb0L;
*((uint32_t*)EBIU_AMBCTL1) = 0x7bb07bb0L;
*((uint16_t*)EBIU_AMGCTL) = 0x000f;
-
- /* Configure SDRAM
+
+ /* Configure SDRAM
*((uint32_t*)EBIU_SDGCTL) = 0x0091998d;
*((uint16_t*)EBIU_SDBCTL) = 0x0013;
*((uint16_t*)EBIU_SDRRC) = 0x0817;
@@ -164,7 +164,7 @@ static void initEBIU(void) {
/*
* initGPIO
- *
+ *
* Enable LEDs port
*/
static void initGPIO(void) {