Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Jonathan Zhang | 8f89549 | 2020-01-16 11:16:45 -0800 | [diff] [blame] | 2 | |
3 | #include <intelblocks/spi.h> | ||||
4 | #include <soc/pci_devs.h> | ||||
5 | |||||
6 | int spi_soc_devfn_to_bus(unsigned int devfn) | ||||
7 | { | ||||
8 | switch (devfn) { | ||||
9 | case PCH_DEVFN_SPI: | ||||
10 | return 0; | ||||
11 | } | ||||
12 | return -1; | ||||
13 | } |