Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1234525 > unrolled thread

[PATCH v4 11/26] ARM: pxa: magician: Optimize EGPIO initial values

Started byPetr Cvek <petr.cvek@tul.cz>
First post2015-09-28 23:40 +0200
Last post2015-10-03 14:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v4 11/26] ARM: pxa: magician: Optimize EGPIO initial values Petr Cvek <petr.cvek@tul.cz> - 2015-09-28 23:40 +0200
    Re: [PATCH v4 11/26] ARM: pxa: magician: Optimize EGPIO initial  values Philipp Zabel <philipp.zabel@gmail.com> - 2015-10-03 14:40 +0200

#1234525 — [PATCH v4 11/26] ARM: pxa: magician: Optimize EGPIO initial values

FromPetr Cvek <petr.cvek@tul.cz>
Date2015-09-28 23:40 +0200
Subject[PATCH v4 11/26] ARM: pxa: magician: Optimize EGPIO initial values
Message-ID<qdOjo-3fZ-17@gated-at.bofh.it>
This patch optimizes initial values of the EGPIO chip driver.

GSM and sound should be powered off during boot. A weak accumulator and
a powered GSM sometimes cause a system reboot. A charging current should be
as high as possible during boot.

Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
---
 arch/arm/mach-pxa/magician.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
index 2c487ae..bf0760e 100644
--- a/arch/arm/mach-pxa/magician.c
+++ b/arch/arm/mach-pxa/magician.c
@@ -263,9 +263,12 @@ static struct htc_egpio_chip egpio_chips[] = {
 		.num_gpios	= 24,
 		.direction	= HTC_EGPIO_OUTPUT,
 		/*
-		 * Depends on modules configuration
+		 * NOTICE LCD valid power on sequence
+		 * Disable GSM and sound
+		 * Low accu can cause reboot, set 500mA charging
+		 * OR 0x8000 for LCD backlight (debug printks)
 		 */
-		.initial_values	= 0x40,
+		.initial_values	= 0x2020c0,
 	},
 	[1] = {
 		.reg_start	= 4,
-- 
1.7.12.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1238846 — Re: [PATCH v4 11/26] ARM: pxa: magician: Optimize EGPIO initial values

FromPhilipp Zabel <philipp.zabel@gmail.com>
Date2015-10-03 14:40 +0200
SubjectRe: [PATCH v4 11/26] ARM: pxa: magician: Optimize EGPIO initial values
Message-ID<qfugy-1TL-29@gated-at.bofh.it>
In reply to#1234525
Am Montag, den 28.09.2015, 23:32 +0200 schrieb Petr Cvek:
> This patch optimizes initial values of the EGPIO chip driver.
> 
> GSM and sound should be powered off during boot. A weak accumulator
> and
> a powered GSM sometimes cause a system reboot. A charging current
> should be
> as high as possible during boot.

Wouldn't that violate USB spec if we boot the magician while plugged
into an unpowered USB host?

regards
Philipp
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web