patch-2.4.19 linux-2.4.19/arch/arm/mach-sa1100/adsbitsy.c
Next file: linux-2.4.19/arch/arm/mach-sa1100/assabet.c
Previous file: linux-2.4.19/arch/arm/mach-sa1100/Makefile
Back to the patch index
Back to the overall index
- Lines: 74
- Date:
Fri Aug 2 17:39:42 2002
- Orig file:
linux-2.4.18/arch/arm/mach-sa1100/adsbitsy.c
- Orig date:
Thu Oct 11 09:04:57 2001
diff -urN linux-2.4.18/arch/arm/mach-sa1100/adsbitsy.c linux-2.4.19/arch/arm/mach-sa1100/adsbitsy.c
@@ -53,7 +53,7 @@
/*
* Probe for SA1111.
*/
- ret = sa1111_probe();
+ ret = sa1111_probe(ADSBITSY_SA1111_BASE);
if (ret < 0)
return ret;
@@ -94,7 +94,7 @@
sa1110_mb_enable();
set_GPIO_IRQ_edge(GPIO_GPIO0, GPIO_RISING_EDGE);
- sa1111_init_irq(SA1100_GPIO_TO_IRQ(0));
+ sa1111_init_irq(IRQ_GPIO0);
return 0;
}
@@ -126,8 +126,8 @@
static struct map_desc adsbitsy_io_desc[] __initdata = {
/* virtual physical length domain r w c b */
- { 0xe8000000, 0x08000000, 0x01000000, DOMAIN_IO, 1, 1, 0, 0 }, /* Flash bank 1 */
- { 0xf4000000, 0x18000000, 0x00800000, DOMAIN_IO, 1, 1, 0, 0 }, /* SA1111 */
+ { 0xe8000000, 0x08000000, 0x01000000, DOMAIN_IO, 0, 1, 0, 0 }, /* Flash bank 1 */
+ { 0xf4000000, 0x18000000, 0x00800000, DOMAIN_IO, 0, 1, 0, 0 }, /* SA1111 */
LAST_DESC
};
@@ -135,24 +135,15 @@
{
if (port->mapbase == _Ser1UTCR0) {
Ser1SDCR0 |= SDCR0_UART;
- // Set RTS Output and High (should be done in the set_mctrl fn)
- GPDR |= GPIO_GPIO15;
- GPCR |= GPIO_GPIO15;
- // Set CTS Input
- GPDR &= ~GPIO_GPIO14;
+#error Fixme // Set RTS High (should be done in the set_mctrl fn)
+ GPCR = GPIO_GPIO15;
} else if (port->mapbase == _Ser2UTCR0) {
Ser2UTCR4 = Ser2HSCR0 = 0;
- // Set RTS Output and High (should be done in the set_mctrl fn)
- GPDR |= GPIO_GPIO17;
- GPCR |= GPIO_GPIO17;
- // Set CTS Input
- GPDR &= ~GPIO_GPIO16;
+#error Fixme // Set RTS High (should be done in the set_mctrl fn)
+ GPCR = GPIO_GPIO17;
} else if (port->mapbase == _Ser2UTCR0) {
- // Set RTS Output and High (should be done in the set_mctrl fn)
- GPDR |= GPIO_GPIO19;
- GPCR |= GPIO_GPIO19;
- // Set CTS Input
- GPDR &= ~GPIO_GPIO18;
+#error Fixme // Set RTS High (should be done in the set_mctrl fn)
+ GPCR = GPIO_GPIO19;
}
return 0;
}
@@ -166,10 +157,12 @@
sa1100_map_io();
iotable_init(adsbitsy_io_desc);
- sa1110_register_uart_fns(&adsbitsy_port_fns);
+ sa1100_register_uart_fns(&adsbitsy_port_fns);
sa1100_register_uart(0, 3);
sa1100_register_uart(1, 1);
sa1100_register_uart(2, 2);
+ GPDR |= GPIO_GPIO15 | GPIO_GPIO17 | GPIO_GPIO19;
+ GPDR &= ~(GPIO_GPIO14 | GPIO_GPIO16 | GPIO_GPIO18);
}
MACHINE_START(ADSBITSY, "ADS Bitsy")
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)