mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[POWERPC] cpm2: Add cpm2_set_pin().
This provides a generic way for board code to set up CPM pins, rather than directly poking magic values into registers. Signed-off-by: Scott Wood <[email protected]> Signed-off-by: Kumar Gala <[email protected]>
This commit is contained in:
parent
2652d4ec4a
commit
7f21f52940
2 changed files with 42 additions and 0 deletions
|
|
@ -1247,5 +1247,14 @@ enum cpm_clk {
|
|||
extern int cpm2_clk_setup(enum cpm_clk_target target, int clock, int mode);
|
||||
extern int cpm2_smc_clk_setup(enum cpm_clk_target target, int clock);
|
||||
|
||||
#define CPM_PIN_INPUT 0
|
||||
#define CPM_PIN_OUTPUT 1
|
||||
#define CPM_PIN_PRIMARY 0
|
||||
#define CPM_PIN_SECONDARY 2
|
||||
#define CPM_PIN_GPIO 4
|
||||
#define CPM_PIN_OPENDRAIN 8
|
||||
|
||||
void cpm2_set_pin(int port, int pin, int flags);
|
||||
|
||||
#endif /* __CPM2__ */
|
||||
#endif /* __KERNEL__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue