[U-Boot-Users] [PATCH] Where does U-Boot's CFI driver check fortop/bottom boot?

Spence Nick-rxtd10
2006-11-07T01:09:22Z

> -----Original Message-----
> From: u-boot-users-bounces at lists.sourceforge.net
> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf
> Of timur at freescale.com
> Sent: Monday, November 06, 2006 4:47 PM
> To: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] [PATCH] Where does U-Boot's CFI
> driver check fortop/bottom boot?
>
> From: Timur Tabi <timur@freescale.com>
>
> This patch adds support for the reversed geometry data in
> some AMD flash chips.
>
> <snip>
> case CFI_CMDSET_AMD_STANDARD:
> case CFI_CMDSET_AMD_EXTENDED:
> info->cmd_reset = AMD_CMD_RESET;
> + if (flash_read_uchar(info,
> FLASH_OFFSET_CFI_RESP + (0x7E / info->portwidth)) == 3)

The code also needs to check:
1) that there is an extended query table
2) The query table is version 1.1 or later

Then (and only then) is it safe to use this byte from the query table.

Nick