usb: get rid of combined specs

Issue #2280.
This commit is contained in:
Martin Stein 2017-02-14 15:48:14 +01:00 committed by Christian Helmuth
parent 15821e32ec
commit 335685b7fe
8 changed files with 18 additions and 18 deletions

View File

@ -0,0 +1,3 @@
SRC_CC += spec/foc_rpi/dwc_irq.cc
vpath % $(REP_DIR)/src/lib/usb

View File

@ -1,3 +0,0 @@
include $(REP_DIR)/lib/mk/spec/rpi/usb.inc
INC_DIR += $(LIB_INC_DIR)/spec/foc_rpi

View File

@ -0,0 +1,3 @@
SRC_CC += spec/hw_rpi/dwc_irq.cc
vpath % $(REP_DIR)/src/lib/usb

View File

@ -1,3 +0,0 @@
include $(REP_DIR)/lib/mk/spec/rpi/usb.inc
INC_DIR += $(LIB_INC_DIR)/spec/hw_rpi

View File

@ -45,3 +45,5 @@ vpath %.c $(LX_CONTRIB_DIR)/drivers/net/usb
# enable C++11 support
CC_CXX_OPT += -std=gnu++11
LIBS += rpi_usb

View File

@ -0,0 +1,7 @@
/*
* \brief USB: DWC-OTG RaspberryPI Interrupt (base-foc)
* \author Reinier Millo Sánchez <rmillo@uclv.cu>
* \date 2015-06-21
*/
unsigned dwc_irq() { return 9; }

View File

@ -4,11 +4,4 @@
* \date 2015-06-21
*/
#ifndef _INCLUDE_USB_IRQ_H_
#define _INCLUDE_USB_IRQ_H_
enum{
DWC_IRQ = 17,
};
#endif /* _INCLUDE_USB_IRQ_H_ */
unsigned dwc_irq() { return 17; }

View File

@ -29,13 +29,11 @@
#include <dwc_otg_dbg.h>
#undef new
#include <usb_irq.h>
using namespace Genode;
namespace Genode { template <unsigned long> class Sp804_base; }
unsigned dwc_irq();
/**
@ -164,7 +162,7 @@ enum {
static resource _dwc_otg_resource[] =
{
{ DWC_BASE, DWC_BASE + DWC_SIZE - 1, "dwc_otg", IORESOURCE_MEM },
{ DWC_IRQ, DWC_IRQ, "dwc_otg-irq" /* name unused */, IORESOURCE_IRQ }
{ dwc_irq(), dwc_irq(), "dwc_otg-irq" /* name unused */, IORESOURCE_IRQ }
};