summaryrefslogtreecommitdiff
path: root/cpu/arm946es
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.(none)>2005-09-25 02:00:47 +0200
committerWolfgang Denk <wd@pollux.(none)>2005-09-25 02:00:47 +0200
commitfe7eb5d88bd593a35a13a0a84997ab6c41397bac (patch)
treedd5040f7031de8efb5f562f826b3ee8f0d929158 /cpu/arm946es
parent74f4304ee717d0f4b3a27e7fd4a64944749b8783 (diff)
downloadu-boot-imx-fe7eb5d88bd593a35a13a0a84997ab6c41397bac.zip
u-boot-imx-fe7eb5d88bd593a35a13a0a84997ab6c41397bac.tar.gz
u-boot-imx-fe7eb5d88bd593a35a13a0a84997ab6c41397bac.tar.bz2
Cleanup
Diffstat (limited to 'cpu/arm946es')
-rw-r--r--cpu/arm946es/Makefile1
-rw-r--r--cpu/arm946es/cpu.c15
2 files changed, 7 insertions, 9 deletions
diff --git a/cpu/arm946es/Makefile b/cpu/arm946es/Makefile
index 9a0e217..203278e 100644
--- a/cpu/arm946es/Makefile
+++ b/cpu/arm946es/Makefile
@@ -41,4 +41,3 @@ $(LIB): $(OBJS)
sinclude .depend
#########################################################################
-
diff --git a/cpu/arm946es/cpu.c b/cpu/arm946es/cpu.c
index ea75fe2..ba0a4e4 100644
--- a/cpu/arm946es/cpu.c
+++ b/cpu/arm946es/cpu.c
@@ -16,7 +16,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
@@ -39,7 +39,7 @@ static unsigned long read_p15_c1 (void)
unsigned long value;
__asm__ __volatile__(
- "mrc p15, 0, %0, c1, c0, 0 @ read control reg\n"
+ "mrc p15, 0, %0, c1, c0, 0 @ read control reg\n"
: "=r" (value)
:
: "memory");
@@ -57,7 +57,7 @@ static void write_p15_c1 (unsigned long value)
printf ("write %08lx to p15/c1\n", value);
#endif
__asm__ __volatile__(
- "mcr p15, 0, %0, c1, c0, 0 @ write it back\n"
+ "mcr p15, 0, %0, c1, c0, 0 @ write it back\n"
:
: "r" (value)
: "memory");
@@ -82,7 +82,7 @@ static void cp_delay (void)
#define C1_SYS_PROT (1<<8) /* system protection */
#define C1_ROM_PROT (1<<9) /* ROM protection */
#define C1_IC (1<<12) /* icache off/on */
-#define C1_HIGH_VECTORS (1<<13) /* location of vectors: low/high addresses */
+#define C1_HIGH_VECTORS (1<<13) /* location of vectors: low/high addresses */
int cpu_init (void)
@@ -112,10 +112,10 @@ int cleanup_before_linux (void)
disable_interrupts ();
- /* ARM926E-S needs the protection unit enabled for the icache to have
- * been enabled - left for possible later use
+ /* ARM926E-S needs the protection unit enabled for the icache to have
+ * been enabled - left for possible later use
* should turn off the protection unit as well....
- */
+ */
/* turn off I/D-cache */
asm ("mrc p15, 0, %0, c1, c0, 0":"=r" (i));
i &= ~(C1_DC | C1_IC);
@@ -161,4 +161,3 @@ int icache_status (void)
{
return (read_p15_c1 () & C1_IC) != 0;
}
-