X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fconfigs%2Fh2_p2_dbg_board.h;h=a4dea7dd2f09b8083f21d19b49af66cbebd7fa9b;hb=0a7bec7f991950da90c6ee6bc59f322abebccbb7;hp=8a5ec340260644e254cfb3757e53835ea7dfc133;hpb=a56bd92289298bde16306bcc754277db45315d2f;p=u-boot diff --git a/include/configs/h2_p2_dbg_board.h b/include/configs/h2_p2_dbg_board.h index 8a5ec34026..a4dea7dd2f 100644 --- a/include/configs/h2_p2_dbg_board.h +++ b/include/configs/h2_p2_dbg_board.h @@ -31,13 +31,11 @@ #ifndef __INCLUDED_H2_P2_DBH_BOARD_H #define __INCLUDED_H2_P2_DBH_BOARD_H - -#include - +#include /* * The Debug board is designed to function with the P2 Sample, H2 - * Sample and 1610 Innovator boards. The main difference AFAICT is + * Sample and 1610 Innovator boards. The main difference AFAICT is * the chip selects used with each system ; * * P2 Sample : CS1 of OMAP730 is used to select the CPLD & LAN regs @@ -45,8 +43,6 @@ * */ - - /*************************************************************************** * CPLD Registers **************************************************************************/ @@ -60,8 +56,6 @@ #define H2DBG_LAN_RESET 0x0400001C #define H2DBG_ETH_REG_BASE 0x04000300 - - /*************************************************************************** * Ethernet Control Registers * These are for the LAN91C96 on the debug board @@ -107,22 +101,22 @@ #ifndef __ASSEMBLY__ /* - * A couple of utility inlines to aid debugging using the LED's on the + * A couple of utility inlines to aid debugging using the LED's on the * debug board. */ 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; for (k = 0; k < 2; k++) { @@ -142,4 +136,3 @@ static inline void spin_up_leds() #endif /* ! __ASSEMBLY__ */ #endif /* ! __INCLUDED_H2_P2_DBH_BOARD_H */ -