示例#1
0
static void __init apf9328_init(void)
{
	imx1_soc_init();

	mxc_gpio_setup_multiple_pins(apf9328_pins,
			ARRAY_SIZE(apf9328_pins),
			"APF9328");

	imx1_add_imx_uart0(NULL);
	imx1_add_imx_uart1(&uart1_pdata);

	platform_add_devices(devices, ARRAY_SIZE(devices));
}
示例#2
0
/*
 * Board init
 */
static void __init mx1ads_init(void)
{
    mxc_gpio_setup_multiple_pins(mx1ads_pins,
                                 ARRAY_SIZE(mx1ads_pins), "mx1ads");

    /* UART */
    imx1_add_imx_uart0(&uart0_pdata);
    imx1_add_imx_uart1(&uart1_pdata);

    /* Physmap flash */
    mxc_register_device(&flash_device, &mx1ads_flash_data);

    /* I2C */
    i2c_register_board_info(0, mx1ads_i2c_devices,
                            ARRAY_SIZE(mx1ads_i2c_devices));

    imx1_add_imx_i2c(&mx1ads_i2c_data);
}
示例#3
0
文件: mach-mx1ads.c 项目: 08opt/linux
/*
 * Board init
 */
static void __init mx1ads_init(void)
{
	imx1_soc_init();

	mxc_gpio_setup_multiple_pins(mx1ads_pins,
		ARRAY_SIZE(mx1ads_pins), "mx1ads");

	/* UART */
	imx1_add_imx_uart0(&uart0_pdata);
	imx1_add_imx_uart1(&uart1_pdata);

	/* Physmap flash */
	platform_device_register_resndata(NULL, "physmap-flash", 0,
			&flash_resource, 1,
			&mx1ads_flash_data, sizeof(mx1ads_flash_data));

	/* I2C */
	i2c_register_board_info(0, mx1ads_i2c_devices,
				ARRAY_SIZE(mx1ads_i2c_devices));

	imx1_add_imx_i2c(&mx1ads_i2c_data);
}