public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mx6: clock: Only show CSPI clock if CSPI is enabled
Date: Fri, 16 Nov 2012 17:54:30 +0100	[thread overview]
Message-ID: <50A66FC6.6040008@gmail.com> (raw)
In-Reply-To: <1353065410-10282-1-git-send-email-festevam@gmail.com>

Am 16.11.2012 12:30, schrieb Fabio Estevam:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> 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>

Thanks

Dirk

> ---
>   arch/arm/cpu/armv7/mx6/clock.c |    2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
> index a01d96f..a50db70 100644
> --- a/arch/arm/cpu/armv7/mx6/clock.c
> +++ b/arch/arm/cpu/armv7/mx6/clock.c
> @@ -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);
>

      reply	other threads:[~2012-11-16 16:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-16 11:30 [U-Boot] [PATCH] mx6: clock: Only show CSPI clock if CSPI is enabled Fabio Estevam
2012-11-16 16:54 ` Dirk Behme [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50A66FC6.6040008@gmail.com \
    --to=dirk.behme@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox