]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/ms7722se/ms7722se.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / board / ms7722se / ms7722se.c
index 3eeb1b7d8070b78482ef56cd6f9cb14768869bc0..32234d3e080c2403dfa4d9698888be00ad6adcd8 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * Copyright (C) 2007
+ * Copyright (C) 2007,2008
  * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  *
  * Copyright (C) 2007
  * Kenati Technologies, Inc.
- * 
+ *
  * board/ms7722se/ms7722se.c
  *
  * This program is free software; you can redistribute it and/or
@@ -43,18 +43,17 @@ int board_init(void)
        return 0;
 }
 
-int dram_init (void)
+int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
-void led_set_state (unsigned short value)
+void led_set_state(unsigned short value)
 {
-       *((volatile unsigned short *) LED_BASE) = (value & 0xFF);
+       writew(value & 0xFF, LED_BASE);
 }
-