From patchwork Fri Apr 24 20:39:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniy Paltsev X-Patchwork-Id: 238443 List-Id: U-Boot discussion From: Eugeniy.Paltsev at synopsys.com (Eugeniy Paltsev) Date: Fri, 24 Apr 2020 23:39:30 +0300 Subject: [PATCH 09/14] ARC: HSDK-4xD: print timer clock value In-Reply-To: <20200424203935.21333-1-Eugeniy.Paltsev@synopsys.com> References: <20200424203935.21333-1-Eugeniy.Paltsev@synopsys.com> Message-ID: <20200424203935.21333-10-Eugeniy.Paltsev@synopsys.com> Print timer clock value in hsdk_clock print_all command. Signed-off-by: Eugeniy Paltsev --- arch/arc/dts/hsdk-common.dtsi | 6 ++++-- board/synopsys/hsdk/hsdk.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arc/dts/hsdk-common.dtsi b/arch/arc/dts/hsdk-common.dtsi index 7292a8da514..fd4245e1646 100644 --- a/arch/arc/dts/hsdk-common.dtsi +++ b/arch/arc/dts/hsdk-common.dtsi @@ -40,7 +40,8 @@ <&cgu_clk CLK_SYS_DMAC_CFG>, <&cgu_clk CLK_SYS_SDIO_REF>, <&cgu_clk CLK_SYS_SPI_REF>, <&cgu_clk CLK_SYS_I2C_REF>, <&cgu_clk CLK_SYS_UART_REF>, <&cgu_clk CLK_SYS_EBI_REF>, - <&cgu_clk CLK_TUN_ROM>, <&cgu_clk CLK_TUN_PWM>; + <&cgu_clk CLK_TUN_ROM>, <&cgu_clk CLK_TUN_PWM>, + <&cgu_clk CLK_TUN_TIMER>; clock-names = "cpu-pll", "sys-pll", "tun-pll", "ddr-clk", "cpu-clk", "hdmi-pll", @@ -53,7 +54,8 @@ "dmac-cfg-clk", "sdio-ref-clk", "spi-clk", "i2c-clk", "uart-clk", "ebi-clk", - "rom-clk", "pwm-clk"; + "rom-clk", "pwm-clk", + "timer-clk"; }; cgu_clk: cgu-clk at f0000000 { diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c index 7ba2a56c331..b8b995db47d 100644 --- a/board/synopsys/hsdk/hsdk.c +++ b/board/synopsys/hsdk/hsdk.c @@ -1017,6 +1017,8 @@ static int do_hsdk_clock_print_all(cmd_tbl_t *cmdtp, int flag, int argc, soc_clk_ctl("tun-clk", NULL, CLK_PRINT | CLK_MHZ); soc_clk_ctl("rom-clk", NULL, CLK_PRINT | CLK_MHZ); soc_clk_ctl("pwm-clk", NULL, CLK_PRINT | CLK_MHZ); + if (is_board_match_runtime(T_BOARD_HSDK_4XD)) + soc_clk_ctl("timer-clk", NULL, CLK_PRINT | CLK_MHZ); printf("\n"); return CMD_RET_SUCCESS;