comparison src/cs/drivers/drv_app/ffs/board/drv.c @ 606:de936aea260a

FFS: added Multi-ID support for Samsung flash chips needed for GTM900 target support
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 17 Jun 2019 19:23:57 +0000
parents 92dbfa906f66
children
comparison
equal deleted inserted replaced
605:07d0dc4431f4 606:de936aea260a
1373 #if defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_FCFAM) 1373 #if defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_FCFAM)
1374 if (device_id[1] == 0x2221 && device_id[2] == 0x2200) 1374 if (device_id[1] == 0x2221 && device_id[2] == 0x2200)
1375 dev.device += ffsdrv_is_new_spansion_flash(); 1375 dev.device += ffsdrv_is_new_spansion_flash();
1376 #endif 1376 #endif
1377 } 1377 }
1378 else if (dev.manufact == MANUFACT_SAMSUNG && device_id[0] == 0x257E) {
1379 /* Samsung's version of extended ID */
1380 dev.device = (device_id[1] << 8) | (device_id[2] & 0xFF);
1381 }
1378 else 1382 else
1379 dev.device = device_id[0]; 1383 dev.device = device_id[0];
1380 #endif 1384 #endif
1381 } 1385 }
1382 else { 1386 else {