5 #include <minix/board.h>
6 #include <minix/syslib.h>
8 #include <usb/hcd_platforms.h>
9 #include <usb/usb_common.h>
10 #include <usb/usbd_interface.h>
13 /*===========================================================================*
15 *===========================================================================*/
19 /* More specific platform type than just EARM */
20 static struct machine platform
;
24 if (sys_getmachine(&platform
)) {
25 USB_MSG("Getting machine type, failed");
29 if (BOARD_IS_BB(platform
.board_id
)) {
30 USB_MSG("Using AM335x driver");
31 return musb_am335x_init();
33 USB_MSG("Only AM335x driver available");
39 /*===========================================================================*
41 *===========================================================================*/
45 /* More specific platform type than just EARM */
46 static struct machine platform
;
50 if (sys_getmachine(&platform
)) {
51 USB_MSG("Getting machine type, failed");
55 if (BOARD_IS_BB(platform
.board_id
))
58 USB_MSG("Only AM335x driver available");