| 1382 | } |
| 1383 | |
| 1384 | static int check_region(const struct frba *frba, unsigned int region_type) |
| 1385 | { |
| 1386 | struct region region; |
| 1387 | |
| 1388 | if (!frba) |
| 1389 | return 0; |
| 1390 | |
| 1391 | region = get_region(frba, region_type); |
| 1392 | return !!((region.base < region.limit) && (region.size > 0)); |
| 1393 | } |
| 1394 | |
| 1395 | /* |
| 1396 | * Platforms from CNL onwards support up to 16 flash regions, not 12. The |
no test coverage detected