[U-Boot-Users] [PATCH 1/2] mpc85xx: Add support for SBC8548

Kumar Gala galak at kernel.crashing.org
Thu Dec 13 05:20:10 CET 2007


Missing updates to MAKEALL

[snip]

> +
> +typedef struct epld_reg {
> +	u_char bd_rev;		/* Board revision */
> +} epld_reg_t;

seems over kill for the one usage below.

>
> +
> +unsigned int get_board_rev(void)
> +{
> +	volatile epld_reg_t *epld = (epld_reg_t *)CFG_BD_REV;
> +
> +	return ((epld->bd_rev) >> 4);
> +}
> +
> +#if defined(CONFIG_OF_BOARD_SETUP)
> +void
> +ft_board_setup(void *blob, bd_t *bd)
> +{
> +	ft_cpu_setup(blob, bd);

PCI of setup code?

>
> +}
> +#endif
> +

- k




More information about the U-Boot mailing list