[U-Boot] [PATCH v1] ppc/P1_P2_RDB: NAND Boot Support

Kumar Gala galak at kernel.crashing.org
Thu Oct 8 05:28:24 CEST 2009


On Oct 5, 2009, at 6:46 AM, Dipen Dudhat wrote:

> +void board_init_f(ulong bootflag)
> +{
> +	uint plat_ratio, bus_clk, sys_clk;
> +	volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
> +	volatile ccsr_gpio_t *pgpio = (void *) 
> (CONFIG_SYS_MPC85xx_GPIO_ADDR);
> +	uint val, temp, sysclk_mask;
> +
> +	val = pgpio->gpdat;
> +	sysclk_mask = val & SYSCLK_MASK;
> +	temp = val & BOARDREV_MASK;
> +	if (temp == BOARDREV_C) {
> +		if(sysclk_mask == 0)
> +			sys_clk = SYSCLK_66;
> +		else
> +			sys_clk = SYSCLK_100;
> +	} else if (temp == BOARDREV_B) {
> +		if(sysclk_mask == 0)
> +			sys_clk = SYSCLK_66;
> +		else
> +			sys_clk = SYSCLK_50;
> +	}
> +	

Fix the whitespace above.

> +	plat_ratio = gur->porpllsr & 0x0000003e;

- k


More information about the U-Boot mailing list