HI All:
i am using gpio GP1[18] to light the led up. Here is my code that adding into board-ti8148evm.c
static void __init ti814x_gpio_init(void)
{
int error;
omap_mux_init_signal("gpmc_a_23_mux0.gpio1_18_mux0", TI814X_PULL_UP | (1 << 18) );
error = gpio_request(GPIO_TI, "gpio");
if (error < 0) {
printk(KERN_ERR "%s: failed to request GPIO "
": %d\n", __func__, error);
return;
}
gpio_direction_output(GPIO_TI, 1);
gpio_export(50, true);
}
static void __init ti8148_evm_init(void)
{
..........
ti814x_gpio_init();
}
I can see the gpio50 in /sys/class/gpio from my console port, and i can check the direction (out) and value (1) from the console port.
But I cannot see the voltage pull high from my ammeter. By the way, I also check the value (00040001) in the address of GP1[18] from
u-boot, but I am not pretty sure what it mean. I am very new in this field, could anyone give me some direction?