Re: [U-Boot] Nor Flash SST39VF6402B cfi compliant support

Hi Fabio,
(please keep the list on Cc).
On Monday 19 July 2010 11:27:50 Fabio Giovagnini wrote:
I do not think so about teh different regons. I attach the datasheet I found on the net and I cannot find anythink about two different regions for SST39VF6402B
Maybe I'm wrong.
Yes, you are wrong. ;) The manual mentions block-erase (32k) and sector-erase (2k). Please check which one is used by the CFi commands right now.
Cheers, Stefan
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de

I supposed the list doesn't like the attachment. Anyway I understand, now. I'll make you know how I'll solve.
Thanks a lot and best regards
In data lunedì 19 luglio 2010 11:33:43, Stefan Roese ha scritto: : > Hi Fabio,
(please keep the list on Cc).
On Monday 19 July 2010 11:27:50 Fabio Giovagnini wrote:
I do not think so about teh different regons. I attach the datasheet I found on the net and I cannot find anythink about two different regions for SST39VF6402B
Maybe I'm wrong.
Yes, you are wrong. ;) The manual mentions block-erase (32k) and sector-erase (2k). Please check which one is used by the CFi commands right now.
Cheers, Stefan
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de

This is the rigth config for such a FLASH chip
#ifdef CONFIG_SYS_FLASH_LEGACY_4Mx16 { .mfr_id = (u16)SST_MANUFACT, .dev_id = SST39VF6402B, .name = "SST 39VF6402B", .uaddr = { [1] = MTD_UADDR_0x0555_0x02AA /* x16 */ }, .DevSize = SIZE_4MiB, .CmdSet = CFI_CMDSET_AMD_LEGACY, .NumEraseRegions= 1, .regions = { ERASEINFO(0x10000,128), } }, #endif
Best regards and thanks a lot
In data lunedì 19 luglio 2010 12:26:32, Fabio Giovagnini ha scritto: : > I supposed the list doesn't like the attachment.
Anyway I understand, now. I'll make you know how I'll solve.
Thanks a lot and best regards
In data lunedì 19 luglio 2010 11:33:43, Stefan Roese ha scritto: : > Hi Fabio,
(please keep the list on Cc).
On Monday 19 July 2010 11:27:50 Fabio Giovagnini wrote:
I do not think so about teh different regons. I attach the datasheet I found on the net and I cannot find anythink about two different regions for SST39VF6402B
Maybe I'm wrong.
Yes, you are wrong. ;) The manual mentions block-erase (32k) and sector-erase (2k). Please check which one is used by the CFi commands right now.
Cheers, Stefan
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de

On Monday 19 July 2010 15:57:09 Fabio Giovagnini wrote:
This is the rigth config for such a FLASH chip
#ifdef CONFIG_SYS_FLASH_LEGACY_4Mx16 { .mfr_id = (u16)SST_MANUFACT, .dev_id = SST39VF6402B, .name = "SST 39VF6402B", .uaddr = { [1] = MTD_UADDR_0x0555_0x02AA /* x16 */ }, .DevSize = SIZE_4MiB, .CmdSet = CFI_CMDSET_AMD_LEGACY, .NumEraseRegions= 1, .regions = { ERASEINFO(0x10000,128), } }, #endif
Best regards and thanks a lot
So you've got it working. Good. Please submit a proper patch with this SST flash support. Thanks.
Cheers, Stefan
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de

Ok
Cheers
In data lunedì 19 luglio 2010 16:19:23, Stefan Roese ha scritto: : > On Monday 19 July 2010 15:57:09 Fabio Giovagnini wrote:
This is the rigth config for such a FLASH chip
#ifdef CONFIG_SYS_FLASH_LEGACY_4Mx16 { .mfr_id = (u16)SST_MANUFACT, .dev_id = SST39VF6402B, .name = "SST 39VF6402B", .uaddr = { [1] = MTD_UADDR_0x0555_0x02AA /* x16 */ }, .DevSize = SIZE_4MiB, .CmdSet = CFI_CMDSET_AMD_LEGACY, .NumEraseRegions= 1, .regions = { ERASEINFO(0x10000,128), } }, #endif
Best regards and thanks a lot
So you've got it working. Good. Please submit a proper patch with this SST flash support. Thanks.
Cheers, Stefan
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de
participants (2)
-
Fabio Giovagnini
-
Stefan Roese