2 * linux/arch/arm/mach-sa1100/jornada720.c
5 #include <linux/init.h>
6 #include <linux/kernel.h>
8 #include <linux/delay.h>
10 #include <asm/hardware.h>
11 #include <asm/hardware/sa1111.h>
13 #include <asm/setup.h>
15 #include <asm/mach/arch.h>
16 #include <asm/mach/map.h>
17 #include <asm/mach/serial_sa1100.h>
23 #define JORTUCR_VAL 0x20000400
24 #define JORSKCR_INIT 0x00002081 /* Turn off VCO to enable PLL, set Ready En and enable nOE assertion from DC */
25 #define JORSKCR_RCLK 0x00002083 /* Add turning on RCLK to above */
26 #define JORSKCR_VAL 0x0000001B /* sets the 1101 control register to on */
28 static int __init jornada720_init(void)
31 TUCR = JORTUCR_VAL; /* set the oscillator out to the SA-1101 */
39 SBI_SKCR = JORSKCR_INIT;/* Turn on the PLL, enable Ready and enable nOE assertion from DC */
42 SBI_SKCR = JORSKCR_RCLK;/* turn on the RCLOCK */
43 SBI_SMCR = 0x35; /* initialize the SMC (debug SA-1111 reset */
44 PCCR = 0; /* initialize the S2MC (debug SA-1111 reset) */
46 /* LDD4 is speaker, LDD3 is microphone */
47 PPSR &= ~(PPC_LDD3 | PPC_LDD4);
48 PPDR |= PPC_LDD3 | PPC_LDD4;
50 /* initialize extra IRQs */
51 set_GPIO_IRQ_edge(GPIO_GPIO1, GPIO_RISING_EDGE);
52 sa1111_init_irq(IRQ_GPIO1); /* chained on GPIO 1 */
57 __initcall(jornada720_init);
61 fixup_jornada720(struct machine_desc *desc, struct param_struct *params,
62 char **cmdline, struct meminfo *mi)
64 SET_BANK( 0, 0xc0000000, 32*1024*1024 );
68 static struct map_desc jornada720_io_desc[] __initdata = {
69 /* virtual physical length domain r w c b */
70 { 0xe8000000, 0x00000000, 0x02000000, DOMAIN_IO, 0, 1, 0, 0 }, /* Flash bank 0 */
71 { 0xf0000000, 0x48000000, 0x00100000, DOMAIN_IO, 0, 1, 0, 0 }, /* Epson registers */
72 { 0xf1000000, 0x48200000, 0x00100000, DOMAIN_IO, 0, 1, 0, 0 }, /* Epson frame buffer */
73 { 0xf4000000, 0x40000000, 0x00100000, DOMAIN_IO, 0, 1, 0, 0 }, /* SA-1111 */
77 static void __init jornada720_map_io(void)
80 iotable_init(jornada720_io_desc);
82 sa1100_register_uart(0, 3);
83 sa1100_register_uart(1, 1);
86 MACHINE_START(JORNADA720, "HP Jornada 720")
87 BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000)
88 BOOT_PARAMS(0xc0000100)
89 FIXUP(fixup_jornada720)
90 MAPIO(jornada720_map_io)
91 INITIRQ(sa1100_init_irq)