Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
4e72b427
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
154
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4e72b427
编写于
11月 06, 2014
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branches 'spi/fix/fsl-dspi' and 'spi/fix/pxa2xx' into spi-linus
上级
0df1f248
5cc7b047
2b9375b9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
4 deletion
+7
-4
drivers/spi/spi-fsl-dspi.c
drivers/spi/spi-fsl-dspi.c
+2
-2
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.c
+5
-2
未找到文件。
drivers/spi/spi-fsl-dspi.c
浏览文件 @
4e72b427
...
...
@@ -46,7 +46,7 @@
#define SPI_TCR 0x08
#define SPI_CTAR(x) (0x0c + (
x
* 4))
#define SPI_CTAR(x) (0x0c + (
((x) & 0x3)
* 4))
#define SPI_CTAR_FMSZ(x) (((x) & 0x0000000f) << 27)
#define SPI_CTAR_CPOL(x) ((x) << 26)
#define SPI_CTAR_CPHA(x) ((x) << 25)
...
...
@@ -70,7 +70,7 @@
#define SPI_PUSHR 0x34
#define SPI_PUSHR_CONT (1 << 31)
#define SPI_PUSHR_CTAS(x) (((x) & 0x0000000
7
) << 28)
#define SPI_PUSHR_CTAS(x) (((x) & 0x0000000
3
) << 28)
#define SPI_PUSHR_EOQ (1 << 27)
#define SPI_PUSHR_CTCNT (1 << 26)
#define SPI_PUSHR_PCS(x) (((1 << x) & 0x0000003f) << 16)
...
...
drivers/spi/spi-pxa2xx.c
浏览文件 @
4e72b427
...
...
@@ -1274,7 +1274,9 @@ static int pxa2xx_spi_suspend(struct device *dev)
if
(
status
!=
0
)
return
status
;
write_SSCR0
(
0
,
drv_data
->
ioaddr
);
clk_disable_unprepare
(
ssp
->
clk
);
if
(
!
pm_runtime_suspended
(
dev
))
clk_disable_unprepare
(
ssp
->
clk
);
return
0
;
}
...
...
@@ -1288,7 +1290,8 @@ static int pxa2xx_spi_resume(struct device *dev)
pxa2xx_spi_dma_resume
(
drv_data
);
/* Enable the SSP clock */
clk_prepare_enable
(
ssp
->
clk
);
if
(
!
pm_runtime_suspended
(
dev
))
clk_prepare_enable
(
ssp
->
clk
);
/* Restore LPSS private register bits */
lpss_ssp_setup
(
drv_data
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录