static void __init stmp378x_devb_init(void) { stmp3xxx_pinmux_init(NR_REAL_IRQS); /* init stmp3xxx platform */ stmp3xxx_init(); stmp3xxx_dbguart.dev.platform_data = dbguart_pins_control; stmp3xxx_appuart.dev.platform_data = appuart_pins; stmp3xxx_mmc.dev.platform_data = &mmc_data; stmp3xxx_gpmi.dev.platform_data = &gpmi_data; stmp3xxx_spi1.dev.platform_data = &ssp1_pins; stmp3xxx_spi2.dev.platform_data = &ssp2_pins; stmp378x_i2c.dev.platform_data = &i2c_pins; /* register spi devices */ spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); /* add board's devices */ platform_add_devices(devices, ARRAY_SIZE(devices)); /* add devices selected by command line ssp1= and ssp2= options */ stmp3xxx_ssp1_device_register(); stmp3xxx_ssp2_device_register(); }
static void __init stmp378x_devb_init(void) { stmp3xxx_pinmux_init(NR_REAL_IRQS); /* init stmp3xxx platform */ stmp3xxx_init(); /* Init iram allocate */ iram_init(STMP3XXX_OCRAM_PHBASE, STMP3XXX_OCRAM_SIZE); stmp3xxx_dbguart.dev.platform_data = dbguart_pinmux; stmp3xxx_appuart.dev.platform_data = appuart_pinmux; stmp3xxx_gpmi.dev.platform_data = &gpmi_data; stmp3xxx_mmc.dev.platform_data = &mmc_data; stmp3xxx_spi1.dev.platform_data = &ssp1_pins; stmp3xxx_spi2.dev.platform_data = &ssp2_pins; stmp378x_i2c.dev.platform_data = &i2c_pins; stmp3xxx_battery.dev.platform_data = &battery_data; stmp3xxx_keyboard.dev.platform_data = &keyboard_data; /* register spi devices */ spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); /* add board's devices */ platform_add_devices(devices, ARRAY_SIZE(devices)); /* add devices selected by command line ssp1= and ssp2= options */ stmp3xxx_ssp1_device_register(); stmp3xxx_ssp2_device_register(); }
static void __init stmp378x_devb_init(void) { stmp3xxx_pinmux_init(NR_REAL_IRQS); stmp3xxx_init(); stmp3xxx_dbguart.dev.platform_data = dbguart_pins_control; stmp3xxx_appuart.dev.platform_data = appuart_pins; stmp3xxx_mmc.dev.platform_data = &mmc_data; stmp3xxx_gpmi.dev.platform_data = &gpmi_data; stmp3xxx_spi1.dev.platform_data = &ssp1_pins; stmp3xxx_spi2.dev.platform_data = &ssp2_pins; stmp378x_i2c.dev.platform_data = &i2c_pins; spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); platform_add_devices(devices, ARRAY_SIZE(devices)); stmp3xxx_ssp1_device_register(); stmp3xxx_ssp2_device_register(); }