From: Wolfgang Denk Date: Wed, 28 Jan 2009 13:07:35 +0100 Subject: [U-Boot] [PATCH 16/31] dtt: call dtt_init () conditional in init_sequence In-Reply-To: <498027EA.5070601@denx.de> References: <498027EA.5070601@denx.de> Message-ID: <20090128120735.2702D832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Heiko Schocher, In message <498027EA.5070601@denx.de> you wrote: > If CONFIG_SYS_DTT_BOARD_INIT is defined, dtt_init () is > not called in the init_sequence. > > Signed-off-by: Heiko Schocher > --- > include/dtt.h | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/include/dtt.h b/include/dtt.h > index 399b64a..1c8eda7 100644 > --- a/include/dtt.h > +++ b/include/dtt.h > @@ -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 -- 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.