diff mbox

[U-Boot] cm-t35: fix incorrect NAND_ECC layout selection

Message ID 1341232079-18791-1-git-send-email-nikita@compulab.co.il
State Accepted
Commit 816e3921480d216c415a7c27ac4e0bf62004db1d
Delegated to: Tom Rini
Headers show

Commit Message

Nikita Kiryanov July 2, 2012, 12:27 p.m. UTC
The current configuration selects an incorrect NAND ECC layout,
which causes u-boot to write HW ECC data incorrectly.
This patch selects the right layout.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
---
 include/configs/cm_t35.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Tom Rini July 2, 2012, 4:06 p.m. UTC | #1
On Mon, Jul 02, 2012 at 03:27:59PM +0300, Nikita Kiryanov wrote:

> The current configuration selects an incorrect NAND ECC layout,
> which causes u-boot to write HW ECC data incorrectly.
> This patch selects the right layout.
> 
> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>

This change is correct on all boards and not due to a change in NAND
parts used in newer revisions or anything, correct?
Nikita Kiryanov July 4, 2012, 7:27 a.m. UTC | #2
On 07/02/2012 07:06 PM, Tom Rini wrote:
> On Mon, Jul 02, 2012 at 03:27:59PM +0300, Nikita Kiryanov wrote:
>
>> The current configuration selects an incorrect NAND ECC layout,
>> which causes u-boot to write HW ECC data incorrectly.
>> This patch selects the right layout.
>>
>> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
>
> This change is correct on all boards and not due to a change in NAND
> parts used in newer revisions or anything, correct?
>

Yes. All our boards have 8 bit NAND chips.
diff mbox

Patch

diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
index 1419f06..e0dd3fb 100644
--- a/include/configs/cm_t35.h
+++ b/include/configs/cm_t35.h
@@ -174,7 +174,7 @@ 
 #define CONFIG_SYS_NAND_BASE		NAND_BASE	/* physical address */
 							/* to access nand at */
 							/* CS0 */
-#define GPMC_NAND_ECC_LP_x16_LAYOUT
+#define GPMC_NAND_ECC_LP_x8_LAYOUT
 
 #define CONFIG_SYS_MAX_NAND_DEVICE	1		/* Max number of NAND */
 							/* devices */