mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 05:43:33 +08:00
ohci: Fix for BSP_USB_OTG_TRANSCEIVER_I2C_ADDR
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user