Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
72e08db1
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
72e08db1
编写于
8月 04, 2010
作者:
J
Jesper Nilsson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CRIS: Add ARTPEC-3 and timestamps for sync-serial
Signed-off-by:
N
Jesper Nilsson
<
jesper.nilsson@axis.com
>
上级
4f248d1c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
1 deletion
+26
-1
arch/cris/include/asm/sync_serial.h
arch/cris/include/asm/sync_serial.h
+26
-1
未找到文件。
arch/cris/include/asm/sync_serial.h
浏览文件 @
72e08db1
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#define SSP_OPOLARITY _IOR('S', 4, unsigned int)
#define SSP_OPOLARITY _IOR('S', 4, unsigned int)
#define SSP_SPI _IOR('S', 5, unsigned int)
#define SSP_SPI _IOR('S', 5, unsigned int)
#define SSP_INBUFCHUNK _IOR('S', 6, unsigned int)
#define SSP_INBUFCHUNK _IOR('S', 6, unsigned int)
#define SSP_INPUT _IOR('S', 7, unsigned int)
/* Values for SSP_SPEED */
/* Values for SSP_SPEED */
#define SSP150 0
#define SSP150 0
...
@@ -37,6 +38,7 @@
...
@@ -37,6 +38,7 @@
#define SSP921600 13
#define SSP921600 13
#define SSP3125000 14
#define SSP3125000 14
#define CODEC 15
#define CODEC 15
#define CODEC_f32768 16
#define FREQ_4MHz 0
#define FREQ_4MHz 0
#define FREQ_2MHz 1
#define FREQ_2MHz 1
...
@@ -46,9 +48,14 @@
...
@@ -46,9 +48,14 @@
#define FREQ_128kHz 5
#define FREQ_128kHz 5
#define FREQ_64kHz 6
#define FREQ_64kHz 6
#define FREQ_32kHz 7
#define FREQ_32kHz 7
/* FREQ_* with values where bit (value & 0x10) is set are */
/* used for CODEC_f32768 */
#define FREQ_4096kHz 16
/* CODEC_f32768 */
/* Used by application to set CODEC divider, word rate and frame rate */
/* Used by application to set CODEC divider, word rate and frame rate */
#define CODEC_VAL(freq, clk_per_sync, sync_per_frame) (CODEC | (freq << 8) | (clk_per_sync << 16) | (sync_per_frame << 28))
#define CODEC_VAL(freq, clk_per_sync, sync_per_frame) \
((CODEC + ((freq & 0x10) >> 4)) | (freq << 8) | \
(clk_per_sync << 16) | (sync_per_frame << 28))
/* Used by driver to extract speed */
/* Used by driver to extract speed */
#define GET_SPEED(x) (x & 0xff)
#define GET_SPEED(x) (x & 0xff)
...
@@ -68,6 +75,7 @@
...
@@ -68,6 +75,7 @@
#define NORMAL_SYNC 1
#define NORMAL_SYNC 1
#define EARLY_SYNC 2
#define EARLY_SYNC 2
#define SECOND_WORD_SYNC 0x40000
#define SECOND_WORD_SYNC 0x40000
#define LATE_SYNC 0x80000
#define BIT_SYNC 4
#define BIT_SYNC 4
#define WORD_SYNC 8
#define WORD_SYNC 8
...
@@ -104,4 +112,21 @@
...
@@ -104,4 +112,21 @@
/* Values for SSP_INBUFCHUNK */
/* Values for SSP_INBUFCHUNK */
/* plain integer with the size of DMA chunks */
/* plain integer with the size of DMA chunks */
/* To ensure that the timestamps are aligned with the data being read
* the read length MUST be a multiple of the length of the DMA buffers.
*
* Use a multiple of SSP_INPUT_CHUNK_SIZE defined below.
*/
#define SSP_INPUT_CHUNK_SIZE 256
/* Request struct to pass through the ioctl interface to read
* data with timestamps.
*/
struct
ssp_request
{
char
__user
*
buf
;
/* Where to put the data. */
size_t
len
;
/* Size of buf. MUST be a multiple of */
/* SSP_INPUT_CHUNK_SIZE! */
struct
timespec
ts
;
/* The time the data was sampled. */
};
#endif
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录