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>
This commit is contained in:
parent
f6d48b29cb
commit
3acb011c3c
17
arch/arm/include/asm/imx-common/spi.h
Normal file
17
arch/arm/include/asm/imx-common/spi.h
Normal file
@ -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
|
@ -18,6 +18,7 @@
|
||||
#include <asm/imx-common/iomux-v3.h>
|
||||
#include <asm/imx-common/mxc_i2c.h>
|
||||
#include <asm/imx-common/sata.h>
|
||||
#include <asm/imx-common/spi.h>
|
||||
#include <asm/imx-common/boot_mode.h>
|
||||
#include <asm/imx-common/video.h>
|
||||
#include <mmc.h>
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <common.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/imx-common/spi.h>
|
||||
#include <fsl_esdhc.h>
|
||||
#include "common.h"
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <asm/imx-common/iomux-v3.h>
|
||||
#include <asm/imx-common/boot_mode.h>
|
||||
#include <asm/imx-common/mxc_i2c.h>
|
||||
#include <asm/imx-common/spi.h>
|
||||
#include <asm/imx-common/video.h>
|
||||
#include <i2c.h>
|
||||
#include <mmc.h>
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <asm/imx-common/iomux-v3.h>
|
||||
#include <asm/imx-common/mxc_i2c.h>
|
||||
#include <asm/imx-common/boot_mode.h>
|
||||
#include <asm/imx-common/spi.h>
|
||||
#include <mmc.h>
|
||||
#include <fsl_esdhc.h>
|
||||
#include <miiphy.h>
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/imx-common/iomux-v3.h>
|
||||
#include <asm/imx-common/spi.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <common.h>
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <asm/imx-common/mxc_i2c.h>
|
||||
#include <asm/imx-common/boot_mode.h>
|
||||
#include <asm/imx-common/sata.h>
|
||||
#include <asm/imx-common/spi.h>
|
||||
#include <asm/imx-common/video.h>
|
||||
#include <jffs2/load_kernel.h>
|
||||
#include <hwconfig.h>
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/arch/crm_regs.h>
|
||||
#include <asm/arch/clock.h>
|
||||
#include <asm/imx-common/spi.h>
|
||||
#include <i2c.h>
|
||||
#include <mmc.h>
|
||||
#include <fsl_esdhc.h>
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <asm/arch/iomux-mx51.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/imx-common/spi.h>
|
||||
#include <i2c.h>
|
||||
#include <mmc.h>
|
||||
#include <power/pmic.h>
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/arch/imx-regs.h>
|
||||
#include <asm/arch/clock.h>
|
||||
#include <asm/imx-common/spi.h>
|
||||
|
||||
#ifdef CONFIG_MX27
|
||||
/* i.MX27 has a completely wrong register layout and register definitions in the
|
||||
|
Loading…
Reference in New Issue
Block a user