Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
3aabce8d
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
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看板
提交
3aabce8d
编写于
3月 11, 2009
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: sh7785lcr: Update for recent PCI changes.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
10591578
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
18 deletion
+19
-18
arch/sh/drivers/pci/fixups-sh7785lcr.c
arch/sh/drivers/pci/fixups-sh7785lcr.c
+17
-16
arch/sh/drivers/pci/ops-sh7785lcr.c
arch/sh/drivers/pci/ops-sh7785lcr.c
+2
-2
未找到文件。
arch/sh/drivers/pci/fixups-sh7785lcr.c
浏览文件 @
3aabce8d
...
...
@@ -15,32 +15,33 @@
#include <linux/pci.h>
#include "pci-sh4.h"
int
pci_fixup_pcic
(
void
)
int
pci_fixup_pcic
(
struct
pci_channel
*
chan
)
{
pci_write_reg
(
0x000043ff
,
SH4_PCIINTM
);
pci_write_reg
(
0x0000380f
,
SH4_PCIAINTM
);
pci_write_reg
(
chan
,
0x000043ff
,
SH4_PCIINTM
);
pci_write_reg
(
chan
,
0x0000380f
,
SH4_PCIAINTM
);
pci_write_reg
(
0xfbb00047
,
SH7780_PCICMD
);
pci_write_reg
(
0x00000000
,
SH7780_PCIIBAR
);
pci_write_reg
(
chan
,
0xfbb00047
,
SH7780_PCICMD
);
pci_write_reg
(
chan
,
0x00000000
,
SH7780_PCIIBAR
);
pci_write_reg
(
0x00011912
,
SH7780_PCISVID
);
pci_write_reg
(
0x08000000
,
SH7780_PCICSCR0
);
pci_write_reg
(
0x0000001b
,
SH7780_PCICSAR0
);
pci_write_reg
(
0xfd000000
,
SH7780_PCICSCR1
);
pci_write_reg
(
0x0000000f
,
SH7780_PCICSAR1
);
pci_write_reg
(
chan
,
0x00011912
,
SH7780_PCISVID
);
pci_write_reg
(
chan
,
0x08000000
,
SH7780_PCICSCR0
);
pci_write_reg
(
chan
,
0x0000001b
,
SH7780_PCICSAR0
);
pci_write_reg
(
chan
,
0xfd000000
,
SH7780_PCICSCR1
);
pci_write_reg
(
chan
,
0x0000000f
,
SH7780_PCICSAR1
);
pci_write_reg
(
0xfd000000
,
SH7780_PCIMBR0
);
pci_write_reg
(
0x00fc0000
,
SH7780_PCIMBMR0
);
pci_write_reg
(
chan
,
0xfd000000
,
SH7780_PCIMBR0
);
pci_write_reg
(
chan
,
0x00fc0000
,
SH7780_PCIMBMR0
);
#ifdef CONFIG_32BIT
pci_write_reg
(
0xc0000000
,
SH7780_PCIMBR2
);
pci_write_reg
(
0x20000000
-
SH7780_PCI_IO_SIZE
,
SH7780_PCIMBMR2
);
pci_write_reg
(
chan
,
0xc0000000
,
SH7780_PCIMBR2
);
pci_write_reg
(
chan
,
0x20000000
-
SH7780_PCI_IO_SIZE
,
SH7780_PCIMBMR2
);
#endif
/* Set IOBR for windows containing area specified in pci.h */
pci_write_reg
(
(
PCIBIOS_MIN_IO
&
~
(
SH7780_PCI_IO_SIZE
-
1
)
),
pci_write_reg
(
chan
,
chan
->
io_resource
->
start
&
~
(
SH7780_PCI_IO_SIZE
-
1
),
SH7780_PCIIOBR
);
pci_write_reg
(((
SH7780_PCI_IO_SIZE
-
1
)
&
(
7
<<
18
)),
SH7780_PCIIOBMR
);
pci_write_reg
(
chan
,
((
SH7780_PCI_IO_SIZE
-
1
)
&
(
7
<<
18
)),
SH7780_PCIIOBMR
);
return
0
;
}
arch/sh/drivers/pci/ops-sh7785lcr.c
浏览文件 @
3aabce8d
...
...
@@ -41,7 +41,7 @@ static struct resource sh7785_mem_resource = {
};
struct
pci_channel
board_pci_channels
[]
=
{
{
&
sh4_pci_ops
,
&
sh7785_io_resource
,
&
sh7785_mem_resource
,
0
,
0xff
},
{
sh7780_pci_init
,
&
sh4_pci_ops
,
&
sh7785_io_resource
,
&
sh7785_mem_resource
,
0
,
0xff
},
{
NULL
,
NULL
,
NULL
,
0
,
0
},
};
...
...
@@ -61,5 +61,5 @@ static struct sh4_pci_address_map sh7785_pci_map = {
int
__init
pcibios_init_platform
(
void
)
{
return
sh7780_pcic_init
(
&
sh7785_pci_map
);
return
sh7780_pcic_init
(
&
board_pci_channels
[
0
],
&
sh7785_pci_map
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录