/* Returns 1 if we found 16mbit flash memory on LART, 0 otherwise.  */
static int flash_probe(void)
/* Returns 1 if we found 16mbit flash memory on LART, 0 otherwise.  */
static int flash_probe(void)
{
   __u32 manufacturer,devtype;
   write32 (DATA_TO_FLASH (READ_ID_CODES),0x00000000);
   manufacturer = FLASH_TO_DATA (read32 (ADDR_TO_FLASH_U2 (0x00000000)));
   devtype = FLASH_TO_DATA (read32 (ADDR_TO_FLASH_U2 (0x00000001)));
   write32 (DATA_TO_FLASH (READ_ARRAY),0x00000000);
   return (manufacturer == FLASH_MANUFACTURER && (devtype == FLASH_DEVICE_16mbit_TOP || devtype == FLASH_DEVICE_16mbit_BOTTOM));
}