blob: 348c2876adc475be351ae27b8bfdbc7b3f315cf7 [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrey Petrov1e70cda2016-03-08 16:12:06 -08002
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öhner405f2292020-12-21 03:46:58 +01009#include <commonlib/helpers.h>
10#include <device/pci_type.h>
Andrey Petrov1e70cda2016-03-08 16:12:06 -080011#include <soc/pci_devs.h>
Aamir Bohrac73073c2017-12-04 17:08:06 +053012
Michael Niewöhner405f2292020-12-21 03:46:58 +010013const unsigned int uart_devices[] = {
14 PCH_DEVFN_UART0,
Angel Ponsb36100f2020-09-07 13:18:10 +020015#if CONFIG(SOC_INTEL_GEMINILAKE)
Michael Niewöhner405f2292020-12-21 03:46:58 +010016 PCI_DEVFN_INVALID,
Aamir Bohrac73073c2017-12-04 17:08:06 +053017#else
Michael Niewöhner405f2292020-12-21 03:46:58 +010018 PCH_DEVFN_UART1,
Aamir Bohrac73073c2017-12-04 17:08:06 +053019#endif
Michael Niewöhner405f2292020-12-21 03:46:58 +010020 PCH_DEVFN_UART2,
Aamir Bohrac73073c2017-12-04 17:08:06 +053021};
22
Michael Niewöhner405f2292020-12-21 03:46:58 +010023const int uart_devices_size = ARRAY_SIZE(uart_devices);