diff options
author | Jianzheng Zhou <jianzheng.zhou@freescale.com> | 2013-04-03 12:49:51 +0800 |
---|---|---|
committer | Jianzheng Zhou <jianzheng.zhou@freescale.com> | 2013-04-03 13:55:18 +0800 |
commit | 7e09444a91a1d439957a5cbe7a0b659c144ff653 (patch) | |
tree | f2848d43a6305ab9b5613fc18966168016980c0e /arch/arm/mach-mx6 | |
parent | 8fa723312b9701e767c2eda46e4aabb21e21ccb3 (diff) |
ENGR00232210 BT: add uart5 config for imx6dl
Add uart5 config for imx6dl, it is different with imx6q. Need to seperate it.
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6')
-rw-r--r-- | arch/arm/mach-mx6/board-mx6q_sabresd.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c index 739ae4083ebf..9971ff55a765 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabresd.c +++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c @@ -1826,6 +1826,14 @@ static iomux_v3_cfg_t mx6q_uart5_pads[] = { MX6Q_PAD_GPIO_2__GPIO_1_2, }; +static iomux_v3_cfg_t mx6dl_uart5_pads[] = { + MX6DL_PAD_KEY_ROW1__UART5_RXD, + MX6DL_PAD_KEY_COL1__UART5_TXD, + MX6DL_PAD_KEY_COL4__UART5_RTS, + MX6DL_PAD_KEY_ROW4__UART5_CTS, + /* gpio for reset */ + MX6DL_PAD_GPIO_2__GPIO_1_2, +}; static int __init uart5_setup(char * __unused) { uart5_enabled = 1; @@ -1836,8 +1844,12 @@ __setup("bluetooth", uart5_setup); static void __init uart5_init(void) { printk(KERN_INFO "uart5 is added\n"); - mxc_iomux_v3_setup_multiple_pads(mx6q_uart5_pads, - ARRAY_SIZE(mx6q_uart5_pads)); + if (cpu_is_mx6q()) + mxc_iomux_v3_setup_multiple_pads(mx6q_uart5_pads, + ARRAY_SIZE(mx6q_uart5_pads)); + else if (cpu_is_mx6dl()) + mxc_iomux_v3_setup_multiple_pads(mx6dl_uart5_pads, + ARRAY_SIZE(mx6dl_uart5_pads)); imx6q_add_imx_uart(4, &mx6q_sd_uart5_data); } |