[U-Boot] [PATCH RESEND 4/5] trats: new USB hardware init interface

Mateusz Zalega m.zalega at samsung.com
Tue Aug 6 12:50:56 CEST 2013


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 <m.zalega at samsung.com>
---
 board/samsung/trats/trats.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index c8698f3..f8d4b0c 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -26,6 +26,7 @@
 #include <power/max8997_muic.h>
 #include <power/battery.h>
 #include <power/max17042_fg.h>
+#include <usb.h>
 #include <usb_mass_storage.h>
 
 #include "setup.h"
@@ -488,10 +489,11 @@ struct s3c_plat_otg_data s5pc210_otg_data = {
 	.usb_flags	= PHY0_SLEEP,
 };
 
-void board_usb_init(void)
+int board_usb_init(enum board_usb_init_type what_to_init)
 {
 	debug("USB_udc_probe\n");
 	s3c_udc_probe(&s5pc210_otg_data);
+	return 0;
 }
 #endif
 
-- 
1.8.2.1



More information about the U-Boot mailing list