[PATCH 4/8] ARM: PXA: Z2: Add mtd partition with logo

Marek Vasut marek.vasut at gmail.com
Fri Mar 11 16:39:36 EST 2011


On Friday 11 March 2011 11:23:39 Vasily Khoruzhick wrote:
> Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>

I guess you can rather supply the MTD layout on kernel command line (see 
Drivers/MTD).

> ---
>  arch/arm/mach-pxa/z2.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c
> index bffb920..aec87f7 100644
> --- a/arch/arm/mach-pxa/z2.c
> +++ b/arch/arm/mach-pxa/z2.c
> @@ -169,6 +169,10 @@ static struct mtd_partition z2_flash_parts[] = {
>  	}, {
>  		.name	= "Flash",
>  		.offset	= 0x60000,
> +		.size	= 0x780000,
> +	}, {
> +		.name	= "U-Boot Logo",
> +		.offset = 0x7e0000,
>  		.size	= MTDPART_SIZ_FULL,
>  	},
>  };



More information about the linux-arm-kernel mailing list