Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
b32a8940
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b32a8940
编写于
9月 21, 2009
作者:
P
Peter Tyser
提交者:
Wolfgang Denk
10月 03, 2009
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ppc: Remove pci config table pointer relocation fixups
Signed-off-by:
N
Peter Tyser
<
ptyser@xes-inc.com
>
上级
a0e2066f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
25 deletion
+0
-25
board/freescale/mpc8548cds/mpc8548cds.c
board/freescale/mpc8548cds/mpc8548cds.c
+0
-7
board/mpl/common/pci.c
board/mpl/common/pci.c
+0
-18
未找到文件。
board/freescale/mpc8548cds/mpc8548cds.c
浏览文件 @
b32a8940
...
...
@@ -276,7 +276,6 @@ pci_init_board(void)
{
volatile
ccsr_fsl_pci_t
*
pci
=
(
ccsr_fsl_pci_t
*
)
CONFIG_SYS_PCI1_ADDR
;
struct
pci_controller
*
hose
=
&
pci1_hose
;
struct
pci_config_table
*
table
;
struct
pci_region
*
r
=
hose
->
regions
;
uint
pci_32
=
gur
->
pordevsr
&
MPC85xx_PORDEVSR_PCI1_PCI32
;
/* PORDEVSR[15] */
...
...
@@ -312,12 +311,6 @@ pci_init_board(void)
PCI_REGION_IO
);
hose
->
region_count
=
r
-
hose
->
regions
;
/* relocate config table pointers */
hose
->
config_table
=
\
(
struct
pci_config_table
*
)((
uint
)
hose
->
config_table
+
gd
->
reloc_off
);
for
(
table
=
hose
->
config_table
;
table
&&
table
->
vendor
;
table
++
)
table
->
config_device
+=
gd
->
reloc_off
;
hose
->
first_busno
=
first_free_busno
;
fsl_pci_init
(
hose
,
(
u32
)
&
pci
->
cfg_addr
,
(
u32
)
&
pci
->
cfg_data
);
...
...
board/mpl/common/pci.c
浏览文件 @
b32a8940
...
...
@@ -94,29 +94,11 @@ static struct pci_controller hose = {
};
static
void
reloc_pci_cfg_table
(
struct
pci_config_table
*
table
)
{
unsigned
long
addr
;
for
(;
table
&&
table
->
vendor
;
table
++
)
{
addr
=
(
ulong
)
(
table
->
config_device
)
+
gd
->
reloc_off
;
#ifdef DEBUG
printf
(
"device
\"
%d
\"
: 0x%08lx => 0x%08lx
\n
"
,
table
->
device
,
(
ulong
)
(
table
->
config_device
),
addr
);
#endif
table
->
config_device
=
(
void
(
*
)(
struct
pci_controller
*
hose
,
pci_dev_t
dev
,
struct
pci_config_table
*
))
addr
;
table
->
priv
[
0
]
+=
gd
->
reloc_off
;
}
}
void
pci_init_board
(
void
)
{
/*we want the ptrs to RAM not flash (ie don't use init list)*/
hose
.
fixup_irq
=
pci_pip405_fixup_irq
;
hose
.
config_table
=
pci_pip405_config_table
;
reloc_pci_cfg_table
(
hose
.
config_table
);
#ifdef DEBUG
printf
(
"Init PCI: fixup_irq=%p config_table=%p hose=%p
\n
"
,
pci_pip405_fixup_irq
,
pci_pip405_config_table
,
hose
);
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录