2 * linux/arch/arm/mach-pxa/idp.c
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 * Copyright (c) 2001 Cliff Brake, Accelent Systems Inc.
10 * 2001-09-13: Cliff Brake <cbrake@accelent.com>
13 * Expected command line: mem=32M initrd=0xa1000000,4M root=/dev/ram ramdisk=8192
15 #include <linux/kernel.h>
16 #include <linux/init.h>
17 #include <linux/major.h>
19 #include <linux/interrupt.h>
21 #include <asm/setup.h>
22 #include <asm/memory.h>
23 #include <asm/mach-types.h>
24 #include <asm/hardware.h>
27 #include <asm/mach/arch.h>
28 #include <asm/mach/map.h>
30 #include <asm/arch/idp.h>
35 /* shadow registers for write only registers */
36 unsigned int idp_cpld_led_control_shadow = 0x1;
37 unsigned int idp_cpld_periph_pwr_shadow = 0xd;
38 unsigned int ipd_cpld_cir_shadow = 0;
39 unsigned int idp_cpld_kb_col_high_shadow = 0;
40 unsigned int idp_cpld_kb_col_low_shadow = 0;
41 unsigned int idp_cpld_pccard_en_shadow = 0xC3;
42 unsigned int idp_cpld_gpioh_dir_shadow = 0;
43 unsigned int idp_cpld_gpioh_value_shadow = 0;
44 unsigned int idp_cpld_gpiol_dir_shadow = 0;
45 unsigned int idp_cpld_gpiol_value_shadow = 0;
48 * enable all LCD signals -- they should still be on
50 * enable all serial port transceivers
53 unsigned int idp_control_port_shadow = ((0x7 << 21) | /* LCD power */
54 (0x1 << 19) | /* disable flash write enable */
55 (0x7 << 9)); /* enable serial port transeivers */
59 static void __init idp_init(void)
61 printk("idp_init()\n");
64 static void __init idp_init_irq(void)
69 static struct map_desc idp_io_desc[] __initdata = {
70 /* virtual physical length type */
98 static void __init idp_map_io(void)
101 iotable_init(idp_io_desc, ARRAY_SIZE(idp_io_desc));
103 set_irq_type(IRQ_TO_GPIO_2_80(TOUCH_PANEL_IRQ), TOUCH_PANEL_IRQ_EDGE);
105 // serial ports 2 & 3
106 pxa_gpio_mode(GPIO42_BTRXD_MD);
107 pxa_gpio_mode(GPIO43_BTTXD_MD);
108 pxa_gpio_mode(GPIO44_BTCTS_MD);
109 pxa_gpio_mode(GPIO45_BTRTS_MD);
110 pxa_gpio_mode(GPIO46_STRXD_MD);
111 pxa_gpio_mode(GPIO47_STTXD_MD);
116 MACHINE_START(PXA_IDP, "Accelent Xscale IDP")
117 MAINTAINER("Accelent Systems Inc.")
118 BOOT_MEM(0xa0000000, 0x40000000, io_p2v(0x40000000))
120 INITIRQ(idp_init_irq)
121 INITTIME(pxa_init_time)
122 INIT_MACHINE(idp_init)