mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 15:24:25 +00:00
o Add prototype for tcon_bypass() used by dcu4
o Add register definition
This commit is contained in:
parent
646b940455
commit
8c7da46079
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261416
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue