Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145391
b: refs/heads/master
c: 0e1b74d
h: refs/heads/master
i:
  145389: 748d6ed
  145387: 8fa331a
  145383: a7521b1
  145375: cbcbab3
v: v3
  • Loading branch information
Mingwei Wang authored and Eric Miao committed May 22, 2009
1 parent 1b599f6 commit be9daa4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff71338ed31398384b2e5992623d52f9aaba1da1
refs/heads/master: 0e1b74df992c1ef92213ab26f952befda2087f59
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-mmp/include/mach/mfp-pxa168.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

#include <mach/mfp.h>

#define MFP_DRIVE_VERY_SLOW (0x0 << 13)
#define MFP_DRIVE_SLOW (0x1 << 13)
#define MFP_DRIVE_MEDIUM (0x2 << 13)
#define MFP_DRIVE_FAST (0x3 << 13)

/* GPIO */
#define GPIO0_GPIO MFP_CFG(GPIO0, AF5)
#define GPIO1_GPIO MFP_CFG(GPIO1, AF5)
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-mmp/include/mach/mfp-pxa910.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

#include <mach/mfp.h>

#define MFP_DRIVE_VERY_SLOW (0x0 << 13)
#define MFP_DRIVE_SLOW (0x2 << 13)
#define MFP_DRIVE_MEDIUM (0x4 << 13)
#define MFP_DRIVE_FAST (0x8 << 13)

/* UART2 */
#define GPIO47_UART2_RXD MFP_CFG(GPIO47, AF6)
#define GPIO48_UART2_TXD MFP_CFG(GPIO48, AF6)
Expand Down
9 changes: 3 additions & 6 deletions trunk/arch/arm/mach-mmp/include/mach/mfp.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@
* possible, we make the following compromise:
*
* 1. SLEEP_OE_N will always be programmed to '1' (by MFP_LPM_FLOAT)
* 2. DRIVE strength definitions redefined to include the reserved bit10
* 2. DRIVE strength definitions redefined to include the reserved bit
* - the reserved bit differs between pxa168 and pxa910, and the
* MFP_DRIVE_* macros are individually defined in mfp-pxa{168,910}.h
* 3. Override MFP_CFG() and MFP_CFG_DRV()
* 4. Drop the use of MFP_CFG_LPM() and MFP_CFG_X()
*/

#define MFP_DRIVE_VERY_SLOW (0x0 << 13)
#define MFP_DRIVE_SLOW (0x2 << 13)
#define MFP_DRIVE_MEDIUM (0x4 << 13)
#define MFP_DRIVE_FAST (0x8 << 13)

#undef MFP_CFG
#undef MFP_CFG_DRV
#undef MFP_CFG_LPM
Expand Down

0 comments on commit be9daa4

Please sign in to comment.