Commit 8bf83a60 authored by Juha Yrjola's avatar Juha Yrjola

Add an SPI master driver for the OMAP2 McSPI controller

Signed-off-by: default avatarJuha Yrjölä <juha.yrjola@nokia.com>
parent e5c71cec
...@@ -85,6 +85,12 @@ config SPI_BUTTERFLY ...@@ -85,6 +85,12 @@ config SPI_BUTTERFLY
inexpensive battery powered microcontroller evaluation board. inexpensive battery powered microcontroller evaluation board.
This same cable can be used to flash new firmware. This same cable can be used to flash new firmware.
config SPI_OMAP24XX
bool "McSPI driver for OMAP24xx"
depends on SPI_MASTER && ARCH_OMAP24XX
help
SPI master controller for OMAP24xx McSPI modules.
# #
# Add new SPI master controllers in alphabetical order above this line # Add new SPI master controllers in alphabetical order above this line
# #
......
...@@ -13,6 +13,7 @@ obj-$(CONFIG_SPI_MASTER) += spi.o ...@@ -13,6 +13,7 @@ obj-$(CONFIG_SPI_MASTER) += spi.o
# SPI master controller drivers (bus) # SPI master controller drivers (bus)
obj-$(CONFIG_SPI_BITBANG) += spi_bitbang.o obj-$(CONFIG_SPI_BITBANG) += spi_bitbang.o
obj-$(CONFIG_SPI_BUTTERFLY) += spi_butterfly.o obj-$(CONFIG_SPI_BUTTERFLY) += spi_butterfly.o
obj-$(CONFIG_SPI_OMAP24XX) += omap2_mcspi.o
# ... add above this line ... # ... add above this line ...
# SPI protocol drivers (device/link on bus) # SPI protocol drivers (device/link on bus)
......
This diff is collapsed.
#ifndef _OMAP2_MCSPI_H
#define _OMAP2_MCSPI_H
struct omap2_mcspi_platform_config {
unsigned long base;
unsigned short num_cs;
};
struct omap2_mcspi_device_config {
unsigned turbo_mode:1;
/* Do we want one channel enabled at the same time? */
unsigned single_channel:1;
};
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment