static void __init add_disp(void) { pxa_register_device(&pxa910_device_disp, &dkb_disp_info, sizeof(dkb_disp_info)); spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); pxa_register_device(&pxa910_device_fb, &dkb_fb_info, sizeof(dkb_fb_info)); pxa_register_device(&pxa910_device_panel, &dkb_tpo_panel_info, sizeof(dkb_tpo_panel_info)); }
void __init pxa_set_hwuart_info(void *info) { if (cpu_is_pxa255()) pxa_register_device(&pxa_device_hwuart, info); else pr_info("UART: Ignoring attempt to register HWUART on non-PXA255 hardware"); }
static int __init pxa25x_init(void) { int ret = 0; if (cpu_is_pxa25x()) { reset_status = RCSR; if ((ret = pxa_init_dma(IRQ_DMA, 16))) return ret; pxa25x_init_pm(); register_syscore_ops(&pxa_irq_syscore_ops); register_syscore_ops(&pxa2xx_mfp_syscore_ops); pxa2xx_set_dmac_info(16); pxa_register_device(&pxa25x_device_gpio, &pxa25x_gpio_info); ret = platform_add_devices(pxa25x_devices, ARRAY_SIZE(pxa25x_devices)); if (ret) return ret; } return ret; }
void __init pxa_set_ac97_info(pxa2xx_audio_ops_t *ops) { int ret; ret = clk_add_alias("ac97_clk", "pxa2xx-ac97:0", "AC97CLK", &pxa_device_ac97.dev); if (ret) pr_err("PXA AC97 clock1 alias error: %d\n", ret); ret = clk_add_alias("ac97_clk", "pxa2xx-ac97:1", "AC97CLK", &pxa_device_ac97.dev); if (ret) pr_err("PXA AC97 clock2 alias error: %d\n", ret); pxa_register_device(&pxa_device_ac97, ops); }
void __init pxa_set_ohci_info(struct pxaohci_platform_data *info) { pxa_register_device(&pxa27x_device_ohci, info); }
void __init pxa_set_keypad_info(struct pxa27x_keypad_platform_data *info) { pxa_register_device(&pxa27x_device_keypad, info); }
void __init pxa_set_ac97_info(pxa2xx_audio_ops_t *ops) { pxa_register_device(&pxa_device_ac97, ops); }
void __init pxa_set_ficp_info(struct pxaficp_platform_data *info) { pxa_register_device(&pxa_device_ficp, info); }
void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info) { pxa_register_device(&pxa_device_i2c, info); }
void __init set_pxa_fb_info(struct pxafb_mach_info *info) { pxa_register_device(&pxa_device_fb, info); }
void __init pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info) { pxa_register_device(&pxa3xx_device_u2d, info); }
void __init pxa95x_set_i2c_power_info(struct i2c_pxa_platform_data *info) { pxa_register_device(&pxa3xx_device_i2c_power, info); }
void __init pxa_set_fb_info(struct device *parent, struct pxafb_mach_info *info) { pxa_device_fb.dev.parent = parent; pxa_register_device(&pxa_device_fb, info); }
void __init pxa2xx_set_dmac_info(int nb_channels) { pxa_dma_pdata.dma_channels = nb_channels; pxa_register_device(&pxa2xx_pxa_dma, &pxa_dma_pdata); }
void __init pxa_set_camera_info(struct pxacamera_platform_data *info) { pxa_register_device(&pxa27x_device_camera, info); }
void __init pxa_set_stuart_info(void *info) { pxa_register_device(&pxa_device_stuart, info); }
void __init pxa3xx_set_mci3_info(struct pxamci_platform_data *info) { pxa_register_device(&pxa3xx_device_mci3, info); }
void __init pxa2xx_set_dmac_info(struct mmp_dma_platdata *dma_pdata) { pxa_register_device(&pxa2xx_pxa_dma, dma_pdata); }