各位大神好,我想让gpio_1_30管脚输出高电平,仅此而已。。。但是没有做成功,总是低电平。所涉及到的配置如下:
/*iomux-mx6dl.h*/
#define MX6DL_PAD_ENET_TXD0__GPIO_1_30 \
IOMUX_PAD(0x05D4, 0x0204, 5, 0x0000, 0, NO_PAD_CTRL)
/*board-mx6dl_sabresd.h*/
static iomux_v3_cfg_t mx6dl_sabresd_pads[] = {
...
MX6DL_PAD_ENET_TXD0__GPIO_1_30,
...
};
/*board-mx6q_sabresd.c*/
#define SABRESD_DISP0_POWER_EN IMX_GPIO_NR(1, 30);
mxc_iomux_v3_setup_multiple_pads(mx6dl_sabresd_pads, \
ARRAY_SIZE(mx6dl_sabresd_pads));
static void ty_tsc2003_init(void)
{
gpio_request(SABRESD_DISP0_POWER_EN, "lcd-power");
gpio_direction_output(SABRESD_DISP0_POWER_EN, 1);
gpio_set_value(SABRESD_DISP0_POWER_EN, 1);
printk("ty_tsc2003_init: val is %d\n", gpio_get_value(SABRESD_DISP0_POWER_EN));
}
static void __init mx6_sabresd_board_init(void)
{
...
ty_tsc2003_init();
...
}
不知道哪里配置错了或哪里没配置对,还望大神多多指教,谢谢! |