public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mtd/dataflash.c: fix a problem with the last partition
@ 2008-10-22 13:11 Ilko Iliev
  2008-10-27 14:30 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 5+ messages in thread
From: Ilko Iliev @ 2008-10-22 13:11 UTC (permalink / raw)
  To: u-boot

This patch fix the problem that only the [NB_DATAFLASH_AREA -1] 
dataflash partition  can be defined to use the area to the end of 
dataflash size.
Now it is possible to have only one dataflash partition from 0 to the 
end of of dataflash size.

Signed-off-by: Ilko Iliev <iliev@ronetix.at>


index 201e518..43746e7 100644
--- a/drivers/mtd/dataflash.c
+++ b/drivers/mtd/dataflash.c
@@ -131,7 +131,7 @@ int AT91F_DataflashInit (void)
                        break;
                }
                /* set the last area end to the dataflash size*/
-               area_list[NB_DATAFLASH_AREA -1].end =
+               dataflash_info[i].end_address =
                                (dataflash_info[i].Device.pages_number *
                                dataflash_info[i].Device.pages_size)-1;

@@ -146,7 +146,7 @@ int AT91F_DataflashInit (void)
                                if(area_list[part].end == 0xffffffff) {
                                        
dataflash_info[i].Device.area_list[j].end =
                                                
dataflash_info[i].end_address +
-                                               dataflash_info  
[i].logical_address;
+                                               
dataflash_info[i].logical_address;
                                        last_part = 1;
                                } else {
                                        
dataflash_info[i].Device.area_list[j].end =


-- 
Mit freundlichen Gr??en/With best regards,
Ilko Iliev
Ronetix Development Tools GmbH
CPU Modules, JTAG/BDM Emulators and Flash Programmers
Waidhausenstrasse 13/5, 1140 Vienna, Austria
E-Mail: iliev at ronetix.at; Web: www.ronetix.at

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] mtd/dataflash.c: fix a problem with the last partition
  2008-10-22 13:11 [U-Boot] [PATCH] mtd/dataflash.c: fix a problem with the last partition Ilko Iliev
@ 2008-10-27 14:30 ` Jean-Christophe PLAGNIOL-VILLARD
  2008-10-27 15:46   ` Ilko Iliev
  0 siblings, 1 reply; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-10-27 14:30 UTC (permalink / raw)
  To: u-boot

On 15:11 Wed 22 Oct     , Ilko Iliev wrote:
> This patch fix the problem that only the [NB_DATAFLASH_AREA -1] 
> dataflash partition  can be defined to use the area to the end of 
> dataflash size.
> Now it is possible to have only one dataflash partition from 0 to the 
> end of of dataflash size.
> 
> Signed-off-by: Ilko Iliev <iliev@ronetix.at>
> 
you patch is corrupted by your mailler
please use git-send-email instead

Best Regards,
J.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] mtd/dataflash.c: fix a problem with the last partition
  2008-10-27 14:30 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2008-10-27 15:46   ` Ilko Iliev
  0 siblings, 0 replies; 5+ messages in thread
From: Ilko Iliev @ 2008-10-27 15:46 UTC (permalink / raw)
  To: u-boot

Dear Jean-Christophe,

Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 15:11 Wed 22 Oct     , Ilko Iliev wrote:
>   
>> This patch fix the problem that only the [NB_DATAFLASH_AREA -1] 
>> dataflash partition  can be defined to use the area to the end of 
>> dataflash size.
>> Now it is possible to have only one dataflash partition from 0 to the 
>> end of of dataflash size.
>>
>> Signed-off-by: Ilko Iliev <iliev@ronetix.at>
>>
>>     
> you patch is corrupted by your mailler
> please use git-send-email instead
>
> Best Regards,
> J.
>   

I sent it again with git-send-email.

-- 
Mit freundlichen Gr??en/With best regards,
Ilko Iliev
Ronetix Development Tools GmbH
CPU Modules, JTAG/BDM Emulators and Flash Programmers
Waidhausenstrasse 13/5, 1140 Vienna, Austria
E-Mail: iliev at ronetix.at; Web: www.ronetix.at

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] mtd/dataflash.c: fix a problem with the last partition
@ 2008-12-02 16:27 Ilko Iliev
  2008-12-02 21:06 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 5+ messages in thread
From: Ilko Iliev @ 2008-12-02 16:27 UTC (permalink / raw)
  To: u-boot

This patch fix the problem that only the [NB_DATAFLASH_AREA - 1] dataflash
partition can be defined to use the area to the end of dataflash size.
Now it is possible to have only one dataflash partition from 0 to the end
of of dataflash size.

Signed-off-by: Ilko Iliev <iliev@ronetix.at>
---
 drivers/mtd/dataflash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/dataflash.c b/drivers/mtd/dataflash.c
index 58be182..96cd395 100644
--- a/drivers/mtd/dataflash.c
+++ b/drivers/mtd/dataflash.c
@@ -131,7 +131,7 @@ int AT91F_DataflashInit (void)
 			break;
 		}
 		/* set the last area end to the dataflash size*/
-		area_list[NB_DATAFLASH_AREA - 1].end =
+		dataflash_info[i].end_address =
 				(dataflash_info[i].Device.pages_number *
 				dataflash_info[i].Device.pages_size) - 1;
 
-- 
1.5.2.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] mtd/dataflash.c: fix a problem with the last partition
  2008-12-02 16:27 Ilko Iliev
@ 2008-12-02 21:06 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-12-02 21:06 UTC (permalink / raw)
  To: u-boot

On 17:27 Tue 02 Dec     , Ilko Iliev wrote:
> This patch fix the problem that only the [NB_DATAFLASH_AREA - 1] dataflash
> partition can be defined to use the area to the end of dataflash size.
> Now it is possible to have only one dataflash partition from 0 to the end
> of of dataflash size.
> 
> Signed-off-by: Ilko Iliev <iliev@ronetix.at>
> ---
>  drivers/mtd/dataflash.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
Applied to u-boot-at91

Best Regards,
J.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-02 21:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-22 13:11 [U-Boot] [PATCH] mtd/dataflash.c: fix a problem with the last partition Ilko Iliev
2008-10-27 14:30 ` Jean-Christophe PLAGNIOL-VILLARD
2008-10-27 15:46   ` Ilko Iliev
  -- strict thread matches above, loose matches on Subject: below --
2008-12-02 16:27 Ilko Iliev
2008-12-02 21:06 ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox