Deleted Added
full compact
board_kb920x.c (160374) board_kb920x.c (160453)
1/*-
2 * Copyright (c) 1994-1998 Mark Brinicombe.
3 * Copyright (c) 1994 Brini.
4 * All rights reserved.
5 *
6 * This code is derived from software written for Brini by Mark Brinicombe
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 34 unchanged lines hidden (view full) ---

43 * Created : 17/09/94
44 */
45
46#include "opt_msgbuf.h"
47#include "opt_ddb.h"
48#include "opt_at91.h"
49
50#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1994-1998 Mark Brinicombe.
3 * Copyright (c) 1994 Brini.
4 * All rights reserved.
5 *
6 * This code is derived from software written for Brini by Mark Brinicombe
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 34 unchanged lines hidden (view full) ---

43 * Created : 17/09/94
44 */
45
46#include "opt_msgbuf.h"
47#include "opt_ddb.h"
48#include "opt_at91.h"
49
50#include <sys/cdefs.h>
51__FBSDID("$FreeBSD: head/sys/arm/at91/kb920x_machdep.c 160374 2006-07-15 00:09:53Z cognet $");
51__FBSDID("$FreeBSD: head/sys/arm/at91/kb920x_machdep.c 160453 2006-07-17 21:20:00Z cognet $");
52
53#define _ARM32_BUS_DMA_PRIVATE
54#include <sys/param.h>
55#include <sys/systm.h>
56#include <sys/sysproto.h>
57#include <sys/signalvar.h>
58#include <sys/imgact.h>
59#include <sys/kernel.h>

--- 169 unchanged lines hidden (view full) ---

229 /* PIOA's A periph: Turn USART 0 and 2's TX/RX pins */
230 at91_pio_use_periph_a(AT91RM92_PIOA_BASE,
231 AT91C_PA18_RXD0 | AT91C_PA22_RXD2, 0);
232 at91_pio_use_periph_a(AT91RM92_PIOA_BASE,
233 AT91C_PA17_TXD0 | AT91C_PA23_TXD2, 1);
234 /* PIOA's B periph: Turn USART 3's TX/RX pins */
235 at91_pio_use_periph_b(AT91RM92_PIOA_BASE, AT91C_PA6_RXD3, 0);
236 at91_pio_use_periph_b(AT91RM92_PIOA_BASE, AT91C_PA5_TXD3, 1);
52
53#define _ARM32_BUS_DMA_PRIVATE
54#include <sys/param.h>
55#include <sys/systm.h>
56#include <sys/sysproto.h>
57#include <sys/signalvar.h>
58#include <sys/imgact.h>
59#include <sys/kernel.h>

--- 169 unchanged lines hidden (view full) ---

229 /* PIOA's A periph: Turn USART 0 and 2's TX/RX pins */
230 at91_pio_use_periph_a(AT91RM92_PIOA_BASE,
231 AT91C_PA18_RXD0 | AT91C_PA22_RXD2, 0);
232 at91_pio_use_periph_a(AT91RM92_PIOA_BASE,
233 AT91C_PA17_TXD0 | AT91C_PA23_TXD2, 1);
234 /* PIOA's B periph: Turn USART 3's TX/RX pins */
235 at91_pio_use_periph_b(AT91RM92_PIOA_BASE, AT91C_PA6_RXD3, 0);
236 at91_pio_use_periph_b(AT91RM92_PIOA_BASE, AT91C_PA5_TXD3, 1);
237#if AT91_TSC
237#ifdef AT91_TSC
238 /* We're using TC0's A1 and A2 input */
239 at91_pio_use_periph_b(AT91RM92_PIOA_BASE,
240 AT91C_PA19_TIOA1 | AT91C_PA21_TIOA2, 0);
241#endif
242 /* PIOB's A periph: Turn USART 1's TX/RX pins */
243 at91_pio_use_periph_a(AT91RM92_PIOB_BASE, AT91C_PB21_RXD1, 0);
244 at91_pio_use_periph_a(AT91RM92_PIOB_BASE, AT91C_PB20_TXD1, 1);
245
246 /* Pin assignment */
238 /* We're using TC0's A1 and A2 input */
239 at91_pio_use_periph_b(AT91RM92_PIOA_BASE,
240 AT91C_PA19_TIOA1 | AT91C_PA21_TIOA2, 0);
241#endif
242 /* PIOB's A periph: Turn USART 1's TX/RX pins */
243 at91_pio_use_periph_a(AT91RM92_PIOB_BASE, AT91C_PB21_RXD1, 0);
244 at91_pio_use_periph_a(AT91RM92_PIOB_BASE, AT91C_PB20_TXD1, 1);
245
246 /* Pin assignment */
247#if AT91_TSC
247#ifdef AT91_TSC
248 /* Assert PA24 low -- talk to rubidium */
249 at91_pio_use_gpio(AT91RM92_PIOA_BASE, AT91C_PIO_PA24);
250 at91_pio_gpio_output(AT91RM92_PIOA_BASE, AT91C_PIO_PA24, 0);
251 at91_pio_gpio_clear(AT91RM92_PIOA_BASE, AT91C_PIO_PA24);
252#endif
253
254 return (ramsize());
255}

--- 237 unchanged lines hidden ---
248 /* Assert PA24 low -- talk to rubidium */
249 at91_pio_use_gpio(AT91RM92_PIOA_BASE, AT91C_PIO_PA24);
250 at91_pio_gpio_output(AT91RM92_PIOA_BASE, AT91C_PIO_PA24, 0);
251 at91_pio_gpio_clear(AT91RM92_PIOA_BASE, AT91C_PIO_PA24);
252#endif
253
254 return (ramsize());
255}

--- 237 unchanged lines hidden ---