Path: blob/master/arch/arm/mach-mmp/include/mach/mfp.h
15162 views
#ifndef __ASM_MACH_MFP_H1#define __ASM_MACH_MFP_H23#include <plat/mfp.h>45/*6* NOTE: the MFPR register bit definitions on PXA168 processor lines are a7* bit different from those on PXA3xx. Bit [7:10] are now reserved, which8* were SLEEP_OE_N, SLEEP_DATA, SLEEP_SEL and the LSB of DRIVE bits.9*10* To cope with this difference and re-use the pxa3xx mfp code as much as11* possible, we make the following compromise:12*13* 1. SLEEP_OE_N will always be programmed to '1' (by MFP_LPM_FLOAT)14* 2. DRIVE strength definitions redefined to include the reserved bit15* - the reserved bit differs between pxa168 and pxa910, and the16* MFP_DRIVE_* macros are individually defined in mfp-pxa{168,910}.h17* 3. Override MFP_CFG() and MFP_CFG_DRV()18* 4. Drop the use of MFP_CFG_LPM() and MFP_CFG_X()19*/2021#undef MFP_CFG22#undef MFP_CFG_DRV23#undef MFP_CFG_LPM24#undef MFP_CFG_X25#undef MFP_CFG_DEFAULT2627#define MFP_CFG(pin, af) \28(MFP_LPM_FLOAT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_MEDIUM)2930#define MFP_CFG_DRV(pin, af, drv) \31(MFP_LPM_FLOAT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_##drv)3233#endif /* __ASM_MACH_MFP_H */343536