Lines Matching +full:pin +full:- +full:switches
2 * Copyright 2010-2011 Freescale Semiconductor, Inc.
7 * SPDX-License-Identifier: GPL-2.0+
38 * Note that we need to byte-swap the value before it's written to the AD
79 temp = in_be32(&gur->clkdvdr) & 0x2000FFFF; in diu_set_pixel_clock()
80 out_be32(&gur->clkdvdr, temp); /* turn off clock */ in diu_set_pixel_clock()
81 out_be32(&gur->clkdvdr, temp | 0x80000000 | ((pixval & 0x1F) << 16)); in diu_set_pixel_clock()
133 * We know that the upper bits are 0 for 32-bit addressing, or 0xF for in platform_diu_init()
134 * 36-bit addressing. in platform_diu_init()
154 temp = in_8(&pixis->brdcfg1); in platform_diu_init()
164 name = "Single-Link LVDS"; in platform_diu_init()
173 out_8(&pixis->brdcfg1, temp); in platform_diu_init()
180 setbits_8(&pixis->csr, PX_CTL_ALTACC); in platform_diu_init()
192 clrsetbits_be32(&gur->pmuxcr, PMUXCR_ELBCDIU_MASK, PMUXCR_ELBCDIU_DIU); in platform_diu_init()
193 pmuxcr = in_be32(&gur->pmuxcr); in platform_diu_init()
199 * set_mux_to_lbc - disable the DIU so that we can read/write to elbc
204 * weak accessor feature of the CFI flash code to temporarily switch the pin
218 if ((in_be32(&gur->pmuxcr) & PMUXCR_ELBCDIU_MASK) != in set_mux_to_lbc()
234 out_be32(&gur->pmuxcr, (pmuxcr & ~PMUXCR_ELBCDIU_MASK) | in set_mux_to_lbc()
236 in_be32(&gur->pmuxcr); in set_mux_to_lbc()
251 * set_mux_to_diu - re-enable the DIU muxing
266 setbits_8(&pixis->csr, PX_CTL_ALTACC); in set_mux_to_diu()
274 out_be32(&gur->pmuxcr, pmuxcr); in set_mux_to_diu()
275 in_be32(&gur->pmuxcr); in set_mux_to_diu()
279 * pixis_read - board-specific function to read from the PIXIS
289 if ((in_be32(&gur->pmuxcr) & PMUXCR_ELBCDIU_MASK) != in pixis_read()
301 * pixis_write - board-specific function to write to the PIXIS
311 if ((in_be32(&gur->pmuxcr) & PMUXCR_ELBCDIU_MASK) != in pixis_write()
315 /* Do a read-back to ensure the write completed */ in pixis_write()
332 out_8(&pixis->vctl, 0); in pixis_bank_reset()
333 out_8(&pixis->vctl, 1); in pixis_bank_reset()
347 * To ensure the post-write is completed to eLBC, software must in flash_write8()
351 * __raw_readb() completes before it switches the mux. in flash_write8()
365 * To ensure the post-write is completed to eLBC, software must in flash_write16()
369 * __raw_readb() completes before it switches the mux. in flash_write16()
383 * To ensure the post-write is completed to eLBC, software must in flash_write32()
387 * __raw_readb() completes before it switches the mux. in flash_write32()
411 * To ensure the post-write is completed to eLBC, software must in flash_write64()
417 * switches the mux. in flash_write64()