summaryrefslogtreecommitdiff
path: root/post/board/lwmon5/sysmon.c
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-09-21 11:20:34 -0500
committerWolfgang Denk <wd@denx.de>2009-10-03 10:17:56 +0200
commit80f73b92a19129854876ec3f1aef531a09e86d2d (patch)
treed21bec50a6078b66010aa8b6100f5f0909bbcfd6 /post/board/lwmon5/sysmon.c
parent331ab60c4a418c39e5b1a05d4648a4155d0ad13e (diff)
downloadu-boot-imx-80f73b92a19129854876ec3f1aef531a09e86d2d.zip
u-boot-imx-80f73b92a19129854876ec3f1aef531a09e86d2d.tar.gz
u-boot-imx-80f73b92a19129854876ec3f1aef531a09e86d2d.tar.bz2
lwmon, lwmon5: Remove sysmon POST relocation fixups
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'post/board/lwmon5/sysmon.c')
-rw-r--r--post/board/lwmon5/sysmon.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/post/board/lwmon5/sysmon.c b/post/board/lwmon5/sysmon.c
index aef5bd0..9c49d0e 100644
--- a/post/board/lwmon5/sysmon.c
+++ b/post/board/lwmon5/sysmon.c
@@ -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)