-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 100932 b: refs/heads/master c: 918dbcb h: refs/heads/master v: v3
- Loading branch information
Dmitry Baryshkov
authored and
Russell King
committed
Jul 9, 2008
1 parent
f2caa45
commit cc80700
Showing
4 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 330ff197fcdc83ba151960d78294fb37777ebe12 | ||
refs/heads/master: 918dbcba4ee3f0ad7d617b3969d5016481b9ceff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* linux/arch/arm/mach-pxa/pxa2xx.c | ||
* | ||
* code specific to pxa2xx | ||
* | ||
* Copyright (C) 2008 Dmitry Baryshkov | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/kernel.h> | ||
#include <linux/device.h> | ||
|
||
#include <asm/arch/mfp-pxa2xx.h> | ||
#include <asm/arch/mfp-pxa25x.h> | ||
#include <asm/arch/irda.h> | ||
|
||
static unsigned long pxa2xx_mfp_fir[] = { | ||
GPIO46_FICP_RXD, | ||
GPIO47_FICP_TXD, | ||
}; | ||
|
||
static unsigned long pxa2xx_mfp_sir[] = { | ||
GPIO46_STUART_RXD, | ||
GPIO47_STUART_TXD, | ||
}; | ||
|
||
static unsigned long pxa2xx_mfp_off[] = { | ||
GPIO46_GPIO | MFP_LPM_DRIVE_LOW, | ||
GPIO47_GPIO | MFP_LPM_DRIVE_LOW, | ||
}; | ||
|
||
void pxa2xx_transceiver_mode(struct device *dev, int mode) | ||
{ | ||
if (mode & IR_OFF) { | ||
pxa2xx_mfp_config(pxa2xx_mfp_off, ARRAY_SIZE(pxa2xx_mfp_off)); | ||
} else if (mode & IR_SIRMODE) { | ||
pxa2xx_mfp_config(pxa2xx_mfp_sir, ARRAY_SIZE(pxa2xx_mfp_sir)); | ||
} else if (mode & IR_FIRMODE) { | ||
pxa2xx_mfp_config(pxa2xx_mfp_fir, ARRAY_SIZE(pxa2xx_mfp_fir)); | ||
} else | ||
BUG(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters