]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: mx53: Add SSI suport
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 27 Jun 2011 20:12:09 +0000 (17:12 -0300)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 28 Jun 2011 06:23:17 +0000 (08:23 +0200)
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx5/clock-mx51-mx53.c
arch/arm/mach-mx5/devices-imx53.h
arch/arm/plat-mxc/devices/platform-imx-ssi.c
arch/arm/plat-mxc/include/mach/mx53.h

index 789c6cf1a39263bcb765eb72020c0427aed6f709..6826863306b95e657c9ba17a8c1e331e0eb0e1f0 100644 (file)
@@ -1490,6 +1490,9 @@ static struct clk_lookup mx53_lookups[] = {
        _REGISTER_CLOCK("imx2-wdt.0", NULL, dummy_clk)
        _REGISTER_CLOCK("imx2-wdt.1", NULL, dummy_clk)
        _REGISTER_CLOCK("imx-sdma", NULL, sdma_clk)
+       _REGISTER_CLOCK("imx-ssi.0", NULL, ssi1_clk)
+       _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk)
+       _REGISTER_CLOCK("imx-ssi.2", NULL, ssi3_clk)
 };
 
 static void clk_tree_init(void)
index 48f4c8cc42f54e95e72c70fe2c58a900a86185b4..b8a492fe22000725dfcf74668f172808aca825cf 100644 (file)
@@ -32,3 +32,7 @@ extern const struct imx_spi_imx_data imx53_ecspi_data[];
 extern const struct imx_imx2_wdt_data imx53_imx2_wdt_data[];
 #define imx53_add_imx2_wdt(id, pdata)  \
        imx_add_imx2_wdt(&imx53_imx2_wdt_data[id])
+
+extern const struct imx_imx_ssi_data imx53_imx_ssi_data[];
+#define imx53_add_imx_ssi(id, pdata)   \
+       imx_add_imx_ssi(&imx53_imx_ssi_data[id], pdata)
index 2569c8d8a2ef53e7ff4c1bd1894d8a11f15738c2..a0915d6870776f7c62bae39a884afe28058e4152 100644 (file)
@@ -76,6 +76,16 @@ const struct imx_imx_ssi_data imx51_imx_ssi_data[] __initconst = {
 };
 #endif /* ifdef CONFIG_SOC_IMX51 */
 
+#ifdef CONFIG_SOC_IMX53
+const struct imx_imx_ssi_data imx53_imx_ssi_data[] __initconst = {
+#define imx53_imx_ssi_data_entry(_id, _hwid)                           \
+       imx_imx_ssi_data_entry(MX53, _id, _hwid, SZ_16K)
+       imx53_imx_ssi_data_entry(0, 1),
+       imx53_imx_ssi_data_entry(1, 2),
+       imx53_imx_ssi_data_entry(2, 3),
+};
+#endif /* ifdef CONFIG_SOC_IMX53 */
+
 struct platform_device *__init imx_add_imx_ssi(
                const struct imx_imx_ssi_data *data,
                const struct imx_ssi_platform_data *pdata)
index 7b54eb69f503de66babdeb73d22609010e491777..3128af7daf87137f0374a31eb0a7376e5ff69f84 100644 (file)
 /*
  * DMA request assignments
  */
-#define MX53_DMA_REQ_SSI3_TX1          47
-#define MX53_DMA_REQ_SSI3_RX1          46
-#define MX53_DMA_REQ_SSI3_TX2          45
-#define MX53_DMA_REQ_SSI3_RX2          44
+#define MX53_DMA_REQ_SSI3_TX0          47
+#define MX53_DMA_REQ_SSI3_RX0          46
+#define MX53_DMA_REQ_SSI3_TX1          45
+#define MX53_DMA_REQ_SSI3_RX1          44
 #define MX53_DMA_REQ_UART3_TX  43
 #define MX53_DMA_REQ_UART3_RX  42
 #define MX53_DMA_REQ_ESAI_TX           41
 #define MX53_DMA_REQ_ASRC_DMA1 32
 #define MX53_DMA_REQ_EMI_WR            31
 #define MX53_DMA_REQ_EMI_RD            30
-#define MX53_DMA_REQ_SSI1_TX1          29
-#define MX53_DMA_REQ_SSI1_RX1          28
-#define MX53_DMA_REQ_SSI1_TX2          27
-#define MX53_DMA_REQ_SSI1_RX2          26
-#define MX53_DMA_REQ_SSI2_TX1          25
-#define MX53_DMA_REQ_SSI2_RX1          24
-#define MX53_DMA_REQ_SSI2_TX2          23
-#define MX53_DMA_REQ_SSI2_RX2          22
+#define MX53_DMA_REQ_SSI1_TX0          29
+#define MX53_DMA_REQ_SSI1_RX0          28
+#define MX53_DMA_REQ_SSI1_TX1          27
+#define MX53_DMA_REQ_SSI1_RX1          26
+#define MX53_DMA_REQ_SSI2_TX0          25
+#define MX53_DMA_REQ_SSI2_RX0          24
+#define MX53_DMA_REQ_SSI2_TX1          23
+#define MX53_DMA_REQ_SSI2_RX1          22
 #define MX53_DMA_REQ_I2C2_SDHC2        21
 #define MX53_DMA_REQ_I2C1_SDHC1        20
 #define MX53_DMA_REQ_UART1_TX  19