]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
m68k: coldfire: add dspi0 module support
authorAngelo Dureghello <angelo@sysam.it>
Thu, 12 Oct 2017 23:09:32 +0000 (01:09 +0200)
committerGreg Ungerer <gerg@linux-m68k.org>
Tue, 7 Nov 2017 03:27:32 +0000 (13:27 +1000)
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>
arch/m68k/coldfire/m5441x.c
arch/m68k/include/asm/m5441xsim.h

index 315d14b0dca06b523237ec0a9202b49ba203ce39..55392af845fb5bc4b381070dea206c9ceacfdd45 100644 (file)
@@ -27,7 +27,7 @@ DEFINE_CLK(0, "intc.0", 18, MCF_CLK);
 DEFINE_CLK(0, "intc.1", 19, MCF_CLK);
 DEFINE_CLK(0, "intc.2", 20, MCF_CLK);
 DEFINE_CLK(0, "imx1-i2c.0", 22, MCF_CLK);
-DEFINE_CLK(0, "mcfdspi.0", 23, MCF_CLK);
+DEFINE_CLK(0, "fsl-dspi.0", 23, MCF_CLK);
 DEFINE_CLK(0, "mcfuart.0", 24, MCF_BUSCLK);
 DEFINE_CLK(0, "mcfuart.1", 25, MCF_BUSCLK);
 DEFINE_CLK(0, "mcfuart.2", 26, MCF_BUSCLK);
@@ -140,6 +140,7 @@ static struct clk * const enable_clks[] __initconst = {
        &__clk_0_18, /* intc0 */
        &__clk_0_19, /* intc0 */
        &__clk_0_20, /* intc0 */
+       &__clk_0_23, /* dspi.0 */
        &__clk_0_24, /* uart0 */
        &__clk_0_25, /* uart1 */
        &__clk_0_26, /* uart2 */
index 4e9095b9480a4f79f38b5e74a0fe6b4b97301f49..c87556d5581c4cea798e550c65ed117cd2df3a4f 100644 (file)
 #define MCFGPIO_IRQ_VECBASE    (MCFINT_VECBASE - MCFGPIO_IRQ_MIN)
 #define MCFGPIO_PIN_MAX                87
 
+/*
+ *  DSPI module.
+ */
+#define MCFDSPI_BASE0          0xfc05c000
+#define MCF_IRQ_DSPI0          (MCFINT0_VECBASE + MCFINT0_DSPI0)
+
 #endif /* m5441xsim_h */