无论读eeprom还是PMIC,am335不应处于主模式吗?u-boot代码如下:
const struct dpll_params *get_dpll_ddr_params(void)
{
struct am335x_baseboard_id header;
enable_i2c0_pin_mux();
i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED, CONFIG_SYS_OMAP24_I2C_SLAVE);
if (read_eeprom(&header) < 0)
puts("Could not get board ID.\n");
if (board_is_evm_sk(&header))
return &dpll_ddr_evm_sk;
else if (board_is_bone_lt(&header))
return &dpll_ddr_bone_black;//400Mhz
else if (board_is_evm_15_or_later(&header))
return &dpll_ddr_evm_sk;//303Mhz
else
return &dpll_ddr;
}
Jian Zhou:
应该是工作在主模式的,你再仔细看下代码