Skip to contentSkip to conversation

SPI S3C64XX: Define SPI controller platform devices

PATCH New Jassi Brar 1 participant 1 message Nov 26, 2009

Subsystems (4)
lore
Share & tools
lore

Jassi Brar

author
#0 lore raw

PATCH 4/5 SPI S3C64XX: Define SPI controller platform devices

Platform devices for SPI Controller of S3C64XX are defined and exported for machines to include.
Also, controller setup helper functions are defined for machine code to set runtime configuration of the controller and the bus.

---
 arch/arm/plat-s3c/include/plat/devs.h |    3 +
 arch/arm/plat-s3c64xx/Makefile        |    1 +
 arch/arm/plat-s3c64xx/dev-spi.c       |  175 +++++++++++++++++++++++++++++++++
 3 files changed, 179 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/plat-s3c64xx/dev-spi.c
arch/arm/plat-s3c/include/plat/devs.h +3 -0
index 0f540ea..0fa30e2 100644
@@ -28,6 +28,9 @@ extern struct platform_device s3c64xx_device_iis0;
 extern struct platform_device s3c64xx_device_iis1;
 extern struct platform_device s3c64xx_device_iisv4;
 
+extern struct platform_device s3c64xx_device_spi0;
+extern struct platform_device s3c64xx_device_spi1;
+
 extern struct platform_device s3c_device_fb;
 extern struct platform_device s3c_device_usb;
 extern struct platform_device s3c_device_lcd;
arch/arm/plat-s3c64xx/Makefile +1 -0
index b85b435..ee7f534 100644
@@ -37,6 +37,7 @@ obj-$(CONFIG_S3C64XX_DMA)	+= dma.o
 
 # Device setup
 
+obj-$(CONFIG_SPI_S3C64XX) += dev-spi.o
 obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o
 obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1.o
 obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp.o
arch/arm/plat-s3c64xx/dev-spi.c new file +175 -0

175 lines not on this page · raw message

Signature · 1 line
1.6.2.5