Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/omap Check ChipID == OMAP3530. OVERO supports ...



details:   https://anonhg.NetBSD.org/src/rev/41f8f8203d43
branches:  trunk
changeset: 344868:41f8f8203d43
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Mon Apr 25 13:20:42 2016 +0000

description:
Check ChipID == OMAP3530.  OVERO supports both OMAP3530/3503.

diffstat:

 sys/arch/arm/omap/omap3_sdhc.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 67a76e1fce67 -r 41f8f8203d43 sys/arch/arm/omap/omap3_sdhc.c
--- a/sys/arch/arm/omap/omap3_sdhc.c    Mon Apr 25 13:17:16 2016 +0000
+++ b/sys/arch/arm/omap/omap3_sdhc.c    Mon Apr 25 13:20:42 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: omap3_sdhc.c,v 1.19 2015/11/02 22:21:01 jmcneill Exp $ */
+/*     $NetBSD: omap3_sdhc.c,v 1.20 2016/04/25 13:20:42 kiyohara Exp $ */
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omap3_sdhc.c,v 1.19 2015/11/02 22:21:01 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omap3_sdhc.c,v 1.20 2016/04/25 13:20:42 kiyohara Exp $");
 
 #include "opt_omap.h"
 #include "edma.h"
@@ -227,7 +227,8 @@
        sc->sc.sc_flags &= ~SDHC_FLAG_SINGLE_ONLY;
 #endif
 #if defined(OMAP_3530)
-       sc->sc.sc_flags &= ~SDHC_FLAG_SINGLE_ONLY;
+       if (omap_chipid() == CHIPID_OMAP3530)
+               sc->sc.sc_flags &= ~SDHC_FLAG_SINGLE_ONLY;
 #endif
        sc->sc.sc_host = sc->sc_hosts;
        sc->sc.sc_clkbase = 96000;      /* 96MHZ */



Home | Main Index | Thread Index | Old Index