Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm Add Merrii Hummingbird A31 board specific in...
details: https://anonhg.NetBSD.org/src/rev/5e2ca996f497
branches: trunk
changeset: 332811:5e2ca996f497
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Oct 10 07:37:50 2014 +0000
description:
Add Merrii Hummingbird A31 board specific info + kernel config.
diffstat:
sys/arch/evbarm/awin/awin_machdep.c | 13 +++++++++++--
sys/arch/evbarm/conf/HUMMINGBIRD_A31 | 29 +++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 2 deletions(-)
diffs (89 lines):
diff -r 556dabf93ae7 -r 5e2ca996f497 sys/arch/evbarm/awin/awin_machdep.c
--- a/sys/arch/evbarm/awin/awin_machdep.c Fri Oct 10 07:36:11 2014 +0000
+++ b/sys/arch/evbarm/awin/awin_machdep.c Fri Oct 10 07:37:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_machdep.c,v 1.12 2014/09/23 15:02:08 skrll Exp $ */
+/* $NetBSD: awin_machdep.c,v 1.13 2014/10/10 07:37:50 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.12 2014/09/23 15:02:08 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.13 2014/10/10 07:37:50 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -600,12 +600,17 @@
prop_dictionary_set_cstring(dict, "usb0drv", ">PB2");
}
#endif
+#if AWIN_board == AWIN_hummingbird_a31
+ prop_dictionary_set_cstring(dict, "usb1drv", ">PH27");
+ prop_dictionary_set_cstring(dict, "usb2drv", ">PH24");
+#else
prop_dictionary_set_cstring(dict, "usb2drv", ">PH3");
prop_dictionary_set_cstring(dict, "usb0iddet",
(cubietruck_p ? "<PH19" : "<PH4"));
prop_dictionary_set_cstring(dict, "usb0vbusdet",
(cubietruck_p ? "<PH22" : "<PH5"));
prop_dictionary_set_cstring(dict, "usb1drv", ">PH6");
+#endif
prop_dictionary_set_cstring(dict, "status-led1", ">PH21");
prop_dictionary_set_cstring(dict, "status-led2", ">PH20");
if (cubietruck_p) {
@@ -619,6 +624,8 @@
prop_dictionary_set_cstring(dict, "mmc0detect", "<PH1");
#elif AWIN_board == AWIN_bpi
prop_dictionary_set_cstring(dict, "mmc0detect", "<PH10");
+#elif AWIN_board == AWIN_hummingbird_a31
+ prop_dictionary_set_cstring(dict, "mmc0detect", "<PH8");
#endif
prop_dictionary_set_cstring(dict, "audiopactrl", ">PH15");
@@ -647,8 +654,10 @@
if (aio->aio_loc.loc_port == 0) {
prop_dictionary_set_cstring(dict,
"detect-gpio", "mmc0detect");
+#if !(AWIN_board == AWIN_hummingbird_a31)
prop_dictionary_set_cstring(dict,
"led-gpio", "status-led2");
+#endif
}
return;
}
diff -r 556dabf93ae7 -r 5e2ca996f497 sys/arch/evbarm/conf/HUMMINGBIRD_A31
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbarm/conf/HUMMINGBIRD_A31 Fri Oct 10 07:37:50 2014 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: HUMMINGBIRD_A31,v 1.1 2014/10/10 07:37:50 jmcneill Exp $
+#
+# HUMMINGBIRD_A31 - Merrii Hummingbird A31
+#
+
+include "arch/evbarm/conf/CUBIEBOARD"
+
+no makeoptions BOARDTYPE
+makeoptions BOARDTYPE="hummingbird_a31"
+options ALLWINNER_A31
+options MEMSIZE=1024
+
+no ahcisata*
+no awe0
+no axp20x0
+
+# TODO
+no awinusb0
+no awinusb1
+no motg0
+no awge0
+
+#
+# not fully working yet
+#
+# options MULTIPROCESSOR
+# cpu* at mainbus?
+
+options VERBOSE_INIT_ARM # verbose bootstraping messages
Home |
Main Index |
Thread Index |
Old Index