Lines Matching +full:en +full:- +full:gpio

1 // SPDX-License-Identifier: GPL-2.0+
14 #include <asm/arch/gpio.h>
15 #include <asm/gpio.h>
16 #include <asm/mach-types.h>
19 #include <asm/ehci-omap.h>
32 puts("Error: GPIO 65 not available\n"); in tao3530_revision()
35 MUX_VAL(CP(GPMC_WAIT3), (IEN | PTU | EN | M4)); in tao3530_revision()
39 puts("Error: GPIO 1 not available\n"); in tao3530_revision()
42 MUX_VAL(CP(SYS_CLKREQ), (IEN | PTU | EN | M4)); in tao3530_revision()
46 puts("Error: GPIO 65 not available for input\n"); in tao3530_revision()
52 puts("Error: GPIO 1 not available for input\n"); in tao3530_revision()
59 MUX_VAL(CP(SYS_CLKREQ), (IEN | PTU | EN | M0)); in tao3530_revision()
62 MUX_VAL(CP(GPMC_WAIT3), (IEN | PTU | EN | M0)); in tao3530_revision()
72 * Description: If we use SPL then there is no x-loader nor config header
79 * Switch baseboard LED to red upon power-on in get_board_mem_timings()
83 /* Request a gpio before using it */ in get_board_mem_timings()
85 /* Sets the gpio as output and its value to 1, switch LED to red */ in get_board_mem_timings()
91 timings->mcfg = MCFG(256 << 20, 14); /* RAS-width 14 */ in get_board_mem_timings()
92 timings->ctrla = HYNIX_V_ACTIMA_165; in get_board_mem_timings()
93 timings->ctrlb = HYNIX_V_ACTIMB_165; in get_board_mem_timings()
96 timings->mcfg = MCFG(128 << 20, 13); /* RAS-width 13 */ in get_board_mem_timings()
97 timings->ctrla = MICRON_V_ACTIMA_165; in get_board_mem_timings()
98 timings->ctrlb = MICRON_V_ACTIMB_165; in get_board_mem_timings()
101 timings->mr = MICRON_V_MR_165; in get_board_mem_timings()
102 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; in get_board_mem_timings()
114 gd->bd->bi_arch_number = MACH_TYPE_OMAP3_TAO3530; in board_init()
116 gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100); in board_init()
127 struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE; in misc_init_r()
128 struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE; in misc_init_r()
135 writel(~(GPIO10 | GPIO8 | GPIO2 | GPIO1), &gpio6_base->oe); in misc_init_r()
137 GPIO15 | GPIO14 | GPIO13 | GPIO12), &gpio5_base->oe); in misc_init_r()
141 &gpio6_base->setdataout); in misc_init_r()
143 GPIO15 | GPIO14 | GPIO13 | GPIO12, &gpio5_base->setdataout); in misc_init_r()
147 puts("TAO-3530 REV Reserve 1\n"); in misc_init_r()
150 puts("TAO-3530 REV Reserve 2\n"); in misc_init_r()
153 puts("TAO-3530 REV Cx\n"); in misc_init_r()
156 puts("TAO-3530 REV Ax/Bx\n"); in misc_init_r()
184 omap_mmc_init(0, 0, 0, -1, -1); in board_mmc_init()