mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08:00
c7c8c78fdf
This adds a U300 board configuration for the PL022 SSP/SPI PrimeCell driver recently merged to the 2.6.31-rc series. Further it adds a dummy loopback SPI chip that can be used for testing the SPI functionality on a running system using the loopback mode of PL022. Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
27 lines
594 B
C
27 lines
594 B
C
/*
|
|
* arch/arm/mach-u300/spi.h
|
|
*
|
|
* Copyright (C) 2009 ST-Ericsson AB
|
|
* License terms: GNU General Public License (GPL) version 2
|
|
*
|
|
* Author: Linus Walleij <linus.walleij@stericsson.com>
|
|
*/
|
|
#ifndef SPI_H
|
|
#define SPI_H
|
|
#include <linux/amba/bus.h>
|
|
|
|
#ifdef CONFIG_SPI_PL022
|
|
void __init u300_spi_init(struct amba_device *adev);
|
|
void __init u300_spi_register_board_devices(void);
|
|
#else
|
|
/* Compile out SPI support if PL022 is not selected */
|
|
static inline void __init u300_spi_init(struct amba_device *adev)
|
|
{
|
|
}
|
|
static inline void __init u300_spi_register_board_devices(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif
|