Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner A31 support
details: https://anonhg.NetBSD.org/src/rev/a46a9043efeb
branches: trunk
changeset: 333047:a46a9043efeb
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Oct 15 23:29:24 2014 +0000
description:
A31 support
diffstat:
sys/arch/arm/allwinner/awin_gpio.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 409e78e37239 -r a46a9043efeb sys/arch/arm/allwinner/awin_gpio.c
--- a/sys/arch/arm/allwinner/awin_gpio.c Wed Oct 15 23:28:37 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_gpio.c Wed Oct 15 23:29:24 2014 +0000
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.10 2014/10/10 17:48:30 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.11 2014/10/15 23:29:24 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -280,6 +280,17 @@
aprint_naive("\n");
aprint_normal("\n");
+ if (awin_chip_id() == AWIN_CHIP_ID_A31) {
+ pin_groups[0].grp_pin_mask = __BIT(AWIN_A31_PIO_PA_PINS) - 1;
+ pin_groups[1].grp_pin_mask = __BIT(AWIN_A31_PIO_PB_PINS) - 1;
+ pin_groups[2].grp_pin_mask = __BIT(AWIN_A31_PIO_PC_PINS) - 1;
+ pin_groups[3].grp_pin_mask = __BIT(AWIN_A31_PIO_PD_PINS) - 1;
+ pin_groups[4].grp_pin_mask = __BIT(AWIN_A31_PIO_PE_PINS) - 1;
+ pin_groups[5].grp_pin_mask = __BIT(AWIN_A31_PIO_PF_PINS) - 1;
+ pin_groups[6].grp_pin_mask = __BIT(AWIN_A31_PIO_PG_PINS) - 1;
+ pin_groups[7].grp_pin_mask = __BIT(AWIN_A31_PIO_PH_PINS) - 1;
+ }
+
for (u_int i = 0; i < __arraycount(pin_groups); i++) {
struct awin_gpio_pin_group * const grp = &pin_groups[i];
Home |
Main Index |
Thread Index |
Old Index