Lines Matching +full:mode +full:- +full:reg

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Copyright (C) 2004 - 2008 Texas Instruments Inc.
7 * Copyright (C) 2003 - 2008 Nokia Corporation
13 * - W8 = ball
14 * - 1610 = 1510 or 1610, none if common for both 1510 and 1610
15 * - MMC2_DAT0 = function
21 #include <linux/soc/ti/omap1-mux.h>
23 #define PU_PD_SEL_NA 0 /* No pu_pd reg available */
24 #define PULL_DWN_CTRL_NA 0 /* No pull-down control needed */
27 #define MUX_REG(reg, mode_offset, mode) .mux_reg_name = "FUNC_MUX_CTRL_"#reg, \ argument
28 .mux_reg = FUNC_MUX_CTRL_##reg, \
30 .mask = mode,
32 #define PULL_REG(reg, bit, status) .pull_name = "PULL_DWN_CTRL_"#reg, \ argument
33 .pull_reg = PULL_DWN_CTRL_##reg, \
37 #define PU_PD_REG(reg, status) .pu_pd_name = "PU_PD_SEL_"#reg, \ argument
38 .pu_pd_reg = PU_PD_SEL_##reg, \
41 #define MUX_REG_7XX(reg, mode_offset, mode) .mux_reg_name = "OMAP7XX_IO_CONF_"#reg, \ argument
42 .mux_reg = OMAP7XX_IO_CONF_##reg, \
44 .mask = mode,
46 #define PULL_REG_7XX(reg, bit, status) .pull_name = "OMAP7XX_IO_CONF_"#reg, \ argument
47 .pull_reg = OMAP7XX_IO_CONF_##reg, \
53 #define MUX_REG(reg, mode_offset, mode) .mux_reg = FUNC_MUX_CTRL_##reg, \ argument
55 .mask = mode,
57 #define PULL_REG(reg, bit, status) .pull_reg = PULL_DWN_CTRL_##reg, \ argument
61 #define PU_PD_REG(reg, status) .pu_pd_reg = PU_PD_SEL_##reg, \ argument
64 #define MUX_REG_7XX(reg, mode_offset, mode) \ argument
65 .mux_reg = OMAP7XX_IO_CONF_##reg, \
67 .mask = mode,
69 #define PULL_REG_7XX(reg, bit, status) .pull_reg = OMAP7XX_IO_CONF_##reg, \ argument
75 #define MUX_CFG(desc, mux_reg, mode_offset, mode, \ argument
81 MUX_REG(mux_reg, mode_offset, mode) \
89 * - config regs are the OMAP7XX_IO_CONF_x regs (see omap7xx.h) regs and
91 * - for pull-up/down, only has one enable bit which is in the same register
94 #define MUX_CFG_7XX(desc, mux_reg, mode_offset, mode, \ argument
99 MUX_REG_7XX(mux_reg, mode_offset, mode) \