本帖最后由 mobz 于 2015-10-23 16:26 编辑
想要配置DIO_PIN15作为LCD的使能脚
mxcfb1: fb@0 {
compatible = "fsl,mxc_sdc_fb";
disp_dev = "ldb";
interface_pix_fmt = "RGB24";
mode_str ="1280x800@60";
default_bpp = <18>;
int_clk = <0>;
late_init = <0>;
my_lcd = <&gpio4 17 GPIO_ACTIVE_HIGH>; //DI0_PIN15对应这个脚 应该 但是还是拉不高
status = "ok";
};
ret = devm_gpio_request_one(&pdev->dev, plat_data->gpio_int,
GPIOF_OUT_INIT_HIGH,
"my_lcd");
if (ret)
printk("---->error\n");//这里没有出错
lcd_enable = gpio_get_value(plat_data->gpio_int);
printk("init hi..shady---->get_lcd_eanble = %d\n", lcd_enable);//这里读到的值是0
/* set high and read */
gpio_set_value(plat_data->gpio_int, 1); //手动拉高后还是无法设置为1
lcd_enable = gpio_get_value(plat_data->gpio_int); |