Re: [PATCH v2 4/4] phycore-am335x: Added bbu nand xloadslots handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 15, 2014 at 11:41:08AM +0200, Wadim Egorov wrote:
> Added bbu nand xloadslots handler to phycore-am335x.
> 
> Signed-off-by: Wadim Egorov <w.egorov@xxxxxxxxx>
> ---
> v2:
>   - changed method to pass device files
> ---
>  arch/arm/boards/phytec-phycore-am335x/board.c |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/boards/phytec-phycore-am335x/board.c b/arch/arm/boards/phytec-phycore-am335x/board.c
> index 59de42b..76782d4 100644
> --- a/arch/arm/boards/phytec-phycore-am335x/board.c
> +++ b/arch/arm/boards/phytec-phycore-am335x/board.c
> @@ -48,6 +48,13 @@ static struct omap_barebox_part pcm051_barebox_part = {
>  	.nor_size = SZ_512K,
>  };
>  
> +char *xloadslots[] = {
maybe change this to const?

> +	"/dev/nand0.xload.bb",
> +	"/dev/nand0.xload_backup1.bb",
> +	"/dev/nand0.xload_backup2.bb",
> +	"/dev/nand0.xload_backup3.bb"
> +};
> +
>  static int pcm051_devices_init(void)
>  {
>  	if (!of_machine_is_compatible("phytec,pcm051"))
> @@ -69,6 +76,8 @@ static int pcm051_devices_init(void)
>  	armlinux_set_architecture(MACH_TYPE_PCM051);
>  
>  	am33xx_bbu_spi_nor_mlo_register_handler("MLO.spi", "/dev/m25p0.xload");
> +	am33xx_bbu_nand_xloadslots_register_handler("xloadslots",
> +		xloadslots, ARRAY_SIZE(xloadslots));
>  

- Alex

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux