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>
This commit is contained in:
Maxim Polyakov 2020-04-01 20:23:38 +03:00 committed by Andrey Petrov
parent 182d7bae47
commit ce2399a446
1 changed files with 2 additions and 1 deletions

View File

@ -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;