Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/odroid Accept the Odroid specific tweaks for...
details: https://anonhg.NetBSD.org/src/rev/576960eb7552
branches: trunk
changeset: 332601:576960eb7552
user: reinoud <reinoud%NetBSD.org@localhost>
date: Tue Sep 30 14:24:26 2014 +0000
description:
Accept the Odroid specific tweaks for selecting clkout for external USB
devices on the Odroid boards
diffstat:
sys/arch/evbarm/odroid/odroid_machdep.c | 29 ++++++++++++++++++++++++++---
1 files changed, 26 insertions(+), 3 deletions(-)
diffs (54 lines):
diff -r 789a07baa434 -r 576960eb7552 sys/arch/evbarm/odroid/odroid_machdep.c
--- a/sys/arch/evbarm/odroid/odroid_machdep.c Tue Sep 30 14:23:41 2014 +0000
+++ b/sys/arch/evbarm/odroid/odroid_machdep.c Tue Sep 30 14:24:26 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: odroid_machdep.c,v 1.38 2014/09/26 19:27:05 reinoud Exp $ */
+/* $NetBSD: odroid_machdep.c,v 1.39 2014/09/30 14:24:26 reinoud Exp $ */
/*
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.38 2014/09/26 19:27:05 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.39 2014/09/30 14:24:26 reinoud Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_exynos.h"
@@ -318,7 +318,7 @@
EXYNOS_IOPHYSTOVIRT(armreg_cbar_read());
#ifdef ARM_TRUSTZONE_FIRMWARE
- exynos_l2cc_init();
+ exynos4_l2cc_init();
#endif
arml2cc_init(&exynos_bs_tag, pl310_bh, 0x2000);
}
@@ -887,3 +887,26 @@
}
}
+
+/*
+ * Odroid specific tweaks
+ */
+/*
+ * The external USB devices are clocked trough the DEBUG clkout
+ * XXX is this Odroid specific? XXX
+ */
+void
+exynos_init_clkout_for_usb(void)
+{
+#ifdef EXYNOS4
+ /* Select XUSBXTI as source for CLKOUT */
+ bus_space_write_4(&exynos_bs_tag, exynos_pmu_bsh,
+ EXYNOS_PMU_DEBUG_CLKOUT, 0x900);
+#endif
+#ifdef EXYNOS5
+ /* Select XUSBXTI as source for CLKOUT */
+ bus_space_write_4(&exynos_bs_tag, exynos_pmu_bsh,
+ EXYNOS_PMU_DEBUG_CLKOUT, 0x1000);
+#endif
+}
+
Home |
Main Index |
Thread Index |
Old Index