Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
80f73b92
Commit
80f73b92
authored
15 years ago
by
Peter Tyser
Committed by
Wolfgang Denk
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
lwmon, lwmon5: Remove sysmon POST relocation fixups
Signed-off-by:
Peter Tyser
<
ptyser@xes-inc.com
>
parent
331ab60c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
post/board/lwmon/sysmon.c
+1
-16
1 addition, 16 deletions
post/board/lwmon/sysmon.c
post/board/lwmon5/sysmon.c
+1
-16
1 addition, 16 deletions
post/board/lwmon5/sysmon.c
with
2 additions
and
32 deletions
post/board/lwmon/sysmon.c
+
1
−
16
View file @
80f73b92
...
...
@@ -56,8 +56,6 @@ static int sysmon_temp_invalid = 0;
/* #define DEBUG */
#define RELOC(x) if (x != NULL) x = (void *) ((ulong) (x) + gd->reloc_off)
typedef
struct
sysmon_s
sysmon_t
;
typedef
struct
sysmon_table_s
sysmon_table_t
;
...
...
@@ -159,20 +157,7 @@ int sysmon_init_f (void)
void
sysmon_reloc
(
void
)
{
sysmon_t
**
l
;
sysmon_table_t
*
t
;
for
(
l
=
sysmon_list
;
*
l
;
l
++
)
{
RELOC
(
*
l
);
RELOC
((
*
l
)
->
init
);
RELOC
((
*
l
)
->
read
);
}
for
(
t
=
sysmon_table
;
t
<
sysmon_table
+
sysmon_table_size
;
t
++
)
{
RELOC
(
t
->
exec_before
);
RELOC
(
t
->
exec_after
);
RELOC
(
t
->
sysmon
);
}
/* Do nothing for now, sysmon_reloc() is required by the sysmon post */
}
static
char
*
sysmon_unit_value
(
sysmon_table_t
*
s
,
uint
val
)
...
...
This diff is collapsed.
Click to expand it.
post/board/lwmon5/sysmon.c
+
1
−
16
View file @
80f73b92
...
...
@@ -58,8 +58,6 @@ DECLARE_GLOBAL_DATA_PTR;
/* from dspic.c */
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
...
...
@@ -160,20 +158,7 @@ int sysmon_init_f (void)
void
sysmon_reloc
(
void
)
{
sysmon_t
**
l
;
sysmon_table_t
*
t
;
for
(
l
=
sysmon_list
;
*
l
;
l
++
)
{
RELOC
(
*
l
);
RELOC
((
*
l
)
->
init
);
RELOC
((
*
l
)
->
read
);
}
for
(
t
=
sysmon_table
;
t
<
sysmon_table
+
sysmon_table_size
;
t
++
)
{
RELOC
(
t
->
exec_before
);
RELOC
(
t
->
exec_after
);
RELOC
(
t
->
sysmon
);
}
/* Do nothing for now, sysmon_reloc() is required by the sysmon post */
}
static
char
*
sysmon_unit_value
(
sysmon_table_t
*
s
,
uint
val
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment