]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Slight code clean up.
authorroy zang <tie-fei.zang@freescale.com>
Mon, 4 Dec 2006 09:56:59 +0000 (17:56 +0800)
committerZang Tiefei <roy@bus.ap.freescale.net>
Mon, 4 Dec 2006 09:56:59 +0000 (17:56 +0800)
Add comments, delete duplicate define and remove spaces.
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
board/mpc7448hpc2/tsi108_init.c
include/74xx_7xx.h
lib_ppc/extable.c

index fdb53653d14a682e052622d38dc66c6d09d77afa..e3b09cfad3668e4cbaba1b964139b75b4a19a1ea 100644 (file)
@@ -147,7 +147,7 @@ int board_early_init_f (void)
        gd->mem_clk = 0;
        i = in32 (CFG_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET +
                        CG_PWRUP_STATUS);
-       i = (i >> 20) & 0x07;   /* value of SW4[4:7] */
+       i = (i >> 20) & 0x07;   /* Get GD PLL multiplier */
        switch (i) {
        case 0: /* external clock */
                printf ("Using external clock\n");
@@ -229,7 +229,7 @@ int board_early_init_r (void)
 
        __asm__ __volatile__ ("sync");
 
-       /* Base addresses for Cs0, CS1, CS2, CS3 */
+       /* Base addresses for CS0, CS1, CS2, CS3 */
 
        out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B0_ADDR,
                0x00000000);
index 8eccac8d592405182a63dbe127b15fb3a2531094..ba73bae9e5f8470f979c01490c978d2491b9a144 100644 (file)
@@ -111,9 +111,8 @@ typedef enum __cpu_t {
        CPU_750CX, CPU_750FX, CPU_750GX,
        CPU_7400,
        CPU_7410,
-       CPU_7448,
-       CPU_7450, CPU_7455, CPU_7457,
        CPU_7447A, CPU_7448,
+       CPU_7450, CPU_7455, CPU_7457,
        CPU_UNKNOWN} cpu_t;
 
 extern cpu_t get_cpu_type(void);
index 623b5f129cb79d39305996d95e1dff2aae09b592..fe856ffbb527a4e5dd62d1925d39f0fe14fc8ada 100644 (file)
@@ -37,6 +37,8 @@
  * on our cache or tlb entries.
  */
 
+DECLARE_GLOBAL_DATA_PTR;
+
 struct exception_table_entry
 {
        unsigned long insn, fixup;
@@ -50,22 +52,20 @@ search_one_table(const struct exception_table_entry *first,
                 const struct exception_table_entry *last,
                 unsigned long value)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        while (first <= last) {
                const struct exception_table_entry *mid;
                long diff;
 
                mid = (last - first) / 2 + first;
-               if (mid > CFG_MONITOR_BASE)
+               if (mid > CFG_MONITOR_BASE) {
                /* exception occurs in FLASH, before u-boot relocation.
-                * No relocation offset is needed. 
+                * No relocation offset is needed.
                 */
                        diff = mid->insn - value;
                        if (diff == 0)
                                return mid->fixup;
                } else {
-               /* exception occurs in RAM, after u-boot relocation. 
+               /* exception occurs in RAM, after u-boot relocation.
                 * A relocation offset should be added.
                 */
                        diff = (mid->insn + gd->reloc_off) - value;