[U-Boot] [PATCH 02/31] iMX28: Add basic support for DENX M28EVK board

Igor Grinberg
2011-09-09T07:13:14Z

On 09/08/2011 11:42 PM, Marek Vasut wrote:
> This contains support for booting the board and output via DUART.
>
> Signed-off-by: Marek Vasut<marek.vasut@gmail.com>
> Cc: Stefano Babic<sbabic@denx.de>
> Cc: Wolfgang Denk<wd@denx.de>
> Cc: Detlev Zundel<dzu@denx.de>
> ---

[...]

> diff --git a/board/denx/m28evk/m28evk.c b/board/denx/m28evk/m28evk.c
> new file mode 100644
> index 0000000..5f4f787
> --- /dev/null
> +++ b/board/denx/m28evk/m28evk.c

[...]

> +
> +int board_init(void)
> +{
> + /* Will change it for MX28 EVK later */
> + gd->bd->bi_arch_number = CONFIG_M28_MACHID;

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

> + /* Adress of boot parameters */
> + gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
> +
> + return 0;
> +}

[...]

--
Regards,
Igor.