diff options
author | Lee Jones <lee.jones@linaro.org> | 2012-07-25 08:58:36 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2012-09-20 06:32:39 -0400 |
commit | 724ebbf4cf248cd747b29fe91ecc96de302a469a (patch) | |
tree | 53838618f75505f516986791a2b675640f0beb92 | |
parent | ae6d35b9486b61c50294f88c1eb5dc1c7b74e65b (diff) |
ARM: ux500: Pass MSP DMA platform data though AUXDATA
It isn't currently possible to pass all platform specific configuration
though Device Tree. Thinks like device names used in the clock
infrastructure, call-backs and DMA information have to be passed in via
AUXDATA structures and the MSP is no exception. Here we're passing DMA
settings.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-msp.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.h | 5 |
3 files changed, 18 insertions, 4 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-msp.c b/arch/arm/mach-ux500/board-mop500-msp.c index bfd48515073d..1c60135abee8 100644 --- a/arch/arm/mach-ux500/board-mop500-msp.c +++ b/arch/arm/mach-ux500/board-mop500-msp.c | |||
@@ -48,7 +48,7 @@ static struct stedma40_chan_cfg msp0_dma_tx = { | |||
48 | /* data_width is set during configuration */ | 48 | /* data_width is set during configuration */ |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static struct msp_i2s_platform_data msp0_platform_data = { | 51 | struct msp_i2s_platform_data msp0_platform_data = { |
52 | .id = MSP_I2S_0, | 52 | .id = MSP_I2S_0, |
53 | .msp_i2s_dma_rx = &msp0_dma_rx, | 53 | .msp_i2s_dma_rx = &msp0_dma_rx, |
54 | .msp_i2s_dma_tx = &msp0_dma_tx, | 54 | .msp_i2s_dma_tx = &msp0_dma_tx, |
@@ -80,7 +80,7 @@ static struct stedma40_chan_cfg msp1_dma_tx = { | |||
80 | /* data_width is set during configuration */ | 80 | /* data_width is set during configuration */ |
81 | }; | 81 | }; |
82 | 82 | ||
83 | static struct msp_i2s_platform_data msp1_platform_data = { | 83 | struct msp_i2s_platform_data msp1_platform_data = { |
84 | .id = MSP_I2S_1, | 84 | .id = MSP_I2S_1, |
85 | .msp_i2s_dma_rx = NULL, | 85 | .msp_i2s_dma_rx = NULL, |
86 | .msp_i2s_dma_tx = &msp1_dma_tx, | 86 | .msp_i2s_dma_tx = &msp1_dma_tx, |
@@ -159,13 +159,13 @@ static struct platform_device ux500_pcm = { | |||
159 | }, | 159 | }, |
160 | }; | 160 | }; |
161 | 161 | ||
162 | static struct msp_i2s_platform_data msp2_platform_data = { | 162 | struct msp_i2s_platform_data msp2_platform_data = { |
163 | .id = MSP_I2S_2, | 163 | .id = MSP_I2S_2, |
164 | .msp_i2s_dma_rx = &msp2_dma_rx, | 164 | .msp_i2s_dma_rx = &msp2_dma_rx, |
165 | .msp_i2s_dma_tx = &msp2_dma_tx, | 165 | .msp_i2s_dma_tx = &msp2_dma_tx, |
166 | }; | 166 | }; |
167 | 167 | ||
168 | static struct msp_i2s_platform_data msp3_platform_data = { | 168 | struct msp_i2s_platform_data msp3_platform_data = { |
169 | .id = MSP_I2S_3, | 169 | .id = MSP_I2S_3, |
170 | .msp_i2s_dma_rx = &msp1_dma_rx, | 170 | .msp_i2s_dma_rx = &msp1_dma_rx, |
171 | .msp_i2s_dma_tx = NULL, | 171 | .msp_i2s_dma_tx = NULL, |
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index e7593b0a4f42..2cb13bc33c83 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -755,6 +755,15 @@ struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = { | |||
755 | OF_DEV_AUXDATA("st,nomadik-i2c", 0x8012a000, "nmk-i2c.4", NULL), | 755 | OF_DEV_AUXDATA("st,nomadik-i2c", 0x8012a000, "nmk-i2c.4", NULL), |
756 | /* Requires device name bindings. */ | 756 | /* Requires device name bindings. */ |
757 | OF_DEV_AUXDATA("stericsson,nmk_pinctrl", 0, "pinctrl-db8500", NULL), | 757 | OF_DEV_AUXDATA("stericsson,nmk_pinctrl", 0, "pinctrl-db8500", NULL), |
758 | /* Requires clock name and DMA bindings. */ | ||
759 | OF_DEV_AUXDATA("stericsson,ux500-msp-i2s", 0x80123000, | ||
760 | "ux500-msp-i2s.0", &msp0_platform_data), | ||
761 | OF_DEV_AUXDATA("stericsson,ux500-msp-i2s", 0x80124000, | ||
762 | "ux500-msp-i2s.1", &msp1_platform_data), | ||
763 | OF_DEV_AUXDATA("stericsson,ux500-msp-i2s", 0x80117000, | ||
764 | "ux500-msp-i2s.2", &msp2_platform_data), | ||
765 | OF_DEV_AUXDATA("stericsson,ux500-msp-i2s", 0x80125000, | ||
766 | "ux500-msp-i2s.3", &msp3_platform_data), | ||
758 | {}, | 767 | {}, |
759 | }; | 768 | }; |
760 | 769 | ||
diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h index c6daea208870..67943243eb12 100644 --- a/arch/arm/mach-ux500/board-mop500.h +++ b/arch/arm/mach-ux500/board-mop500.h | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | /* For NOMADIK_NR_GPIO */ | 10 | /* For NOMADIK_NR_GPIO */ |
11 | #include <mach/irqs.h> | 11 | #include <mach/irqs.h> |
12 | #include <mach/msp.h> | ||
12 | #include <linux/amba/mmci.h> | 13 | #include <linux/amba/mmci.h> |
13 | 14 | ||
14 | /* Snowball specific GPIO assignments, this board has no GPIO expander */ | 15 | /* Snowball specific GPIO assignments, this board has no GPIO expander */ |
@@ -83,6 +84,10 @@ extern struct mmci_platform_data mop500_sdi0_data; | |||
83 | extern struct mmci_platform_data mop500_sdi1_data; | 84 | extern struct mmci_platform_data mop500_sdi1_data; |
84 | extern struct mmci_platform_data mop500_sdi2_data; | 85 | extern struct mmci_platform_data mop500_sdi2_data; |
85 | extern struct mmci_platform_data mop500_sdi4_data; | 86 | extern struct mmci_platform_data mop500_sdi4_data; |
87 | extern struct msp_i2s_platform_data msp0_platform_data; | ||
88 | extern struct msp_i2s_platform_data msp1_platform_data; | ||
89 | extern struct msp_i2s_platform_data msp2_platform_data; | ||
90 | extern struct msp_i2s_platform_data msp3_platform_data; | ||
86 | extern struct arm_pmu_platdata db8500_pmu_platdata; | 91 | extern struct arm_pmu_platdata db8500_pmu_platdata; |
87 | 92 | ||
88 | extern void mop500_sdi_init(struct device *parent); | 93 | extern void mop500_sdi_init(struct device *parent); |