diff options
author | Jason Jin <Jason.jin@freescale.com> | 2012-07-26 15:30:22 +0800 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2012-09-07 15:22:43 -0400 |
commit | 87648ca8876814f8ec4e056f8c4b2b80633a28e3 (patch) | |
tree | c9b87966afbb9211331511aed54297604dfb340d /board | |
parent | 83d645aff0279effbf279d7441f2d847a7983221 (diff) |
Add NFC support for faraday board
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/vybrid/vybrid.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/board/freescale/vybrid/vybrid.c b/board/freescale/vybrid/vybrid.c index 1a96a78812c..a1507e170bc 100644 --- a/board/freescale/vybrid/vybrid.c +++ b/board/freescale/vybrid/vybrid.c @@ -473,10 +473,40 @@ int board_mmc_init(bd_t *bis) } #endif +#ifdef CONFIG_NAND_FSL_NFC +void setup_iomux_nfc(void) +{ + __raw_writel(0x002038df, IOMUXC_PAD_063); + __raw_writel(0x002038df, IOMUXC_PAD_064); + __raw_writel(0x002038df, IOMUXC_PAD_065); + __raw_writel(0x002038df, IOMUXC_PAD_066); + __raw_writel(0x002038df, IOMUXC_PAD_067); + __raw_writel(0x002038df, IOMUXC_PAD_068); + __raw_writel(0x002038df, IOMUXC_PAD_069); + __raw_writel(0x002038df, IOMUXC_PAD_070); + __raw_writel(0x002038df, IOMUXC_PAD_071); + __raw_writel(0x002038df, IOMUXC_PAD_072); + __raw_writel(0x002038df, IOMUXC_PAD_073); + __raw_writel(0x002038df, IOMUXC_PAD_074); + __raw_writel(0x002038df, IOMUXC_PAD_075); + __raw_writel(0x002038df, IOMUXC_PAD_076); + __raw_writel(0x002038df, IOMUXC_PAD_077); + __raw_writel(0x002038df, IOMUXC_PAD_078); + + __raw_writel(0x005038d2, IOMUXC_PAD_094); + __raw_writel(0x005038d2, IOMUXC_PAD_095); + __raw_writel(0x006038d2, IOMUXC_PAD_097); + __raw_writel(0x005038dd, IOMUXC_PAD_099); + __raw_writel(0x006038d2, IOMUXC_PAD_100); + __raw_writel(0x006038d2, IOMUXC_PAD_101); +} +#endif int board_early_init_f(void) { setup_iomux_uart(); - +#ifdef CONFIG_NAND_FSL_NFC + setup_iomux_nfc(); +#endif return 0; } |