Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrey Petrov | 1e70cda | 2016-03-08 16:12:06 -0800 | [diff] [blame] | 2 | |
| 3 | /* |
| 4 | * The sole purpose of this driver is to avoid BAR to be changed during |
| 5 | * resource allocation. Since configuration space is just 32 bytes it |
| 6 | * shouldn't cause any fragmentation. |
| 7 | */ |
| 8 | |
Michael Niewöhner | 405f229 | 2020-12-21 03:46:58 +0100 | [diff] [blame] | 9 | #include <commonlib/helpers.h> |
| 10 | #include <device/pci_type.h> |
Andrey Petrov | 1e70cda | 2016-03-08 16:12:06 -0800 | [diff] [blame] | 11 | #include <soc/pci_devs.h> |
Aamir Bohra | c73073c | 2017-12-04 17:08:06 +0530 | [diff] [blame] | 12 | |
Michael Niewöhner | 405f229 | 2020-12-21 03:46:58 +0100 | [diff] [blame] | 13 | const unsigned int uart_devices[] = { |
| 14 | PCH_DEVFN_UART0, |
Angel Pons | b36100f | 2020-09-07 13:18:10 +0200 | [diff] [blame] | 15 | #if CONFIG(SOC_INTEL_GEMINILAKE) |
Michael Niewöhner | 405f229 | 2020-12-21 03:46:58 +0100 | [diff] [blame] | 16 | PCI_DEVFN_INVALID, |
Aamir Bohra | c73073c | 2017-12-04 17:08:06 +0530 | [diff] [blame] | 17 | #else |
Michael Niewöhner | 405f229 | 2020-12-21 03:46:58 +0100 | [diff] [blame] | 18 | PCH_DEVFN_UART1, |
Aamir Bohra | c73073c | 2017-12-04 17:08:06 +0530 | [diff] [blame] | 19 | #endif |
Michael Niewöhner | 405f229 | 2020-12-21 03:46:58 +0100 | [diff] [blame] | 20 | PCH_DEVFN_UART2, |
Aamir Bohra | c73073c | 2017-12-04 17:08:06 +0530 | [diff] [blame] | 21 | }; |
| 22 | |
Michael Niewöhner | 405f229 | 2020-12-21 03:46:58 +0100 | [diff] [blame] | 23 | const int uart_devices_size = ARRAY_SIZE(uart_devices); |