Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127271
b: refs/heads/master
c: 2c557a4
h: refs/heads/master
i:
  127269: e6e7f96
  127267: c9e3df6
  127263: a0a5c12
v: v3
  • Loading branch information
Bryan Wu authored and Greg Kroah-Hartman committed Jan 7, 2009
1 parent 02bc37b commit 36a8e13
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d426e60dbf6aa2c3199e37a59c6d134eb204d628
refs/heads/master: 2c557a4a98be67ea54dfd0e8497050a24b7311c6
24 changes: 24 additions & 0 deletions trunk/drivers/usb/musb/musb_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ static inline void writesb(const void __iomem *addr, const void *buf, int len)

#endif

#ifndef CONFIG_BLACKFIN

/* NOTE: these offsets are all in bytes */

static inline u16 musb_readw(const void __iomem *addr, unsigned offset)
Expand Down Expand Up @@ -114,4 +116,26 @@ static inline void musb_writeb(void __iomem *addr, unsigned offset, u8 data)

#endif /* CONFIG_USB_TUSB6010 */

#else

static inline u8 musb_readb(const void __iomem *addr, unsigned offset)
{ return (u8) (bfin_read16(addr + offset)); }

static inline u16 musb_readw(const void __iomem *addr, unsigned offset)
{ return bfin_read16(addr + offset); }

static inline u32 musb_readl(const void __iomem *addr, unsigned offset)
{ return (u32) (bfin_read16(addr + offset)); }

static inline void musb_writeb(void __iomem *addr, unsigned offset, u8 data)
{ bfin_write16(addr + offset, (u16) data); }

static inline void musb_writew(void __iomem *addr, unsigned offset, u16 data)
{ bfin_write16(addr + offset, data); }

static inline void musb_writel(void __iomem *addr, unsigned offset, u32 data)
{ bfin_write16(addr + offset, (u16) data); }

#endif /* CONFIG_BLACKFIN */

#endif

0 comments on commit 36a8e13

Please sign in to comment.