]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
mx6: clock: Only show CSPI clock if CSPI is enabled
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 16 Nov 2012 01:30:10 +0000 (01:30 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 19 Nov 2012 07:49:00 +0000 (08:49 +0100)
If a board does not enable CSPI, there is no need to show the CSPI clock
frequency as part of the 'clock' command.

Reported-by: Dirk Behme <dirk.behme@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Dirk Behme <dirk.behme@gmail.com>
arch/arm/cpu/armv7/mx6/clock.c

index a01d96f48e04377d705b7a587ec7b3ea59aee283..a50db70b19e45da1810cf82e2cb63496446e3eb9 100644 (file)
@@ -404,7 +404,9 @@ int do_mx6_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        printf("\n");
        printf("IPG        %8d kHz\n", mxc_get_clock(MXC_IPG_CLK) / 1000);
        printf("UART       %8d kHz\n", mxc_get_clock(MXC_UART_CLK) / 1000);
+#ifdef CONFIG_MXC_SPI
        printf("CSPI       %8d kHz\n", mxc_get_clock(MXC_CSPI_CLK) / 1000);
+#endif
        printf("AHB        %8d kHz\n", mxc_get_clock(MXC_AHB_CLK) / 1000);
        printf("AXI        %8d kHz\n", mxc_get_clock(MXC_AXI_CLK) / 1000);
        printf("DDR        %8d kHz\n", mxc_get_clock(MXC_DDR_CLK) / 1000);