Lines Matching +full:- +full:- +full:refresh +full:- +full:keys
1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2010-2013 Freescale Semiconductor, Inc.
10 #include <asm/arch/imx-regs.h>
14 #include <asm/arch/mx6-pins.h>
17 #include <asm/mach-imx/iomux-v3.h>
18 #include <asm/mach-imx/mxc_i2c.h>
19 #include <asm/mach-imx/sata.h>
20 #include <asm/mach-imx/spi.h>
21 #include <asm/mach-imx/boot_mode.h>
22 #include <asm/mach-imx/video.h>
33 #include <usb/ehci-ci.h>
71 gd->ram_size = ((ulong)CONFIG_DDR_MB * 1024 * 1024); in dram_init()
116 /* I2C3, J15 - RGB connector */
169 /* pin 35 - 1 (PHY_AD2) on reset */
171 /* pin 32 - 1 - (MODE0) all */
173 /* pin 31 - 1 - (MODE1) all */
175 /* pin 28 - 1 - (MODE2) all */
177 /* pin 27 - 1 - (MODE3) all */
179 /* pin 33 - 1 - (CLK125_EN) 125Mhz clockout enabled */
294 struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; in board_mmc_getcd()
295 int gp_cd = (cfg->esdhc_base == USDHC3_BASE_ADDR) ? IMX_GPIO_NR(7, 0) : in board_mmc_getcd()
327 return -EINVAL; in board_mmc_init()
342 return (bus == 0 && cs == 0) ? (IMX_GPIO_NR(3, 19)) : -1; in board_spi_cs_gpio()
371 if (phydev->drv->config) in board_phy_config()
372 phydev->drv->config(phydev); in board_phy_config()
387 bus = fec_get_miibus(base, -1); in board_eth_init()
389 return -EINVAL; in board_eth_init()
393 ret = -EINVAL; in board_eth_init()
396 printf("using phy at %d\n", phydev->addr); in board_eth_init()
397 ret = fec_probe(bis, -1, base, bus, phydev); in board_eth_init()
472 return ((0 == i2c_set_bus_num(dev->bus)) in detect_i2c()
474 (0 == i2c_probe(dev->addr))); in detect_i2c()
481 u32 reg = readl(&iomux->gpr[2]); in enable_lvds()
483 writel(reg, &iomux->gpr[2]); in enable_lvds()
491 u32 reg = readl(&iomux->gpr[2]); in enable_lvds_jeida()
494 writel(reg, &iomux->gpr[2]); in enable_lvds_jeida()
514 .refresh = 60,
533 .name = "LDB-WXGA",
534 .refresh = 60,
553 .name = "LDB-WXGA-S",
554 .refresh = 60,
573 .name = "Hannstar-XGA",
574 .refresh = 60,
593 .name = "LG-9.7",
594 .refresh = 60,
613 .name = "wsvga-lvds",
614 .refresh = 60,
634 .refresh = 60,
654 .refresh = 60,
674 .refresh = 60,
693 .name = "wvga-lvds",
694 .refresh = 57,
713 .name = "wvga-rgb",
714 .refresh = 57,
734 .refresh = 60,
763 reg = __raw_readl(&mxc_ccm->CCGR3); in setup_display()
765 writel(reg, &mxc_ccm->CCGR3); in setup_display()
768 reg = readl(&mxc_ccm->cs2cdr); in setup_display()
773 writel(reg, &mxc_ccm->cs2cdr); in setup_display()
775 reg = readl(&mxc_ccm->cscmr2); in setup_display()
777 writel(reg, &mxc_ccm->cscmr2); in setup_display()
779 reg = readl(&mxc_ccm->chsccdr); in setup_display()
782 writel(reg, &mxc_ccm->chsccdr); in setup_display()
793 writel(reg, &iomux->gpr[2]); in setup_display()
795 reg = readl(&iomux->gpr[3]); in setup_display()
800 writel(reg, &iomux->gpr[3]); in setup_display()
814 /* J5 - Camera MCLK */
876 * Use always serial for U-Boot console
887 clrsetbits_le32(&iomuxc_regs->gpr[1], in board_init()
894 gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; in board_init()
938 * generate a null-terminated string containing the buttons pressed
939 * returns number of keys pressed
979 * loop over all magic keys in preboot_keys()
982 char *keys; in preboot_keys() local
985 keys = env_get(magic); in preboot_keys()
986 if (keys) { in preboot_keys()
987 if (!strcmp(keys, keypress)) in preboot_keys()