]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Minor code cleanup.
authorWolfgang Denk <wd@pollux.denx.de>
Sat, 10 Jun 2006 20:00:40 +0000 (22:00 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Sat, 10 Jun 2006 20:00:40 +0000 (22:00 +0200)
board/BuS/EB+MCF-EV123/Makefile
board/BuS/EB+MCF-EV123/VCxK.c
board/BuS/EB+MCF-EV123/cfm_flash.c
board/BuS/EB+MCF-EV123/flash.c
cpu/mcf52x2/fec.c
include/asm-m68k/immap_5282.h
include/configs/EB+MCF-EV123.h

index d5dbc714847e369b07ce01acd967d99e13014631..0596572d19f2cd01b84cf7a4ac74c51a8a018f03 100644 (file)
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 LIB    = lib$(BOARD).a
 
-OBJS   = $(BOARD).o cfm_flash.o flash.o VCxK.o 
+OBJS   = $(BOARD).o cfm_flash.o flash.o VCxK.o
 
 $(LIB):        .depend $(OBJS)
        $(AR) crv $@ $(OBJS)
index 736c101ae57ed58d562b2206294fa8c540bc750a..493881791b93c0682d6de921da2d19fb8ae44ba0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2005 
+ * (C) Copyright 2005
  * BuS Elektronik GmbH & Co.KG <esw@bus-elektonik.de>
  *
  * See file CREDITS for list of people who contributed to this
index d5a1c30be50e94dc14ffbcea5c03a1022dd2c0c2..6ecf0d1f543150423716cefdcdaaf4a31030beb9 100644 (file)
@@ -22,7 +22,7 @@
  * MA 02111-1307 USA
  */
 
-#include <common.h> 
+#include <common.h>
 #include <asm/m5282.h>
 #include  "cfm_flash.h"
 
index a5d621c44ae85df0715e2443912200d9185d30ad..ba76bef12e4be5ff525a9d9f5f4395893c407d6a 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * (C) Copyright 2005 
+ * (C) Copyright 2005
  * BuS Elektronik GmbH & Co.KG <esw@bus-elektonik.de>
- * 
+ *
  * Based On
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
index 702563d7dba80de3cadf2cae310948d3525d75d0..6db621472206e0dcb5af25c5c73c523337176f14 100644 (file)
@@ -283,7 +283,7 @@ int eth_init (bd_t * bd)
                rtx = (RTXBD *) CFG_ENET_BD_BASE;
 #else
                rtx = (RTXBD *) (CFG_MONITOR_BASE+gd->reloc_off -
-                                (((PKTBUFSRX+TX_BUF_CNT)*+sizeof(cbd_t)
+                                (((PKTBUFSRX+TX_BUF_CNT)*+sizeof(cbd_t)
                                  +0xFF)
                                  & ~0xFF)
                                );
@@ -327,13 +327,13 @@ int eth_init (bd_t * bd)
        fecp->fec_r_cntrl = FEC_RCNTRL_MII_MODE;
        fecp->fec_x_cntrl = FEC_TCNTRL_FDEN;
 #else  /* Half duplex mode */
-        fecp->fec_r_cntrl = (PKT_MAXBUF_SIZE << 16); /* set max frame length */
+       fecp->fec_r_cntrl = (PKT_MAXBUF_SIZE << 16); /* set max frame length */
        fecp->fec_r_cntrl |= FEC_RCNTRL_MII_MODE | FEC_RCNTRL_DRT;
        fecp->fec_x_cntrl = 0;
 #endif
        /* Set MII speed */
-        fecp->fec_mii_speed = (((CFG_CLK / 2) / (2500000 / 10)) + 5) / 10;
-        fecp->fec_mii_speed *= 2;
+       fecp->fec_mii_speed = (((CFG_CLK / 2) / (2500000 / 10)) + 5) / 10;
+       fecp->fec_mii_speed *= 2;
 
        /* Configure port B for MII.
         */
index a95912f9badd0110c3c9b0b4cdccabca4b183ff2..6553b08696a4f6082fd6bac0e5a680f52b0df12d 100644 (file)
@@ -13,7 +13,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
@@ -41,47 +41,45 @@ struct sys_ctrl {
     /* TODO: finish these */
 };
 
-
-
 /* Fast ethernet controller registers
  */
 typedef struct fec {
-       uint    res1;           /* reserved                     1000*/
-       uint    fec_ievent;     /* interrupt event register     1004*/  /* EIR */
-       uint    fec_imask;      /* interrupt mask register      1008*/  /* EIMR */
-       uint    res2;           /* reserved                     100c*/
-       uint    fec_r_des_active;    /* Rx ring updated flag    1010*/  /* RDAR */
-       uint    fec_x_des_active;    /* Tx ring updated flag    1014*/  /* XDAR */
-       uint    res3[3];        /* reserved                     1018*/
-       uint    fec_ecntrl;     /* ethernet control register    1024*/  /* ECR */
-       uint    res4[6];        /* reserved                     1028*/
-       uint    fec_mii_data;   /* MII data register            1040*/  /* MDATA */
-       uint    fec_mii_speed;  /* MII speed control register   1044*/  /* MSCR */
-                                      /*1044*/
-       uint    res5[7];        /* reserved                     1048*/
-       uint    fec_mibc;       /* MIB Control/Status register  1064*/ /* MIBC */
-       uint    res6[7];        /* reserved                     1068*/
-       uint    fec_r_cntrl;    /* Rx control register          1084*/  /* RCR */
-       uint    res7[15];       /* reserved                     1088*/
-       uint    fec_x_cntrl;    /* Tx control register          10C4*/  /* TCR */
-       uint    res8[7];        /* reserved                     10C8*/
-       uint    fec_addr_low;   /* lower 32 bits of station address */  /* PALR */
-       uint    fec_addr_high;  /* upper 16 bits of station address  */ /* PAUR */
-       uint    fec_opd;        /* opcode + pause duration      10EC*/  /* OPD */
-       uint    res9[10];       /* reserved                     10F0*/
-       uint    fec_ihash_table_high;   /* upper 32-bits of individual hash *//* IAUR */
-       uint    fec_ihash_table_low;    /* lower 32-bits of individual hash  *//* IALR */
-       uint    fec_ghash_table_high;   /* upper 32-bits of group hash  *//* GAUR */
-       uint    fec_ghash_table_low;    /* lower 32-bits of group hash  *//* GALR */
-       uint    res10[7];       /* reserved                     1128*/
-       uint    fec_tfwr;       /* Transmit FIFO watermark      1144*/  /* TFWR */
-       uint    res11;          /* reserved                     1148*/
-       uint    fec_r_bound;    /* FIFO Receive Bound Register = end of *//* FRBR */
-       uint    fec_r_fstart;   /* FIFO Receive FIfo Start Registers =  *//* FRSR */
-       uint    res12[11];      /* reserved                     1154*/
-       uint    fec_r_des_start;/* beginning of Rx descriptor ring    1180*//* ERDSR */
-       uint    fec_x_des_start;/* beginning of Tx descriptor ring    1184*//* ETDSR */
-       uint    fec_r_buff_size;/* Rx buffer size               1188*/  /* EMRBR */
+       uint    res1;           /* reserved                     1000*/
+       uint    fec_ievent;     /* interrupt event register     1004*/  /* EIR */
+       uint    fec_imask;      /* interrupt mask register      1008*/  /* EIMR */
+       uint    res2;           /* reserved                     100c*/
+       uint    fec_r_des_active;    /* Rx ring updated flag    1010*/  /* RDAR */
+       uint    fec_x_des_active;    /* Tx ring updated flag    1014*/  /* XDAR */
+       uint    res3[3];        /* reserved                     1018*/
+       uint    fec_ecntrl;     /* ethernet control register    1024*/  /* ECR */
+       uint    res4[6];        /* reserved                     1028*/
+       uint    fec_mii_data;   /* MII data register            1040*/  /* MDATA */
+       uint    fec_mii_speed;  /* MII speed control register   1044*/  /* MSCR */
+                                     /*1044*/
+       uint    res5[7];        /* reserved                     1048*/
+       uint    fec_mibc;       /* MIB Control/Status register  1064*/ /* MIBC */
+       uint    res6[7];        /* reserved                     1068*/
+       uint    fec_r_cntrl;    /* Rx control register          1084*/  /* RCR */
+       uint    res7[15];       /* reserved                     1088*/
+       uint    fec_x_cntrl;    /* Tx control register          10C4*/  /* TCR */
+       uint    res8[7];        /* reserved                     10C8*/
+       uint    fec_addr_low;   /* lower 32 bits of station address */  /* PALR */
+       uint    fec_addr_high;  /* upper 16 bits of station address  */ /* PAUR */
+       uint    fec_opd;        /* opcode + pause duration      10EC*/  /* OPD */
+       uint    res9[10];       /* reserved                     10F0*/
+       uint    fec_ihash_table_high;   /* upper 32-bits of individual hash */ /* IAUR */
+       uint    fec_ihash_table_low;    /* lower 32-bits of individual hash */ /* IALR */
+       uint    fec_ghash_table_high;   /* upper 32-bits of group hash  */ /* GAUR */
+       uint    fec_ghash_table_low;    /* lower 32-bits of group hash  */ /* GALR */
+       uint    res10[7];       /* reserved                     1128*/
+       uint    fec_tfwr;       /* Transmit FIFO watermark      1144*/  /* TFWR */
+       uint    res11;          /* reserved                     1148*/
+       uint    fec_r_bound;    /* FIFO Receive Bound Register = end of */ /* FRBR */
+       uint    fec_r_fstart;   /* FIFO Receive FIfo Start Registers =  */ /* FRSR */
+       uint    res12[11];      /* reserved                     1154*/
+       uint    fec_r_des_start;/* beginning of Rx descriptor ring    1180*/ /* ERDSR */
+       uint    fec_x_des_start;/* beginning of Tx descriptor ring    1184*/ /* ETDSR */
+       uint    fec_r_buff_size;/* Rx buffer size               1188*/  /* EMRBR */
 } fec_t;
 
 #endif /* __IMMAP_5282__ */
index f49a4b74518e4db798097a266031d0b88a5c5fba..720b335b099158ce83733ab331c4ee63c53a442b 100644 (file)
@@ -30,7 +30,7 @@
 #undef DEBUG
 #undef CFG_HALT_BEFOR_RAM_JUMP
 #undef ET_DEBUG
-  
+
 /*
  * High Level Configuration Options (easy to change)
  */
@@ -68,7 +68,7 @@
 #define CFG_ENV_IS_IN_FLASH    1
 #endif
 
-//#define CONFIG_COMMANDS  ( CONFIG_CMD_DFL & ~(CFG_CMD_LOADS | CFG_CMD_LOADB) )
+/*#define CONFIG_COMMANDS  ( CONFIG_CMD_DFL & ~(CFG_CMD_LOADS | CFG_CMD_LOADB) ) */
 #define CONFIG_COMMANDS  ( CONFIG_CMD_DFL & ~(CFG_CMD_LOADB))
 
 /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
 #undef CFG_DRAM_TEST
 
 /* Clock and PLL Configuration */
-#define CFG_HZ                 10000000 
+#define CFG_HZ                 10000000
 #define        CFG_CLK                 58982400       /* 9,8304MHz * 6 */
 
 /* PLL Configuration: Ext Clock * 6 (see table 9-4 of MCF user manual) */
 
-#define CFG_MFD                        0x01    /* PLL Multiplication Factor Devider */ 
+#define CFG_MFD                        0x01    /* PLL Multiplication Factor Devider */
 #define CFG_RFD                        0x00    /* PLL Reduce Frecuency Devider */
 
 /*
 /* If M5282 port is fully implemented the monitor base will be behind
  * the vector table. */
 #if (TEXT_BASE !=  CFG_INT_FLASH_BASE)
-#define CFG_MONITOR_BASE       (TEXT_BASE + 0x400) 
+#define CFG_MONITOR_BASE       (TEXT_BASE + 0x400)
 #else
 #define CFG_MONITOR_BASE       (TEXT_BASE + 0x418) /* 24 Byte for CFM-Config */
 #endif