pxa25x.c (688d794c4c3f8b08c814381ee2edd3ede5856056) | pxa25x.c (2cab0292285ce3180224c130d2fb1104aee44ff1) |
---|---|
1/* 2 * linux/arch/arm/mach-pxa/pxa25x.c 3 * 4 * Author: Nicolas Pitre 5 * Created: Jun 15, 2001 6 * Copyright: MontaVista Software Inc. 7 * 8 * Code specific to PXA21x/25x/26x variants. --- 194 unchanged lines hidden (view full) --- 203 INIT_CLKREG(&clk_pxa25x_pwm1, "pxa25x-pwm.1", NULL), 204 INIT_CLKREG(&clk_pxa25x_i2s, "pxa2xx-i2s", NULL), 205 INIT_CLKREG(&clk_pxa25x_stuart, "pxa2xx-ir", "UARTCLK"), 206 INIT_CLKREG(&clk_pxa25x_ficp, "pxa2xx-ir", "FICPCLK"), 207 INIT_CLKREG(&clk_pxa25x_ac97, NULL, "AC97CLK"), 208 INIT_CLKREG(&clk_pxa25x_gpio11, NULL, "GPIO11_CLK"), 209 INIT_CLKREG(&clk_pxa25x_gpio12, NULL, "GPIO12_CLK"), 210 INIT_CLKREG(&clk_pxa25x_mem, "pxa2xx-pcmcia", NULL), | 1/* 2 * linux/arch/arm/mach-pxa/pxa25x.c 3 * 4 * Author: Nicolas Pitre 5 * Created: Jun 15, 2001 6 * Copyright: MontaVista Software Inc. 7 * 8 * Code specific to PXA21x/25x/26x variants. --- 194 unchanged lines hidden (view full) --- 203 INIT_CLKREG(&clk_pxa25x_pwm1, "pxa25x-pwm.1", NULL), 204 INIT_CLKREG(&clk_pxa25x_i2s, "pxa2xx-i2s", NULL), 205 INIT_CLKREG(&clk_pxa25x_stuart, "pxa2xx-ir", "UARTCLK"), 206 INIT_CLKREG(&clk_pxa25x_ficp, "pxa2xx-ir", "FICPCLK"), 207 INIT_CLKREG(&clk_pxa25x_ac97, NULL, "AC97CLK"), 208 INIT_CLKREG(&clk_pxa25x_gpio11, NULL, "GPIO11_CLK"), 209 INIT_CLKREG(&clk_pxa25x_gpio12, NULL, "GPIO12_CLK"), 210 INIT_CLKREG(&clk_pxa25x_mem, "pxa2xx-pcmcia", NULL), |
211 INIT_CLKREG(&clk_dummy, "pxa-gpio", NULL), | 211#ifdef CONFIG_CPU_PXA26x 212 INIT_CLKREG(&clk_dummy, "pxa26x-gpio", NULL), 213#else 214 INIT_CLKREG(&clk_dummy, "pxa25x-gpio", NULL), 215#endif |
212 INIT_CLKREG(&clk_dummy, "sa1100-rtc", NULL), 213}; 214 215static struct clk_lookup pxa25x_hwuart_clkreg = 216 INIT_CLKREG(&clk_pxa25x_hwuart, "pxa2xx-uart.3", NULL); 217 218#ifdef CONFIG_PM 219 --- 150 unchanged lines hidden (view full) --- 370 return ret; 371 372 pxa25x_init_pm(); 373 374 register_syscore_ops(&pxa_irq_syscore_ops); 375 register_syscore_ops(&pxa2xx_mfp_syscore_ops); 376 register_syscore_ops(&pxa2xx_clock_syscore_ops); 377 | 216 INIT_CLKREG(&clk_dummy, "sa1100-rtc", NULL), 217}; 218 219static struct clk_lookup pxa25x_hwuart_clkreg = 220 INIT_CLKREG(&clk_pxa25x_hwuart, "pxa2xx-uart.3", NULL); 221 222#ifdef CONFIG_PM 223 --- 150 unchanged lines hidden (view full) --- 374 return ret; 375 376 pxa25x_init_pm(); 377 378 register_syscore_ops(&pxa_irq_syscore_ops); 379 register_syscore_ops(&pxa2xx_mfp_syscore_ops); 380 register_syscore_ops(&pxa2xx_clock_syscore_ops); 381 |
378 pxa_register_device(&pxa_device_gpio, &pxa25x_gpio_info); | 382 pxa_register_device(&pxa25x_device_gpio, &pxa25x_gpio_info); |
379 ret = platform_add_devices(pxa25x_devices, 380 ARRAY_SIZE(pxa25x_devices)); 381 if (ret) 382 return ret; 383 } 384 385 /* Only add HWUART for PXA255/26x; PXA210/250 do not have it. */ 386 if (cpu_is_pxa255()) 387 clkdev_add(&pxa25x_hwuart_clkreg); 388 389 return ret; 390} 391 392postcore_initcall(pxa25x_init); | 383 ret = platform_add_devices(pxa25x_devices, 384 ARRAY_SIZE(pxa25x_devices)); 385 if (ret) 386 return ret; 387 } 388 389 /* Only add HWUART for PXA255/26x; PXA210/250 do not have it. */ 390 if (cpu_is_pxa255()) 391 clkdev_add(&pxa25x_hwuart_clkreg); 392 393 return ret; 394} 395 396postcore_initcall(pxa25x_init); |