Example #1
0
	.name	= "ubicom32input",
	.id	= -1,
	.dev	= {
		.platform_data = &ip7160rgw_ubicom32input_data,
	},
};

#ifdef CONFIG_SERIAL_UBI32_SERDES
static struct resource ip7160rgw_ubicom32_suart_resources[] = {
	{
		.start	= RE,
		.end	= RE,
		.flags	= IORESOURCE_MEM,
	},
	{
		.start	= PORT_OTHER_INT(RE),
		.end	= PORT_OTHER_INT(RE),
		.flags	= IORESOURCE_IRQ,
	},
	{
		.start	= 250000000,
		.end	= 250000000,
		.flags	= UBICOM32_SUART_IORESOURCE_CLOCK,
	},
};

static struct platform_device ip7160rgw_ubicom32_suart_device = {
	.name		= "ubicom32suart",
	.id		= -1,
	.num_resources	= ARRAY_SIZE(ip7160rgw_ubicom32_suart_resources),
	.resource	= ip7160rgw_ubicom32_suart_resources,
};

static struct at24_platform_data ip7500module_at24_platform_data = {
	.byte_len	= 8 * 256,
	.page_size	= 256,
};

static struct i2c_board_info __initdata ip7500module_i2c_board_info[] = {
	{
		.type		= "24c16",
		.addr		= 0x50,
		.platform_data  = &ip7500module_at24_platform_data,
	},
	{
		I2C_BOARD_INFO("tsc2007", 0x48),
		.irq = PORT_OTHER_INT(IO_PORT_RD),
		.platform_data = &ip7500media_tsc2007_data,
	},
};


static struct platform_device *ip7500module_devices[] __initdata = {
	&ip7500module_i2c_device,
};

/*
 * ip7500module_init
 *	Called to add the devices which we have on this board
 */
static int __init ip7500module_init(void)
{