diff options
author | Heiko Schocher <hs@denx.de> | 2009-02-24 11:30:30 +0100 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2009-03-05 18:21:06 -0600 |
commit | db1d72afd77287bc8577210f3f71ab249dcf146f (patch) | |
tree | 4c41a87769f39e37c9973d0ad449eeec58f5fea7 | |
parent | 5b0055547f0246908b79cc300170d87380b69e18 (diff) | |
download | u-boot-imx-db1d72afd77287bc8577210f3f71ab249dcf146f.zip u-boot-imx-db1d72afd77287bc8577210f3f71ab249dcf146f.tar.gz u-boot-imx-db1d72afd77287bc8577210f3f71ab249dcf146f.tar.bz2 |
i2c, dtt: move dtt_init () to board_init_r ()
In case where a board not uses CONFIG_POST, it is not
necessary to init the DTTs when running from flash.
Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
-rw-r--r-- | lib_ppc/board.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c index 3bcfb45..375b091 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -339,10 +339,10 @@ init_fnc_t *init_sequence[] = { #if defined(CONFIG_HARD_SPI) init_func_spi, #endif +#ifdef CONFIG_POST #if defined(CONFIG_DTT) /* Digital Thermometers and Thermostats */ dtt_init, #endif -#ifdef CONFIG_POST post_init_f, #endif INIT_FUNC_WATCHDOG_RESET @@ -1072,6 +1072,9 @@ void board_init_r (gd_t *id, ulong dest_addr) WATCHDOG_RESET (); +#if defined(CONFIG_DTT) && !defined(CONFIG_POST) + dtt_init (); +#endif #if defined(CONFIG_CMD_SCSI) WATCHDOG_RESET (); puts ("SCSI: "); |