> -----Original Message----- > From: u-boot-boun...@lists.denx.de > [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Albert Aribaud > Sent: Thursday, June 10, 2010 2:20 AM > To: u-boot@lists.denx.de > Subject: [U-Boot] [PATCH V7 1/3] Initial support for Marvell > Orion5x SoC > ...snip... > +/* > + * SOC specific misc init > + */ > +#if defined(CONFIG_ARCH_MISC_INIT) > +int arch_misc_init(void) > +{ > + u32 temp; > + > + /*CPU streaming & write allocate */ > + temp = readfr_extra_feature_reg(); > + temp &= ~(1 << 28); /* disable wr alloc */ > + writefr_extra_feature_reg(temp); > + > + temp = readfr_extra_feature_reg(); > + temp &= ~(1 << 29); /* streaming disabled */ > + writefr_extra_feature_reg(temp); > + > + /* L2Cache settings */ > + temp = readfr_extra_feature_reg(); > + /* Disable L2C pre fetch - Set bit 24 */ > + temp |= (1 << 24); > + /* enable L2C - Set bit 22 */ > + temp |= (1 << 22); > + writefr_extra_feature_reg(temp); > + > + icache_enable(); > + /* Change reset vector to address 0x0 */ > + temp = get_cr(); > + set_cr(temp & ~CR_V); > + > + /* Set CPIOs and MPPs - values provided by board > + include file */ > +/* > + writel(ORION5X_MPP_BASE+0x00, ORION5X_MPP0_7); > + writel(ORION5X_MPP_BASE+0x04, ORION5X_MPP8_15); > + writel(ORION5X_MPP_BASE+0x50, ORION5X_MPP16_23); > + writel(ORION5X_GPIO_BASE+0x04, ORION5X_GPIO_OUT_ENABLE); > +*/
Pls remove dead code, I think you need to enable it !! Regards.. Prafulla . . _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot