Deleted Added
full compact
at91rm9200.c (256281) at91rm9200.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/at91rm9200.c 248944 2013-03-31 12:51:56Z ian $");
28__FBSDID("$FreeBSD: stable/10/sys/arm/at91/at91rm9200.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

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

83 0, /* Advanced Interrupt Controller (IRQ1) */
84 0, /* Advanced Interrupt Controller (IRQ2) */
85 0, /* Advanced Interrupt Controller (IRQ3) */
86 0, /* Advanced Interrupt Controller (IRQ4) */
87 0, /* Advanced Interrupt Controller (IRQ5) */
88 0 /* Advanced Interrupt Controller (IRQ6) */
89};
90
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

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

83 0, /* Advanced Interrupt Controller (IRQ1) */
84 0, /* Advanced Interrupt Controller (IRQ2) */
85 0, /* Advanced Interrupt Controller (IRQ3) */
86 0, /* Advanced Interrupt Controller (IRQ4) */
87 0, /* Advanced Interrupt Controller (IRQ5) */
88 0 /* Advanced Interrupt Controller (IRQ6) */
89};
90
91static const uint32_t at91_pio_base[] = {
92 AT91RM92_PIOA_BASE,
93 AT91RM92_PIOB_BASE,
94 AT91RM92_PIOC_BASE,
95 AT91RM92_PIOD_BASE,
96};
97
91#define DEVICE(_name, _id, _unit) \
92 { \
93 _name, _unit, \
94 AT91RM92_ ## _id ##_BASE, \
95 AT91RM92_ ## _id ## _SIZE, \
96 AT91RM92_IRQ_ ## _id \
97 }
98

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

190}
191
192static struct at91_soc_data soc_data = {
193 .soc_delay = at91_st_delay,
194 .soc_reset = at91_st_cpu_reset,
195 .soc_clock_init = at91_clock_init,
196 .soc_irq_prio = at91_irq_prio,
197 .soc_children = at91_devs,
98#define DEVICE(_name, _id, _unit) \
99 { \
100 _name, _unit, \
101 AT91RM92_ ## _id ##_BASE, \
102 AT91RM92_ ## _id ## _SIZE, \
103 AT91RM92_IRQ_ ## _id \
104 }
105

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

197}
198
199static struct at91_soc_data soc_data = {
200 .soc_delay = at91_st_delay,
201 .soc_reset = at91_st_cpu_reset,
202 .soc_clock_init = at91_clock_init,
203 .soc_irq_prio = at91_irq_prio,
204 .soc_children = at91_devs,
205 .soc_pio_base = at91_pio_base,
206 .soc_pio_count = nitems(at91_pio_base),
198};
199
200AT91_SOC(AT91_T_RM9200, &soc_data);
207};
208
209AT91_SOC(AT91_T_RM9200, &soc_data);