Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
78b425fa
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看板
提交
78b425fa
编写于
11月 04, 2011
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
差异文件
Merge branches 'sh/core' and 'sh/serial-rework' into sh-fixes-for-linus
上级
dfd3b596
3af1f8a4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
32 addition
and
4 deletion
+32
-4
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
+12
-4
drivers/tty/serial/sh-sci.c
drivers/tty/serial/sh-sci.c
+19
-0
include/linux/serial_sci.h
include/linux/serial_sci.h
+1
-0
未找到文件。
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
浏览文件 @
78b425fa
...
...
@@ -176,10 +176,12 @@ static DECLARE_INTC_DESC(intc_desc, "sh7203", vectors, groups,
static
struct
plat_sci_port
scif0_platform_data
=
{
.
mapbase
=
0xfffe8000
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
scscr
=
SCSCR_RE
|
SCSCR_TE
|
SCSCR_REIE
,
.
scscr
=
SCSCR_RIE
|
SCSCR_TIE
|
SCSCR_RE
|
SCSCR_TE
|
SCSCR_REIE
,
.
scbrr_algo_id
=
SCBRR_ALGO_2
,
.
type
=
PORT_SCIF
,
.
irqs
=
{
192
,
192
,
192
,
192
},
.
regtype
=
SCIx_SH2_SCIF_FIFODATA_REGTYPE
,
};
static
struct
platform_device
scif0_device
=
{
...
...
@@ -193,10 +195,12 @@ static struct platform_device scif0_device = {
static
struct
plat_sci_port
scif1_platform_data
=
{
.
mapbase
=
0xfffe8800
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
scscr
=
SCSCR_RE
|
SCSCR_TE
|
SCSCR_REIE
,
.
scscr
=
SCSCR_RIE
|
SCSCR_TIE
|
SCSCR_RE
|
SCSCR_TE
|
SCSCR_REIE
,
.
scbrr_algo_id
=
SCBRR_ALGO_2
,
.
type
=
PORT_SCIF
,
.
irqs
=
{
196
,
196
,
196
,
196
},
.
regtype
=
SCIx_SH2_SCIF_FIFODATA_REGTYPE
,
};
static
struct
platform_device
scif1_device
=
{
...
...
@@ -210,10 +214,12 @@ static struct platform_device scif1_device = {
static
struct
plat_sci_port
scif2_platform_data
=
{
.
mapbase
=
0xfffe9000
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
scscr
=
SCSCR_RE
|
SCSCR_TE
|
SCSCR_REIE
,
.
scscr
=
SCSCR_RIE
|
SCSCR_TIE
|
SCSCR_RE
|
SCSCR_TE
|
SCSCR_REIE
,
.
scbrr_algo_id
=
SCBRR_ALGO_2
,
.
type
=
PORT_SCIF
,
.
irqs
=
{
200
,
200
,
200
,
200
},
.
regtype
=
SCIx_SH2_SCIF_FIFODATA_REGTYPE
,
};
static
struct
platform_device
scif2_device
=
{
...
...
@@ -227,10 +233,12 @@ static struct platform_device scif2_device = {
static
struct
plat_sci_port
scif3_platform_data
=
{
.
mapbase
=
0xfffe9800
,
.
flags
=
UPF_BOOT_AUTOCONF
,
.
scscr
=
SCSCR_RE
|
SCSCR_TE
|
SCSCR_REIE
,
.
scscr
=
SCSCR_RIE
|
SCSCR_TIE
|
SCSCR_RE
|
SCSCR_TE
|
SCSCR_REIE
,
.
scbrr_algo_id
=
SCBRR_ALGO_2
,
.
type
=
PORT_SCIF
,
.
irqs
=
{
204
,
204
,
204
,
204
},
.
regtype
=
SCIx_SH2_SCIF_FIFODATA_REGTYPE
,
};
static
struct
platform_device
scif3_device
=
{
...
...
drivers/tty/serial/sh-sci.c
浏览文件 @
78b425fa
...
...
@@ -206,6 +206,25 @@ static struct plat_sci_reg sci_regmap[SCIx_NR_REGTYPES][SCIx_NR_REGS] = {
[
SCLSR
]
=
sci_reg_invalid
,
},
/*
* Common SH-2(A) SCIF definitions for ports with FIFO data
* count registers.
*/
[
SCIx_SH2_SCIF_FIFODATA_REGTYPE
]
=
{
[
SCSMR
]
=
{
0x00
,
16
},
[
SCBRR
]
=
{
0x04
,
8
},
[
SCSCR
]
=
{
0x08
,
16
},
[
SCxTDR
]
=
{
0x0c
,
8
},
[
SCxSR
]
=
{
0x10
,
16
},
[
SCxRDR
]
=
{
0x14
,
8
},
[
SCFCR
]
=
{
0x18
,
16
},
[
SCFDR
]
=
{
0x1c
,
16
},
[
SCTFDR
]
=
sci_reg_invalid
,
[
SCRFDR
]
=
sci_reg_invalid
,
[
SCSPTR
]
=
{
0x20
,
16
},
[
SCLSR
]
=
{
0x24
,
16
},
},
/*
* Common SH-3 SCIF definitions.
*/
...
...
include/linux/serial_sci.h
浏览文件 @
78b425fa
...
...
@@ -67,6 +67,7 @@ enum {
SCIx_IRDA_REGTYPE
,
SCIx_SCIFA_REGTYPE
,
SCIx_SCIFB_REGTYPE
,
SCIx_SH2_SCIF_FIFODATA_REGTYPE
,
SCIx_SH3_SCIF_REGTYPE
,
SCIx_SH4_SCIF_REGTYPE
,
SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录