Lines Matching +full:- +full:multi +full:- +full:pin +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Common Multi-Function Pin Definitions
7 * 2007-8-21: eric miao <eric.miao@marvell.com>
18 MFP_PIN_INVALID = -1,
325 * a possible MFP configuration is represented by a 32-bit integer
327 * bit 0.. 9 - MFP Pin Number (1024 Pins Maximum)
328 * bit 10..12 - Alternate Function Selection
329 * bit 13..15 - Drive Strength
330 * bit 16..18 - Low Power Mode State
331 * bit 19..20 - Low Power Mode Edge Detection
332 * bit 21..22 - Run Mode Pull State
336 * MFP_CFG_DEFAULT - default MFP configuration value, with
339 * low power mode = default
342 * MFP_CFG - default MFPR value with alternate function
343 * MFP_CFG_DRV - default MFPR value with alternate function and
344 * pin drive strength
345 * MFP_CFG_LPM - default MFPR value with alternate function and
346 * low power mode
347 * MFP_CFG_X - default MFPR value with alternate function,
348 * pin drive strength and low power mode
405 #define MFP_CFG(pin, af) \ argument
407 (MFP_PIN(MFP_PIN_##pin) | MFP_##af))
409 #define MFP_CFG_DRV(pin, af, drv) \ argument
411 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv))
413 #define MFP_CFG_LPM(pin, af, lpm) \ argument
415 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_LPM_##lpm))
417 #define MFP_CFG_X(pin, af, drv, lpm) \ argument
419 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm))
423 * each MFP pin will have a MFPR register, since the offset of the
425 * should initialize the pin offsets by mfp_init()
427 * mfp_init_base() - accepts a virtual base for all MFPR registers and
430 * mfp_init_addr() - accepts a table of "mfp_addr_map" structure, which
432 * beginning at "offset", to define a single pin, let "end" = -1.
437 * MFP_ADDR() to define a single pin
438 * MFP_ADDR_END to signal the end of pin offset definitions
449 #define MFP_ADDR(pin, offset) \ argument
450 { MFP_PIN_##pin, -1, offset }
458 * mfp_{read, write}() - for direct read/write access to the MFPR register
459 * mfp_config() - for configuring a group of MFPR registers
460 * mfp_config_lpm() - configuring all low power MFPR registers for suspend
461 * mfp_config_run() - configuring all run time MFPR registers after resume