浏览代码

pcm038: mux configuration for predefined gpio line

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Luotao Fu 16 年之前
父节点
当前提交
0160651a65
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      arch/arm/mach-mx2/pcm038.c

+ 3 - 0
arch/arm/mach-mx2/pcm038.c

@@ -216,6 +216,9 @@ static void __init pcm038_init(void)
 
 	mxc_register_device(&mxc_i2c_device1, &pcm038_i2c_1_data);
 
+	/* PE18 for user-LED D40 */
+	mxc_gpio_mode(GPIO_PORTE | 18 | GPIO_GPIO | GPIO_OUT);
+
 	platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
 
 #ifdef CONFIG_MACH_PCM970_BASEBOARD