Deleted Added
full compact
at91sam9g45.c (256281) at91sam9g45.c (266087)
1/*-
2 * Copyright (c) 2005 Olivier Houchard. All rights reserved.
3 * Copyright (c) 2010 Greg Ansley. All rights reserved.
4 * Copyright (c) 2012 Andrew Turner. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2005 Olivier Houchard. All rights reserved.
3 * Copyright (c) 2010 Greg Ansley. All rights reserved.
4 * Copyright (c) 2012 Andrew Turner. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: stable/10/sys/arm/at91/at91sam9g45.c 239190 2012-08-11 05:45:19Z imp $");
29__FBSDID("$FreeBSD: stable/10/sys/arm/at91/at91sam9g45.c 266087 2014-05-14 20:31:54Z ian $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37

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

83 0, /* Image Sensor Interface */
84 2, /* USB Device High Speed port */
85 0, /* (reserved) */
86 0, /* Multimedia Card Interface 1 */
87 0, /* (reserved) */
88 0, /* Advanced Interrupt Controller IRQ0 */
89};
90
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37

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

83 0, /* Image Sensor Interface */
84 2, /* USB Device High Speed port */
85 0, /* (reserved) */
86 0, /* Multimedia Card Interface 1 */
87 0, /* (reserved) */
88 0, /* Advanced Interrupt Controller IRQ0 */
89};
90
91static const uint32_t at91_pio_base[] = {
92 AT91SAM9G45_PIOA_BASE,
93 AT91SAM9G45_PIOB_BASE,
94 AT91SAM9G45_PIOC_BASE,
95 AT91SAM9G45_PIOD_BASE,
96 AT91SAM9G45_PIOE_BASE,
97};
98
91#define DEVICE(_name, _id, _unit) \
92 { \
93 _name, _unit, \
94 AT91SAM9G45_ ## _id ##_BASE, \
95 AT91SAM9G45_ ## _id ## _SIZE, \
96 AT91SAM9G45_IRQ_ ## _id \
97 }
98

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

150}
151
152static struct at91_soc_data soc_data = {
153 .soc_delay = at91_pit_delay,
154 .soc_reset = at91_rst_cpu_reset,
155 .soc_clock_init = at91_clock_init,
156 .soc_irq_prio = at91_irq_prio,
157 .soc_children = at91_devs,
99#define DEVICE(_name, _id, _unit) \
100 { \
101 _name, _unit, \
102 AT91SAM9G45_ ## _id ##_BASE, \
103 AT91SAM9G45_ ## _id ## _SIZE, \
104 AT91SAM9G45_IRQ_ ## _id \
105 }
106

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

158}
159
160static struct at91_soc_data soc_data = {
161 .soc_delay = at91_pit_delay,
162 .soc_reset = at91_rst_cpu_reset,
163 .soc_clock_init = at91_clock_init,
164 .soc_irq_prio = at91_irq_prio,
165 .soc_children = at91_devs,
166 .soc_pio_base = at91_pio_base,
167 .soc_pio_count = nitems(at91_pio_base),
158};
159
160AT91_SOC(AT91_T_SAM9G45, &soc_data);
168};
169
170AT91_SOC(AT91_T_SAM9G45, &soc_data);