diff options
author | Maxim Polyakov <max.senia.poliak@gmail.com> | 2020-04-01 20:23:38 +0300 |
---|---|---|
committer | Andrey Petrov <andrey.petrov@gmail.com> | 2020-04-07 18:18:59 +0000 |
commit | ce2399a4461a3e52c992f1cbaf3a66816c2495c0 (patch) | |
tree | 133b650e0ed7855102c71162478ff52653a2c819 /src | |
parent | 182d7bae4769084c56a8206fe0750210c1f44172 (diff) |
soc/intel/common: gpio: print error if pad is not found
Allow to print a debug error message when the GPIO community does not
contain the pad number from the motherboard configuration.
Change-Id: I21fb389a5d29e11b1fbc24e836d91e17957047f1
Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40021
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Andrey Petrov <andrey.petrov@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/common/block/gpio/gpio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/gpio/gpio.c b/src/soc/intel/common/block/gpio/gpio.c index 45406dbece..dedd36492c 100644 --- a/src/soc/intel/common/block/gpio/gpio.c +++ b/src/soc/intel/common/block/gpio/gpio.c @@ -89,7 +89,8 @@ static inline size_t gpio_group_index(const struct pad_community *comm, return i; } } - + printk(BIOS_ERR, "%s: pad %d is not found in community %s!\n", + __func__, relative_pad, comm->name); assert(0); return i; |