summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2010-09-25 10:32:38 +0000
committerBob Liu <lliubbo@gmail.com>2012-03-21 10:40:42 +0800
commit7160fc13e36f2321bf89d05264fd5d97dddf78d3 (patch)
tree0e0242413a6af7f046da61d4cd4799850469d642
parente45836fafe157df137a837093037f741ad8f4c90 (diff)
downloadlinux-stable-7160fc13e36f2321bf89d05264fd5d97dddf78d3.tar.gz
linux-stable-7160fc13e36f2321bf89d05264fd5d97dddf78d3.tar.bz2
linux-stable-7160fc13e36f2321bf89d05264fd5d97dddf78d3.zip
bfin_sport: add support for ADC/DAC.
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>
-rw-r--r--arch/blackfin/include/asm/bfin_sport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/bfin_sport.h b/arch/blackfin/include/asm/bfin_sport.h
index f8568a31d0ab..0afcfbd54a82 100644
--- a/arch/blackfin/include/asm/bfin_sport.h
+++ b/arch/blackfin/include/asm/bfin_sport.h
@@ -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
@@ -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__