|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_TI_K3_PINCTRL_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_TI_K3_PINCTRL_H_
10#define PULLUDEN_SHIFT 16
11#define PULLTYPESEL_SHIFT 17
12#define RXACTIVE_SHIFT 18
14#define PULL_DISABLE (1 << PULLUDEN_SHIFT)
15#define PULL_ENABLE (0 << PULLUDEN_SHIFT)
17#define PULL_UP ((1 << PULLTYPESEL_SHIFT) | PULL_ENABLE)
18#define PULL_DOWN ((0 << PULLTYPESEL_SHIFT) | PULL_ENABLE)
20#define INPUT_ENABLE (1 << RXACTIVE_SHIFT)
21#define INPUT_DISABLE (0 << RXACTIVE_SHIFT)
25#define PIN_OUTPUT (INPUT_DISABLE | PULL_DISABLE)
26#define PIN_OUTPUT_PULLUP (INPUT_DISABLE | PULL_UP)
27#define PIN_OUTPUT_PULLDOWN (INPUT_DISABLE | PULL_DOWN)
28#define PIN_INPUT (INPUT_ENABLE | PULL_DISABLE)
29#define PIN_INPUT_PULLUP (INPUT_ENABLE | PULL_UP)
30#define PIN_INPUT_PULLDOWN (INPUT_ENABLE | PULL_DOWN)
43#define K3_PINMUX(offset, value, mux_mode) (((offset) & 0x1fff)) ((value) | (mux_mode))