Lines Matching +full:level +full:- +full:detect
1 // SPDX-License-Identifier: GPL-2.0+
8 #include <asm/mach-types.h>
21 #include <asm/ehci-omap.h>
48 gd->bd->bi_arch_number = MACH_TYPE_OMAP4_PANDA; in board_init()
49 gd->bd->bi_boot_params = (0x80000000 + 0x100); /* boot param addr */ in board_init()
61 * Description: Detect if we are running on a panda revision A1-A6,
63 * the level of GPIOs and checking the processor revisions.
66 * GPIO171, GPIO101, GPIO182: 0 1 1 => A1-A5
81 writew((IEN | M3), (*ctrl)->control_padconf_core_base + UNIPRO_TX0); in get_board_revision()
82 writew((IEN | M3), (*ctrl)->control_padconf_core_base + FREF_CLK2_OUT); in get_board_revision()
93 writew((IEN | M3), (*ctrl)->control_padconf_core_base + in get_board_revision()
95 writew((IEN | M3), (*ctrl)->control_padconf_core_base + in get_board_revision()
97 writew((IEN | M3), (*ctrl)->control_padconf_core_base + in get_board_revision()
105 env_set("board_name", "panda-es"); in get_board_revision()
111 writew((IEN | M3), (*ctrl)->control_padconf_core_base + in get_board_revision()
119 env_set("board_name", "panda-a4"); in get_board_revision()
127 * is_panda_es_rev_b3() - Detect if we are running on rev B3 of panda board ES
130 * Detect if we are running on B3 version of ES panda board,
131 * This can be done by reading the level of GPIO 171 and checking the
147 (*ctrl)->control_padconf_core_base + UNIPRO_TX0); in is_panda_es_rev_b3()
157 * emif_get_reg_dump() - emif_get_reg_dump strong function
159 * @emif_nr - emif base
160 * @regs - reg dump of timing values
203 * @brief misc_init_r - Configure Panda board specific configurations
227 auxclk = readl(&scrm->auxclk3); in misc_init_r()
237 writel(auxclk, &scrm->auxclk3); in misc_init_r()
242 auxclk = readl(&scrm->auxclk1); in misc_init_r()
252 writel(auxclk, &scrm->auxclk1); in misc_init_r()
255 altclksrc = readl(&scrm->altclksrc); in misc_init_r()
264 writel(altclksrc, &scrm->altclksrc); in misc_init_r()
273 do_set_mux((*ctrl)->control_padconf_core_base, in set_muxconf_regs()
278 do_set_mux((*ctrl)->control_padconf_wkup_base, in set_muxconf_regs()
284 do_set_mux((*ctrl)->control_padconf_wkup_base, in set_muxconf_regs()
293 return omap_mmc_init(0, 0, 0, -1, -1); in board_mmc_init()
337 * get_board_rev() - get board revision