Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
206f060c
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
206f060c
编写于
11月 15, 2012
作者:
S
Sonic Zhang
提交者:
Steven Miao
9月 13, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
blackfin: scb: Add SCB1 to SCB9 config options and data.
Signed-off-by:
N
Sonic Zhang
<
sonic.zhang@analog.com
>
上级
24a70cf2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
782 addition
and
13 deletion
+782
-13
arch/blackfin/mach-bf609/Kconfig
arch/blackfin/mach-bf609/Kconfig
+638
-0
arch/blackfin/mach-bf609/scb.c
arch/blackfin/mach-bf609/scb.c
+144
-13
未找到文件。
arch/blackfin/mach-bf609/Kconfig
浏览文件 @
206f060c
...
...
@@ -1076,6 +1076,644 @@ config SCB0_MI5_SLOT15
endif # SCB0_MI5
menuconfig SCB1_MI0
bool "SCB1 Master Interface 0"
default n
depends on SCB_PRIORITY
help
The slave interface id of each slot should be set according following table.
SPORT0A -- 0
SPORT0B -- 1
SPORT1A -- 2
SPORT1B -- 3
SPORT2A -- 4
SPORT2B -- 5
SPI0TX -- 6
SPI0RX -- 7
SPI1TX -- 8
SPI1RX -- 9
if SCB1_MI0
config SCB1_MI0_SLOT0
int "Slot 0 slave interface id"
default 0
range 0 9
config SCB1_MI0_SLOT1
int "Slot 1 slave interface id"
default 1
range 0 9
config SCB1_MI0_SLOT2
int "Slot 2 slave interface id"
default 2
range 0 9
config SCB1_MI0_SLOT3
int "Slot 3 slave interface id"
default 3
range 0 9
config SCB1_MI0_SLOT4
int "Slot 4 slave interface id"
default 4
range 0 9
config SCB1_MI0_SLOT5
int "Slot 5 slave interface id"
default 5
range 0 9
config SCB1_MI0_SLOT6
int "Slot 6 slave interface id"
default 6
range 0 9
config SCB1_MI0_SLOT7
int "Slot 7 slave interface id"
default 7
range 0 9
config SCB1_MI0_SLOT8
int "Slot 8 slave interface id"
default 8
range 0 9
config SCB1_MI0_SLOT9
int "Slot 9 slave interface id"
default 9
range 0 9
config SCB1_MI0_SLOT10
int "Slot 10 slave interface id"
default 0
range 0 9
config SCB1_MI0_SLOT11
int "Slot 11 slave interface id"
default 1
range 0 9
config SCB1_MI0_SLOT12
int "Slot 12 slave interface id"
default 2
range 0 9
config SCB1_MI0_SLOT13
int "Slot 13 slave interface id"
default 3
range 0 9
config SCB1_MI0_SLOT14
int "Slot 14 slave interface id"
default 4
range 0 9
config SCB1_MI0_SLOT15
int "Slot 15 slave interface id"
default 5
range 0 9
config SCB1_MI0_SLOT16
int "Slot 16 slave interface id"
default 6
range 0 13
config SCB1_MI0_SLOT17
int "Slot 17 slave interface id"
default 7
range 0 13
config SCB1_MI0_SLOT18
int "Slot 18 slave interface id"
default 8
range 0 13
config SCB1_MI0_SLOT19
int "Slot 19 slave interface id"
default 9
range 0 13
endif # SCB1_MI0
menuconfig SCB2_MI0
bool "SCB2 Master Interface 0"
default n
depends on SCB_PRIORITY
help
The slave interface id of each slot should be set according following table.
RSI -- 0
SDU DMA -- 1
SDU -- 2
EMAC0 -- 3
EMAC1 -- 4
if SCB2_MI0
config SCB2_MI0_SLOT0
int "Slot 0 slave interface id"
default 0
range 0 4
config SCB2_MI0_SLOT1
int "Slot 1 slave interface id"
default 1
range 0 4
config SCB2_MI0_SLOT2
int "Slot 2 slave interface id"
default 2
range 0 4
config SCB2_MI0_SLOT3
int "Slot 3 slave interface id"
default 3
range 0 4
config SCB2_MI0_SLOT4
int "Slot 4 slave interface id"
default 4
range 0 4
config SCB2_MI0_SLOT5
int "Slot 5 slave interface id"
default 0
range 0 4
config SCB2_MI0_SLOT6
int "Slot 6 slave interface id"
default 1
range 0 4
config SCB2_MI0_SLOT7
int "Slot 7 slave interface id"
default 2
range 0 4
config SCB2_MI0_SLOT8
int "Slot 8 slave interface id"
default 3
range 0 4
config SCB2_MI0_SLOT9
int "Slot 9 slave interface id"
default 4
range 0 4
endif # SCB2_MI0
menuconfig SCB3_MI0
bool "SCB3 Master Interface 0"
default n
depends on SCB_PRIORITY
help
The slave interface id of each slot should be set according following table.
LP0 -- 0
LP1 -- 1
LP2 -- 2
LP3 -- 3
UART0TX -- 4
UART0RX -- 5
UART1TX -- 4
UART1RX -- 5
if SCB3_MI0
config SCB3_MI0_SLOT0
int "Slot 0 slave interface id"
default 0
range 0 7
config SCB3_MI0_SLOT1
int "Slot 1 slave interface id"
default 1
range 0 7
config SCB3_MI0_SLOT2
int "Slot 2 slave interface id"
default 2
range 0 7
config SCB3_MI0_SLOT3
int "Slot 3 slave interface id"
default 3
range 0 7
config SCB3_MI0_SLOT4
int "Slot 4 slave interface id"
default 4
range 0 7
config SCB3_MI0_SLOT5
int "Slot 5 slave interface id"
default 5
range 0 7
config SCB3_MI0_SLOT6
int "Slot 6 slave interface id"
default 6
range 0 7
config SCB3_MI0_SLOT7
int "Slot 7 slave interface id"
default 7
range 0 7
config SCB3_MI0_SLOT8
int "Slot 8 slave interface id"
default 0
range 0 7
config SCB3_MI0_SLOT9
int "Slot 9 slave interface id"
default 1
range 0 7
config SCB3_MI0_SLOT10
int "Slot 10 slave interface id"
default 2
range 0 7
config SCB3_MI0_SLOT11
int "Slot 11 slave interface id"
default 3
range 0 7
config SCB3_MI0_SLOT12
int "Slot 12 slave interface id"
default 4
range 0 7
config SCB3_MI0_SLOT13
int "Slot 13 slave interface id"
default 5
range 0 7
config SCB3_MI0_SLOT14
int "Slot 14 slave interface id"
default 6
range 0 7
config SCB3_MI0_SLOT15
int "Slot 15 slave interface id"
default 7
range 0 7
endif # SCB3_MI0
menuconfig SCB4_MI0
bool "SCB4 Master Interface 0"
default n
depends on SCB_PRIORITY
help
The slave interface id of each slot should be set according following table.
MDA21 -- 0
MDA22 -- 1
MDA23 -- 2
MDA24 -- 3
MDA25 -- 4
MDA26 -- 5
MDA27 -- 6
MDA28 -- 7
if SCB4_MI0
config SCB4_MI0_SLOT0
int "Slot 0 slave interface id"
default 0
range 0 7
config SCB4_MI0_SLOT1
int "Slot 1 slave interface id"
default 1
range 0 7
config SCB4_MI0_SLOT2
int "Slot 2 slave interface id"
default 2
range 0 7
config SCB4_MI0_SLOT3
int "Slot 3 slave interface id"
default 3
range 0 7
config SCB4_MI0_SLOT4
int "Slot 4 slave interface id"
default 4
range 0 7
config SCB4_MI0_SLOT5
int "Slot 5 slave interface id"
default 5
range 0 7
config SCB4_MI0_SLOT6
int "Slot 6 slave interface id"
default 6
range 0 7
config SCB4_MI0_SLOT7
int "Slot 7 slave interface id"
default 7
range 0 7
config SCB4_MI0_SLOT8
int "Slot 8 slave interface id"
default 0
range 0 7
config SCB4_MI0_SLOT9
int "Slot 9 slave interface id"
default 1
range 0 7
config SCB4_MI0_SLOT10
int "Slot 10 slave interface id"
default 2
range 0 7
config SCB4_MI0_SLOT11
int "Slot 11 slave interface id"
default 3
range 0 7
config SCB4_MI0_SLOT12
int "Slot 12 slave interface id"
default 4
range 0 7
config SCB4_MI0_SLOT13
int "Slot 13 slave interface id"
default 5
range 0 7
config SCB4_MI0_SLOT14
int "Slot 14 slave interface id"
default 6
range 0 7
config SCB4_MI0_SLOT15
int "Slot 15 slave interface id"
default 7
range 0 7
endif # SCB4_MI0
menuconfig SCB5_MI0
bool "SCB5 Master Interface 0"
default n
depends on SCB_PRIORITY
help
The slave interface id of each slot should be set according following table.
PPI0 MDA29 -- 0
PPI0 MDA30 -- 1
PPI2 MDA31 -- 2
PPI2 MDA32 -- 3
if SCB5_MI0
config SCB5_MI0_SLOT0
int "Slot 0 slave interface id"
default 0
range 0 3
config SCB5_MI0_SLOT1
int "Slot 1 slave interface id"
default 1
range 0 3
config SCB5_MI0_SLOT2
int "Slot 2 slave interface id"
default 2
range 0 3
config SCB5_MI0_SLOT3
int "Slot 3 slave interface id"
default 3
range 0 3
config SCB5_MI0_SLOT4
int "Slot 4 slave interface id"
default 0
range 0 3
config SCB5_MI0_SLOT5
int "Slot 5 slave interface id"
default 1
range 0 3
config SCB5_MI0_SLOT6
int "Slot 6 slave interface id"
default 2
range 0 3
config SCB5_MI0_SLOT7
int "Slot 7 slave interface id"
default 3
range 0 3
endif # SCB5_MI0
menuconfig SCB6_MI0
bool "SCB6 Master Interface 0"
default n
depends on SCB_PRIORITY
help
The slave interface id of each slot should be set according following table.
PPI1 MDA33 -- 0
PPI1 MDA34 -- 1
if SCB6_MI0
config SCB6_MI0_SLOT0
int "Slot 0 slave interface id"
default 0
range 0 1
config SCB6_MI0_SLOT1
int "Slot 1 slave interface id"
default 1
range 0 1
config SCB6_MI0_SLOT2
int "Slot 2 slave interface id"
default 0
range 0 1
config SCB6_MI0_SLOT3
int "Slot 3 slave interface id"
default 1
range 0 1
endif # SCB6_MI0
menuconfig SCB7_MI0
bool "SCB7 Master Interface 0"
default n
depends on SCB_PRIORITY
help
The slave interface id of each slot should be set according following table.
PIXC0 -- 0
PIXC1 -- 1
PIXC2 -- 2
if SCB7_MI0
config SCB7_MI0_SLOT0
int "Slot 0 slave interface id"
default 0
range 0 2
config SCB7_MI0_SLOT1
int "Slot 1 slave interface id"
default 1
range 0 2
config SCB7_MI0_SLOT2
int "Slot 2 slave interface id"
default 2
range 0 2
config SCB7_MI0_SLOT3
int "Slot 3 slave interface id"
default 0
range 0 2
config SCB7_MI0_SLOT4
int "Slot 4 slave interface id"
default 1
range 0 2
config SCB7_MI0_SLOT5
int "Slot 5 slave interface id"
default 2
range 0 2
endif # SCB7_MI0
menuconfig SCB8_MI0
bool "SCB8 Master Interface 0"
default n
depends on SCB_PRIORITY
help
The slave interface id of each slot should be set according following table.
PVP CPDOB -- 0
PVP CPDOC -- 1
PVP CPCO -- 2
PVP CPCI -- 3
if SCB8_MI0
config SCB8_MI0_SLOT0
int "Slot 0 slave interface id"
default 0
range 0 3
config SCB8_MI0_SLOT1
int "Slot 1 slave interface id"
default 1
range 0 3
config SCB8_MI0_SLOT2
int "Slot 2 slave interface id"
default 2
range 0 3
config SCB8_MI0_SLOT3
int "Slot 3 slave interface id"
default 3
range 0 3
config SCB8_MI0_SLOT4
int "Slot 4 slave interface id"
default 0
range 0 3
config SCB8_MI0_SLOT5
int "Slot 5 slave interface id"
default 1
range 0 3
config SCB8_MI0_SLOT6
int "Slot 6 slave interface id"
default 2
range 0 3
config SCB8_MI0_SLOT7
int "Slot 7 slave interface id"
default 3
range 0 3
endif # SCB8_MI0
menuconfig SCB9_MI0
bool "SCB9 Master Interface 0"
default n
depends on SCB_PRIORITY
help
The slave interface id of each slot should be set according following table.
PVP MPDO -- 0
PVP MPDI -- 1
PVP MPCO -- 2
PVP MPCI -- 3
PVP CPDOA -- 4
if SCB9_MI0
config SCB9_MI0_SLOT0
int "Slot 0 slave interface id"
default 0
range 0 4
config SCB9_MI0_SLOT1
int "Slot 1 slave interface id"
default 1
range 0 4
config SCB9_MI0_SLOT2
int "Slot 2 slave interface id"
default 2
range 0 4
config SCB9_MI0_SLOT3
int "Slot 3 slave interface id"
default 3
range 0 4
config SCB9_MI0_SLOT4
int "Slot 4 slave interface id"
default 4
range 0 4
config SCB9_MI0_SLOT5
int "Slot 5 slave interface id"
default 0
range 0 4
config SCB9_MI0_SLOT6
int "Slot 6 slave interface id"
default 1
range 0 4
config SCB9_MI0_SLOT7
int "Slot 7 slave interface id"
default 2
range 0 4
config SCB9_MI0_SLOT8
int "Slot 8 slave interface id"
default 3
range 0 4
config SCB9_MI0_SLOT9
int "Slot 9 slave interface id"
default 4
range 0 4
endif # SCB9_MI0
endmenu
endif
arch/blackfin/mach-bf609/scb.c
浏览文件 @
206f060c
...
...
@@ -212,21 +212,152 @@ struct scb_mi_prio scb_data[] = {
CONFIG_SCB0_MI5_SLOT12
,
CONFIG_SCB0_MI5_SLOT13
,
CONFIG_SCB0_MI5_SLOT14
,
CONFIG_SCB0_MI5_SLOT15
,
CONFIG_SCB0_MI5_SLOT15
},
},
#endif
#ifdef CONFIG_SCB1_MI0
{
REG_SCB1_ARBR0
,
REG_SCB1_ARBW0
,
20
,
{
CONFIG_SCB1_MI0_SLOT0
,
CONFIG_SCB1_MI0_SLOT1
,
CONFIG_SCB1_MI0_SLOT2
,
CONFIG_SCB1_MI0_SLOT3
,
CONFIG_SCB1_MI0_SLOT4
,
CONFIG_SCB1_MI0_SLOT5
,
CONFIG_SCB1_MI0_SLOT6
,
CONFIG_SCB1_MI0_SLOT7
,
CONFIG_SCB1_MI0_SLOT8
,
CONFIG_SCB1_MI0_SLOT9
,
CONFIG_SCB1_MI0_SLOT10
,
CONFIG_SCB1_MI0_SLOT11
,
CONFIG_SCB1_MI0_SLOT12
,
CONFIG_SCB1_MI0_SLOT13
,
CONFIG_SCB1_MI0_SLOT14
,
CONFIG_SCB1_MI0_SLOT15
,
CONFIG_SCB1_MI0_SLOT16
,
CONFIG_SCB1_MI0_SLOT17
,
CONFIG_SCB1_MI0_SLOT18
,
CONFIG_SCB1_MI0_SLOT19
},
},
#endif
#ifdef CONFIG_SCB2_MI0
{
REG_SCB2_ARBR0
,
REG_SCB2_ARBW0
,
10
,
{
CONFIG_SCB2_MI0_SLOT0
,
CONFIG_SCB2_MI0_SLOT1
,
CONFIG_SCB2_MI0_SLOT2
,
CONFIG_SCB2_MI0_SLOT3
,
CONFIG_SCB2_MI0_SLOT4
,
CONFIG_SCB2_MI0_SLOT5
,
CONFIG_SCB2_MI0_SLOT6
,
CONFIG_SCB2_M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MI0_SLOT8
,
CONFIG_SCB9_MI0_SLOT9
},
},
#endif
/*
{ REG_SCB1_ARBR0, REG_SCB1_ARBW0, scb1_mi0, 20 },
{ REG_SCB2_ARBR0, REG_SCB2_ARBW0, scb2_mi0, 10 },
{ REG_SCB3_ARBR0, REG_SCB3_ARBW0, scb3_mi0, 16 },
{ REG_SCB4_ARBR0, REG_SCB4_ARBW0, scb4_mi0, 16 },
{ REG_SCB5_ARBR0, REG_SCB5_ARBW0, scb5_mi0, 8 },
{ REG_SCB6_ARBR0, REG_SCB6_ARBW0, scb6_mi0, 4 },
{ REG_SCB7_ARBR0, REG_SCB7_ARBW0, scb7_mi0, 6 },
{ REG_SCB8_ARBR0, REG_SCB8_ARBW0, scb8_mi0, 8 },
{ REG_SCB9_ARBR0, REG_SCB9_ARBW0, scb9_mi0, 10 },
{ REG_SCB10_ARBR0, REG_SCB10_ARBW0, scb20_mi0, 16 },
*/
{
0
,
}
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录