Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/ti/am335x/am335x_lcd.c
Show First 20 Lines • Show All 955 Lines • ▼ Show 20 Lines | am335x_lcd_attach(device_t dev) | ||||
err = 0; | err = 0; | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
sc->sc_dev = dev; | sc->sc_dev = dev; | ||||
am335x_read_hdmi_property(dev); | am335x_read_hdmi_property(dev); | ||||
root = OF_finddevice("/"); | root = OF_finddevice("/"); | ||||
if (root == 0) { | if (root == -1) { | ||||
device_printf(dev, "failed to get FDT root node\n"); | device_printf(dev, "failed to get FDT root node\n"); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
sc->sc_panel.ac_bias = 255; | sc->sc_panel.ac_bias = 255; | ||||
sc->sc_panel.ac_bias_intrpt = 0; | sc->sc_panel.ac_bias_intrpt = 0; | ||||
sc->sc_panel.dma_burst_sz = 16; | sc->sc_panel.dma_burst_sz = 16; | ||||
sc->sc_panel.bpp = 16; | sc->sc_panel.bpp = 16; | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |