Skip to contentSkip to conversation

i2c, dtt: move dtt_init () to board_init_r ()

PATCH New Heiko Schocher 1 participant 2 messages Feb 25, 2009 – Mar 2, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c, dtt: move dtt_init () to board_init_r ()

it is not necessary to init the DTTs so early,
so move this init to board_init_r ().

---
 lib_ppc/board.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
lib_ppc/board.c +3 -3
index f1b62f5..45c87d6 100644
@@ -339,9 +339,6 @@ init_fnc_t *init_sequence[] = {
 #if defined(CONFIG_HARD_SPI)
 	init_func_spi,
 #endif
-#if defined(CONFIG_DTT)		/* Digital Thermometers and Thermostats */
-	dtt_init,
-#endif
 #ifdef CONFIG_POST
 	post_init_f,
 #endif
@@ -993,6 +990,9 @@ void board_init_r (gd_t *id, ulong dest_addr)
 
 	WATCHDOG_RESET ();
 
+#if defined(CONFIG_DTT)		/* Digital Thermometers and Thermostats */
+	dtt_init ();
+#endif
 #if defined(CONFIG_CMD_SCSI)
 	WATCHDOG_RESET ();
 	puts ("SCSI:  ");
Signature · 5 lines
1.6.0.6

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
#1 lore raw

PATCH 1/1 i2c, dtt: move dtt_init () to board_init_r ()

Hello Heiko,

Quoted 4 lines · Heiko Schocher

it is not necessary to init the DTTs so early,
so move this init to board_init_r ().

Applied to u-boot-i2c.git

bye
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany