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 /board | |
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 'board')
-rw-r--r-- | board/freescale/mx53_rd/mx53_rd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/mx53_rd/mx53_rd.c b/board/freescale/mx53_rd/mx53_rd.c index d88cb38..9c71514 100644 --- a/board/freescale/mx53_rd/mx53_rd.c +++ b/board/freescale/mx53_rd/mx53_rd.c @@ -1036,6 +1036,13 @@ void setup_nfc(void) reg &= ~WEIM_GCR2_MUX16_BYP_GRANT_MASK; __raw_writel(reg, WEIM_BASE_ADDR + i); } + + /* To be compatible with some old NAND flash, + * limit NFC clocks as 34MHZ. The user can modify + * it according to dedicate NAND flash + */ + clk_config(0, 34, MXC_NFC_CLK); + #if defined(CONFIG_MX53_ARD) mxc_request_iomux(MX53_PIN_NANDF_CS0, IOMUX_CONFIG_ALT0); |