Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
4f93f8b1
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,发现更多精彩内容 >>
提交
4f93f8b1
编写于
1月 23, 2008
作者:
B
Becky Bruce
提交者:
Jon Loeliger
1月 24, 2008
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
86xx: Add reginfo command
Signed-off-by:
N
Becky Bruce
<
becky.bruce@freescale.com
>
上级
ddcebcb6
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
34 addition
and
3 deletion
+34
-3
common/cmd_reginfo.c
common/cmd_reginfo.c
+8
-2
cpu/mpc86xx/cpu.c
cpu/mpc86xx/cpu.c
+23
-1
include/configs/MPC8610HPCD.h
include/configs/MPC8610HPCD.h
+1
-0
include/configs/MPC8641HPCN.h
include/configs/MPC8641HPCN.h
+1
-0
include/configs/sbc8641d.h
include/configs/sbc8641d.h
+1
-0
未找到文件。
common/cmd_reginfo.c
浏览文件 @
4f93f8b1
...
...
@@ -31,6 +31,8 @@
#include <mpc5xx.h>
#elif defined (CONFIG_MPC5200)
#include <mpc5xxx.h>
#elif defined (CONFIG_MPC86xx)
extern
void
mpc86xx_reginfo
(
void
);
#endif
int
do_reginfo
(
cmd_tbl_t
*
cmdtp
,
int
flag
,
int
argc
,
char
*
argv
[])
...
...
@@ -329,14 +331,18 @@ int do_reginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
*
(
volatile
ulong
*
)
MPC5XXX_SDRAM_CS0CFG
);
printf
(
"
\t
SDRAMCS1: %08X
\n
"
,
*
(
volatile
ulong
*
)
MPC5XXX_SDRAM_CS1CFG
);
#endif
/* CONFIG_MPC5200 */
#elif defined(CONFIG_MPC86xx)
mpc86xx_reginfo
();
#endif
/* CONFIG_MPC86xx */
return
0
;
}
/**************************************************/
#if ( defined(CONFIG_8xx) || defined(CONFIG_405GP) || \
defined(CONFIG_405EP) || defined(CONFIG_MPC5200) ) && \
defined(CONFIG_405EP) || defined(CONFIG_MPC5200) || \
defined(CONFIG_MPC86xx)) && \
defined(CONFIG_CMD_REGINFO)
U_BOOT_CMD
(
...
...
cpu/mpc86xx/cpu.c
浏览文件 @
4f93f8b1
...
...
@@ -27,6 +27,7 @@
#include <command.h>
#include <asm/cache.h>
#include <mpc86xx.h>
#include <asm/fsl_law.h>
#if defined(CONFIG_OF_FLAT_TREE)
#include <ft_build.h>
...
...
@@ -324,6 +325,27 @@ ft_cpu_setup(void *blob, bd_t *bd)
if
(
p
!=
NULL
)
memcpy
(
p
,
bd
->
bi_enet3addr
,
6
);
#endif
#endif
/* CONFIG_OF_FLAT_TREE */
/*
* Print out the state of various machine registers.
* Currently prints out LAWs and BR0/OR0
*/
void
mpc86xx_reginfo
(
void
)
{
immap_t
*
immap
=
(
immap_t
*
)
CFG_IMMR
;
ccsr_lbc_t
*
lbc
=
&
immap
->
im_lbc
;
print_laws
();
printf
(
"Local Bus Controller Registers
\n
"
"
\t
BR0
\t
0x%08X
\t
OR0
\t
0x%08X
\n
"
,
in_be32
(
&
lbc
->
br0
),
in_be32
(
&
lbc
->
or0
));
printf
(
"
\t
BR1
\t
0x%08X
\t
OR1
\t
0x%08X
\n
"
,
in_be32
(
&
lbc
->
br1
),
in_be32
(
&
lbc
->
or1
));
printf
(
"
\t
BR2
\t
0x%08X
\t
OR2
\t
0x%08X
\n
"
,
in_be32
(
&
lbc
->
br2
),
in_be32
(
&
lbc
->
or2
));
printf
(
"
\t
BR3
\t
0x%08X
\t
OR3
\t
0x%08X
\n
"
,
in_be32
(
&
lbc
->
br3
),
in_be32
(
&
lbc
->
or3
));
printf
(
"
\t
BR4
\t
0x%08X
\t
OR4
\t
0x%08X
\n
"
,
in_be32
(
&
lbc
->
br4
),
in_be32
(
&
lbc
->
or4
));
printf
(
"
\t
BR5
\t
0x%08X
\t
OR5
\t
0x%08X
\n
"
,
in_be32
(
&
lbc
->
br5
),
in_be32
(
&
lbc
->
or5
));
printf
(
"
\t
BR6
\t
0x%08X
\t
OR6
\t
0x%08X
\n
"
,
in_be32
(
&
lbc
->
br6
),
in_be32
(
&
lbc
->
or6
));
printf
(
"
\t
BR7
\t
0x%08X
\t
OR7
\t
0x%08X
\n
"
,
in_be32
(
&
lbc
->
br7
),
in_be32
(
&
lbc
->
or7
));
}
#endif
include/configs/MPC8610HPCD.h
浏览文件 @
4f93f8b1
...
...
@@ -315,6 +315,7 @@
#define CONFIG_NET_MULTI
#define CONFIG_CMD_NET
#define CONFIG_PCI_PNP
/* do pci plug-and-play */
#define CONFIG_CMD_REGINFO
#define CONFIG_ULI526X
#ifdef CONFIG_ULI526X
...
...
include/configs/MPC8641HPCN.h
浏览文件 @
4f93f8b1
...
...
@@ -537,6 +537,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
#define CONFIG_CMD_PING
#define CONFIG_CMD_I2C
#define CONFIG_CMD_REGINFO
#if defined(CFG_RAMBOOT)
#undef CONFIG_CMD_ENV
...
...
include/configs/sbc8641d.h
浏览文件 @
4f93f8b1
...
...
@@ -480,6 +480,7 @@
#include <config_cmd_default.h>
#define CONFIG_CMD_PING
#define CONFIG_CMD_I2C
#define CONFIG_CMD_REGINFO
#if defined(CONFIG_PCI)
#define CONFIG_CMD_PCI
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录