/* Called before configuring an on-chip UART. */ void anna_uart_pre_configure (unsigned chan, unsigned cflags, unsigned baud) { /* The Anna connects some general-purpose I/O pins on the CPU to the RTS/CTS lines of UART 1's serial connection. I/O pins P07 and P37 are RTS and CTS respectively. */ if (chan == 1) { ANNA_PORT_PM(0) &= ~0x80; /* P07 in output mode */ ANNA_PORT_PM(3) |= 0x80; /* P37 in input mode */ } }
void __init mach_setup (char **cmdline) { ANNA_PORT_PM (LEDS_PORT) = 0; /* Make all LED pins output pins. */ mach_tick = anna_led_tick; }
void __init mach_setup (char **cmdline) { ANNA_PORT_PM (LEDS_PORT) = 0; /* Make all LED pins output pins. */ mach_tick = anna_led_tick; ROOT_DEV = MKDEV (BLKMEM_MAJOR, 0); }