Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
e037a4c2
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,发现更多精彩内容 >>
提交
e037a4c2
编写于
4月 29, 2008
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git+ssh://10.10.0.7/home/wd/git/u-boot/master
上级
707fa917
18ec19e4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
53 addition
and
22 deletion
+53
-22
post/board/lwmon/Makefile
post/board/lwmon/Makefile
+2
-2
post/board/lwmon5/sysmon.c
post/board/lwmon5/sysmon.c
+43
-14
post/board/lwmon5/watchdog.c
post/board/lwmon5/watchdog.c
+3
-2
post/board/netta/Makefile
post/board/netta/Makefile
+2
-2
post/cpu/mpc8xx/Makefile
post/cpu/mpc8xx/Makefile
+3
-2
未找到文件。
post/board/lwmon/Makefile
浏览文件 @
e037a4c2
...
...
@@ -20,10 +20,10 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
include
$(OBJTREE)/include/autoconf.mk
LIB
=
libpostlwmon.a
COBJS
=
sysmon.o
COBJS
-$(CONFIG_HAS_POST)
+
=
sysmon.o
include
$(TOPDIR)/post/rules.mk
post/board/lwmon5/sysmon.c
浏览文件 @
e037a4c2
...
...
@@ -32,9 +32,9 @@
* The test passes when all the following voltages and temperatures
* are within allowed ranges:
*
* Temperature
-40 .. +85
C
* +5V
+4.75 .. +5.25
V
* +5V standby
+4.75 .. +5.25
V
* Temperature
-40 .. +90
C
* +5V
+4.50 .. +5.50
V
* +5V standby
+3.50 .. +5.50
V
*
* LCD backlight is not enabled if temperature values are not within
* allowed ranges (-30 .. + 80). The brightness of backlite can be
...
...
@@ -60,6 +60,21 @@ extern int dspic_read(ushort reg);
#define RELOC(x) if (x != NULL) x = (void *) ((ulong) (x) + gd->reloc_off)
#define REG_TEMPERATURE 0x12BC
#define REG_VOLTAGE_5V 0x12CA
#define REG_VOLTAGE_5V_STANDBY 0x12C6
#define TEMPERATURE_MIN (-40)
/* degr. C */
#define TEMPERATURE_MAX (+90)
/* degr. C */
#define TEMPERATURE_DISPLAY_MIN (-35)
/* degr. C */
#define TEMPERATURE_DISPLAY_MAX (+85)
/* degr. C */
#define VOLTAGE_5V_MIN (+4500)
/* mV */
#define VOLTAGE_5V_MAX (+5500)
/* mV */
#define VOLTAGE_5V_STANDBY_MIN (+3500)
/* mV */
#define VOLTAGE_5V_STANDBY_MAX (+5500)
/* mV */
typedef
struct
sysmon_s
sysmon_t
;
typedef
struct
sysmon_table_s
sysmon_table_t
;
...
...
@@ -107,17 +122,31 @@ struct sysmon_table_s
static
sysmon_table_t
sysmon_table
[]
=
{
{
"Temperature"
,
" C"
,
&
sysmon_dspic
,
NULL
,
sysmon_backlight_disable
,
1
,
1
,
-
32768
,
32767
,
0xFFFF
,
0x8000
-
40
,
0x8000
+
85
,
0
,
0x8000
-
30
,
0x8000
+
80
,
0
,
0x12BC
},
{
"+ 5 V"
,
"V"
,
&
sysmon_dspic
,
NULL
,
NULL
,
100
,
1000
,
-
0x8000
,
0x7FFF
,
0xFFFF
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x12CA
},
{
"+ 5 V standby"
,
"V"
,
&
sysmon_dspic
,
NULL
,
NULL
,
100
,
1000
,
-
0x8000
,
0x7FFF
,
0xFFFF
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x12C6
},
{
"Temperature"
,
" C"
,
&
sysmon_dspic
,
NULL
,
sysmon_backlight_disable
,
1
,
1
,
-
32768
,
32767
,
0xFFFF
,
0x8000
+
TEMPERATURE_MIN
,
0x8000
+
TEMPERATURE_MAX
,
0
,
0x8000
+
TEMPERATURE_DISPLAY_MIN
,
0x8000
+
TEMPERATURE_DISPLAY_MAX
,
0
,
REG_TEMPERATURE
},
{
"+ 5 V"
,
"V"
,
&
sysmon_dspic
,
NULL
,
NULL
,
100
,
1000
,
-
0x8000
,
0x7FFF
,
0xFFFF
,
100
,
1000
,
0
,
0xFFFF
,
0xFFFF
,
VOLTAGE_5V_MIN
,
VOLTAGE_5V_MAX
,
0
,
VOLTAGE_5V_MIN
,
VOLTAGE_5V_MAX
,
0
,
REG_VOLTAGE_5V
},
{
"+ 5 V standby"
,
"V"
,
&
sysmon_dspic
,
NULL
,
NULL
,
100
,
1000
,
-
0x8000
,
0x7FFF
,
0xFFFF
,
100
,
1000
,
0
,
0xFFFF
,
0xFFFF
,
VOLTAGE_5V_STANDBY_MIN
,
VOLTAGE_5V_STANDBY_MAX
,
0
,
VOLTAGE_5V_STANDBY_MIN
,
VOLTAGE_5V_STANDBY_MAX
,
0
,
REG_VOLTAGE_5V_STANDBY
},
};
static
int
sysmon_table_size
=
sizeof
(
sysmon_table
)
/
sizeof
(
sysmon_table
[
0
]);
...
...
post/board/lwmon5/watchdog.c
浏览文件 @
e037a4c2
...
...
@@ -52,8 +52,9 @@ static void watchdog_magic_write(uint value)
int
sysmon1_post_test
(
int
flags
)
{
if
(
gpio_read_in_bit
(
CFG_GPIO_SYSMON_STATUS
))
{
/* 3.1. GPIO62 is low
if
(
gpio_read_in_bit
(
CFG_GPIO_SYSMON_STATUS
)
==
0
)
{
/*
* 3.1. GPIO62 is low
* Assuming system voltage failure.
*/
post_log
(
"Abnormal voltage detected (GPIO62)
\n
"
);
...
...
post/board/netta/Makefile
浏览文件 @
e037a4c2
...
...
@@ -20,10 +20,10 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
include
$(OBJTREE)/include/autoconf.mk
LIB
=
libpostnetta.a
COBJS
=
codec.o dsp.o
COBJS
-$(CONFIG_HAS_POST)
+
=
codec.o dsp.o
include
$(TOPDIR)/post/rules.mk
post/cpu/mpc8xx/Makefile
浏览文件 @
e037a4c2
...
...
@@ -20,10 +20,11 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
include
$(OBJTREE)/include/autoconf.mk
LIB
=
libpostmpc8xx.a
AOBJS
=
cache_8xx.o
COBJS
=
cache.o ether.o spr.o uart.o usb.o watchdog.o
AOBJS
-$(CONFIG_HAS_POST)
+
=
cache_8xx.o
COBJS
-$(CONFIG_HAS_POST)
+
=
cache.o ether.o spr.o uart.o usb.o watchdog.o
include
$(TOPDIR)/post/rules.mk
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录