DataFlash: AT45DB021 fix and AT45DB081 support
PATCH 1/1 DataFlash: AT45DB021 fix and AT45DB081 support
Fix for page size of AT45DB021. Also adding bigger AT45DB081 which comes with some newer boards.
--- drivers/mtd/dataflash.c | 15 ++++++++++++++- include/dataflash.h | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-)
drivers/mtd/dataflash.c +14 -1
@@ -56,7 +56,7 @@ int AT91F_DataflashInit (void)switch (dfcode) {case AT45DB021 : dataflash_info[i].Device.pages_number =1024 ; - dataflash_info[i].Device.pages_size =263 ; + dataflash_info[i].Device.pages_size =264 ; dataflash_info[i].Device.page_offset =9 ; dataflash_info[i].Device.byte_mask =0x300 ; dataflash_info[i].Device.cs = cs[i].cs;
@@ -65,6 +65,19 @@ int AT91F_DataflashInit (void) dataflash_info[i].id = dfcode; found[i] += dfcode;;break ; + +case AT45DB081 : + dataflash_info[i].Device.pages_number =4096 ; + dataflash_info[i].Device.pages_size =264 ; + dataflash_info[i].Device.page_offset =9 ; + dataflash_info[i].Device.byte_mask =0x300 ; + dataflash_info[i].Device.cs = cs[i].cs; + dataflash_info[i].Desc.DataFlash_state =IDLE ; + dataflash_info[i].logical_address = cs[i].addr; + dataflash_info[i].id = dfcode; + found[i] += dfcode;; +break ; +case AT45DB161 : dataflash_info[i].Device.pages_number =4096 ; dataflash_info[i].Device.pages_size =528 ;
include/dataflash.h +1 -0
@@ -135,6 +135,7 @@ struct dataflash_addr {int cs; };/*-------------------------------------------------------------------------------------------------*/ +#define AT45DB081 0x24#define AT45DB161 0x2c#define AT45DB021 0x14#define AT45DB321 0x34
Signature · 1 line
1.5.4.1
PATCH 1/1 DataFlash: AT45DB021 fix and AT45DB081 support
Quoted 8 lines · Sergey Lapin
Fix for page size of AT45DB021. Also adding bigger AT45DB081 which comes with some newer boards.
Signed-off-by Sergey Lapin <[email protected]>--- drivers/mtd/dataflash.c | 15 ++++++++++++++- include/dataflash.h | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-)
Also - is it possible to include this into 1.3.4?
Thanks a lot,
S.
PATCH 1/1 DataFlash: AT45DB021 fix and AT45DB081 support
Quoted 11 lines · In message <[email protected]> you wrote:
Quoted 8 lines · Sergey Lapin
Fix for page size of AT45DB021. Also adding bigger AT45DB081 which comes with some newer boards.
Signed-off-by Sergey Lapin <[email protected]>--- drivers/mtd/dataflash.c | 15 ++++++++++++++- include/dataflash.h | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-)Also - is it possible to include this into 1.3.4?
If you manage to push the AT91 custodian to send a pull request in time - sure :-)
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Free markets select for winning solutions." - Eric S. Raymond
PATCH 1/1 DataFlash: AT45DB021 fix and AT45DB081 support
In reply to Sergey LapinQuoted 4 lines · Sergey Lapin
Quoted 3 lines · Sergey Lapin
Fix for page size of AT45DB021. Also adding bigger AT45DB081 which comes with some newer boards.
Quoted 8 lines
Quoted 5 lines
Signed-off-by Sergey Lapin <[email protected]>--- drivers/mtd/dataflash.c | 15 ++++++++++++++- include/dataflash.h | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-)Also - is it possible to include this into 1.3.4?
DataFlash: AT45DB021 fix and AT45DB081 support
Fix for page size of AT45DB021. Also adding bigger AT45DB081 which comes with some newer boards.
--------------------------
Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all y Applying DataFlash: AT45DB021 fix and AT45DB081 support
error: patch failed: include/dataflash.h:135
error: include/dataflash.h: patch does not apply Patch failed at 0003.
Please rebase your patch against current HEAD
Best Regards,
J.
PATCH 1/1 DataFlash: AT45DB021 fix and AT45DB081 support
From: Sergey Lapin <[email protected]>
Fix for page size of AT45DB021. Also adding bigger AT45DB081 which comes with some newer boards.
--- drivers/mtd/dataflash.c | 15 ++++++++++++++- include/dataflash.h | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-)
drivers/mtd/dataflash.c +14 -1
@@ -56,7 +56,7 @@ int AT91F_DataflashInit (void)switch (dfcode) {case AT45DB021 : dataflash_info[i].Device.pages_number =1024 ; - dataflash_info[i].Device.pages_size =263 ; + dataflash_info[i].Device.pages_size =264 ; dataflash_info[i].Device.page_offset =9 ; dataflash_info[i].Device.byte_mask =0x300 ; dataflash_info[i].Device.cs = cs[i].cs;
@@ -65,6 +65,19 @@ int AT91F_DataflashInit (void) dataflash_info[i].id = dfcode; found[i] += dfcode;;break ; + +case AT45DB081 : + dataflash_info[i].Device.pages_number =4096 ; + dataflash_info[i].Device.pages_size =264 ; + dataflash_info[i].Device.page_offset =9 ; + dataflash_info[i].Device.byte_mask =0x300 ; + dataflash_info[i].Device.cs = cs[i].cs; + dataflash_info[i].Desc.DataFlash_state =IDLE ; + dataflash_info[i].logical_address = cs[i].addr; + dataflash_info[i].id = dfcode; + found[i] += dfcode;; +break ; +case AT45DB161 : dataflash_info[i].Device.pages_number =4096 ; dataflash_info[i].Device.pages_size =528 ;
include/dataflash.h +1 -1
@@ -135,9 +135,9 @@ struct dataflash_addr {int cs; };/*-------------------------------------------------------------------------------------------------*/ -#define AT45DB161 0x2c#define AT45DB021 0x14 +#define AT45DB081 0x24#define AT45DB321 0x34#define AT45DB642 0x3c#define AT45DB128 0x10
Signature · 1 line
1.5.4.1
PATCH 1/1 DataFlash: AT45DB021 fix and AT45DB081 support
Quoted 11 lines · Sergey Lapin
From: Sergey Lapin <[email protected]>
Fix for page size of AT45DB021. Also adding bigger AT45DB081 which comes with some newer boards.
Signed-off-by Sergey Lapin <[email protected]>--- drivers/mtd/dataflash.c | 15 ++++++++++++++- include/dataflash.h | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-)
Applied to u-boot-at91
Best Regards,
J.
PATCH 1/1 DataFlash: AT45DB021 fix and AT45DB081 support
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 5 lines · Sergey Lapin
From: Sergey Lapin <[email protected]>
Fix for page size of AT45DB021. Also adding bigger AT45DB081 which comes with some newer boards.
Quoted 7 lines
Quoted 6 lines
Signed-off-by Sergey Lapin <[email protected]>--- drivers/mtd/dataflash.c | 15 ++++++++++++++- include/dataflash.h | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-)Applied to u-boot-at91
Thanks a lot!
S.
PATCH 1/1 DataFlash: AT45DB021 fix and AT45DB081 support
In reply to Jean-Christophe PLAGNIOL-VILLARDFix for page size of AT45DB021. Also adding bigger AT45DB081 which comes with some newer boards.
--- drivers/mtd/dataflash.c | 15 ++++++++++++++- include/dataflash.h | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-)
drivers/mtd/dataflash.c +14 -1
@@ -56,7 +56,7 @@ int AT91F_DataflashInit (void)switch (dfcode) {case AT45DB021 : dataflash_info[i].Device.pages_number =1024 ; - dataflash_info[i].Device.pages_size =263 ; + dataflash_info[i].Device.pages_size =264 ; dataflash_info[i].Device.page_offset =9 ; dataflash_info[i].Device.byte_mask =0x300 ; dataflash_info[i].Device.cs = cs[i].cs;
@@ -65,6 +65,19 @@ int AT91F_DataflashInit (void) dataflash_info[i].id = dfcode; found[i] += dfcode;;break ; + +case AT45DB081 : + dataflash_info[i].Device.pages_number =4096 ; + dataflash_info[i].Device.pages_size =264 ; + dataflash_info[i].Device.page_offset =9 ; + dataflash_info[i].Device.byte_mask =0x300 ; + dataflash_info[i].Device.cs = cs[i].cs; + dataflash_info[i].Desc.DataFlash_state =IDLE ; + dataflash_info[i].logical_address = cs[i].addr; + dataflash_info[i].id = dfcode; + found[i] += dfcode;; +break ; +case AT45DB161 : dataflash_info[i].Device.pages_number =4096 ; dataflash_info[i].Device.pages_size =528 ;
include/dataflash.h +1 -1
@@ -135,9 +135,9 @@ struct dataflash_addr {int cs; };/*-------------------------------------------------------------------------------------------------*/ -#define AT45DB161 0x2c#define AT45DB021 0x14 +#define AT45DB081 0x24#define AT45DB321 0x34#define AT45DB642 0x3c#define AT45DB128 0x10
Signature · 1 line
1.5.4.1