Commit 3acb011c3c2c26cb6a6ee1b1d61ab8992b4f140b
Committed by
Stefano Babic
1 parent
f6d48b29cb
Exists in
v2017.01-smarct4x
and in
37 other branches
ARM: i.MX: provide declaration for board_spi_cs_gpio
Provide a public declaration of the board_spi_cs_gpio() callback for i.MX SPI chip selects to prevent the warning "Should it be static?" when compiling with "make C=1". Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Showing 10 changed files with 26 additions and 0 deletions Side-by-side Diff
- arch/arm/include/asm/imx-common/spi.h
- board/boundary/nitrogen6x/nitrogen6x.c
- board/compulab/cm_fx6/common.c
- board/embest/mx6boards/mx6boards.c
- board/freescale/mx6qsabreauto/mx6qsabreauto.c
- board/freescale/mx6slevk/mx6slevk.c
- board/gateworks/gw_ventana/gw_ventana.c
- board/genesi/mx51_efikamx/efikamx.c
- board/ttcontrol/vision2/vision2.c
- drivers/spi/mxc_spi.c
arch/arm/include/asm/imx-common/spi.h
1 | +/* | |
2 | + * Copyright 2011 Freescale Semiconductor, Inc. | |
3 | + * | |
4 | + * SPDX-License-Identifier: GPL-2.0+ | |
5 | + */ | |
6 | + | |
7 | +#ifndef __MXC_SPI_H_ | |
8 | +#define __MXC_SPI_H_ | |
9 | + | |
10 | +/* | |
11 | + * Board-level chip-select callback | |
12 | + * Should return GPIO # to be used for chip-select | |
13 | + */ | |
14 | + | |
15 | +int board_spi_cs_gpio(unsigned bus, unsigned cs); | |
16 | + | |
17 | +#endif |
board/boundary/nitrogen6x/nitrogen6x.c
board/compulab/cm_fx6/common.c
board/embest/mx6boards/mx6boards.c
board/freescale/mx6qsabreauto/mx6qsabreauto.c
board/freescale/mx6slevk/mx6slevk.c
board/gateworks/gw_ventana/gw_ventana.c
board/genesi/mx51_efikamx/efikamx.c
board/ttcontrol/vision2/vision2.c
drivers/spi/mxc_spi.c