aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Dureghello <angelo@sysam.it>2017-10-12 19:09:32 -0400
committerGreg Ungerer <gerg@linux-m68k.org>2017-11-06 22:27:32 -0500
commit08fe92e2052c79e79d0570902f64bf991d6dd563 (patch)
treeb2c14a3488d41f5d0dc0f4ec5e343d4353bee0ec
parent375bc91e634195b094aa4acb30e1d19807122eca (diff)
m68k: coldfire: add dspi0 module support
This patch adds initial module base address and irq for dspi0. It also defines the dspi0 clock to be used by the Freescale driver. Signed-off-by: Angelo Dureghello <angelo@sysam.it> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
-rw-r--r--arch/m68k/coldfire/m5441x.c3
-rw-r--r--arch/m68k/include/asm/m5441xsim.h6
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/m68k/coldfire/m5441x.c b/arch/m68k/coldfire/m5441x.c
index 315d14b0dca0..55392af845fb 100644
--- a/arch/m68k/coldfire/m5441x.c
+++ b/arch/m68k/coldfire/m5441x.c
@@ -27,7 +27,7 @@ DEFINE_CLK(0, "intc.0", 18, MCF_CLK);
27DEFINE_CLK(0, "intc.1", 19, MCF_CLK); 27DEFINE_CLK(0, "intc.1", 19, MCF_CLK);
28DEFINE_CLK(0, "intc.2", 20, MCF_CLK); 28DEFINE_CLK(0, "intc.2", 20, MCF_CLK);
29DEFINE_CLK(0, "imx1-i2c.0", 22, MCF_CLK); 29DEFINE_CLK(0, "imx1-i2c.0", 22, MCF_CLK);
30DEFINE_CLK(0, "mcfdspi.0", 23, MCF_CLK); 30DEFINE_CLK(0, "fsl-dspi.0", 23, MCF_CLK);
31DEFINE_CLK(0, "mcfuart.0", 24, MCF_BUSCLK); 31DEFINE_CLK(0, "mcfuart.0", 24, MCF_BUSCLK);
32DEFINE_CLK(0, "mcfuart.1", 25, MCF_BUSCLK); 32DEFINE_CLK(0, "mcfuart.1", 25, MCF_BUSCLK);
33DEFINE_CLK(0, "mcfuart.2", 26, MCF_BUSCLK); 33DEFINE_CLK(0, "mcfuart.2", 26, MCF_BUSCLK);
@@ -140,6 +140,7 @@ static struct clk * const enable_clks[] __initconst = {
140 &__clk_0_18, /* intc0 */ 140 &__clk_0_18, /* intc0 */
141 &__clk_0_19, /* intc0 */ 141 &__clk_0_19, /* intc0 */
142 &__clk_0_20, /* intc0 */ 142 &__clk_0_20, /* intc0 */
143 &__clk_0_23, /* dspi.0 */
143 &__clk_0_24, /* uart0 */ 144 &__clk_0_24, /* uart0 */
144 &__clk_0_25, /* uart1 */ 145 &__clk_0_25, /* uart1 */
145 &__clk_0_26, /* uart2 */ 146 &__clk_0_26, /* uart2 */
diff --git a/arch/m68k/include/asm/m5441xsim.h b/arch/m68k/include/asm/m5441xsim.h
index 4e9095b9480a..c87556d5581c 100644
--- a/arch/m68k/include/asm/m5441xsim.h
+++ b/arch/m68k/include/asm/m5441xsim.h
@@ -278,4 +278,10 @@
278#define MCFGPIO_IRQ_VECBASE (MCFINT_VECBASE - MCFGPIO_IRQ_MIN) 278#define MCFGPIO_IRQ_VECBASE (MCFINT_VECBASE - MCFGPIO_IRQ_MIN)
279#define MCFGPIO_PIN_MAX 87 279#define MCFGPIO_PIN_MAX 87
280 280
281/*
282 * DSPI module.
283 */
284#define MCFDSPI_BASE0 0xfc05c000
285#define MCF_IRQ_DSPI0 (MCFINT0_VECBASE + MCFINT0_DSPI0)
286
281#endif /* m5441xsim_h */ 287#endif /* m5441xsim_h */