]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/freescale/m5249evb/m5249evb.c
do_reset: unify duplicate prototypes
[karo-tx-uboot.git] / board / freescale / m5249evb / m5249evb.c
index c9ed341bbd1c875788bbd0b4172344db4e7eeeb9..894873b975497c3b027dd5ba12ecdf376dc6eae7 100644 (file)
 #include <malloc.h>
 #include <asm/immap.h>
 
-
-/* Prototypes */
-int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-
 int checkboard (void) {
        ulong val;
        uchar val8;
@@ -42,7 +38,7 @@ int checkboard (void) {
        /*
         * Set LED on
         */
-       val = mbar2_readLong(MCFSIM_GPIO1_OUT) & ~CFG_GPIO1_LED;
+       val = mbar2_readLong(MCFSIM_GPIO1_OUT) & ~CONFIG_SYS_GPIO1_LED;
        mbar2_writeLong(MCFSIM_GPIO1_OUT, val);   /* Set LED on */
 
        return 0;
@@ -57,13 +53,13 @@ phys_size_t initdram (int board_type) {
         *      RC = ([(RefreshTime/#rows) / (1/BusClk)] / 16) - 1
         */
 
-#ifdef CFG_FAST_CLK
+#ifdef CONFIG_SYS_FAST_CLK
        /*
         * Busclk=70MHz, RefreshTime=64ms, #rows=4096 (4K)
         * SO=1, NAM=0, COC=0, RTIM=01 (6clk refresh), RC=39
         */
        mbar_writeShort(MCFSIM_DCR, 0x8239);
-#elif CFG_PLL_BYPASS
+#elif CONFIG_SYS_PLL_BYPASS
        /*
         * Busclk=5.6448MHz, RefreshTime=64ms, #rows=8192 (8K)
         * SO=1, NAM=0, COC=0, RTIM=01 (6clk refresh), RC=02
@@ -101,7 +97,7 @@ phys_size_t initdram (int board_type) {
        mbar_writeLong(MCFSIM_DACR0, 0x0000b364);  /* Enable DACR0[IMRS] (bit 6); RE remains enabled */
        *((volatile unsigned long *) 0x800) = junk; /* Access RAM to initialize the mode register */
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 };