[U-Boot] [PATCH v4 5/5] New board support: Nokia RX-51 aka N900

Igor Grinberg
2012-10-23T07:20:39Z

Hi Pali Roh?r,

On 10/19/12 14:00, Pali Roh?r wrote:
> This patch adding support for new board Nokia RX-51 (N900).
>
> Based on previous work by: Alistair Buxton <a.j.buxton@gmail.com>
>
> Signed-off-by: Pali Roh?r <pali.rohar@gmail.com>
> Cc: ?????? ???????? <freemangordon@abv.bg>
> ---

[...]

> diff --git a/board/nokia/rx51/rx51.c b/board/nokia/rx51/rx51.c
> new file mode 100644
> index 0000000..60446cb
> --- /dev/null
> +++ b/board/nokia/rx51/rx51.c

[...]

> +/*
> + * Routine: board_init
> + * Description: Early hardware init.
> + */
> +int board_init(void)
> +{
> + gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
> + /* board id for Linux */
> + gd->bd->bi_arch_number = MACH_TYPE_NOKIA_RX51;

This should be specified in the board config file
(see CONFIG_MACH_TYPE in README), unless, you have multiple
board types supported in the same board file/binary
(which does not look like the case here) and it is runtime
detectable.

> + /* boot param addr */
> + gd->bd->bi_boot_params = OMAP34XX_SDRC_CS0 + 0x100;
> +
> + return 0;
> +}

[...]

--
Regards,
Igor.