From 2f0524938f3430125baae136d5d0d68b86a70b96 Mon Sep 17 00:00:00 2001 From: Lily Zhang Date: Mon, 18 Oct 2010 15:03:10 +0800 Subject: ENGR00132709 MX53: add "clk nfc" command support Add "clk nfc" command support. Limit NFC MAX clock as 34MHZ to be compatible with some old NAND flashes. Signed-off-by: Lily Zhang --- common/cmd_clk.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/cmd_clk.c') diff --git a/common/cmd_clk.c b/common/cmd_clk.c index 0d6123e..b4130f3 100644 --- a/common/cmd_clk.c +++ b/common/cmd_clk.c @@ -42,6 +42,8 @@ int do_clkops(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) clk_info(PERIPH_CLK); else if (strcmp(argv[1], "ddr") == 0) clk_info(DDR_CLK); + else if (strcmp(argv[1], "nfc") == 0) + clk_info(MXC_NFC_CLK); else printf("Unsupported clock type!\n"); break; @@ -53,6 +55,8 @@ int do_clkops(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) clk_config(CONFIG_REF_CLK_FREQ, freq, PERIPH_CLK); else if (strcmp(argv[1], "ddr") == 0) clk_config(CONFIG_REF_CLK_FREQ, freq, DDR_CLK); + else if (strcmp(argv[1], "nfc") == 0) + clk_config(CONFIG_REF_CLK_FREQ, freq, MXC_NFC_CLK); else printf("Unsupported clock type!\n"); break; @@ -75,6 +79,7 @@ U_BOOT_CMD( "clk periph -" "Setup/Display peripheral clock\n" "clk ddr - Setup/Display DDR clock\n" + "clk nfc - Setup/Display NFC clock\n" "Example:\n" "clk - Show various clocks\n" "clk core 665 - Set core clock to 665MHz\n" -- cgit v1.1