Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/awin audio gpio setup
details: https://anonhg.NetBSD.org/src/rev/8301b17050ba
branches: trunk
changeset: 331997:8301b17050ba
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Sep 04 02:34:30 2014 +0000
description:
audio gpio setup
diffstat:
sys/arch/evbarm/awin/awin_machdep.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 0816dadf274a -r 8301b17050ba sys/arch/evbarm/awin/awin_machdep.c
--- a/sys/arch/evbarm/awin/awin_machdep.c Thu Sep 04 00:30:25 2014 +0000
+++ b/sys/arch/evbarm/awin/awin_machdep.c Thu Sep 04 02:34:30 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_machdep.c,v 1.1 2014/08/31 19:13:01 matt Exp $ */
+/* $NetBSD: awin_machdep.c,v 1.2 2014/09/04 02:34:30 jmcneill Exp $ */
/*
* Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.1 2014/08/31 19:13:01 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.2 2014/09/04 02:34:30 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -622,6 +622,7 @@
prop_dictionary_set_cstring(dict, "emacpwren", ">PH19");
}
prop_dictionary_set_cstring(dict, "mmc0detect", "<PH1");
+ prop_dictionary_set_cstring(dict, "audiopactrl", ">PH15");
/*
* These pins have no connections.
@@ -660,6 +661,11 @@
return;
}
+ if (device_is_a(self, "awinac")) {
+ prop_dictionary_set_cstring(dict, "pactrl-gpio", "audiopactrl");
+ return;
+ }
+
if (device_is_a(self, "com")) {
#if NAWIN_FB > 0
if (use_fb_console)
Home |
Main Index |
Thread Index |
Old Index