Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
5db1dcce
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,发现更多精彩内容 >>
提交
5db1dcce
编写于
7月 13, 2009
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.denx.de/u-boot-ppc4xx
上级
116a0a54
632e9b67
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
9 deletion
+25
-9
cpu/ppc4xx/4xx_pci.c
cpu/ppc4xx/4xx_pci.c
+23
-2
cpu/ppc4xx/cpu_init.c
cpu/ppc4xx/cpu_init.c
+0
-5
include/common.h
include/common.h
+2
-2
未找到文件。
cpu/ppc4xx/4xx_pci.c
浏览文件 @
5db1dcce
...
@@ -87,6 +87,20 @@ DECLARE_GLOBAL_DATA_PTR;
...
@@ -87,6 +87,20 @@ DECLARE_GLOBAL_DATA_PTR;
*/
*/
int
__pci_pre_init
(
struct
pci_controller
*
hose
)
int
__pci_pre_init
(
struct
pci_controller
*
hose
)
{
{
#if defined (CONFIG_405EP)
/*
* Enable the internal PCI arbiter by default.
*
* On 405EP CPUs the internal arbiter can be controlled
* by the I2C strapping EEPROM. If you want to do so
* or if you want to disable the arbiter pci_pre_init()
* must be reimplemented without enabling the arbiter.
* The arbiter is enabled in this place because of
* compatibility reasons.
*/
mtdcr
(
cpc0_pci
,
mfdcr
(
cpc0_pci
)
|
CPC0_PCI_ARBIT_EN
);
#endif
/* CONFIG_405EP */
return
1
;
return
1
;
}
}
int
pci_pre_init
(
struct
pci_controller
*
hose
)
__attribute__
((
weak
,
alias
(
"__pci_pre_init"
)));
int
pci_pre_init
(
struct
pci_controller
*
hose
)
__attribute__
((
weak
,
alias
(
"__pci_pre_init"
)));
...
@@ -323,8 +337,15 @@ void pci_405gp_init(struct pci_controller *hose)
...
@@ -323,8 +337,15 @@ void pci_405gp_init(struct pci_controller *hose)
}
}
#endif
#endif
#if defined(CONFIG_405EP)
/* on ppc405ep vendor id is not set */
#if defined(CONFIG_405EP)
pci_write_config_word
(
PCIDEVID_405GP
,
PCI_VENDOR_ID
,
0x1014
);
/* IBM */
/*
* on ppc405ep vendor/device id is not set
* The user manual says 0x1014 (IBM) / 0x0156 (405GP!)
* are the correct values.
*/
pci_write_config_word
(
PCIDEVID_405GP
,
PCI_VENDOR_ID
,
PCI_VENDOR_ID_IBM
);
pci_write_config_word
(
PCIDEVID_405GP
,
PCI_DEVICE_ID
,
PCI_DEVICE_ID_IBM_405GP
);
#endif
#endif
/*
/*
...
...
cpu/ppc4xx/cpu_init.c
浏览文件 @
5db1dcce
...
@@ -174,11 +174,6 @@ cpu_init_f (void)
...
@@ -174,11 +174,6 @@ cpu_init_f (void)
* Set EMAC noise filter bits
* Set EMAC noise filter bits
*/
*/
mtdcr
(
cpc0_epctl
,
CPC0_EPRCSR_E0NFE
|
CPC0_EPRCSR_E1NFE
);
mtdcr
(
cpc0_epctl
,
CPC0_EPRCSR_E0NFE
|
CPC0_EPRCSR_E1NFE
);
/*
* Enable the internal PCI arbiter
*/
mtdcr
(
cpc0_pci
,
mfdcr
(
cpc0_pci
)
|
CPC0_PCI_HOST_CFG_EN
|
CPC0_PCI_ARBIT_EN
);
#endif
/* CONFIG_405EP */
#endif
/* CONFIG_405EP */
#if defined(CONFIG_SYS_4xx_GPIO_TABLE)
#if defined(CONFIG_SYS_4xx_GPIO_TABLE)
...
...
include/common.h
浏览文件 @
5db1dcce
...
@@ -275,7 +275,8 @@ void pci_init_board(void);
...
@@ -275,7 +275,8 @@ void pci_init_board(void);
void
pciinfo
(
int
,
int
);
void
pciinfo
(
int
,
int
);
#if defined(CONFIG_PCI) && (defined(CONFIG_4xx) && !defined(CONFIG_AP1000))
#if defined(CONFIG_PCI) && (defined(CONFIG_4xx) && !defined(CONFIG_AP1000))
int
pci_pre_init
(
struct
pci_controller
*
);
int
pci_pre_init
(
struct
pci_controller
*
);
int
is_pci_host
(
struct
pci_controller
*
);
#endif
#endif
#if defined(CONFIG_PCI) && (defined(CONFIG_440) || defined(CONFIG_405EX))
#if defined(CONFIG_PCI) && (defined(CONFIG_440) || defined(CONFIG_405EX))
...
@@ -285,7 +286,6 @@ void pciinfo (int, int);
...
@@ -285,7 +286,6 @@ void pciinfo (int, int);
# if defined(CONFIG_SYS_PCI_MASTER_INIT)
# if defined(CONFIG_SYS_PCI_MASTER_INIT)
void
pci_master_init
(
struct
pci_controller
*
);
void
pci_master_init
(
struct
pci_controller
*
);
# endif
# endif
int
is_pci_host
(
struct
pci_controller
*
);
#if defined(CONFIG_440SPE) || \
#if defined(CONFIG_440SPE) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
defined(CONFIG_405EX)
defined(CONFIG_405EX)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录