MCPcopy Create free account
hub / github.com/F-Stack/f-stack / a10fb_enable_tcon

Function a10fb_enable_tcon

freebsd/arm/allwinner/a10_fb.c:441–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441static void
442a10fb_enable_tcon(struct a10fb_softc *sc, int onoff)
443{
444 uint32_t val;
445
446 /* Enable TCON */
447 val = TCON_READ(sc, TCON_GCTL);
448 if (onoff)
449 val |= GCTL_TCON_EN;
450 else
451 val &= ~GCTL_TCON_EN;
452 TCON_WRITE(sc, TCON_GCTL, val);
453
454 /* Enable TCON1 IO0/IO1 outputs */
455 val = TCON_READ(sc, TCON1_IO_TRI);
456 if (onoff)
457 val &= ~(IO0_OUTPUT_TRI_EN | IO1_OUTPUT_TRI_EN);
458 else
459 val |= (IO0_OUTPUT_TRI_EN | IO1_OUTPUT_TRI_EN);
460 TCON_WRITE(sc, TCON1_IO_TRI, val);
461}
462
463static int
464a10fb_configure(struct a10fb_softc *sc, const struct videomode *mode)

Callers 1

a10fb_hdmi_eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected