projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OMAP3: Fix timer handling to 1ms and CONFIG_SYS_HZ to 1000
[oweals/u-boot.git]
/
cpu
/
ppc4xx
/
40x_spd_sdram.c
diff --git
a/cpu/ppc4xx/40x_spd_sdram.c
b/cpu/ppc4xx/40x_spd_sdram.c
index 19c4f764e39031fe3a7046967c27193fe9daeb15..57861b3595a6d50a50102e9388e93bb9fe08ce4e 100644
(file)
--- a/
cpu/ppc4xx/40x_spd_sdram.c
+++ b/
cpu/ppc4xx/40x_spd_sdram.c
@@
-52,12
+52,12
@@
/*
* Set default values
*/
/*
* Set default values
*/
-#ifndef C
FG
_I2C_SPEED
-#define C
FG_I2C_SPEED
50000
+#ifndef C
ONFIG_SYS
_I2C_SPEED
+#define C
ONFIG_SYS_I2C_SPEED
50000
#endif
#endif
-#ifndef C
FG
_I2C_SLAVE
-#define C
FG_I2C_SLAVE
0xFE
+#ifndef C
ONFIG_SYS
_I2C_SLAVE
+#define C
ONFIG_SYS_I2C_SLAVE
0xFE
#endif
#define ONE_BILLION 1000000000
#endif
#define ONE_BILLION 1000000000
@@
-126,9
+126,9
@@
long int spd_sdram(int(read_spd)(uint addr))
int sdram0_pmit=0x07c00000;
#ifndef CONFIG_405EP /* not on PPC405EP */
int sdram0_pmit=0x07c00000;
#ifndef CONFIG_405EP /* not on PPC405EP */
- int sdram0_besr0
=
-1;
- int sdram0_besr1
=
-1;
- int sdram0_eccesr
=
-1;
+ int sdram0_besr0
=
-1;
+ int sdram0_besr1
=
-1;
+ int sdram0_eccesr
=
-1;
#endif
int sdram0_ecccfg;
#endif
int sdram0_ecccfg;
@@
-148,7
+148,7
@@
long int spd_sdram(int(read_spd)(uint addr))
int t_rc;
int min_cas;
int t_rc;
int min_cas;
- PPC4
05
_SYS_INFO sys_info;
+ PPC4
xx
_SYS_INFO sys_info;
unsigned long bus_period_x_10;
/*
unsigned long bus_period_x_10;
/*
@@
-163,7
+163,7
@@
long int spd_sdram(int(read_spd)(uint addr))
* Make sure I2C controller is initialized
* before continuing.
*/
* Make sure I2C controller is initialized
* before continuing.
*/
- i2c_init(C
FG_I2C_SPEED, CFG
_I2C_SLAVE);
+ i2c_init(C
ONFIG_SYS_I2C_SPEED, CONFIG_SYS
_I2C_SLAVE);
}
/* Make shure we are using SDRAM */
}
/* Make shure we are using SDRAM */