This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
也有可能,因为kernel起来会重新配置PLL,所以可能会导致GPIO的重置。
那么请问不用gpio直接使能DDR3.
最新的sdk好像解决了这个问题。
5.6版的可以修改代码
./arch/arm/mach-omap2/omap_hwmod_33xx_data.c
static struct omap_hwmod am33xx_gpio2_hwmod = {
.name = "gpio3",
.class = &am33xx_gpio_hwmod_class,
.clkdm_name = "l4ls_clkdm",
.mpu_irqs = am33xx_gpio2_irqs,
.main_clk = "gpio2_ick",
.flags = HWMOD_INIT_NO_RESET | HWMOD_CONTROL_OPT_CLKS_IN_RESET,
.prcm = {
.omap4 = {
.clkctrl_offs = AM33XX_CM_PER_GPIO2_CLKCTRL_OFFSET,
.modulemode = MODULEMODE_SWCTRL,
},
},
.opt_clks = gpio2_opt_clks,
.opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
.dev_attr = &gpio_dev_attr,
.slaves = am33xx_gpio2_slaves,
.slaves_cnt = ARRAY_SIZE(am33xx_gpio2_slaves),
};
上面是我从一个技术支持的邮件里拷的。