示例#1
0
static int init_func_pmubus(void)
{
	tick_printf("pmbus:   ");

#if defined(CONFIG_SUNXI_I2C)
	i2c_init(CONFIG_SYS_I2C_SPEED,CONFIG_SYS_I2C_SLAVE);
#elif defined(CONFIG_SUNXI_P2WI)
	p2wi_init();
#else
	sunxi_rsb_init(0);
#endif
	puts("ready\n");
	return (0);
}
示例#2
0
文件: board.c 项目: xwliu/BPI-M3-bsp
static int init_func_pmubus(void)
{
	tick_printf("pmbus:   ");
#if defined(CONFIG_SUNXI_I2C)
	i2c_init(0, CONFIG_SYS_I2C_SPEED,CONFIG_SYS_I2C_SLAVE); //twi0
#if (defined(CONFIG_ARCH_HOMELET) && defined(CONFIG_ARCH_SUN9IW1P1))
	i2c_init(1, CONFIG_SYS_I2C_SPEED,CONFIG_SYS_I2C_SLAVE);		//twi1 for cvbs
#endif
#endif

#if defined(CONFIG_SUNXI_P2WI)
	p2wi_init();
#endif

#if defined(CONFIG_SUNXI_RSB)
	sunxi_rsb_init(0);
#endif
	puts("ready\n");
	return (0);
}