]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/bc3450/cmd_bc3450.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / board / bc3450 / cmd_bc3450.c
index 6bbe4e6a5d2059cc68ca59ed7583d950354f3c9e..ae5061f94b3c52fc6c0686de31f7a26ced6800ac 100644 (file)
@@ -30,7 +30,7 @@
 /*
  * BC3450 specific commands
  */
-#if (CONFIG_COMMANDS & CFG_CMD_BSP)
+#if defined(CONFIG_CMD_BSP)
 
 #undef DEBUG
 #ifdef DEBUG
@@ -52,9 +52,9 @@
 #define THERM_WRITE_TL         0x02
 #define THERM_WRITE_TH         0x01
 
-#define CFG_CPU                        2
-#define CFG_1SHOT              1
-#define CFG_STANDALONE         0
+#define CONFIG_SYS_CPU                 2
+#define CONFIG_SYS_1SHOT               1
+#define CONFIG_SYS_STANDALONE          0
 
 struct therm {
        int hi;
@@ -69,7 +69,7 @@ struct therm {
 #define SM501_POWER_MODE0_GATE         0x00000040UL
 #define SM501_POWER_MODE1_GATE         0x00000048UL
 #define POWER_MODE_GATE_GPIO_PWM_I2C   0x00000040UL
-#define SM501_GPIO_DATA_LOW            0x00010000UL
+#define SM501_GPIO_DATA_LOW            0x00010000UL
 #define SM501_GPIO_DATA_HIGH           0x00010004UL
 #define SM501_GPIO_DATA_DIR_LOW                0x00010008UL
 #define SM501_GPIO_DATA_DIR_HIGH       0x0001000CUL
@@ -189,7 +189,7 @@ int cmd_dip (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        if (rc > 0x0F)
                return -1;
 
-       printf ("0x%x\n", rc);
+       printf ("0x%lx\n", rc);
        return 0;
 }
 
@@ -513,7 +513,7 @@ static int cmd_temp (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                        therm.hi <<= 1;
                        therm.lo <<= 1;
                        ds1620_write_state (&therm);
-                       ds1620_out (THERM_WRITE_CONFIG, 8, CFG_STANDALONE);
+                       ds1620_out (THERM_WRITE_CONFIG, 8, CONFIG_SYS_STANDALONE);
                        return 0;
                }
        }
@@ -538,9 +538,9 @@ int can_init (void)
        static int init_done = 0;
        int i;
        struct mpc5xxx_mscan *can1 =
-               (struct mpc5xxx_mscan *) (CFG_MBAR + 0x0900);
+               (struct mpc5xxx_mscan *) (CONFIG_SYS_MBAR + 0x0900);
        struct mpc5xxx_mscan *can2 =
-               (struct mpc5xxx_mscan *) (CFG_MBAR + 0x0980);
+               (struct mpc5xxx_mscan *) (CONFIG_SYS_MBAR + 0x0980);
 
        /* GPIO configuration of the CAN pins is done in BC3450.h */
 
@@ -686,9 +686,9 @@ int do_can (char *argv[])
 {
        int i;
        struct mpc5xxx_mscan *can1 =
-               (struct mpc5xxx_mscan *) (CFG_MBAR + 0x0900);
+               (struct mpc5xxx_mscan *) (CONFIG_SYS_MBAR + 0x0900);
        struct mpc5xxx_mscan *can2 =
-               (struct mpc5xxx_mscan *) (CFG_MBAR + 0x0980);
+               (struct mpc5xxx_mscan *) (CONFIG_SYS_MBAR + 0x0980);
 
        /* send a message on CAN1 */
        can1->cantbsel = 0x01;
@@ -824,4 +824,4 @@ U_BOOT_CMD (test, 2, 1, cmd_test, "test    - unit test routines\n", "\n"
            "test unit-off\n"
            "     - turns off the BC3450 unit\n"
            "       WARNING: Unsaved environment variables will be lost!\n");
-#endif /* CFG_CMD_BSP */
+#endif