Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/ti Disable autoidle
details: https://anonhg.NetBSD.org/src/rev/52dd392ebca2
branches: trunk
changeset: 966345:52dd392ebca2
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Oct 27 17:21:23 2019 +0000
description:
Disable autoidle
diffstat:
sys/arch/arm/ti/ti_sdhc.c | 8 ++++++--
sys/arch/arm/ti/ti_sdhcreg.h | 3 ++-
2 files changed, 8 insertions(+), 3 deletions(-)
diffs (48 lines):
diff -r f2e3a9cb7bde -r 52dd392ebca2 sys/arch/arm/ti/ti_sdhc.c
--- a/sys/arch/arm/ti/ti_sdhc.c Sun Oct 27 16:31:26 2019 +0000
+++ b/sys/arch/arm/ti/ti_sdhc.c Sun Oct 27 17:21:23 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ti_sdhc.c,v 1.1 2019/10/27 15:43:46 jmcneill Exp $ */
+/* $NetBSD: ti_sdhc.c,v 1.2 2019/10/27 17:21:23 jmcneill Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ti_sdhc.c,v 1.1 2019/10/27 15:43:46 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ti_sdhc.c,v 1.2 2019/10/27 17:21:23 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -297,8 +297,12 @@
aprint_error_dev(dev, "Soft reset timeout\n");
bus_space_write_4(sc->sc_bst, sc->sc_bsh, MMCHS_SYSCONFIG,
SYSCONFIG_ENAWAKEUP |
+#if notyet
SYSCONFIG_AUTOIDLE |
SYSCONFIG_SIDLEMODE_AUTO |
+#else
+ SYSCONFIG_SIDLEMODE_IGNORE |
+#endif
SYSCONFIG_CLOCKACTIVITY_FCLK |
SYSCONFIG_CLOCKACTIVITY_ICLK);
diff -r f2e3a9cb7bde -r 52dd392ebca2 sys/arch/arm/ti/ti_sdhcreg.h
--- a/sys/arch/arm/ti/ti_sdhcreg.h Sun Oct 27 16:31:26 2019 +0000
+++ b/sys/arch/arm/ti/ti_sdhcreg.h Sun Oct 27 17:21:23 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ti_sdhcreg.h,v 1.1 2019/10/27 15:43:46 jmcneill Exp $ */
+/* $NetBSD: ti_sdhcreg.h,v 1.2 2019/10/27 17:21:23 jmcneill Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -61,6 +61,7 @@
# define SYSCONFIG_CLOCKACTIVITY_ICLK (1 << 8)
# define SYSCONFIG_SIDLEMODE_MASK (3 << 3)
# define SYSCONFIG_SIDLEMODE_AUTO (2 << 3)
+# define SYSCONFIG_SIDLEMODE_IGNORE (1 << 3)
# define SYSCONFIG_ENAWAKEUP (1 << 2)
# define SYSCONFIG_SOFTRESET (1 << 1)
# define SYSCONFIG_AUTOIDLE (1 << 0)
Home |
Main Index |
Thread Index |
Old Index