[U-Boot] [PATCH V7 1/3] Initial support for Marvell Orion5x SoC
Prafulla Wadaskar
prafulla at marvell.com
Thu Jun 10 21:37:52 CEST 2010
> -----Original Message-----
> From: u-boot-bounces at lists.denx.de
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Albert Aribaud
> Sent: Thursday, June 10, 2010 2:20 AM
> To: u-boot at 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 . .
More information about the U-Boot
mailing list