diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2022-10-18 19:59:30 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-10-20 16:44:09 +0000 |
commit | 6101dcf6703527b05e7d99e3149f0ce0125732d5 (patch) | |
tree | b1b3af7b2eb6fe0489469744a6a1ed3fddbd21f5 /src/soc/amd/cezanne/config.c | |
parent | f1a03b1d6d9c02f4c1db1cc6c11e772ce0c6ca56 (diff) |
soc/amd/picasso/uart: introduce and use soc_get_uart_ctrlr_info
Introduce and use soc_get_uart_ctrlr_info to access the uart_info array
to further decouple uart_info from the code as preparation to factor out
most of the code to a common implementation. In order to slightly reduce
the number of function calls, pass the size of and pointer to uart_info
to get_uart_idx as a parameter instead of calling again
soc_get_uart_ctrlr_info in get_uart_idx despite all callers already
having the information form the soc_get_uart_ctrlr_info call.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I474e47059eaebcf0b9b77f66ee993f1963ebee77
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68534
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/soc/amd/cezanne/config.c')
0 files changed, 0 insertions, 0 deletions