From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mateusz Zalega Date: Tue, 06 Aug 2013 12:50:39 +0200 Subject: [U-Boot] [RFC 07/10] esd pmc440: new USB hardware init interface In-Reply-To: <1375786242-11734-1-git-send-email-m.zalega@samsung.com> References: <1375786242-11734-1-git-send-email-m.zalega@samsung.com> Message-ID: <1375786242-11734-8-git-send-email-m.zalega@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This commit changes name of an existing initialization function to board_usb_init(), so that such functions could be reached by every USB driver and command (ie. do_dfu()). Signed-off-by: Mateusz Zalega Signed-off-by: Kyungmin Park --- board/esd/pmc440/pmc440.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/esd/pmc440/pmc440.c b/board/esd/pmc440/pmc440.c index 549b3b7..4cdfb7c 100644 --- a/board/esd/pmc440/pmc440.c +++ b/board/esd/pmc440/pmc440.c @@ -27,6 +27,7 @@ #endif #include #include +#include #include "fpga.h" #include "pmc440.h" @@ -821,7 +822,7 @@ int bootstrap_eeprom_read (unsigned dev_addr, unsigned offset, } #if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_BOARD_INIT) -int usb_board_init(void) +int board_usb_init(enum board_usb_init_type what_to_init) { char *act = getenv("usbact"); int i; @@ -845,7 +846,7 @@ int usb_board_stop(void) return 0; } -int usb_board_init_fail(void) +int board_usb_init_fail(void) { usb_board_stop(); return 0; -- 1.8.2.1