summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/block/include/intelblocks/spi.h
blob: 15ce5aee92d752b3ecabf25cd4cf0747e1c737d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#ifndef SOC_INTEL_COMMON_BLOCK_SPI_H
#define SOC_INTEL_COMMON_BLOCK_SPI_H

/*
 * SoC overrides
 *
 * All new SoC must implement below functionality.
 */

/* Function to convert input device function to bus number
 * Input: Device Function number
 * Output: -1 translate to Error, >=0 is bus number
 */
int spi_soc_devfn_to_bus(unsigned int devfn);

#endif	/* SOC_INTEL_COMMON_BLOCK_SPI_H */