pxa27x.c (cdd5b5a9761fd66d17586e4f4ba6588c70e640ea) | pxa27x.c (917195d6f8293c35fcf9ed4bfe18f52cc1c9d2e6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/mach-pxa/pxa27x.c 4 * 5 * Author: Nicolas Pitre 6 * Created: Nov 05, 2002 7 * Copyright: MontaVista Software Inc. 8 * --- 262 unchanged lines hidden (view full) --- 271void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info) 272{ 273 local_irq_disable(); 274 PCFR |= PCFR_PI2CEN; 275 local_irq_enable(); 276 pxa_register_device(&pxa27x_device_i2c_power, info); 277} 278 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/mach-pxa/pxa27x.c 4 * 5 * Author: Nicolas Pitre 6 * Created: Nov 05, 2002 7 * Copyright: MontaVista Software Inc. 8 * --- 262 unchanged lines hidden (view full) --- 271void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info) 272{ 273 local_irq_disable(); 274 PCFR |= PCFR_PI2CEN; 275 local_irq_enable(); 276 pxa_register_device(&pxa27x_device_i2c_power, info); 277} 278 |
279static struct pxa_gpio_platform_data pxa27x_gpio_info __initdata = { 280 .irq_base = PXA_GPIO_TO_IRQ(0), 281 .gpio_set_wake = gpio_set_wake, 282}; 283 | |
284static struct platform_device *devices[] __initdata = { | 279static struct platform_device *devices[] __initdata = { |
280 &pxa27x_device_gpio, |
|
285 &pxa27x_device_udc, 286 &pxa_device_pmu, 287 &pxa_device_i2s, 288 &pxa_device_asoc_ssp1, 289 &pxa_device_asoc_ssp2, 290 &pxa_device_asoc_ssp3, 291 &pxa_device_asoc_platform, 292 &pxa_device_rtc, --- 47 unchanged lines hidden (view full) --- 340 pxa_register_wdt(RCSR); 341 342 pxa27x_init_pm(); 343 344 register_syscore_ops(&pxa_irq_syscore_ops); 345 register_syscore_ops(&pxa2xx_mfp_syscore_ops); 346 347 if (!of_have_populated_dt()) { | 281 &pxa27x_device_udc, 282 &pxa_device_pmu, 283 &pxa_device_i2s, 284 &pxa_device_asoc_ssp1, 285 &pxa_device_asoc_ssp2, 286 &pxa_device_asoc_ssp3, 287 &pxa_device_asoc_platform, 288 &pxa_device_rtc, --- 47 unchanged lines hidden (view full) --- 336 pxa_register_wdt(RCSR); 337 338 pxa27x_init_pm(); 339 340 register_syscore_ops(&pxa_irq_syscore_ops); 341 register_syscore_ops(&pxa2xx_mfp_syscore_ops); 342 343 if (!of_have_populated_dt()) { |
348 pxa_register_device(&pxa27x_device_gpio, 349 &pxa27x_gpio_info); | |
350 pxa2xx_set_dmac_info(&pxa27x_dma_pdata); 351 ret = platform_add_devices(devices, 352 ARRAY_SIZE(devices)); 353 } 354 } 355 356 return ret; 357} 358 359postcore_initcall(pxa27x_init); | 344 pxa2xx_set_dmac_info(&pxa27x_dma_pdata); 345 ret = platform_add_devices(devices, 346 ARRAY_SIZE(devices)); 347 } 348 } 349 350 return ret; 351} 352 353postcore_initcall(pxa27x_init); |