diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-09-26 07:59:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-09-26 21:36:58 +0200 |
commit | 6850ccff6637444c16c1cb3603ed810f00514ef6 (patch) | |
tree | 5965cc4c50165ae36fd7db292ff5b1eb151f961c /include | |
parent | 12aeca8373b294a828df7440a48fd7e14612fd7b (diff) | |
download | barebox-6850ccff6637444c16c1cb3603ed810f00514ef6.tar.gz barebox-6850ccff6637444c16c1cb3603ed810f00514ef6.tar.xz |
USB: MUSB: Add barebox specific changes
This changes the MUSB support from the original Kernel state to
be usable with barebox. Tested on a custom board and the Beaglebone
Black. The host port on the Beaglebone works, the OTG port works
in device mode, but not yet in host mode.
Based on the initial MUSB port from Rolf Evers Fischer.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/barebox-wrapper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h index 753fb52614..d34d1d1d0e 100644 --- a/include/linux/barebox-wrapper.h +++ b/include/linux/barebox-wrapper.h @@ -33,11 +33,14 @@ typedef int gfp_t; #define MODULE_AUTHOR(x) #define MODULE_DESCRIPTION(x) #define MODULE_LICENSE(x) +#define MODULE_ALIAS(x) typedef int spinlock_t; #define spin_lock_init(...) #define spin_lock(...) #define spin_unlock(...) +static inline void spin_lock_irqsave(spinlock_t *lock, unsigned long flags) {} +static inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags) {} #define mutex_init(...) #define mutex_lock(...) @@ -66,4 +69,8 @@ typedef int wait_queue_head_t; #define init_waitqueue_head(...) do { } while (0) +typedef int irqreturn_t; +#define IRQ_NONE 0 +#define IRQ_HANDLED 0 + #endif /* __INCLUDE_LINUX_BAREBOX_WRAPPER_H */ |