ohci: Fix for BSP_USB_OTG_TRANSCEIVER_I2C_ADDR

This commit is contained in:
Sebastian Huber
2017-07-18 08:31:03 +02:00
parent 658f9b8967
commit b43517be37
2 changed files with 7 additions and 0 deletions

View File

@@ -32,6 +32,11 @@
#ifndef _OHCI_H_ #ifndef _OHCI_H_
#define _OHCI_H_ #define _OHCI_H_
#ifdef __rtems__
#ifdef BSP_USB_OTG_TRANSCEIVER_I2C_ADDR
#include <dev/usb/usb_otg_transceiver.h>
#endif
#endif /* __rtems__ */
#define OHCI_MAX_DEVICES MIN(USB_MAX_DEVICES, 128) #define OHCI_MAX_DEVICES MIN(USB_MAX_DEVICES, 128)
#define OHCI_NO_INTRS 32 #define OHCI_NO_INTRS 32

View File

@@ -311,6 +311,8 @@ ohci_lpc_resume(device_t self)
int eno = 0; int eno = 0;
#ifdef BSP_USB_OTG_TRANSCEIVER_I2C_ADDR #ifdef BSP_USB_OTG_TRANSCEIVER_I2C_ADDR
ohci_softc_t *e = device_get_softc(self);
if (eno == 0) { if (eno == 0) {
eno = lpc_otg_clk_ctrl( eno = lpc_otg_clk_ctrl(
LPC_OTG_CLK_AHB | LPC_OTG_CLK_HOST | LPC_OTG_CLK_I2C LPC_OTG_CLK_AHB | LPC_OTG_CLK_HOST | LPC_OTG_CLK_I2C