]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8/ls2085a: Enable DSPI get input clk form 'mxc_get_clock'
authorHaikun Wang <Haikun.Wang@freescale.com>
Fri, 26 Jun 2015 11:56:11 +0000 (19:56 +0800)
committerYork Sun <yorksun@freescale.com>
Mon, 20 Jul 2015 18:44:39 +0000 (11:44 -0700)
Signed-off-by: Haikun Wang <haikun.wang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv8/fsl-lsch3/speed.c
arch/arm/include/asm/arch-fsl-lsch3/clock.h

index cac4f925a4ec9386f3e230f381f8d9a4769976ae..d9f137cc2df2e1695a747134292563acfd78ffbb 100644 (file)
@@ -180,6 +180,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
        switch (clk) {
        case MXC_I2C_CLK:
                return get_bus_freq(0) / 2;
+       case MXC_DSPI_CLK:
+               return get_bus_freq(0) / 2;
        default:
                printf("Unsupported clock\n");
        }
index 831af0bda3ae0342b153dac7be7e924857f778cc..62bc53c2fec5ccea4ce8928806963327e570777d 100644 (file)
@@ -16,6 +16,7 @@ enum mxc_clock {
        MXC_UART_CLK,
        MXC_ESDHC_CLK,
        MXC_I2C_CLK,
+       MXC_DSPI_CLK,
 };
 
 unsigned int mxc_get_clock(enum mxc_clock clk);