diff options
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/cm-x2xx.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/palmte2.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/sharpsl_pm.c | 48 | ||||
-rw-r--r-- | arch/arm/mach-pxa/viper.c | 3 |
4 files changed, 4 insertions, 50 deletions
diff --git a/arch/arm/mach-pxa/cm-x2xx.c b/arch/arm/mach-pxa/cm-x2xx.c index fc3afc7cd366..a103c8ffea9f 100644 --- a/arch/arm/mach-pxa/cm-x2xx.c +++ b/arch/arm/mach-pxa/cm-x2xx.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <asm/mach/map.h> | 22 | #include <asm/mach/map.h> |
23 | 23 | ||
24 | #include <mach/pxa25x.h> | 24 | #include <mach/pxa25x.h> |
25 | #undef GPIO24_SSP1_SFRM | ||
25 | #include <mach/pxa27x.h> | 26 | #include <mach/pxa27x.h> |
26 | #include <mach/audio.h> | 27 | #include <mach/audio.h> |
27 | #include <linux/platform_data/video-pxafb.h> | 28 | #include <linux/platform_data/video-pxafb.h> |
diff --git a/arch/arm/mach-pxa/palmte2.c b/arch/arm/mach-pxa/palmte2.c index 997e6da9a9c4..32e0d7998355 100644 --- a/arch/arm/mach-pxa/palmte2.c +++ b/arch/arm/mach-pxa/palmte2.c | |||
@@ -105,6 +105,7 @@ static struct pxamci_platform_data palmte2_mci_platform_data = { | |||
105 | .gpio_power = GPIO_NR_PALMTE2_SD_POWER, | 105 | .gpio_power = GPIO_NR_PALMTE2_SD_POWER, |
106 | }; | 106 | }; |
107 | 107 | ||
108 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | ||
108 | /****************************************************************************** | 109 | /****************************************************************************** |
109 | * GPIO keys | 110 | * GPIO keys |
110 | ******************************************************************************/ | 111 | ******************************************************************************/ |
@@ -132,6 +133,7 @@ static struct platform_device palmte2_pxa_keys = { | |||
132 | .platform_data = &palmte2_pxa_keys_data, | 133 | .platform_data = &palmte2_pxa_keys_data, |
133 | }, | 134 | }, |
134 | }; | 135 | }; |
136 | #endif | ||
135 | 137 | ||
136 | /****************************************************************************** | 138 | /****************************************************************************** |
137 | * Backlight | 139 | * Backlight |
diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c index 5a406f794798..ec55c575ed19 100644 --- a/arch/arm/mach-pxa/sharpsl_pm.c +++ b/arch/arm/mach-pxa/sharpsl_pm.c | |||
@@ -55,7 +55,6 @@ | |||
55 | #ifdef CONFIG_PM | 55 | #ifdef CONFIG_PM |
56 | static int sharpsl_off_charge_battery(void); | 56 | static int sharpsl_off_charge_battery(void); |
57 | static int sharpsl_check_battery_voltage(void); | 57 | static int sharpsl_check_battery_voltage(void); |
58 | static int sharpsl_fatal_check(void); | ||
59 | #endif | 58 | #endif |
60 | static int sharpsl_check_battery_temp(void); | 59 | static int sharpsl_check_battery_temp(void); |
61 | static int sharpsl_ac_check(void); | 60 | static int sharpsl_ac_check(void); |
@@ -686,53 +685,6 @@ static int corgi_pxa_pm_enter(suspend_state_t state) | |||
686 | return 0; | 685 | return 0; |
687 | } | 686 | } |
688 | 687 | ||
689 | /* | ||
690 | * Check for fatal battery errors | ||
691 | * Fatal returns -1 | ||
692 | */ | ||
693 | static int sharpsl_fatal_check(void) | ||
694 | { | ||
695 | int buff[5], temp, i, acin; | ||
696 | |||
697 | dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check entered\n"); | ||
698 | |||
699 | /* Check AC-Adapter */ | ||
700 | acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); | ||
701 | |||
702 | if (acin && (sharpsl_pm.charge_mode == CHRG_ON)) { | ||
703 | sharpsl_pm.machinfo->charge(0); | ||
704 | udelay(100); | ||
705 | sharpsl_pm.machinfo->discharge(1); /* enable discharge */ | ||
706 | mdelay(SHARPSL_WAIT_DISCHARGE_ON); | ||
707 | } | ||
708 | |||
709 | if (sharpsl_pm.machinfo->discharge1) | ||
710 | sharpsl_pm.machinfo->discharge1(1); | ||
711 | |||
712 | /* Check battery : check inserting battery ? */ | ||
713 | for (i = 0; i < 5; i++) { | ||
714 | buff[i] = sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT); | ||
715 | mdelay(SHARPSL_CHECK_BATTERY_WAIT_TIME_VOLT); | ||
716 | } | ||
717 | |||
718 | if (sharpsl_pm.machinfo->discharge1) | ||
719 | sharpsl_pm.machinfo->discharge1(0); | ||
720 | |||
721 | if (acin && (sharpsl_pm.charge_mode == CHRG_ON)) { | ||
722 | udelay(100); | ||
723 | sharpsl_pm.machinfo->charge(1); | ||
724 | sharpsl_pm.machinfo->discharge(0); | ||
725 | } | ||
726 | |||
727 | temp = get_select_val(buff); | ||
728 | dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check: acin: %d, discharge voltage: %d, no discharge: %ld\n", acin, temp, sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT)); | ||
729 | |||
730 | if ((acin && (temp < sharpsl_pm.machinfo->fatal_acin_volt)) || | ||
731 | (!acin && (temp < sharpsl_pm.machinfo->fatal_noacin_volt))) | ||
732 | return -1; | ||
733 | return 0; | ||
734 | } | ||
735 | |||
736 | static int sharpsl_off_charge_error(void) | 688 | static int sharpsl_off_charge_error(void) |
737 | { | 689 | { |
738 | dev_err(sharpsl_pm.dev, "Offline Charger: Error occurred.\n"); | 690 | dev_err(sharpsl_pm.dev, "Offline Charger: Error occurred.\n"); |
diff --git a/arch/arm/mach-pxa/viper.c b/arch/arm/mach-pxa/viper.c index 392412ce4dac..c773e4dded64 100644 --- a/arch/arm/mach-pxa/viper.c +++ b/arch/arm/mach-pxa/viper.c | |||
@@ -768,8 +768,7 @@ static unsigned long viper_tpm; | |||
768 | 768 | ||
769 | static int __init viper_tpm_setup(char *str) | 769 | static int __init viper_tpm_setup(char *str) |
770 | { | 770 | { |
771 | strict_strtoul(str, 10, &viper_tpm); | 771 | return strict_strtoul(str, 10, &viper_tpm) >= 0; |
772 | return 1; | ||
773 | } | 772 | } |
774 | 773 | ||
775 | __setup("tpm=", viper_tpm_setup); | 774 | __setup("tpm=", viper_tpm_setup); |