From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 16 Nov 2015 12:02:05 +0100 Subject: [U-Boot] [PATCH 09/17] powerpc/km8321: define CONFIG_SYS_DDRCDR In-Reply-To: <1447426768-23226-10-git-send-email-valentin.longchamp@keymile.com> References: <1447426768-23226-1-git-send-email-valentin.longchamp@keymile.com> <1447426768-23226-10-git-send-email-valentin.longchamp@keymile.com> Message-ID: <5649B7AD.5060408@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 Hello valentin, Am 13.11.2015 um 15:59 schrieb Valentin Longchamp: > On the km8321 boards is CONFIG_SYS_DDRCDR not defined, which leads to > the DDRCDR not being configured at startup and still containing the > reset value. > > The required settings for our km8321 hardware designs are different than > the reset value and must be set with CONFIG_SYS_DDRCDR, that is used > by mpc83xx's cpu_init_f function at early CPU initialization. > > Signed-off-by: Valentin Longchamp > --- > > include/configs/km/km8321-common.h | 6 ++++++ > 1 file changed, 6 insertions(+) Reviewed-by: Heiko Schocher bye, Heiko > > diff --git a/include/configs/km/km8321-common.h b/include/configs/km/km8321-common.h > index 058b0ab..6f21c05 100644 > --- a/include/configs/km/km8321-common.h > +++ b/include/configs/km/km8321-common.h > @@ -65,6 +65,12 @@ > HRCWH_BIG_ENDIAN | \ > HRCWH_LALE_NORMAL) > > +#define CONFIG_SYS_DDRCDR (\ > + DDRCDR_EN | \ > + DDRCDR_PZ_NOMZ | \ > + DDRCDR_NZ_NOMZ | \ > + DDRCDR_M_ODR) > + > #define CONFIG_SYS_DDR_CS0_BNDS 0x0000007f > #define CONFIG_SYS_DDR_SDRAM_CFG (SDRAM_CFG_SDRAM_TYPE_DDR2 | \ > SDRAM_CFG_32_BE | \ > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany