[U-Boot-Users] Top Boot Flash Init Code

Hello All,
We are using Inca-IP board with U-Boot loader. In our board, we are using top boot flash. Present Inca-IP board is having only uniform boot flash init code. So I took the top boot flash init code form another board and added it in the flash_get_offsets().
/* set sector offsets for top boot block type */ else if (((info->flash_id & FLASH_TYPEMASK) == FLASH_AM320T) || ((info->flash_id & FLASH_TYPEMASK) == FLASH_AM640T)) { /* 8 x 8K Top boot sectors */ for (i = 0; i < info->sector_count; i++) info->start[i] = base + (i * (0x00010000 << FLASH_SHIFT));
for (; i < info->sector_count; i++) info->start[i] = base + (i * (0x00002000 << FLASH_SHIFT)); }
Is it right ??
Bye :)

In message Pine.LNX.4.44.0504291247000.24392-100000@bharathi.midascomm.com you wrote:
We are using Inca-IP board with U-Boot loader. In our board, we are using top boot flash. Present Inca-IP board is having only uniform
...
Is it right ??
How could we know? You did not bother to mention WHICH flash chips you are using.
Best regards,
Wolfgang Denk

On Tue, 17 May 2005, Wolfgang Denk wrote:
We are using Inca-IP board with U-Boot loader. In our board, we are using top boot flash. Present Inca-IP board is having only uniform
How could we know? You did not bother to mention WHICH flash chips you are using.
We are using AMD compatible Spansion 8MB Flash chips. FLASH_AM640T 0x00A4 /*Spansion S29GL064M90TAIR3 (64Mb)*/
Bye :)

In message Pine.LNX.4.44.0505171449530.11703-100000@bharathi.midascomm.com you wrote:
We are using AMD compatible Spansion 8MB Flash chips. FLASH_AM640T 0x00A4 /*Spansion S29GL064M90TAIR3 (64Mb)*/
Are they using the same vendor ID as AMD ??
Best regards,
Wolfgang Denk

On Tue, 17 May 2005, Wolfgang Denk wrote:
We are using AMD compatible Spansion 8MB Flash chips. FLASH_AM640T 0x00A4 /*Spansion S29GL064M90TAIR3 (64Mb)*/
Are they using the same vendor ID as AMD ??
Yes, Manufacture ID is equal to AMD_MANUFACT 0x00010001 and Device ID is equal to AMD_ID_LV642D 0x227E227E /*29LV642D ID*/. Bcoz it is AMD compatible, So I am setting the flash ID as FLASH_AM640T.
Bye :)
participants (2)
-
Bharathi Subramanian
-
Wolfgang Denk