at91sam9g20.c (256281) | at91sam9g20.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/at91sam9g20.c 239190 2012-08-11 05:45:19Z imp $"); | 28__FBSDID("$FreeBSD: stable/10/sys/arm/at91/at91sam9g20.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 AT91SAM9G20_PIOA_BASE, 92 AT91SAM9G20_PIOB_BASE, 93 AT91SAM9G20_PIOC_BASE, 94}; 95 |
|
90#define DEVICE(_name, _id, _unit) \ 91 { \ 92 _name, _unit, \ 93 AT91SAM9G20_ ## _id ##_BASE, \ 94 AT91SAM9G20_ ## _id ## _SIZE, \ 95 AT91SAM9G20_IRQ_ ## _id \ 96 } 97 --- 66 unchanged lines hidden (view full) --- 164} 165 166static struct at91_soc_data soc_data = { 167 .soc_delay = at91_pit_delay, 168 .soc_reset = at91_rst_cpu_reset, 169 .soc_clock_init = at91_clock_init, 170 .soc_irq_prio = at91_irq_prio, 171 .soc_children = at91_devs, | 96#define DEVICE(_name, _id, _unit) \ 97 { \ 98 _name, _unit, \ 99 AT91SAM9G20_ ## _id ##_BASE, \ 100 AT91SAM9G20_ ## _id ## _SIZE, \ 101 AT91SAM9G20_IRQ_ ## _id \ 102 } 103 --- 66 unchanged lines hidden (view full) --- 170} 171 172static struct at91_soc_data soc_data = { 173 .soc_delay = at91_pit_delay, 174 .soc_reset = at91_rst_cpu_reset, 175 .soc_clock_init = at91_clock_init, 176 .soc_irq_prio = at91_irq_prio, 177 .soc_children = at91_devs, |
178 .soc_pio_base = at91_pio_base, 179 .soc_pio_count = nitems(at91_pio_base), |
|
172}; 173 174AT91_SOC(AT91_T_SAM9G20, &soc_data); | 180}; 181 182AT91_SOC(AT91_T_SAM9G20, &soc_data); |