Module Name: src
Committed By: jmcneill
Date: Wed Jun 3 10:01:32 UTC 2015
Modified Files:
src/sys/arch/evbarm/awin: awin_machdep.c platform.h
Log Message:
Olimex A20-OLinuXino-LIME2 support, from Greg Willatt <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/evbarm/awin/awin_machdep.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/evbarm/awin/platform.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbarm/awin/awin_machdep.c
diff -u src/sys/arch/evbarm/awin/awin_machdep.c:1.40 src/sys/arch/evbarm/awin/awin_machdep.c:1.41
--- src/sys/arch/evbarm/awin/awin_machdep.c:1.40 Mon Apr 20 01:33:22 2015
+++ src/sys/arch/evbarm/awin/awin_machdep.c Wed Jun 3 10:01:32 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_machdep.c,v 1.40 2015/04/20 01:33:22 matt Exp $ */
+/* $NetBSD: awin_machdep.c,v 1.41 2015/06/03 10:01:32 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.40 2015/04/20 01:33:22 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.41 2015/06/03 10:01:32 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -660,7 +660,7 @@ awin_device_register(device_t self, void
} else {
prop_dictionary_set_bool(dict, "no-awge", true);
}
-#elif AWIN_board == AWIN_bpi
+#elif AWIN_board == AWIN_bpi || AWIN_board == AWIN_olimexlime2
prop_dictionary_set_bool(dict, "no-awe", true);
#endif
return;
@@ -725,7 +725,7 @@ awin_device_register(device_t self, void
prop_dictionary_set_cstring(dict, "emacpwren", ">PH19");
}
#endif
-#if AWIN_board == AWIN_cubieboard || AWIN_board == AWIN_cubietruck
+#if AWIN_board == AWIN_cubieboard || AWIN_board == AWIN_cubietruck || AWIN_board == AWIN_olimexlime2
prop_dictionary_set_cstring(dict, "mmc0detect", "<PH1");
#elif AWIN_board == AWIN_bpi
prop_dictionary_set_cstring(dict, "mmc0detect", "<PH10");
Index: src/sys/arch/evbarm/awin/platform.h
diff -u src/sys/arch/evbarm/awin/platform.h:1.5 src/sys/arch/evbarm/awin/platform.h:1.6
--- src/sys/arch/evbarm/awin/platform.h:1.5 Thu Dec 11 23:35:11 2014
+++ src/sys/arch/evbarm/awin/platform.h Wed Jun 3 10:01:32 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: platform.h,v 1.5 2014/12/11 23:35:11 jmcneill Exp $ */
+/* $NetBSD: platform.h,v 1.6 2015/06/03 10:01:32 jmcneill Exp $ */
/*
* Copyright (c) 2007 Microsoft
* All rights reserved.
@@ -36,6 +36,7 @@
#define AWIN_bpi 3
#define AWIN_hummingbird_a31 4
#define AWIN_allwinner_a80 5
+#define AWIN_olimexlime2 6
#include <arm/allwinner/awin_reg.h>