[ARM] pxa: allow MFP_LPM_INPUT to be explicitly specified
authorEric Miao <eric.y.miao@gmail.com>
Tue, 27 Apr 2010 03:14:24 +0000 (11:14 +0800)
committerEric Miao <eric.y.miao@gmail.com>
Tue, 11 May 2010 15:25:00 +0000 (17:25 +0200)
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/mfp-pxa2xx.c
arch/arm/plat-pxa/mfp.c

index e5b79210a90bea8b5de97f5646eef2e8b19e8b76..1d1419b7345770aacdd28fce8b482055fdd28bf7 100644 (file)
@@ -81,6 +81,7 @@ static int __mfp_config_gpio(unsigned gpio, unsigned long c)
                PGSR(bank) &= ~mask;
                is_out = 1;
                break;
+       case MFP_LPM_INPUT:
        case MFP_LPM_DEFAULT:
                break;
        default:
index be58f9fe65b0db082b4b1c8af428dd6cca682a39..b77e018d36c1116cf52d1e8465319242f0dc5a47 100644 (file)
@@ -110,6 +110,7 @@ static const unsigned long mfpr_lpm[] = {
        MFPR_LPM_PULL_LOW,
        MFPR_LPM_PULL_HIGH,
        MFPR_LPM_FLOAT,
+       MFPR_LPM_INPUT,
 };
 
 /* mapping of MFP_PULL_* definitions to MFPR_PULL_* register bits */