Lines Matching defs:mpp
2 * arch/arm/mach-orion5x/mpp.c
18 #include "mpp.h"
50 static int __init determine_type_encoding(int mpp, enum orion5x_mpp_type type)
55 if (mpp == 0)
57 if (mpp >= 1 && mpp <= 15)
59 if (mpp >= 16 && mpp <= 19) {
68 if (mpp == 0)
73 if (mpp >= 0 && mpp <= 7)
78 if (mpp == 2)
83 if (mpp >= 8 && mpp <= 19)
89 if (mpp >= 4 && mpp <= 7)
91 if (mpp >= 12 && mpp <= 17)
97 if (is_5181l() && mpp >= 6 && mpp <= 7)
103 if (mpp >= 4 && mpp <= 7)
105 if (mpp >= 12 && mpp <= 15)
111 if (mpp >= 16 && mpp <= 19)
130 while (mode->mpp >= 0) {
135 if (mode->mpp >= 0 && mode->mpp <= 7)
137 else if (mode->mpp >= 8 && mode->mpp <= 15)
139 else if (mode->mpp >= 16 && mode->mpp <= 19)
143 "(%d)\n", mode->mpp);
147 num_type = determine_type_encoding(mode->mpp, mode->type);
150 "combination (%d, %d)\n", mode->mpp,
155 shift = (mode->mpp & 7) << 2;
159 if (mode->type == MPP_UNUSED && (mode->mpp < 16 || is_5182()))
160 orion_gpio_set_unused(mode->mpp);
162 orion_gpio_set_valid(mode->mpp, !!(mode->type == MPP_GPIO));