Author: br
Date: Sun Feb  2 21:10:40 2014
New Revision: 261416
URL: http://svnweb.freebsd.org/changeset/base/261416

Log:
  o Add prototype for tcon_bypass() used by dcu4
  o Add register definition

Modified:
  head/sys/arm/freescale/vybrid/vf_common.h
  head/sys/arm/freescale/vybrid/vf_tcon.c

Modified: head/sys/arm/freescale/vybrid/vf_common.h
==============================================================================
--- head/sys/arm/freescale/vybrid/vf_common.h   Sun Feb  2 20:58:23 2014        
(r261415)
+++ head/sys/arm/freescale/vybrid/vf_common.h   Sun Feb  2 21:10:40 2014        
(r261416)
@@ -38,3 +38,5 @@
        bus_space_read_1(_sc->bst, _sc->bsh, _reg)
 #define        WRITE1(_sc, _reg, _val) \
        bus_space_write_1(_sc->bst, _sc->bsh, _reg, _val)
+
+uint32_t tcon_bypass(void);

Modified: head/sys/arm/freescale/vybrid/vf_tcon.c
==============================================================================
--- head/sys/arm/freescale/vybrid/vf_tcon.c     Sun Feb  2 20:58:23 2014        
(r261415)
+++ head/sys/arm/freescale/vybrid/vf_tcon.c     Sun Feb  2 21:10:40 2014        
(r261416)
@@ -56,6 +56,7 @@ __FBSDID("$FreeBSD$");
 #include <arm/freescale/vybrid/vf_common.h>
 
 #define        TCON0_CTRL1     0x00
+#define        TCON_BYPASS     (1 << 29)
 
 struct tcon_softc {
        struct resource         *res[1];
@@ -80,7 +81,7 @@ tcon_bypass(void)
 
        sc = tcon_sc;
 
-       WRITE4(tcon_sc, TCON0_CTRL1, (1 << 29));
+       WRITE4(tcon_sc, TCON0_CTRL1, TCON_BYPASS);
 
        return (0);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to