This data was taken from a newer version of libnand, which is only
available as a binary blob. The flags gave me a bit of trouble, but
i verified that all of the ones in the current libnand are still
being used the same way in the new libnand.

Works as well as could be expected :)

Signed-off-by: Luc Verhaegen <[email protected]>
---
 drivers/block/sunxi_nand/src/scan/nand_id.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/block/sunxi_nand/src/scan/nand_id.c 
b/drivers/block/sunxi_nand/src/scan/nand_id.c
index 7021894..7f0a76c 100644
--- a/drivers/block/sunxi_nand/src/scan/nand_id.c
+++ b/drivers/block/sunxi_nand/src/scan/nand_id.c
@@ -219,15 +219,16 @@ struct __NandPhyInfoPar_t SamsungNandTbl[] =
     { {0xec, 0xd5, 0x84, 0x72, 0xff, 0xff, 0xff, 0xff }, 1,    16,     128,    
 2048,   0x0000,   950,    24,     2,       0,        0,     &PhysicArchiPara3 
},   // K9GAG08U0E
     { {0xec, 0xd5, 0x94, 0x76, 0x54, 0xff, 0xff, 0xff }, 1,    16,     128,    
 2048,   0x0408,   950,    30,     2,       0,        0,     &PhysicArchiPara3 
},   // K9GAG08U0E
     { {0xec, 0xd3, 0x84, 0x72, 0xff, 0xff, 0xff, 0xff }, 1,    16,     128,    
 1024,   0x0000,   950,    24,     2,       0,        0,     &PhysicArchiPara3 
},   // K9G8G08U0C
-       { {0xec, 0xd7, 0x94, 0x76, 0xff, 0xff, 0xff, 0xff }, 1,    16,     128, 
    4096,   0x0088,   974,    30,     3,       0,        0,     
&PhysicArchiPara3 },   // K9GBG08U0A
-       { {0xec, 0xd7, 0x94, 0x7A, 0xff, 0xff, 0xff, 0xff }, 1,    16,     128, 
    4096,   0x0088,   974,    30,     3,       0,        0,     
&PhysicArchiPara3 },   // K9GBG08U0A
-       { {0xec, 0xde, 0xd5, 0x7A, 0x58, 0xff, 0xff, 0xff }, 2,    16,     128, 
        4096,   0x0888,   974,    30,     3,       0,            0,     
&PhysicArchiPara3 },   // K9LCG08U0A
+    { {0xec, 0xd7, 0x94, 0x76, 0xff, 0xff, 0xff, 0xff }, 1,    16,     128,    
 4096,   0x0088,   974,    30,     3,       0,        0,     &PhysicArchiPara3 
},   // K9GBG08U0A
+    { {0xec, 0xd7, 0x94, 0x7A, 0xff, 0xff, 0xff, 0xff }, 1,    16,     128,    
 4096,   0x0088,   974,    30,     3,       0,        0,     &PhysicArchiPara3 
},   // K9GBG08U0A
+    { {0xec, 0xde, 0xd5, 0x7A, 0x58, 0xff, 0xff, 0xff }, 2,    16,     128,    
4096,   0x0888,   974,    30,     3,       0,        0,     &PhysicArchiPara3 
},   // K9LCG08U0A
 
-       { {0xec, 0xd7, 0x94, 0x7A, 0x54, 0xc3, 0xff, 0xff }, 1,    16,     128, 
    4096,   0x0088,   974,    60,     1,       0,        3,     
&PhysicArchiPara3 },   // toogle nand 1.0
-       { {0xec, 0xde, 0xa4, 0x7a, 0x68, 0xc4, 0xff, 0xff }, 1,    16,     128, 
    8192,   0x0588,   974,    60,     4,   0x200e04,     3,     
&PhysicArchiPara3 },   // toogle nand 2.0 K9GCGD8U0A
-       { {0xec, 0xd7, 0x94, 0x7E, 0x64, 0xc4, 0xff, 0xff }, 1,    16,     128, 
    4096,   0x0588,   974,    60,     4,   0x200e04,     3,     
&PhysicArchiPara3 },   // toogle nand 2.0 K9GBGD8U0B
+    { {0xec, 0xd7, 0x94, 0x7A, 0x54, 0xc3, 0xff, 0xff }, 1,    16,     128,    
 4096,   0x0088,   974,    60,     1,       0,        3,     &PhysicArchiPara3 
},   // toogle nand 1.0
+    { {0xec, 0xde, 0xa4, 0x7a, 0x68, 0xc4, 0xff, 0xff }, 1,    16,     128,    
 8192,   0x0588,   974,    60,     4,   0x200e04,     3,     &PhysicArchiPara3 
},   // toogle nand 2.0 K9GCGD8U0A
+    { {0xec, 0xd7, 0x94, 0x7E, 0x64, 0xc4, 0xff, 0xff }, 1,    16,     128,    
 4096,   0x0588,   974,    60,     4,   0x200e04,     3,     &PhysicArchiPara3 
},   // toogle nand 2.0 K9GBGD8U0B
     { {0xec, 0xd7, 0x94, 0x7e, 0x64, 0x44, 0xff, 0xff }, 1,    16,     128,    
 4096,   0x0188,   974,    40,     4,   0x200e04,     0,     &PhysicArchiPara3 
},   // 21nm sdr K9GBG08U0B
     { {0xec, 0xde, 0xd5, 0x7e, 0x68, 0x44, 0xff, 0xff }, 2,    16,     128,    
 4096,   0x0188,   974,    40,     4,   0x200e04,     0,     &PhysicArchiPara3 
},   // 21nm sdr K9LCG08U0B
+    { {0xec, 0xd7, 0x14, 0x76, 0x54, 0xc2, 0xff, 0xff }, 1,    16,     128,    
 4096,   0x0088,   974,    40,     3,       0,        3,     &PhysicArchiPara3 
},   // K9GBG08U0M
 
     
//-----------------------------------------------------------------------------------------------------------------------------------
     { {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, 0,     0,       0,    
    0,   0x0000,     0,     0,     0,       0,        0,      0                 
},   // NULL
-- 
1.7.7

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to