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

Igor Grinberg grinberg at compulab.co.il
Tue Oct 23 09:20:39 CEST 2012


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 at gmail.com>
> 
> Signed-off-by: Pali Rohár <pali.rohar at gmail.com>
> Cc: Ивайло Димитров <freemangordon at 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.


More information about the U-Boot mailing list