Lines Matching +full:lvds +full:- +full:4 +full:bits
1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2010-2011 Freescale Semiconductor, Inc.
37 * Note that we need to byte-swap the value before it's written to the AD
50 #define AD_COMP_1_SHIFT 4
78 temp = in_be32(&gur->clkdvdr) & 0x2000FFFF; in diu_set_pixel_clock()
79 out_be32(&gur->clkdvdr, temp); /* turn off clock */ in diu_set_pixel_clock()
80 out_be32(&gur->clkdvdr, temp | 0x80000000 | ((pixval & 0x1F) << 16)); in diu_set_pixel_clock()
129 * only contain the lower 32 bits of the address, we have to determine in platform_diu_init()
130 * the upper 4 bits some other way. The proper way is to scan the LAW in platform_diu_init()
132 * We know that the upper bits are 0 for 32-bit addressing, or 0xF for in platform_diu_init()
133 * 36-bit addressing. in platform_diu_init()
153 temp = in_8(&pixis->brdcfg1); in platform_diu_init()
155 if (strncmp(port, "lvds", 4) == 0) { in platform_diu_init()
156 /* Single link LVDS */ in platform_diu_init()
159 * LVDS also needs backlight enabled, otherwise the display in platform_diu_init()
163 name = "Single-Link LVDS"; in platform_diu_init()
172 out_8(&pixis->brdcfg1, temp); in platform_diu_init()
179 setbits_8(&pixis->csr, PX_CTL_ALTACC); in platform_diu_init()
191 clrsetbits_be32(&gur->pmuxcr, PMUXCR_ELBCDIU_MASK, PMUXCR_ELBCDIU_DIU); in platform_diu_init()
192 pmuxcr = in_be32(&gur->pmuxcr); in platform_diu_init()
198 * set_mux_to_lbc - disable the DIU so that we can read/write to elbc
217 if ((in_be32(&gur->pmuxcr) & PMUXCR_ELBCDIU_MASK) != in set_mux_to_lbc()
233 out_be32(&gur->pmuxcr, (pmuxcr & ~PMUXCR_ELBCDIU_MASK) | in set_mux_to_lbc()
235 in_be32(&gur->pmuxcr); in set_mux_to_lbc()
250 * set_mux_to_diu - re-enable the DIU muxing
265 setbits_8(&pixis->csr, PX_CTL_ALTACC); in set_mux_to_diu()
273 out_be32(&gur->pmuxcr, pmuxcr); in set_mux_to_diu()
274 in_be32(&gur->pmuxcr); in set_mux_to_diu()
278 * pixis_read - board-specific function to read from the PIXIS
288 if ((in_be32(&gur->pmuxcr) & PMUXCR_ELBCDIU_MASK) != in pixis_read()
300 * pixis_write - board-specific function to write to the PIXIS
310 if ((in_be32(&gur->pmuxcr) & PMUXCR_ELBCDIU_MASK) != in pixis_write()
314 /* Do a read-back to ensure the write completed */ in pixis_write()
331 out_8(&pixis->vctl, 0); in pixis_bank_reset()
332 out_8(&pixis->vctl, 1); in pixis_bank_reset()
346 * To ensure the post-write is completed to eLBC, software must in flash_write8()
364 * To ensure the post-write is completed to eLBC, software must in flash_write16()
382 * To ensure the post-write is completed to eLBC, software must in flash_write32()
410 * To ensure the post-write is completed to eLBC, software must in flash_write64()
413 * read addr+4 because we just wrote to addr+4, so that's how we in flash_write64()
418 __raw_readb(addr + 4); in flash_write64()