Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
d8e7943d
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
d8e7943d
编写于
11月 30, 2010
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'common/mmcif' into rmobile/mmcif
上级
df73af86
22efa0fe
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
17 deletion
+15
-17
arch/sh/include/mach-common/mach/romimage.h
arch/sh/include/mach-common/mach/romimage.h
+1
-1
arch/sh/include/mach-ecovec24/mach/romimage.h
arch/sh/include/mach-ecovec24/mach/romimage.h
+1
-1
arch/sh/include/mach-kfr2r09/mach/romimage.h
arch/sh/include/mach-kfr2r09/mach/romimage.h
+1
-1
include/linux/mmc/sh_mmcif.h
include/linux/mmc/sh_mmcif.h
+12
-14
未找到文件。
arch/sh/include/mach-common/mach/romimage.h
浏览文件 @
d8e7943d
...
...
@@ -4,7 +4,7 @@
#else
/* __ASSEMBLY__ */
extern
inline
void
mmcif_update_progress
(
int
nr
)
static
inline
void
mmcif_update_progress
(
int
nr
)
{
}
...
...
arch/sh/include/mach-ecovec24/mach/romimage.h
浏览文件 @
d8e7943d
...
...
@@ -35,7 +35,7 @@
#define HIZCRA 0xa4050158
#define PGDR 0xa405012c
extern
inline
void
mmcif_update_progress
(
int
nr
)
static
inline
void
mmcif_update_progress
(
int
nr
)
{
/* disable Hi-Z for LED pins */
__raw_writew
(
__raw_readw
(
HIZCRA
)
&
~
(
1
<<
1
),
HIZCRA
);
...
...
arch/sh/include/mach-kfr2r09/mach/romimage.h
浏览文件 @
d8e7943d
...
...
@@ -23,7 +23,7 @@
#else
/* __ASSEMBLY__ */
extern
inline
void
mmcif_update_progress
(
int
nr
)
static
inline
void
mmcif_update_progress
(
int
nr
)
{
}
...
...
include/linux/mmc/sh_mmcif.h
浏览文件 @
d8e7943d
...
...
@@ -77,6 +77,9 @@ struct sh_mmcif_plat_data {
#define CLK_ENABLE (1 << 24)
/* 1: output mmc clock */
#define CLK_CLEAR ((1 << 19) | (1 << 18) | (1 << 17) | (1 << 16))
#define CLK_SUP_PCLK ((1 << 19) | (1 << 18) | (1 << 17) | (1 << 16))
#define CLKDIV_4 (1<<16)
/* mmc clock frequency.
* n: bus clock/(2^(n+1)) */
#define CLKDIV_256 (7<<16)
/* mmc clock frequency. (see above) */
#define SRSPTO_256 ((1 << 13) | (0 << 12))
/* resp timeout */
#define SRBSYTO_29 ((1 << 11) | (1 << 10) | \
(1 << 9) | (1 << 8))
/* resp busy timeout */
...
...
@@ -87,7 +90,7 @@ struct sh_mmcif_plat_data {
/* CE_VERSION */
#define SOFT_RST_ON (1 << 31)
#define SOFT_RST_OFF
~SOFT_RST_ON
#define SOFT_RST_OFF
0
static
inline
u32
sh_mmcif_readl
(
void
__iomem
*
addr
,
int
reg
)
{
...
...
@@ -175,12 +178,9 @@ static inline int sh_mmcif_boot_do_read(void __iomem *base,
static
inline
void
sh_mmcif_boot_init
(
void
__iomem
*
base
)
{
unsigned
long
tmp
;
/* reset */
tmp
=
sh_mmcif_readl
(
base
,
MMCIF_CE_VERSION
);
sh_mmcif_writel
(
base
,
MMCIF_CE_VERSION
,
tmp
|
SOFT_RST_ON
);
sh_mmcif_writel
(
base
,
MMCIF_CE_VERSION
,
tmp
&
SOFT_RST_OFF
);
sh_mmcif_writel
(
base
,
MMCIF_CE_VERSION
,
SOFT_RST_ON
);
sh_mmcif_writel
(
base
,
MMCIF_CE_VERSION
,
SOFT_RST_OFF
);
/* byte swap */
sh_mmcif_writel
(
base
,
MMCIF_CE_BUF_ACC
,
BUF_ACC_ATYP
);
...
...
@@ -188,14 +188,10 @@ static inline void sh_mmcif_boot_init(void __iomem *base)
/* Set block size in MMCIF hardware */
sh_mmcif_writel
(
base
,
MMCIF_CE_BLOCK_SET
,
SH_MMCIF_BBS
);
/* Enable the clock, set it to Bus clock/256 (about 325Khz).
* It is unclear where 0x70000 comes from or if it is even needed.
* It is there for byte-compatibility with code that is known to
* work.
*/
/* Enable the clock, set it to Bus clock/256 (about 325Khz). */
sh_mmcif_writel
(
base
,
MMCIF_CE_CLK_CTRL
,
CLK_ENABLE
|
SRSPTO_256
|
SRBSYTO_29
|
SRWDTO_29
|
S
CCSTO_29
|
0x70000
);
CLK_ENABLE
|
CLKDIV_256
|
SRSPTO_256
|
S
RBSYTO_29
|
SRWDTO_29
|
SCCSTO_29
);
/* CMD0 */
sh_mmcif_boot_cmd
(
base
,
0x00000040
,
0
);
...
...
@@ -220,7 +216,9 @@ static inline void sh_mmcif_boot_slurp(void __iomem *base,
unsigned
long
tmp
;
/* In data transfer mode: Set clock to Bus clock/4 (about 20Mhz) */
sh_mmcif_writel
(
base
,
MMCIF_CE_CLK_CTRL
,
0x01012fff
);
sh_mmcif_writel
(
base
,
MMCIF_CE_CLK_CTRL
,
CLK_ENABLE
|
CLKDIV_4
|
SRSPTO_256
|
SRBSYTO_29
|
SRWDTO_29
|
SCCSTO_29
);
/* CMD9 - Get CSD */
sh_mmcif_boot_cmd
(
base
,
0x09806000
,
0x00010000
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录