Lines Matching +full:pin +full:- +full:count
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 1994-1998 Mark Brinicombe.
109 #define MPP_SEL(pin,func) (((func) & 0xf) << \ argument
110 (((pin) % MPP_PINS_PER_REG) * 4))
122 * for all A38x-based platforms only. in mv_busdma_tag_init()
124 if ((node = OF_finddevice("/")) == -1){ in mv_busdma_tag_init()
167 if ((node = OF_finddevice("mpp")) != -1) in platform_mpp_init()
173 if ((node = OF_finddevice("/")) == -1) in platform_mpp_init()
176 if ((node = fdt_find_compatible(node, "simple-bus", 0)) == 0) in platform_mpp_init()
182 * first-stage loader and try to continue booting. in platform_mpp_init()
205 * Process 'pin-count' and 'pin-map' props. in platform_mpp_init()
207 if (OF_getencprop(node, "pin-count", &pin_count, sizeof(pin_count)) <= 0) in platform_mpp_init()
212 if (OF_getencprop(node, "#pin-cells", &pin_cells, sizeof(pin_cells)) <= 0) in platform_mpp_init()
219 len = OF_getencprop(node, "pin-map", pinmap, sizeof(pinmap)); in platform_mpp_init()
228 * Fill out a "mpp[pin] => function" table. All pins unspecified in in platform_mpp_init()
229 * the 'pin-map' property are defaulted to 0 function i.e. GPIO. in platform_mpp_init()
248 if (i + j == pin_count - 1) in platform_mpp_init()
283 * Re-initialise MPP. It is important to call this prior to using in mv_platform_gpio_init()
295 * Re-initialise decode windows in mv_a38x_platform_late_init()
301 printf("WARNING: could not re-initialise decode windows! " in mv_a38x_platform_late_init()
309 * between Cortex-A9 CPUs and on-chip devices that may in mv_a38x_platform_late_init()
324 /* Open window to bootROM memory - needed for SMP */ in mv_a38x_platform_late_init()
335 * Re-initialise decode windows in mv_axp_platform_late_init()
338 printf("WARNING: could not re-initialise decode windows! " in mv_axp_platform_late_init()
340 if ((node = OF_finddevice("/")) == -1) in mv_axp_platform_late_init()
363 * Construct devmap table with DT-derived config data.
374 if ((root = OF_finddevice("/")) == -1) in mv_a38x_platform_devmap_init()
422 * Acquire SoC registers' base passed by u-boot and fill devmap in mv_axp_platform_devmap_init()