summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2014-09-30 15:40:03 -0700
committerStefano Babic <sbabic@denx.de>2014-10-21 10:47:14 +0200
commit3acb011c3c2c26cb6a6ee1b1d61ab8992b4f140b (patch)
tree44d4b90df1b03750654c6bd97778ff2cddda143c /arch/arm/include
parentf6d48b29cbf5950187e42cb3c108ea5d9c7adaa9 (diff)
downloadblackbird-obmc-uboot-3acb011c3c2c26cb6a6ee1b1d61ab8992b4f140b.tar.gz
blackbird-obmc-uboot-3acb011c3c2c26cb6a6ee1b1d61ab8992b4f140b.zip
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>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/imx-common/spi.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/include/asm/imx-common/spi.h b/arch/arm/include/asm/imx-common/spi.h
new file mode 100644
index 0000000000..1d4473a04a
--- /dev/null
+++ b/arch/arm/include/asm/imx-common/spi.h
@@ -0,0 +1,17 @@
+/*
+ * Copyright 2011 Freescale Semiconductor, Inc.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __MXC_SPI_H_
+#define __MXC_SPI_H_
+
+/*
+ * Board-level chip-select callback
+ * Should return GPIO # to be used for chip-select
+ */
+
+int board_spi_cs_gpio(unsigned bus, unsigned cs);
+
+#endif
OpenPOWER on IntegriCloud