o Add prototype for tcon_bypass() used by dcu4

o Add register definition
This commit is contained in:
Ruslan Bukin 2014-02-02 21:10:40 +00:00
parent 646b940455
commit 8c7da46079
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261416
2 changed files with 4 additions and 1 deletions

View file

@ -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);

View file

@ -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);
}