Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Furquan Shaikh | 05a6f29 | 2017-03-31 14:02:47 -0700 | [diff] [blame] | 2 | #include <intelblocks/gspi.h> |
Subrata Banik | 9ab6d92 | 2018-05-08 20:08:49 +0530 | [diff] [blame] | 3 | #include <soc/pci_devs.h> |
Furquan Shaikh | 05a6f29 | 2017-03-31 14:02:47 -0700 | [diff] [blame] | 4 | |
| 5 | int gspi_soc_bus_to_devfn(unsigned int gspi_bus) |
| 6 | { |
Subrata Banik | 9ab6d92 | 2018-05-08 20:08:49 +0530 | [diff] [blame] | 7 | switch (gspi_bus) { |
| 8 | case 0: |
| 9 | return PCH_DEVFN_GSPI0; |
| 10 | case 1: |
| 11 | return PCH_DEVFN_GSPI1; |
| 12 | } |
| 13 | return -1; |
Furquan Shaikh | 05a6f29 | 2017-03-31 14:02:47 -0700 | [diff] [blame] | 14 | } |