summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91rm9200.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-01-15 19:53:36 +0000
committerimp <imp@FreeBSD.org>2014-01-15 19:53:36 +0000
commit868757e5acb94dcbe381a221550b055d2fa83549 (patch)
tree42f4d5351e25c75b1d7ccbe048f4eecddda6b6bb /sys/arm/at91/at91rm9200.c
parent74fda9ff765e7aa6d1f1c7e9c5daa76a6d8b7020 (diff)
downloadFreeBSD-src-868757e5acb94dcbe381a221550b055d2fa83549.zip
FreeBSD-src-868757e5acb94dcbe381a221550b055d2fa83549.tar.gz
Add data so we can convert a PIO unit number into a base address.
Diffstat (limited to 'sys/arm/at91/at91rm9200.c')
-rw-r--r--sys/arm/at91/at91rm9200.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/arm/at91/at91rm9200.c b/sys/arm/at91/at91rm9200.c
index 2c6073c..f2ee450 100644
--- a/sys/arm/at91/at91rm9200.c
+++ b/sys/arm/at91/at91rm9200.c
@@ -88,6 +88,13 @@ static const int at91_irq_prio[32] =
0 /* Advanced Interrupt Controller (IRQ6) */
};
+static const uint32_t at91_pio_base[] = {
+ AT91RM92_PIOA_BASE,
+ AT91RM92_PIOB_BASE,
+ AT91RM92_PIOC_BASE,
+ AT91RM92_PIOD_BASE,
+};
+
#define DEVICE(_name, _id, _unit) \
{ \
_name, _unit, \
@@ -195,6 +202,8 @@ static struct at91_soc_data soc_data = {
.soc_clock_init = at91_clock_init,
.soc_irq_prio = at91_irq_prio,
.soc_children = at91_devs,
+ .soc_pio_base = at91_pio_base,
+ .soc_pio_count = nitems(at91_pio_base),
};
AT91_SOC(AT91_T_RM9200, &soc_data);
OpenPOWER on IntegriCloud