mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 07:23:43 +02:00
Also print the supported/nonsupported laptops in -L output
Content taken from current wiki page. Corresponding to flashrom svn r604. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
parent
e6abef0f64
commit
e1aa75ec95
@ -860,6 +860,25 @@ const struct board_info boards_bad[] = {
|
|||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Please keep this list alphabetically ordered by vendor/board. */
|
||||||
|
const struct board_info laptops_ok[] = {
|
||||||
|
/* Verified working laptops. */
|
||||||
|
{ "Lenovo", "3000 V100 TF05Cxx", },
|
||||||
|
|
||||||
|
{},
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Please keep this list alphabetically ordered by vendor/board. */
|
||||||
|
const struct board_info laptops_bad[] = {
|
||||||
|
/* Verified non-working boards (for now). */
|
||||||
|
{ "Acer", "Aspire One", },
|
||||||
|
{ "Dell", "Latitude CPi A366XT", },
|
||||||
|
{ "IBM/Lenovo", "Thinkpad T40p", },
|
||||||
|
{ "IBM/Lenovo", "240", },
|
||||||
|
|
||||||
|
{},
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Match boards on coreboot table gathered vendor and part name.
|
* Match boards on coreboot table gathered vendor and part name.
|
||||||
* Require main PCI IDs to match too as extra safety.
|
* Require main PCI IDs to match too as extra safety.
|
||||||
|
2
flash.h
2
flash.h
@ -250,6 +250,8 @@ struct board_info {
|
|||||||
|
|
||||||
extern const struct board_info boards_ok[];
|
extern const struct board_info boards_ok[];
|
||||||
extern const struct board_info boards_bad[];
|
extern const struct board_info boards_bad[];
|
||||||
|
extern const struct board_info laptops_ok[];
|
||||||
|
extern const struct board_info laptops_bad[];
|
||||||
|
|
||||||
/* udelay.c */
|
/* udelay.c */
|
||||||
void myusec_delay(int usecs);
|
void myusec_delay(int usecs);
|
||||||
|
23
print.c
23
print.c
@ -167,13 +167,15 @@ void print_supported_chipsets(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_supported_boards_helper(const struct board_info *b)
|
void print_supported_boards_helper(const struct board_info *b, const char *msg)
|
||||||
{
|
{
|
||||||
int i, j, boardcount = 0;
|
int i, j, boardcount = 0;
|
||||||
|
|
||||||
for (i = 0; b[i].vendor != NULL; i++)
|
for (i = 0; b[i].vendor != NULL; i++)
|
||||||
boardcount++;
|
boardcount++;
|
||||||
|
|
||||||
|
printf("\n%s (total: %d):\n\n", msg, boardcount);
|
||||||
|
|
||||||
for (i = 0; b[i].vendor != NULL; i++) {
|
for (i = 0; b[i].vendor != NULL; i++) {
|
||||||
printf("%s", b[i].vendor);
|
printf("%s", b[i].vendor);
|
||||||
for (j = 0; j < 25 - strlen(b[i].vendor); j++)
|
for (j = 0; j < 25 - strlen(b[i].vendor); j++)
|
||||||
@ -210,15 +212,12 @@ void print_supported_boards(void)
|
|||||||
printf("(none, board is autodetected)\n");
|
printf("(none, board is autodetected)\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0, boardcount = 0; boards_ok[i].vendor != NULL; i++)
|
print_supported_boards_helper(boards_ok,
|
||||||
boardcount++;
|
"Supported boards which don't need write-enable code");
|
||||||
printf("\nSupported boards which don't need write-enable code "
|
print_supported_boards_helper(boards_bad,
|
||||||
"(total: %d):\n\n", boardcount);
|
"Boards which have been verified to NOT work yet");
|
||||||
print_supported_boards_helper(boards_ok);
|
print_supported_boards_helper(laptops_ok,
|
||||||
|
"Laptops which have been verified to work");
|
||||||
for (i = 0, boardcount = 0; boards_bad[i].vendor != NULL; i++)
|
print_supported_boards_helper(laptops_bad,
|
||||||
boardcount++;
|
"Laptops which have been verified to NOT work yet");
|
||||||
printf("\nBoards which have been verified to NOT work yet "
|
|
||||||
"(total: %d):\n\n", boardcount);
|
|
||||||
print_supported_boards_helper(boards_bad);
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user