2008-05-16 17:37:09 +00:00
|
|
|
/*
|
|
|
|
* OpenFirmware SPI support routines
|
|
|
|
* Copyright (C) 2008 Secret Lab Technologies Ltd.
|
|
|
|
*
|
|
|
|
* Support routines for deriving SPI device attachments from the device
|
|
|
|
* tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LINUX_OF_SPI_H
|
|
|
|
#define __LINUX_OF_SPI_H
|
|
|
|
|
|
|
|
#include <linux/spi/spi.h>
|
|
|
|
|
2010-07-27 20:35:58 +00:00
|
|
|
#if defined(CONFIG_OF_SPI) || defined(CONFIG_OF_SPI_MODULE)
|
|
|
|
extern void of_register_spi_devices(struct spi_master *master);
|
|
|
|
#else
|
|
|
|
static inline void of_register_spi_devices(struct spi_master *master)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
#endif /* CONFIG_OF_SPI */
|
2008-05-16 17:37:09 +00:00
|
|
|
|
|
|
|
#endif /* __LINUX_OF_SPI */
|