summaryrefslogtreecommitdiff
path: root/util/inteltool/inteltool.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/inteltool/inteltool.c')
-rw-r--r--util/inteltool/inteltool.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c
index 0e84b550fc..8d5d9942a7 100644
--- a/util/inteltool/inteltool.c
+++ b/util/inteltool/inteltool.c
@@ -494,7 +494,7 @@ static void print_version(void)
static void print_usage(const char *name)
{
- printf("usage: %s [-vh?gGrpmedPMaAsfSRx]\n", name);
+ printf("usage: %s [-vh?gGrplmedPMaAsfSRx]\n", name);
printf("\n"
" -v | --version: print the version\n"
" -h | --help: print this help\n\n"
@@ -505,6 +505,7 @@ static void print_usage(const char *name)
" -G | --gpio-diffs: show GPIO differences from defaults\n"
" -r | --rcba: dump southbridge RCBA registers\n"
" -p | --pmbase: dump southbridge Power Management registers\n\n"
+ " -l | --lpc: dump southbridge LPC/eSPI Interface registers\n\n"
" -m | --mchbar: dump northbridge Memory Controller registers\n"
" -S FILE | --spd=FILE: create a file storing current timings (implies -m)\n"
" -e | --epbar: dump northbridge EPBAR registers\n"
@@ -574,6 +575,7 @@ int main(int argc, char *argv[])
int dump_pmbase = 0, dump_epbar = 0, dump_dmibar = 0;
int dump_pciexbar = 0, dump_coremsrs = 0, dump_ambs = 0;
int dump_spi = 0, dump_gfx = 0, dump_ahci = 0, dump_sgx = 0;
+ int dump_lpc = 0;
int show_gpio_diffs = 0;
size_t pcr_count = 0;
uint8_t dump_pcr[MAX_PCR_PORTS];
@@ -586,6 +588,7 @@ int main(int argc, char *argv[])
{"mchbar", 0, 0, 'm'},
{"rcba", 0, 0, 'r'},
{"pmbase", 0, 0, 'p'},
+ {"lpc", 0, 0, 'l'},
{"epbar", 0, 0, 'e'},
{"dmibar", 0, 0, 'd'},
{"pciexpress", 0, 0, 'P'},
@@ -601,7 +604,7 @@ int main(int argc, char *argv[])
{0, 0, 0, 0}
};
- while ((opt = getopt_long(argc, argv, "vh?gGrpmedPMaAsfRS:x",
+ while ((opt = getopt_long(argc, argv, "vh?gGrplmedPMaAsfRS:x",
long_options, &option_index)) != EOF) {
switch (opt) {
case 'v':
@@ -633,6 +636,9 @@ int main(int argc, char *argv[])
case 'p':
dump_pmbase = 1;
break;
+ case 'l':
+ dump_lpc = 1;
+ break;
case 'e':
dump_epbar = 1;
break;
@@ -651,6 +657,7 @@ int main(int argc, char *argv[])
dump_mchbar = 1;
dump_rcba = 1;
dump_pmbase = 1;
+ dump_lpc = 1;
dump_epbar = 1;
dump_dmibar = 1;
dump_pciexbar = 1;
@@ -816,6 +823,11 @@ int main(int argc, char *argv[])
printf("\n\n");
}
+ if (dump_lpc) {
+ print_lpc(sb, pacc);
+ printf("\n\n");
+ }
+
if (dump_mchbar) {
print_mchbar(nb, pacc, dump_spd_file);
printf("\n\n");