S3C64XX SPI: Define SPI controller platform devices
Subsystems (3)
PATCH 4/6 S3C64XX SPI: 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.
Signed-off-by Jassi Brar <[email protected]>
--- 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
@@ -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
@@ -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