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 A80 UART0 pinsets
details: https://anonhg.NetBSD.org/src/rev/0ea1192aee48
branches: trunk
changeset: 334797:0ea1192aee48
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Dec 07 12:44:24 2014 +0000
description:
A80 UART0 pinsets
diffstat:
sys/arch/arm/allwinner/awin_com.c | 10 +++++++++-
sys/arch/arm/allwinner/awin_reg.h | 2 ++
2 files changed, 11 insertions(+), 1 deletions(-)
diffs (52 lines):
diff -r 12057be7203c -r 0ea1192aee48 sys/arch/arm/allwinner/awin_com.c
--- a/sys/arch/arm/allwinner/awin_com.c Sun Dec 07 10:44:34 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_com.c Sun Dec 07 12:44:24 2014 +0000
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_com.c,v 1.8 2014/12/05 01:13:11 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_com.c,v 1.9 2014/12/07 12:44:24 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -81,6 +81,10 @@
{ 'H', AWIN_A31_PIO_PH_UART0_FUNC, AWIN_A31_PIO_PH_UART0_PINS },
};
+static const struct awin_gpio_pinset awin_com_pinsets_a80[] = {
+ { 'H', AWIN_A80_PIO_PH_UART0_FUNC, AWIN_A80_PIO_PH_UART0_PINS },
+};
+
CFATTACH_DECL_NEW(awin_com, sizeof(struct awin_com_softc),
awin_com_match, awin_com_attach, NULL, NULL);
@@ -97,6 +101,8 @@
if (awin_chip_id() == AWIN_CHIP_ID_A31) {
pinset = awin_com_pinsets_a31;
+ } else if (awin_chip_id() == AWIN_CHIP_ID_A80) {
+ pinset = awin_com_pinsets_a80;
} else {
pinset = loc->loc_port + ((cf->cf_flags & 1) ?
awin_com_alt_pinsets : awin_com_pinsets);
@@ -148,6 +154,8 @@
if (awin_chip_id() == AWIN_CHIP_ID_A31) {
pinset = awin_com_pinsets_a31;
+ } else if (awin_chip_id() == AWIN_CHIP_ID_A80) {
+ pinset = awin_com_pinsets_a80;
} else {
pinset = loc->loc_port + ((cf->cf_flags & 1) ?
awin_com_alt_pinsets : awin_com_pinsets);
diff -r 12057be7203c -r 0ea1192aee48 sys/arch/arm/allwinner/awin_reg.h
--- a/sys/arch/arm/allwinner/awin_reg.h Sun Dec 07 10:44:34 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_reg.h Sun Dec 07 12:44:24 2014 +0000
@@ -2861,5 +2861,7 @@
#define AWIN_A80_PIO_PH_TWI1_PINS 0x0000000c /* PH pins 3-2 */
#define AWIN_A80_PIO_PH_TWI2_FUNC 2
#define AWIN_A80_PIO_PH_TWI2_PINS 0x00000030 /* PH pins 5-4 */
+#define AWIN_A80_PIO_PH_UART0_FUNC 2
+#define AWIN_A80_PIO_PH_UART0_PINS 0x00003000 /* PH pins 13-12 */
#endif /* _ARM_ALLWINNER_AWIN_REG_H_ */
Home |
Main Index |
Thread Index |
Old Index