Skip to content

Commit

Permalink
bfin_sport: add support for ADC/DAC.
Browse files Browse the repository at this point in the history
In order to support ADC/DAC demo, add NDSO_MODE mode to bfin_sport.c.
After that userspace apps like ndso/awg can work fine.

Signed-off-by: Bob Liu <lliubbo@gmail.com>
  • Loading branch information
Bob Liu committed Mar 21, 2012
1 parent e45836f commit 7160fc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/blackfin/include/asm/bfin_sport.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define NORM_MODE 0x0
#define TDM_MODE 0x1
#define I2S_MODE 0x2
#define NDSO_MODE 0x3

/* Data format, normal, a-law or u-law */
#define NORM_FORMAT 0x0
Expand Down Expand Up @@ -56,6 +57,8 @@ struct sport_config {
/* Userspace interface */
#define SPORT_IOC_MAGIC 'P'
#define SPORT_IOC_CONFIG _IOWR('P', 0x01, struct sport_config)
#define SPORT_IOC_GET_SYSTEMCLOCK _IOR('P', 0x02, unsigned long)
#define SPORT_IOC_SET_BAUDRATE _IOW('P', 0x03, unsigned long)

#ifdef __KERNEL__

Expand Down

0 comments on commit 7160fc1

Please sign in to comment.