mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Alexander Shiyan <shc_work@mail.ru>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] ARM: pcm038: Fix partition size definitions
Date: Tue, 11 Jun 2013 17:26:14 +0200	[thread overview]
Message-ID: <20130611152614.GO32299@pengutronix.de> (raw)
In-Reply-To: <1370767208-22789-1-git-send-email-shc_work@mail.ru>

On Sun, Jun 09, 2013 at 12:40:08PM +0400, Alexander Shiyan wrote:
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>

Applied, though I really had liked some hint what was wrong with the
partition sizes.

Sascha

> ---
>  arch/arm/boards/pcm038/pcm038.c | 18 ++++++++----------
>  1 file changed, 8 insertions(+), 10 deletions(-)
> 
> diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
> index 372aea5..49677c2 100644
> --- a/arch/arm/boards/pcm038/pcm038.c
> +++ b/arch/arm/boards/pcm038/pcm038.c
> @@ -332,22 +332,20 @@ static int pcm038_devices_init(void)
>  
>  	switch (bootsource_get()) {
>  	case BOOTSOURCE_NAND:
> -		devfs_add_partition("nand0", 0x00000, 0x80000,
> -					DEVFS_PARTITION_FIXED, "self_raw");
> +		devfs_add_partition("nand0", 0, SZ_512K,
> +				    DEVFS_PARTITION_FIXED, "self_raw");
>  		dev_add_bb_dev("self_raw", "self0");
> -
> -		devfs_add_partition("nand0", 0x80000, 0x100000,
> -					DEVFS_PARTITION_FIXED, "env_raw");
> +		devfs_add_partition("nand0", SZ_512K, SZ_128K,
> +				    DEVFS_PARTITION_FIXED, "env_raw");
>  		dev_add_bb_dev("env_raw", "env0");
>  		envdev = "NAND";
>  		break;
>  	default:
> -		devfs_add_partition("nor0", 0x00000, 0x80000,
> -					DEVFS_PARTITION_FIXED, "self0");
> -		devfs_add_partition("nor0", 0x80000, 0x100000,
> -					DEVFS_PARTITION_FIXED, "env0");
> +		devfs_add_partition("nor0", 0, SZ_512K,
> +				    DEVFS_PARTITION_FIXED, "self0");
> +		devfs_add_partition("nor0", SZ_512K, SZ_128K,
> +				    DEVFS_PARTITION_FIXED, "env0");
>  		protect_file("/dev/env0", 1);
> -
>  		envdev = "NOR";
>  	}
>  
> -- 
> 1.8.1.5
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

      reply	other threads:[~2013-06-11 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-09  8:40 Alexander Shiyan
2013-06-11 15:26 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130611152614.GO32299@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=shc_work@mail.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox