Skip to contentSkip to conversation

dtt: call dtt_init () conditional in init_sequence

PATCH New Heiko Schocher 2 participants 2 messages Jan 28, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 16/31 dtt: call dtt_init () conditional in init_sequence

If CONFIG_SYS_DTT_BOARD_INIT is defined, dtt_init () is not called in the init_sequence.

---
 include/dtt.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/dtt.h +2 -0
index 399b64a..1c8eda7 100644
@@ -36,7 +36,9 @@
     defined(CONFIG_DTT_LM75)	|| \
     defined(CONFIG_DTT_LM81)
 
+#ifndef CONFIG_SYS_DTT_BOARD_INIT
 #define CONFIG_DTT				/* We have a DTT */
+#endif
 
 #ifndef CONFIG_DTT_ADM1021
 #define DTT_COMMERCIAL_MAX_TEMP	70		/* 0 - +70 C */
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 16/31 dtt: call dtt_init () conditional in init_sequence

Dear Heiko Schocher,

Quoted 13 lines · In message <[email protected]> you wrote:

If CONFIG_SYS_DTT_BOARD_INIT is defined, dtt_init () is not called in the init_sequence.

---
 include/dtt.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/dtt.h +0 -0
index 399b64a..1c8eda7 100644

include/dtt.h line 41

Quoted 6 lines
include/dtt.h +2 -0
@@ -36,7 +36,9 @@
     defined(CONFIG_DTT_LM75)	|| \
     defined(CONFIG_DTT_LM81)
 
+#ifndef CONFIG_SYS_DTT_BOARD_INIT
 #define CONFIG_DTT				/* We have a DTT */
+#endif

This seems the wrong place and the wrong way to acchieve what you probably are trying to do.

Actually I'm not even sure what you are trying to do, or why.

Please elucidate.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Another megabytes the dust.