Commit 3acb011c3c2c26cb6a6ee1b1d61ab8992b4f140b

Authored by Eric Nelson
Committed by Stefano Babic
1 parent f6d48b29cb

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
  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
... ... @@ -18,6 +18,7 @@
18 18 #include <asm/imx-common/iomux-v3.h>
19 19 #include <asm/imx-common/mxc_i2c.h>
20 20 #include <asm/imx-common/sata.h>
  21 +#include <asm/imx-common/spi.h>
21 22 #include <asm/imx-common/boot_mode.h>
22 23 #include <asm/imx-common/video.h>
23 24 #include <mmc.h>
board/compulab/cm_fx6/common.c
... ... @@ -11,6 +11,7 @@
11 11 #include <common.h>
12 12 #include <asm/arch/sys_proto.h>
13 13 #include <asm/gpio.h>
  14 +#include <asm/imx-common/spi.h>
14 15 #include <fsl_esdhc.h>
15 16 #include "common.h"
16 17  
board/embest/mx6boards/mx6boards.c
... ... @@ -23,6 +23,7 @@
23 23 #include <asm/imx-common/iomux-v3.h>
24 24 #include <asm/imx-common/boot_mode.h>
25 25 #include <asm/imx-common/mxc_i2c.h>
  26 +#include <asm/imx-common/spi.h>
26 27 #include <asm/imx-common/video.h>
27 28 #include <i2c.h>
28 29 #include <mmc.h>
board/freescale/mx6qsabreauto/mx6qsabreauto.c
... ... @@ -17,6 +17,7 @@
17 17 #include <asm/imx-common/iomux-v3.h>
18 18 #include <asm/imx-common/mxc_i2c.h>
19 19 #include <asm/imx-common/boot_mode.h>
  20 +#include <asm/imx-common/spi.h>
20 21 #include <mmc.h>
21 22 #include <fsl_esdhc.h>
22 23 #include <miiphy.h>
board/freescale/mx6slevk/mx6slevk.c
... ... @@ -13,6 +13,7 @@
13 13 #include <asm/arch/sys_proto.h>
14 14 #include <asm/gpio.h>
15 15 #include <asm/imx-common/iomux-v3.h>
  16 +#include <asm/imx-common/spi.h>
16 17 #include <asm/io.h>
17 18 #include <linux/sizes.h>
18 19 #include <common.h>
board/gateworks/gw_ventana/gw_ventana.c
... ... @@ -20,6 +20,7 @@
20 20 #include <asm/imx-common/mxc_i2c.h>
21 21 #include <asm/imx-common/boot_mode.h>
22 22 #include <asm/imx-common/sata.h>
  23 +#include <asm/imx-common/spi.h>
23 24 #include <asm/imx-common/video.h>
24 25 #include <jffs2/load_kernel.h>
25 26 #include <hwconfig.h>
board/genesi/mx51_efikamx/efikamx.c
... ... @@ -14,6 +14,7 @@
14 14 #include <asm/arch/sys_proto.h>
15 15 #include <asm/arch/crm_regs.h>
16 16 #include <asm/arch/clock.h>
  17 +#include <asm/imx-common/spi.h>
17 18 #include <i2c.h>
18 19 #include <mmc.h>
19 20 #include <fsl_esdhc.h>
board/ttcontrol/vision2/vision2.c
... ... @@ -15,6 +15,7 @@
15 15 #include <asm/arch/iomux-mx51.h>
16 16 #include <asm/gpio.h>
17 17 #include <asm/arch/sys_proto.h>
  18 +#include <asm/imx-common/spi.h>
18 19 #include <i2c.h>
19 20 #include <mmc.h>
20 21 #include <power/pmic.h>
drivers/spi/mxc_spi.c
... ... @@ -12,6 +12,7 @@
12 12 #include <asm/gpio.h>
13 13 #include <asm/arch/imx-regs.h>
14 14 #include <asm/arch/clock.h>
  15 +#include <asm/imx-common/spi.h>
15 16  
16 17 #ifdef CONFIG_MX27
17 18 /* i.MX27 has a completely wrong register layout and register definitions in the