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

Bharathi Subramanian sbharathi at MidasComm.Com
Tue May 17 10:31:45 CEST 2005


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 :)
-- 
Bharathi S





More information about the U-Boot mailing list