On 07/18/11 13:19, Chander Kashyap wrote:

> Origen board is based upon S5PV310 SoC which is similiar to
> S5PC210 SoC.
>
> Signed-off-by: Chander Kashyap <chander.kash...@linaro.org>
> ---
>  Changes for v2:
>       - None
>  Changes for v3:
>       - Board entry added Alphabetically in boards.cfg
>       - Used get_Ram_size function to calculate ram size

[...]

> diff --git a/board/samsung/origen/origen.c b/board/samsung/origen/origen.c
> new file mode 100644
> index 0000000..6dd1709
> --- /dev/null
> +++ b/board/samsung/origen/origen.c

[...]

> +
> +int board_init(void)
> +{
> +     gpio1 = (struct s5pc210_gpio_part1 *) S5PC210_GPIO_PART1_BASE;
> +     gpio2 = (struct s5pc210_gpio_part2 *) S5PC210_GPIO_PART2_BASE;
> +
> +     gd->bd->bi_arch_number = MACH_TYPE_ORIGEN;

This should be done in the board config file.
Please, see the CONFIG_MACH_TYPE in the U-Boot documentation (README file).

[...]

> diff --git a/include/configs/origen.h b/include/configs/origen.h
> new file mode 100644
> index 0000000..441b311
> --- /dev/null
> +++ b/include/configs/origen.h

[...]

> +/* MACH_TYPE_ORIGEN macro will be removed once added to mach-types */
> +#define MACH_TYPE_ORIGEN             3455

#define CONFIG_MACH_TYPE    MACH_TYPE_ORIGEN


-- 
Regards,
Igor.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to