pxa27x.c (8990c1bc4be46473ad19bf2fa612ca57286f3df4) | pxa27x.c (851982c1b6ca18cedf6d01e4529a0c1ddb30771e) |
---|---|
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. --- 4 unchanged lines hidden (view full) --- 13 */ 14#include <linux/module.h> 15#include <linux/kernel.h> 16#include <linux/init.h> 17#include <linux/suspend.h> 18#include <linux/platform_device.h> 19#include <linux/sysdev.h> 20 | 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. --- 4 unchanged lines hidden (view full) --- 13 */ 14#include <linux/module.h> 15#include <linux/kernel.h> 16#include <linux/init.h> 17#include <linux/suspend.h> 18#include <linux/platform_device.h> 19#include <linux/sysdev.h> 20 |
21#include <asm/mach/map.h> |
|
21#include <mach/hardware.h> 22#include <asm/irq.h> 23#include <mach/irqs.h> 24#include <mach/gpio.h> 25#include <mach/pxa27x.h> 26#include <mach/reset.h> 27#include <mach/ohci.h> 28#include <mach/pm.h> --- 336 unchanged lines hidden (view full) --- 365} 366 367void __init pxa27x_init_irq(void) 368{ 369 pxa_init_irq(34, pxa27x_set_wake); 370 pxa_init_gpio(IRQ_GPIO_2_x, 2, 120, pxa27x_set_wake); 371} 372 | 22#include <mach/hardware.h> 23#include <asm/irq.h> 24#include <mach/irqs.h> 25#include <mach/gpio.h> 26#include <mach/pxa27x.h> 27#include <mach/reset.h> 28#include <mach/ohci.h> 29#include <mach/pm.h> --- 336 unchanged lines hidden (view full) --- 366} 367 368void __init pxa27x_init_irq(void) 369{ 370 pxa_init_irq(34, pxa27x_set_wake); 371 pxa_init_gpio(IRQ_GPIO_2_x, 2, 120, pxa27x_set_wake); 372} 373 |
374static struct map_desc pxa27x_io_desc[] __initdata = { 375 { /* Mem Ctl */ 376 .virtual = 0xf6000000, 377 .pfn = __phys_to_pfn(0x48000000), 378 .length = 0x00200000, 379 .type = MT_DEVICE 380 }, { /* IMem ctl */ 381 .virtual = 0xfe000000, 382 .pfn = __phys_to_pfn(0x58000000), 383 .length = 0x00100000, 384 .type = MT_DEVICE 385 }, 386}; 387 388void __init pxa27x_map_io(void) 389{ 390 pxa_map_io(); 391 iotable_init(ARRAY_AND_SIZE(pxa27x_io_desc)); 392 pxa27x_get_clk_frequency_khz(1); 393} 394 |
|
373/* 374 * device registration specific to PXA27x. 375 */ 376void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info) 377{ 378 local_irq_disable(); 379 PCFR |= PCFR_PI2CEN; 380 local_irq_enable(); --- 58 unchanged lines hidden --- | 395/* 396 * device registration specific to PXA27x. 397 */ 398void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info) 399{ 400 local_irq_disable(); 401 PCFR |= PCFR_PI2CEN; 402 local_irq_enable(); --- 58 unchanged lines hidden --- |