Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
7ed40117
Commit
7ed40117
authored
Apr 26, 2008
by
Wolfgang Denk
Browse files
Coding Style cleanup, update CHANGELOG
Signed-off-by:
Wolfgang Denk
<
wd@denx.de
>
parent
f9204e15
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
7ed40117
This diff is collapsed.
Click to expand it.
lib_generic/crc32.c
View file @
7ed40117
...
...
@@ -54,7 +54,7 @@ local void make_crc_table()
{
uint32_t
c
;
int
n
,
k
;
uLong
poly
;
/* polynomial exclusive-or pattern */
uLong
poly
;
/* polynomial exclusive-or pattern */
/* terms of polynomial defining this crc (except x^32): */
static
const
Byte
p
[]
=
{
0
,
1
,
2
,
4
,
5
,
7
,
8
,
10
,
11
,
12
,
16
,
22
,
23
,
26
};
...
...
@@ -220,7 +220,7 @@ uint32_t ZEXPORT crc32_wd (uint32_t crc,
WATCHDOG_RESET
();
}
#else
crc
=
crc32
(
crc
,
buf
,
len
);
crc
=
crc32
(
crc
,
buf
,
len
);
#endif
return
crc
;
...
...
post/board/lwmon5/sysmon.c
View file @
7ed40117
...
...
@@ -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 .. +85 C
* +5V
+4.75 .. +5.25 V
* +5V standby
+4.75 .. +5.25 V
*
* LCD backlight is not enabled if temperature values are not within
* allowed ranges (-30 .. + 80). The brightness of backlite can be
...
...
@@ -107,17 +107,17 @@ 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
},
{
"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"
,
"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
},
{
"+ 5 V standby"
,
"V"
,
&
sysmon_dspic
,
NULL
,
NULL
,
100
,
1000
,
-
0x8000
,
0x7FFF
,
0xFFFF
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x12C6
},
};
static
int
sysmon_table_size
=
sizeof
(
sysmon_table
)
/
sizeof
(
sysmon_table
[
0
]);
...
...
@@ -156,8 +156,7 @@ static char *sysmon_unit_value (sysmon_table_t *s, uint val)
int
decimal
,
frac
;
int
unit_val
;
unit_val
=
s
->
unit_min
+
(
s
->
unit_max
-
s
->
unit_min
)
*
val
/
s
->
val_mask
;
unit_val
=
s
->
unit_min
+
(
s
->
unit_max
-
s
->
unit_min
)
*
val
/
s
->
val_mask
;
if
(
val
==
-
1
)
return
"I/O ERROR"
;
...
...
@@ -241,5 +240,4 @@ int sysmon_post_test (int flags)
return
res
;
}
#endif
/* CONFIG_POST & CFG_POST_SYSMON */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment