Deleted Added
full compact
at91rm9200_lowlevel.c (164137) at91rm9200_lowlevel.c (168013)
1/*-
2 * Copyright (c) 2006 M. Warner Losh. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * This software is derived from software provide by Kwikbyte who specifically
25 * disclaimed copyright on the code.
26 *
1/*-
2 * Copyright (c) 2006 M. Warner Losh. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * This software is derived from software provide by Kwikbyte who specifically
25 * disclaimed copyright on the code.
26 *
27 * $FreeBSD: head/sys/boot/arm/at91/libat91/at91rm9200_lowlevel.c 164137 2006-11-09 20:32:36Z imp $
27 * $FreeBSD: head/sys/boot/arm/at91/libat91/at91rm9200_lowlevel.c 168013 2007-03-28 22:40:37Z imp $
28 */
29
30#include "at91rm9200.h"
31#include "at91rm9200_lowlevel.h"
32
33extern int __bss_start__[];
34extern int __bss_end__[];
35

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

48 int *i;
49
50 AT91PS_USART pUSART = (AT91PS_USART)AT91C_BASE_DBGU;
51 AT91PS_PDC pPDC = (AT91PS_PDC)&(pUSART->US_RPR);
52
53 register unsigned value;
54 volatile sdram_size_t *p = (sdram_size_t *)SDRAM_BASE;
55
28 */
29
30#include "at91rm9200.h"
31#include "at91rm9200_lowlevel.h"
32
33extern int __bss_start__[];
34extern int __bss_end__[];
35

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

48 int *i;
49
50 AT91PS_USART pUSART = (AT91PS_USART)AT91C_BASE_DBGU;
51 AT91PS_PDC pPDC = (AT91PS_PDC)&(pUSART->US_RPR);
52
53 register unsigned value;
54 volatile sdram_size_t *p = (sdram_size_t *)SDRAM_BASE;
55
56 AT91C_BASE_ST->ST_RTMR = 1;
56#ifdef BOOT_TSC
57 // For the TSC board, we turn ON the one LED we have while
58 // early in boot.
59 AT91C_BASE_PIOC->PIO_PER = AT91C_PIO_PC10;
60 AT91C_BASE_PIOC->PIO_OER = AT91C_PIO_PC10;
61 AT91C_BASE_PIOC->PIO_CODR = AT91C_PIO_PC10;
62#endif
63

--- 155 unchanged lines hidden ---
57#ifdef BOOT_TSC
58 // For the TSC board, we turn ON the one LED we have while
59 // early in boot.
60 AT91C_BASE_PIOC->PIO_PER = AT91C_PIO_PC10;
61 AT91C_BASE_PIOC->PIO_OER = AT91C_PIO_PC10;
62 AT91C_BASE_PIOC->PIO_CODR = AT91C_PIO_PC10;
63#endif
64

--- 155 unchanged lines hidden ---