pxa27x.c (d790d4d583aeaed9fc6f8a9f4d9f8ce6b1c15c7f) pxa27x.c (09a5358d1ed3e023313e551599bb547edfbf1cbf)
1/*
2 * linux/arch/arm/mach-pxa/pxa27x.c
3 *
4 * Author: Nicolas Pitre
5 * Created: Nov 05, 2002
6 * Copyright: MontaVista Software Inc.
7 *
8 * Code specific to PXA27x aka Bulverde.

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

36void pxa27x_clear_otgph(void)
37{
38 if (cpu_is_pxa27x() && (PSSR & PSSR_OTGPH))
39 PSSR |= PSSR_OTGPH;
40}
41EXPORT_SYMBOL(pxa27x_clear_otgph);
42
43static unsigned long ac97_reset_config[] = {
1/*
2 * linux/arch/arm/mach-pxa/pxa27x.c
3 *
4 * Author: Nicolas Pitre
5 * Created: Nov 05, 2002
6 * Copyright: MontaVista Software Inc.
7 *
8 * Code specific to PXA27x aka Bulverde.

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

36void pxa27x_clear_otgph(void)
37{
38 if (cpu_is_pxa27x() && (PSSR & PSSR_OTGPH))
39 PSSR |= PSSR_OTGPH;
40}
41EXPORT_SYMBOL(pxa27x_clear_otgph);
42
43static unsigned long ac97_reset_config[] = {
44 GPIO113_GPIO,
45 GPIO113_AC97_nRESET,
46 GPIO95_GPIO,
47 GPIO95_AC97_nRESET,
44 GPIO95_AC97_nRESET,
45 GPIO95_GPIO,
46 GPIO113_AC97_nRESET,
47 GPIO113_GPIO,
48};
49
50void pxa27x_assert_ac97reset(int reset_gpio, int on)
51{
52 if (reset_gpio == 113)
53 pxa2xx_mfp_config(on ? &ac97_reset_config[0] :
54 &ac97_reset_config[1], 1);
55

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

378 local_irq_disable();
379 PCFR |= PCFR_PI2CEN;
380 local_irq_enable();
381 pxa_register_device(&pxa27x_device_i2c_power, info);
382}
383
384static struct platform_device *devices[] __initdata = {
385 &pxa27x_device_udc,
48};
49
50void pxa27x_assert_ac97reset(int reset_gpio, int on)
51{
52 if (reset_gpio == 113)
53 pxa2xx_mfp_config(on ? &ac97_reset_config[0] :
54 &ac97_reset_config[1], 1);
55

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

378 local_irq_disable();
379 PCFR |= PCFR_PI2CEN;
380 local_irq_enable();
381 pxa_register_device(&pxa27x_device_i2c_power, info);
382}
383
384static struct platform_device *devices[] __initdata = {
385 &pxa27x_device_udc,
386 &pxa_device_pmu,
386 &pxa_device_i2s,
387 &sa1100_device_rtc,
388 &pxa_device_rtc,
389 &pxa27x_device_ssp1,
390 &pxa27x_device_ssp2,
391 &pxa27x_device_ssp3,
392 &pxa27x_device_pwm0,
393 &pxa27x_device_pwm1,

--- 40 unchanged lines hidden ---
387 &pxa_device_i2s,
388 &sa1100_device_rtc,
389 &pxa_device_rtc,
390 &pxa27x_device_ssp1,
391 &pxa27x_device_ssp2,
392 &pxa27x_device_ssp3,
393 &pxa27x_device_pwm0,
394 &pxa27x_device_pwm1,

--- 40 unchanged lines hidden ---