mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
parent
15821e32ec
commit
335685b7fe
3
repos/dde_linux/lib/mk/spec/foc/rpi_usb.mk
Normal file
3
repos/dde_linux/lib/mk/spec/foc/rpi_usb.mk
Normal file
@ -0,0 +1,3 @@
|
||||
SRC_CC += spec/foc_rpi/dwc_irq.cc
|
||||
|
||||
vpath % $(REP_DIR)/src/lib/usb
|
@ -1,3 +0,0 @@
|
||||
include $(REP_DIR)/lib/mk/spec/rpi/usb.inc
|
||||
|
||||
INC_DIR += $(LIB_INC_DIR)/spec/foc_rpi
|
3
repos/dde_linux/lib/mk/spec/hw/rpi_usb.mk
Normal file
3
repos/dde_linux/lib/mk/spec/hw/rpi_usb.mk
Normal file
@ -0,0 +1,3 @@
|
||||
SRC_CC += spec/hw_rpi/dwc_irq.cc
|
||||
|
||||
vpath % $(REP_DIR)/src/lib/usb
|
@ -1,3 +0,0 @@
|
||||
include $(REP_DIR)/lib/mk/spec/rpi/usb.inc
|
||||
|
||||
INC_DIR += $(LIB_INC_DIR)/spec/hw_rpi
|
@ -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
|
7
repos/dde_linux/src/lib/usb/spec/foc_rpi/dwc_irq.cc
Normal file
7
repos/dde_linux/src/lib/usb/spec/foc_rpi/dwc_irq.cc
Normal 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; }
|
@ -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; }
|
@ -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 }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user