xref: /openbmc/u-boot/arch/arm/include/asm/mach-imx/spi.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2552a848eSStefano Babic /*
3552a848eSStefano Babic  * Copyright 2011 Freescale Semiconductor, Inc.
4552a848eSStefano Babic  */
5552a848eSStefano Babic 
6552a848eSStefano Babic #ifndef __MXC_SPI_H_
7552a848eSStefano Babic #define __MXC_SPI_H_
8552a848eSStefano Babic 
9552a848eSStefano Babic /*
10552a848eSStefano Babic  * Board-level chip-select callback
11552a848eSStefano Babic  * Should return GPIO # to be used for chip-select
12552a848eSStefano Babic  */
13552a848eSStefano Babic 
14552a848eSStefano Babic int board_spi_cs_gpio(unsigned bus, unsigned cs);
15552a848eSStefano Babic 
16552a848eSStefano Babic #endif
17