Skip to content

Commit

Permalink
SPI master driver for Xilinx virtex
Browse files Browse the repository at this point in the history
Simple SPI master driver for Xilinx SPI controller.
No support for multiple masters.
Not using level 1 drivers from EDK.

[akpm@linux-foundation.org: uninlining]
Signed-off-by: Yuri Frolov <yfrolov@ru.mvista.com>
Signed-off-by: Andrei Konovalov <akonovalov@ru.mvista.com>
Cc: Kumar Gala <galak@gate.crashing.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrei Konovalov authored and Linus Torvalds committed Jul 17, 2007
1 parent 447aef1 commit ae918c0
Show file tree
Hide file tree
Showing 4 changed files with 453 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/ppc/syslib/virtex_devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,11 @@ void __init virtex_early_serial_map(void);
*/
int virtex_device_fixup(struct platform_device *dev);

/* SPI Controller IP */
struct xspi_platform_data {
s16 bus_num;
u16 num_chipselect;
u32 speed_hz;
};

#endif /* __ASM_VIRTEX_DEVICES_H__ */
11 changes: 11 additions & 0 deletions drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,17 @@ config SPI_S3C24XX_GPIO
GPIO lines to provide the SPI bus. This can be used where
the inbuilt hardware cannot provide the transfer mode, or
where the board is using non hardware connected pins.

config SPI_XILINX
tristate "Xilinx SPI controller"
depends on SPI_MASTER && XILINX_VIRTEX && EXPERIMENTAL
select SPI_BITBANG
help
This exposes the SPI controller IP from the Xilinx EDK.

See the "OPB Serial Peripheral Interface (SPI) (v1.00e)"
Product Specification document (DS464) for hardware details.

#
# Add new SPI master controllers in alphabetical order above this line
#
Expand Down
1 change: 1 addition & 0 deletions drivers/spi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ obj-$(CONFIG_SPI_MPC52xx_PSC) += mpc52xx_psc_spi.o
obj-$(CONFIG_SPI_MPC83xx) += spi_mpc83xx.o
obj-$(CONFIG_SPI_S3C24XX_GPIO) += spi_s3c24xx_gpio.o
obj-$(CONFIG_SPI_S3C24XX) += spi_s3c24xx.o
obj-$(CONFIG_SPI_XILINX) += xilinx_spi.o
# ... add above this line ...

# SPI protocol drivers (device/link on bus)
Expand Down
Loading

0 comments on commit ae918c0

Please sign in to comment.