]> git.sur5r.net Git - u-boot/blobdiff - include/configs/h2_p2_dbg_board.h
MX31: Add basic support for Freescale i.MX31 PDK board.
[u-boot] / include / configs / h2_p2_dbg_board.h
index 6082d2ce52ac56f67a9d429797694f5730f7550a..e0d823f2dc36a61a29bfad401462c9ee64882f0f 100644 (file)
 static inline void set_led_state(int state)
 {
        static unsigned long hw_led_state = 0;
-       volatile unsigned short *led_address = 0x04000016;
+       volatile unsigned short *led_address = (volatile unsigned short *)0x04000016;
 
        hw_led_state = ((unsigned long)state);
        *((unsigned short *) (led_address)) = (unsigned short) (~hw_led_state & 0xFFFF);
 }
 
 
-static inline void spin_up_leds()
+static inline void spin_up_leds(void)
 {
        volatile int i, j, k;