- 积分
- 45
贡献291
飞刀102 FD
注册时间2017-7-11
在线时间10 小时
|
楼主 |
发表于 2018-4-9 11:01:46
|
显示全部楼层
解决方案:
diff --git a/kernel_imx/arch/arm/mach-mx6/board-mx6q_sabresd.c b/kernel_imx/arch/arm/mach-mx6/board-mx6q_sabresd.c
index 6451ebd..95f2bd8 100755
--- a/kernel_imx/arch/arm/mach-mx6/board-mx6q_sabresd.c
+++ b/kernel_imx/arch/arm/mach-mx6/board-mx6q_sabresd.c
@@ -2247,6 +2247,7 @@ static void __init mx6_sabresd_board_init(void)
imx6q_add_device_gpio_leds();
gt928_reset(0x5d);/* set gt928 to 0x5d*/
gt911_reset(0x14);/* set gt911 to 0x14*/
+
imx6q_add_imx_i2c(0, &mx6q_sabresd_i2c_data);
imx6q_add_imx_i2c(1, &mx6q_sabresd_i2c_data);
imx6q_add_imx_i2c(2, &mx6q_sabresd_i2c_data);
@@ -2257,13 +2258,13 @@ static void __init mx6_sabresd_board_init(void)
i2c_register_board_info(1, mxc_i2c1_board_info,
ARRAY_SIZE(mxc_i2c1_board_info));
-/* if(screen_type0==SCREEN_LCD)
+ if(screen_type0==SCREEN_LCD)
i2c_register_board_info(2, mxc_i2c2_board_info2,
ARRAY_SIZE(mxc_i2c2_board_info2));
else if(screen_type1==SCREEN_LVDS||screen_type0==SCREEN_LVDS)
i2c_register_board_info(2, mxc_i2c2_board_info1,
ARRAY_SIZE(mxc_i2c2_board_info1));
- else*/
+// else
i2c_register_board_info(2, mxc_i2c2_board_info2,
ARRAY_SIZE(mxc_i2c2_board_info2)); |
|