BBB从上电开始把它的某一引脚(如EHRPWM1B)设置为高电平?在borad-am335xevm.c添加了下面代码:
static struct pinmux_config bbb_gpio_pin_mux[] = {
//{"gpmc_a3.gpio1_19", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT},
{"gpmc_a3.gpio1_19", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT_PULLUP},
{NULL, 0},
};
#define RESET_GPIO GPIO_TO_PIN(1, 19)
static void chipsee_reset_init(int evm_id, int profile)
{
printk(KERN_INFO"board-am33xevm.c chipsee_reset_init(int evm_id, int profile)\n");
setup_pin_mux(chipsee_reset_pin_mux);
gpio_request(RESET_GPIO, "sysfs");
gpio_export(RESET_GPIO, 1);
gpio_direction_output(RESET_GPIO, 1);
return;
}
这样设了,进入内核启动时引脚才点位高电平。