Thread (10 messages) flat view 10 messages, 2 authors, 2008-10-14

Re: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

From: Scott Wood <hidden>
Date: 2008-10-14 06:07:18

On Mon, Oct 13, 2008 at 02:01:55PM +0200, Joakim Tjernlund wrote:
Secondly i2c, I have this in my platform driver:
static struct i2c_board_info __initdata tmcu_i2c_devices[] = {
	{ I2C_BOARD_INFO("rtc-ds1307", 0x68),
	  .type = "ds1337",
	},
};

int __init tmcu_i2c_board_devs(void)
{
	int ret;
	ret = i2c_register_board_info(0, tmcu_i2c_devices,
				      ARRAY_SIZE(tmcu_i2c_devices));
	return ret;
}
arch_initcall(tmcu_i2c_board_devs);
i2c-mpc.c now registers as a dynamically-numbered bus; you need to either
use the device tree, or call i2c_new_device().

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help