From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 11 Aug 2013 20:07:02 +0200 Subject: [U-Boot] [RFC 06/10] icpdas lp8x4x: new USB hardware init interface In-Reply-To: <1375786242-11734-7-git-send-email-m.zalega@samsung.com> References: <1375786242-11734-1-git-send-email-m.zalega@samsung.com> <1375786242-11734-7-git-send-email-m.zalega@samsung.com> Message-ID: <201308112007.03193.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mateusz Zalega, > 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 > Cc: Marek Vasut > --- > board/icpdas/lp8x4x/lp8x4x.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Saw 03-06, OK. > diff --git a/board/icpdas/lp8x4x/lp8x4x.c b/board/icpdas/lp8x4x/lp8x4x.c > index 1b68ef3..54f8bba 100644 > --- a/board/icpdas/lp8x4x/lp8x4x.c > +++ b/board/icpdas/lp8x4x/lp8x4x.c > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include > > DECLARE_GLOBAL_DATA_PTR; > > @@ -58,7 +59,7 @@ int board_mmc_init(bd_t *bis) > #endif > > #ifdef CONFIG_CMD_USB > -int usb_board_init(void) > +int board_usb_init(enum board_usb_init_type what_to_init) > { > writel((UHCHR | UHCHR_PCPL | UHCHR_PSPL) & > ~(UHCHR_SSEP0 | UHCHR_SSEP1 | UHCHR_SSEP2 | UHCHR_SSE), > @@ -89,7 +90,7 @@ int usb_board_init(void) > return 0; > } > > -void usb_board_init_fail(void) > +void board_usb_init_fail(void) > { > return; > } Best regards, Marek Vasut