/* Checks if "bank1" and "bank2" are on the same chip. Returns 1 if they are and 0 otherwise.  */
static unsigned char same_chip_banks(int bank1, int bank2)
/* Checks if "bank1" and "bank2" are on the same chip. Returns 1 if they are and 0 otherwise.  */
static unsigned char same_chip_banks(int bank1, int bank2)
{
	unsigned char same_chip[CONFIG_SYS_MAX_FLASH_BANKS][CONFIG_SYS_MAX_FLASH_BANKS] = {
		{1, 1, 0, 0},
		{1, 1, 0, 0},
		{0, 0, 1, 1},
		{0, 0, 1, 1}
	};
	return same_chip[bank1][bank2];
}