diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 14:59:41 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 14:59:41 +0000 |
commit | d4b4664b99044b888bc178bdbd870edd4404b710 (patch) | |
tree | 59d216d0cd5a964ea9b4a4f965d994865f479f7c /c/src/lib/libbsp/m68k/mcf5235/startup | |
parent | Whitespace removal. (diff) | |
download | rtems-d4b4664b99044b888bc178bdbd870edd4404b710.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'c/src/lib/libbsp/m68k/mcf5235/startup')
-rw-r--r-- | c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c | 20 |
3 files changed, 14 insertions, 14 deletions
diff --git a/c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c b/c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c index 347d6b019d..dbdb1480fc 100644 --- a/c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c +++ b/c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c @@ -6,12 +6,12 @@ * found in the file LICENSE in this distribution or at * * http://www.rtems.com/license/LICENSE. - * + * * $Id$ */ #include <bsp.h> - + extern char _CPUClockSpeed[]; uint32_t get_CPU_clock_speed(void) diff --git a/c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c b/c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c index cbfa25124f..e141e52504 100644 --- a/c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c +++ b/c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c @@ -6,12 +6,12 @@ * found in the file LICENSE in this distribution or at * * http://www.rtems.com/license/LICENSE. - * + * * $Id$ */ #include <bsp.h> - + /* * Read/write copy of common cache * Split I/D cache diff --git a/c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c b/c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c index 505809f728..d3a82188cd 100644 --- a/c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c +++ b/c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c @@ -2,7 +2,7 @@ * This is where the real hardware setup is done. A minimal stack * has been provided by the start.S code. No normal C or RTEMS * functions can be called from here. - * + * * This routine is pretty simple for the uC5235 because all the hard * work has been done by the bootstrap dBUG code. */ @@ -21,8 +21,8 @@ * if it is set to 1 then we want to boot our own code from flash and we * do need to initialize the SDRAM. */ - - + + extern uint32_t MCF5235_BSP_START_FROM_FLASH; void Init5235 (void) @@ -31,16 +31,16 @@ void Init5235 (void) int x; volatile int temp = 0; int *address_of_MCF5235_BSP_START_FROM_FLASH; - + /*Setup the GPIO Registers */ MCF5235_GPIO_UART=0x3FFF; MCF5235_GPIO_PAR_AD=0xE1; - + /*Setup the Chip Selects so CS0 is flash */ MCF5235_CS_CSAR0 =(0xFFE00000 & 0xffff0000)>>16; MCF5235_CS_CSMR0 = 0x001f0001; MCF5235_CS_CSCR0 = 0x1980; - + address_of_MCF5235_BSP_START_FROM_FLASH = (int *) & MCF5235_BSP_START_FROM_FLASH; if ( (int)address_of_MCF5235_BSP_START_FROM_FLASH == 1) { /*Setup the SDRAM */ @@ -56,11 +56,11 @@ void Init5235 (void) temp +=1; } /* set ip ( bit 3 ) in dacr */ - MCF5235_SDRAMC_DACR0 |= (0x00000008) ; + MCF5235_SDRAMC_DACR0 |= (0x00000008) ; /* init precharge */ *((unsigned long *)MM_SDRAM_BASE) = 0xDEADBEEF; /* set RE in dacr */ - MCF5235_SDRAMC_DACR0 |= (0x00008000); + MCF5235_SDRAMC_DACR0 |= (0x00008000); /* wait */ for(x=0; x<20000; x++) { @@ -70,12 +70,12 @@ void Init5235 (void) MCF5235_SDRAMC_DACR0 |= (0x00000040); *((short *)MM_SDRAM_BASE) = 0; for(x=0; x<60000; x++) - { + { temp +=1; } *((unsigned long*)MM_SDRAM_BASE)=0x12345678; } /* we have finished setting up the sdram */ - + /* Copy the interrupt vector table to address 0x0 in SDRAM */ { extern void INTERRUPT_VECTOR(void); |