Lines Matching +full:output +full:- +full:polarity +full:- +full:invert
20 * MA 02111-1307 USA
58 ret = -1; in tca642x_reg_write()
80 ret = -1; in tca642x_reg_read()
92 * Set output value of IO pins in 'reg_bit' to corresponding value in 'data'
104 * Set read polarity of IO pins in 'reg_bit' to corresponding value in 'data'
117 * 0 = output, 1 = input
136 return -1; in tca642x_get_val()
181 return -1; in tca642x_info()
183 for (j = 7; j >= 0; j--) in tca642x_info()
189 return -1; in tca642x_info()
191 for (j = 7; j >= 0; j--) in tca642x_info()
197 return -1; in tca642x_info()
199 for (j = 7; j >= 0; j--) in tca642x_info()
205 return -1; in tca642x_info()
207 for (j = 7; j >= 0; j--) in tca642x_info()
217 U_BOOT_CMD_MKENT(output, 4, 0, (void *)TCA642X_CMD_OUTPUT, "", ""),
219 U_BOOT_CMD_MKENT(invert, 4, 0, (void *)TCA642X_CMD_INVERT, "", ""),
237 !((argc == (c->maxargs)) || in do_tca642x()
238 (((int)c->cmd == TCA642X_CMD_DEVICE) && in do_tca642x()
239 (argc == (c->maxargs - 1))))) { in do_tca642x()
247 /* arg3 used as pin or invert value */ in do_tca642x()
263 switch ((int)c->cmd) { in do_tca642x()
278 bank_shift = ul_arg2 - (gpio_bank * 10); in do_tca642x()
292 bank_shift = ul_arg2 - (gpio_bank * 10); in do_tca642x()
304 bank_shift = ul_arg2 - (gpio_bank * 10); in do_tca642x()
322 " - show or set current device address\n"
324 " - display info for current chip\n"
325 "tca642x output pin 0|1\n"
326 " - set pin as output and drive low or high\n"
327 "tca642x invert pin 0|1\n"
328 " - disable/enable polarity inversion for reads\n"
330 " - set pin as input and read value"