summaryrefslogtreecommitdiff
path: root/include/configs/s5pc210_universal.h
diff options
context:
space:
mode:
authorPiotr Wilczek <p.wilczek@samsung.com>2012-10-19 05:34:03 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2012-11-15 21:08:19 +0900
commitff0fedd58529e50e972d6b983c52c54a062f8c75 (patch)
tree33204f25e6428e6d220a4ecd03888caebddb90f9 /include/configs/s5pc210_universal.h
parenta6f173073b04f193e83bccf39569e56233c9edf0 (diff)
downloadu-boot-imx-ff0fedd58529e50e972d6b983c52c54a062f8c75.zip
u-boot-imx-ff0fedd58529e50e972d6b983c52c54a062f8c75.tar.gz
u-boot-imx-ff0fedd58529e50e972d6b983c52c54a062f8c75.tar.bz2
exynos4: universal_C210: use software SPI
This patch use software spi on Samsung Universal C210 board. Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/configs/s5pc210_universal.h')
-rw-r--r--include/configs/s5pc210_universal.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/configs/s5pc210_universal.h b/include/configs/s5pc210_universal.h
index 07849fb1..54ee8c4 100644
--- a/include/configs/s5pc210_universal.h
+++ b/include/configs/s5pc210_universal.h
@@ -263,4 +263,25 @@
#define CONFIG_USB_GADGET_S3C_UDC_OTG
#define CONFIG_USB_GADGET_DUALSPEED
+/*
+ * SPI Settings
+ */
+#define CONFIG_SOFT_SPI
+#define CONFIG_SOFT_SPI_MODE SPI_MODE_3
+#define CONFIG_SOFT_SPI_GPIO_SCLK exynos4_gpio_part2_get_nr(y3, 1)
+#define CONFIG_SOFT_SPI_GPIO_MOSI exynos4_gpio_part2_get_nr(y3, 3)
+#define CONFIG_SOFT_SPI_GPIO_MISO exynos4_gpio_part2_get_nr(y3, 0)
+#define CONFIG_SOFT_SPI_GPIO_CS exynos4_gpio_part2_get_nr(y4, 3)
+
+#define SPI_DELAY udelay(1)
+#undef SPI_INIT
+#define SPI_SCL(bit) universal_spi_scl(bit)
+#define SPI_SDA(bit) universal_spi_sda(bit)
+#define SPI_READ universal_spi_read()
+#ifndef __ASSEMBLY__
+void universal_spi_scl(int bit);
+void universal_spi_sda(int bit);
+int universal_spi_read(void);
+#endif
+
#endif /* __CONFIG_H */