Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
47b1e3d7
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,发现更多精彩内容 >>
提交
47b1e3d7
编写于
3月 01, 2005
作者:
S
stroese
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update for esd boards dp405 and hub405
上级
e58cf2a0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
1665 addition
and
1603 deletion
+1665
-1603
CHANGELOG
CHANGELOG
+3
-0
board/esd/dp405/fpgadata.c
board/esd/dp405/fpgadata.c
+1599
-1600
board/esd/hub405/hub405.c
board/esd/hub405/hub405.c
+61
-3
include/configs/HUB405.h
include/configs/HUB405.h
+2
-0
未找到文件。
CHANGELOG
浏览文件 @
47b1e3d7
...
...
@@ -2,6 +2,9 @@
Changes for U-Boot 1.1.3:
======================================================================
* Patch by Stefan Roese, 01 March 2005:
Update for esd boards dp405 and hub405
* Add support for SRAM and 2 x Quad UARTs on INKA4x0 board
* Cleanup USB and partition defines
...
...
board/esd/dp405/fpgadata.c
浏览文件 @
47b1e3d7
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
board/esd/hub405/hub405.c
浏览文件 @
47b1e3d7
...
...
@@ -30,6 +30,47 @@
extern
void
lxt971_no_sleep
(
void
);
int
board_revision
(
void
)
{
unsigned
long
osrl_reg
;
unsigned
long
isr1l_reg
;
unsigned
long
tcr_reg
;
unsigned
long
value
;
/*
* Get version of HUB405 board from GPIO's
*/
/*
* Setup GPIO pin(s) (IRQ6/GPIO23)
*/
osrl_reg
=
in32
(
GPIO0_OSRH
);
isr1l_reg
=
in32
(
GPIO0_ISR1H
);
tcr_reg
=
in32
(
GPIO0_TCR
);
out32
(
GPIO0_OSRH
,
osrl_reg
&
~
0x00030000
);
/* output select */
out32
(
GPIO0_ISR1H
,
isr1l_reg
|
0x00030000
);
/* input select */
out32
(
GPIO0_TCR
,
tcr_reg
&
~
0x00000100
);
/* select input */
udelay
(
1000
);
/* wait some time before reading input */
value
=
in32
(
GPIO0_IR
)
&
0x00000100
;
/* get config bits */
/*
* Restore GPIO settings
*/
out32
(
GPIO0_OSRH
,
osrl_reg
);
/* output select */
out32
(
GPIO0_ISR1H
,
isr1l_reg
);
/* input select */
out32
(
GPIO0_TCR
,
tcr_reg
);
/* enable output driver for outputs */
if
(
value
&
0x00000100
)
{
/* Revision 1.1 or 1.2 detected */
return
1
;
}
/* Revision 1.0 */
return
0
;
}
int
board_early_init_f
(
void
)
{
/*
...
...
@@ -69,6 +110,8 @@ int misc_init_f (void)
int
misc_init_r
(
void
)
{
DECLARE_GLOBAL_DATA_PTR
;
volatile
unsigned
char
*
duart0_mcr
=
(
unsigned
char
*
)((
ulong
)
DUART0_BA
+
4
);
volatile
unsigned
char
*
duart1_mcr
=
(
unsigned
char
*
)((
ulong
)
DUART1_BA
+
4
);
volatile
unsigned
char
*
duart2_mcr
=
(
unsigned
char
*
)((
ulong
)
DUART2_BA
+
4
);
...
...
@@ -77,6 +120,7 @@ int misc_init_r (void)
unsigned
long
val
;
int
delay
,
flashcnt
;
char
*
str
;
char
hw_rev
[
4
];
/*
* Enable interrupts in exar duart mcr[3]
...
...
@@ -121,14 +165,14 @@ int misc_init_r (void)
*/
str
=
getenv
(
"bd_type"
);
/* this is only set on non prototype hardware */
if
(
str
!=
NULL
)
{
if
((
strcmp
(
str
,
"swch405"
)
==
0
)
||
(
strcmp
(
str
,
"hub405"
)
==
0
))
{
if
((
strcmp
(
str
,
"swch405"
)
==
0
)
||
(
(
!
strcmp
(
str
,
"hub405"
)
&&
(
gd
->
board_type
>=
1
))
))
{
unsigned
char
led_reg_default
=
0
;
str
=
getenv
(
"ap_pwr"
);
if
(
!
str
||
(
str
&&
(
str
[
0
]
==
'1'
)))
led_reg_default
=
0x04
|
0x02
;
/* U2_LED | AP_PWR */
/*
* Flash LEDs
on SWCH405
* Flash LEDs
*/
for
(
flashcnt
=
0
;
flashcnt
<
3
;
flashcnt
++
)
{
*
led_reg
=
led_reg_default
;
/* LED_A..D off */
...
...
@@ -150,6 +194,11 @@ int misc_init_r (void)
out32
(
GPIO0_OR
,
in32
(
GPIO0_OR
)
&
~
CFG_DUART_RST
);
/* set reset to low */
udelay
(
1000
);
/* wait 1ms */
/*
* Store hardware revision in environment for further processing
*/
sprintf
(
hw_rev
,
"1.%ld"
,
gd
->
board_type
);
setenv
(
"hw_rev"
,
hw_rev
);
return
(
0
);
}
...
...
@@ -159,6 +208,8 @@ int misc_init_r (void)
*/
int
checkboard
(
void
)
{
DECLARE_GLOBAL_DATA_PTR
;
unsigned
char
str
[
64
];
int
i
=
getenv_r
(
"serial#"
,
str
,
sizeof
(
str
));
...
...
@@ -170,7 +221,14 @@ int checkboard (void)
puts
(
str
);
}
putc
(
'\n'
);
if
(
getenv_r
(
"bd_type"
,
str
,
sizeof
(
str
))
!=
-
1
)
{
printf
(
" (%s"
,
str
);
}
else
{
puts
(
" (Missing bd_type!"
);
}
gd
->
board_type
=
board_revision
();
printf
(
", Rev 1.%ld)
\n
"
,
gd
->
board_type
);
/*
* Disable sleep mode in LXT971
...
...
include/configs/HUB405.h
浏览文件 @
47b1e3d7
...
...
@@ -42,6 +42,8 @@
#define CONFIG_SYS_CLK_FREQ 33330000
/* external frequency to pll */
#define CONFIG_BOARD_TYPES 1
/* support board types */
#define CONFIG_BAUDRATE 9600
#define CONFIG_BOOTDELAY 3
/* autoboot after 3 seconds */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录