at91sam9260.c (256281) | at91sam9260.c (266087) |
---|---|
1/*- 2 * Copyright (c) 2005 Olivier Houchard. All rights reserved. 3 * Copyright (c) 2010 Greg Ansley. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 Olivier Houchard. All rights reserved. 3 * Copyright (c) 2010 Greg Ansley. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: stable/10/sys/arm/at91/at91sam9260.c 239189 2012-08-11 05:12:46Z imp $"); | 28__FBSDID("$FreeBSD: stable/10/sys/arm/at91/at91sam9260.c 266087 2014-05-14 20:31:54Z ian $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34#include <sys/malloc.h> 35#include <sys/module.h> 36 --- 45 unchanged lines hidden (view full) --- 82 0, /* Timer Counter 3 */ 83 0, /* Timer Counter 4 */ 84 0, /* Timer Counter 5 */ 85 0, /* Advanced Interrupt Controller IRQ0 */ 86 0, /* Advanced Interrupt Controller IRQ1 */ 87 0, /* Advanced Interrupt Controller IRQ2 */ 88}; 89 | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34#include <sys/malloc.h> 35#include <sys/module.h> 36 --- 45 unchanged lines hidden (view full) --- 82 0, /* Timer Counter 3 */ 83 0, /* Timer Counter 4 */ 84 0, /* Timer Counter 5 */ 85 0, /* Advanced Interrupt Controller IRQ0 */ 86 0, /* Advanced Interrupt Controller IRQ1 */ 87 0, /* Advanced Interrupt Controller IRQ2 */ 88}; 89 |
90static const uint32_t at91_pio_base[] = { 91 AT91SAM9260_PIOA_BASE, 92 AT91SAM9260_PIOB_BASE, 93 AT91SAM9260_PIOC_BASE, 94}; 95 |
|
90#define DEVICE(_name, _id, _unit) \ 91 { \ 92 _name, _unit, \ 93 AT91SAM9260_ ## _id ##_BASE, \ 94 AT91SAM9260_ ## _id ## _SIZE, \ 95 AT91SAM9260_IRQ_ ## _id \ 96 } 97 --- 101 unchanged lines hidden (view full) --- 199} 200 201static struct at91_soc_data soc_data = { 202 .soc_delay = at91_pit_delay, 203 .soc_reset = at91_rst_cpu_reset, 204 .soc_clock_init = at91_clock_init, 205 .soc_irq_prio = at91_irq_prio, 206 .soc_children = at91_devs, | 96#define DEVICE(_name, _id, _unit) \ 97 { \ 98 _name, _unit, \ 99 AT91SAM9260_ ## _id ##_BASE, \ 100 AT91SAM9260_ ## _id ## _SIZE, \ 101 AT91SAM9260_IRQ_ ## _id \ 102 } 103 --- 101 unchanged lines hidden (view full) --- 205} 206 207static struct at91_soc_data soc_data = { 208 .soc_delay = at91_pit_delay, 209 .soc_reset = at91_rst_cpu_reset, 210 .soc_clock_init = at91_clock_init, 211 .soc_irq_prio = at91_irq_prio, 212 .soc_children = at91_devs, |
213 .soc_pio_base = at91_pio_base, 214 .soc_pio_count = nitems(at91_pio_base), |
|
207}; 208 209AT91_SOC(AT91_T_SAM9260, &soc_data); | 215}; 216 217AT91_SOC(AT91_T_SAM9260, &soc_data); |