mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 01:51:33 +00:00
lwmon, lwmon5: Remove sysmon POST relocation fixups
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
This commit is contained in:
parent
331ab60c4a
commit
80f73b92a1
2 changed files with 2 additions and 32 deletions
|
@ -56,8 +56,6 @@ static int sysmon_temp_invalid = 0;
|
||||||
|
|
||||||
/* #define DEBUG */
|
/* #define DEBUG */
|
||||||
|
|
||||||
#define RELOC(x) if (x != NULL) x = (void *) ((ulong) (x) + gd->reloc_off)
|
|
||||||
|
|
||||||
typedef struct sysmon_s sysmon_t;
|
typedef struct sysmon_s sysmon_t;
|
||||||
typedef struct sysmon_table_s sysmon_table_t;
|
typedef struct sysmon_table_s sysmon_table_t;
|
||||||
|
|
||||||
|
@ -159,20 +157,7 @@ int sysmon_init_f (void)
|
||||||
|
|
||||||
void sysmon_reloc (void)
|
void sysmon_reloc (void)
|
||||||
{
|
{
|
||||||
sysmon_t ** l;
|
/* Do nothing for now, sysmon_reloc() is required by the sysmon post */
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *sysmon_unit_value (sysmon_table_t *s, uint val)
|
static char *sysmon_unit_value (sysmon_table_t *s, uint val)
|
||||||
|
|
|
@ -58,8 +58,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||||
/* from dspic.c */
|
/* from dspic.c */
|
||||||
extern int dspic_read(ushort reg);
|
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_TEMPERATURE 0x12BC
|
||||||
#define REG_VOLTAGE_5V 0x12CA
|
#define REG_VOLTAGE_5V 0x12CA
|
||||||
#define REG_VOLTAGE_5V_STANDBY 0x12C6
|
#define REG_VOLTAGE_5V_STANDBY 0x12C6
|
||||||
|
@ -160,20 +158,7 @@ int sysmon_init_f (void)
|
||||||
|
|
||||||
void sysmon_reloc (void)
|
void sysmon_reloc (void)
|
||||||
{
|
{
|
||||||
sysmon_t ** l;
|
/* Do nothing for now, sysmon_reloc() is required by the sysmon post */
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *sysmon_unit_value (sysmon_table_t *s, uint val)
|
static char *sysmon_unit_value (sysmon_table_t *s, uint val)
|
||||||
|
|
Loading…
Add table
Reference in a new issue