summaryrefslogtreecommitdiff
path: root/hw/bsp/ngx4330
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-02-24 12:34:23 +0700
committerhathach <[email protected]>2021-02-24 12:34:23 +0700
commit1dbbfdfe45bfa882c9833e94de6e7ea89f8341aa (patch)
tree72be9ccf35991e900912ff83c464a27008d8c6b4 /hw/bsp/ngx4330
parentac30211853e9f8948d03db871f839e93a75b1edd (diff)
clean up
Diffstat (limited to 'hw/bsp/ngx4330')
-rw-r--r--hw/bsp/ngx4330/ngx4330.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/hw/bsp/ngx4330/ngx4330.c b/hw/bsp/ngx4330/ngx4330.c
index 2e4ff9af9..b63f9b894 100644
--- a/hw/bsp/ngx4330/ngx4330.c
+++ b/hw/bsp/ngx4330/ngx4330.c
@@ -169,20 +169,6 @@ void board_init(void)
*/
#if CFG_TUSB_RHPORT0_MODE
Chip_USB0_Init();
-
-// // Reset controller
-// LPC_USB0->USBCMD_D |= 0x02;
-// while( LPC_USB0->USBCMD_D & 0x02 ) {}
-//
-// // Set mode
-// #if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST
-// LPC_USB0->USBMODE_H = USBMODE_HOST | (USBMODE_VBUS_HIGH << 5);
-//
-// LPC_USB0->PORTSC1_D |= (1<<24); // FIXME force full speed for debugging
-// #else // TODO OTG
-// LPC_USB0->USBMODE_D = USBMODE_DEVICE;
-// LPC_USB0->OTGSC = (1<<3) | (1<<0) /*| (1<<16)| (1<<24)| (1<<25)| (1<<26)| (1<<27)| (1<<28)| (1<<29)| (1<<30)*/;
-// #endif
#endif
/* USB1
@@ -206,20 +192,6 @@ void board_init(void)
#if CFG_TUSB_RHPORT1_MODE
Chip_USB1_Init();
-// // Reset controller
-// LPC_USB1->USBCMD_D |= 0x02;
-// while( LPC_USB1->USBCMD_D & 0x02 ) {}
-//
-// // Set mode
-// #if CFG_TUSB_RHPORT1_MODE & OPT_MODE_HOST
-// LPC_USB1->USBMODE_H = USBMODE_HOST | (USBMODE_VBUS_HIGH << 5);
-// #else // TODO OTG
-// LPC_USB1->USBMODE_D = USBMODE_DEVICE;
-// #endif
-//
-// // USB1 as fullspeed
-// LPC_USB1->PORTSC1_D |= (1<<24);
-
// Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 5, 6); /* GPIO5[6] = USB1_PWR_EN */
// Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 6, true); /* GPIO5[6] output high */
#endif