summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/uart.c
blob: 348c2876adc475be351ae27b8bfdbc7b3f315cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0-or-later */

/*
 * The sole purpose of this driver is to avoid BAR to be changed during
 * resource allocation. Since configuration space is just 32 bytes it
 * shouldn't cause any fragmentation.
 */

#include <commonlib/helpers.h>
#include <device/pci_type.h>
#include <soc/pci_devs.h>

const unsigned int uart_devices[] = {
	PCH_DEVFN_UART0,
#if CONFIG(SOC_INTEL_GEMINILAKE)
	PCI_DEVFN_INVALID,
#else
	PCH_DEVFN_UART1,
#endif
	PCH_DEVFN_UART2,
};

const int uart_devices_size = ARRAY_SIZE(uart_devices);