Revert "dwc_otg: Force host or device mode when not using OTG"

Instead GUSBCFG.ForceHst/DevMode will be used to force the mode

Google-Bug-Id: 26390815

This reverts commit 805ca16ad21f077a37798490346f5b4b1342728f.

Change-Id: Ibdb274e97dd45319194b6226320e2cc09bfa1a5c
diff --git a/drivers/usb/dwc_otg/dwc_otg_cil.c b/drivers/usb/dwc_otg/dwc_otg_cil.c
index 4bc4151..b5de301 100644
--- a/drivers/usb/dwc_otg/dwc_otg_cil.c
+++ b/drivers/usb/dwc_otg/dwc_otg_cil.c
@@ -6654,15 +6654,9 @@
 
 uint32_t dwc_otg_get_mode(dwc_otg_core_if_t * core_if)
 {
-#if defined(CONFIG_DWC_OTG_HOST_ONLY)
-	return DWC_HOST_MODE;
-#elif defined(CONFIG_DWC_OTG_DEVICE_ONLY)
-	return 0;
-#else
 	gintsts_data_t gintsts;
 	gintsts.d32 = DWC_READ_REG32(&core_if->core_global_regs->gintsts);
 	return gintsts.b.curmode;
-#endif
 }
 
 uint32_t dwc_otg_get_hnpcapable(dwc_otg_core_if_t * core_if)
diff --git a/drivers/usb/dwc_otg/dwc_otg_cil.h b/drivers/usb/dwc_otg/dwc_otg_cil.h
index 0ca2c55..9957861 100644
--- a/drivers/usb/dwc_otg/dwc_otg_cil.h
+++ b/drivers/usb/dwc_otg/dwc_otg_cil.h
@@ -1292,7 +1292,7 @@
  */
 static inline uint32_t dwc_otg_mode(dwc_otg_core_if_t * _core_if)
 {
-	return dwc_otg_get_mode(_core_if);
+	return (DWC_READ_REG32(&_core_if->core_global_regs->gintsts) & 0x1);
 }
 
 /**@}*/