diff options
author | Lily Zhang <r58066@freescale.com> | 2010-10-18 15:03:10 +0800 |
---|---|---|
committer | Lily Zhang <r58066@freescale.com> | 2010-10-18 16:30:33 +0800 |
commit | 2f0524938f3430125baae136d5d0d68b86a70b96 (patch) | |
tree | a7e64c6518d23cc05b5edd3487106bb70b7bda86 /common | |
parent | 9bbe28258c19c28f8f85c22c932bd119368cfacb (diff) | |
download | u-boot-imx-2f0524938f3430125baae136d5d0d68b86a70b96.zip u-boot-imx-2f0524938f3430125baae136d5d0d68b86a70b96.tar.gz u-boot-imx-2f0524938f3430125baae136d5d0d68b86a70b96.tar.bz2 |
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 <r58066@freescale.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_clk.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <peripheral clock in MHz> -" "Setup/Display peripheral clock\n" "clk ddr <DDR clock in MHz> - Setup/Display DDR clock\n" + "clk nfc <NFC clk in MHz> - Setup/Display NFC clock\n" "Example:\n" "clk - Show various clocks\n" "clk core 665 - Set core clock to 665MHz\n" |