pxa3xx.c (86d688984deefa3ae5a802880c11f2b408b5d6cf) pxa3xx.c (9ba63c4fa10cf446eff06a3200822d22b0c31c31)
1/*
2 * linux/arch/arm/mach-pxa/pxa3xx.c
3 *
4 * code specific to pxa3xx aka Monahans
5 *
6 * Copyright (C) 2006 Marvell International Ltd.
7 *
8 * 2007-09-02: eric miao <eric.miao@marvell.com>

--- 189 unchanged lines hidden (view full) ---

198 OSCC &= ~OSCC_PEN;
199}
200
201static const struct clkops clk_pout_ops = {
202 .enable = clk_pout_enable,
203 .disable = clk_pout_disable,
204};
205
1/*
2 * linux/arch/arm/mach-pxa/pxa3xx.c
3 *
4 * code specific to pxa3xx aka Monahans
5 *
6 * Copyright (C) 2006 Marvell International Ltd.
7 *
8 * 2007-09-02: eric miao <eric.miao@marvell.com>

--- 189 unchanged lines hidden (view full) ---

198 OSCC &= ~OSCC_PEN;
199}
200
201static const struct clkops clk_pout_ops = {
202 .enable = clk_pout_enable,
203 .disable = clk_pout_disable,
204};
205
206static void clk_dummy_enable(struct clk *clk)
207{
208}
209
210static void clk_dummy_disable(struct clk *clk)
211{
212}
213
214static const struct clkops clk_dummy_ops = {
215 .enable = clk_dummy_enable,
216 .disable = clk_dummy_disable,
217};
218
206static struct clk pxa3xx_clks[] = {
207 {
208 .name = "CLK_POUT",
209 .ops = &clk_pout_ops,
210 .rate = 13000000,
211 .delay = 70,
212 },
213
219static struct clk pxa3xx_clks[] = {
220 {
221 .name = "CLK_POUT",
222 .ops = &clk_pout_ops,
223 .rate = 13000000,
224 .delay = 70,
225 },
226
227 /* Power I2C clock is always on */
228 {
229 .name = "I2CCLK",
230 .ops = &clk_dummy_ops,
231 .dev = &pxa3xx_device_i2c_power.dev,
232 },
233
214 PXA3xx_CK("LCDCLK", LCD, &clk_pxa3xx_hsio_ops, &pxa_device_fb.dev),
215 PXA3xx_CK("CAMCLK", CAMERA, &clk_pxa3xx_hsio_ops, NULL),
216 PXA3xx_CK("AC97CLK", AC97, &clk_pxa3xx_ac97_ops, NULL),
217
218 PXA3xx_CKEN("UARTCLK", FFUART, 14857000, 1, &pxa_device_ffuart.dev),
219 PXA3xx_CKEN("UARTCLK", BTUART, 14857000, 1, &pxa_device_btuart.dev),
220 PXA3xx_CKEN("UARTCLK", STUART, 14857000, 1, NULL),
221

--- 282 unchanged lines hidden (view full) ---

504 pxa_init_irq(56, pxa3xx_set_wake);
505 pxa_init_gpio(128, NULL);
506}
507
508/*
509 * device registration specific to PXA3xx.
510 */
511
234 PXA3xx_CK("LCDCLK", LCD, &clk_pxa3xx_hsio_ops, &pxa_device_fb.dev),
235 PXA3xx_CK("CAMCLK", CAMERA, &clk_pxa3xx_hsio_ops, NULL),
236 PXA3xx_CK("AC97CLK", AC97, &clk_pxa3xx_ac97_ops, NULL),
237
238 PXA3xx_CKEN("UARTCLK", FFUART, 14857000, 1, &pxa_device_ffuart.dev),
239 PXA3xx_CKEN("UARTCLK", BTUART, 14857000, 1, &pxa_device_btuart.dev),
240 PXA3xx_CKEN("UARTCLK", STUART, 14857000, 1, NULL),
241

--- 282 unchanged lines hidden (view full) ---

524 pxa_init_irq(56, pxa3xx_set_wake);
525 pxa_init_gpio(128, NULL);
526}
527
528/*
529 * device registration specific to PXA3xx.
530 */
531
532static struct resource i2c_power_resources[] = {
533 {
534 .start = 0x40f500c0,
535 .end = 0x40f500d3,
536 .flags = IORESOURCE_MEM,
537 }, {
538 .start = IRQ_PWRI2C,
539 .end = IRQ_PWRI2C,
540 .flags = IORESOURCE_IRQ,
541 },
542};
543
544struct platform_device pxa3xx_device_i2c_power = {
545 .name = "pxa2xx-i2c",
546 .id = 1,
547 .resource = i2c_power_resources,
548 .num_resources = ARRAY_SIZE(i2c_power_resources),
549};
550
551void __init pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info)
552{
553 pxa3xx_device_i2c_power.dev.platform_data = info;
554}
555
512static struct platform_device *devices[] __initdata = {
513/* &pxa_device_udc, The UDC driver is PXA25x only */
514 &pxa_device_ffuart,
515 &pxa_device_btuart,
516 &pxa_device_stuart,
517 &pxa_device_i2s,
518 &pxa_device_rtc,
519 &pxa27x_device_ssp1,
520 &pxa27x_device_ssp2,
521 &pxa27x_device_ssp3,
522 &pxa3xx_device_ssp4,
523 &pxa27x_device_pwm0,
524 &pxa27x_device_pwm1,
556static struct platform_device *devices[] __initdata = {
557/* &pxa_device_udc, The UDC driver is PXA25x only */
558 &pxa_device_ffuart,
559 &pxa_device_btuart,
560 &pxa_device_stuart,
561 &pxa_device_i2s,
562 &pxa_device_rtc,
563 &pxa27x_device_ssp1,
564 &pxa27x_device_ssp2,
565 &pxa27x_device_ssp3,
566 &pxa3xx_device_ssp4,
567 &pxa27x_device_pwm0,
568 &pxa27x_device_pwm1,
569 &pxa3xx_device_i2c_power,
525};
526
527static struct sys_device pxa3xx_sysdev[] = {
528 {
529 .cls = &pxa_irq_sysclass,
530 }, {
531 .cls = &pxa3xx_mfp_sysclass,
532 }, {

--- 40 unchanged lines hidden ---
570};
571
572static struct sys_device pxa3xx_sysdev[] = {
573 {
574 .cls = &pxa_irq_sysclass,
575 }, {
576 .cls = &pxa3xx_mfp_sysclass,
577 }, {

--- 40 unchanged lines hidden ---