Re: HTC Dream aka. t-mobile g1 support
From: Pavel Machek
Date: Wed Jun 17 2009 - 05:11:58 EST
> > ...in trout... Does dream really support flash?
> >
> > {
> > .name = "spotlight",
> > .gpio = TROUT_GPIO_SPOTLIGHT_EN,
> > },
> >
> > ...what is spotlight? I wish dream had some way to produce light in
> > dark...
>
> Earlier revisions had an LED flash for the camera. This didn't make
> it into the final hardware.
Ok, and what is the spotlight? Did flash have two modes?
One more question... do you have keymap.map to make console usable? By
default, keyboard lacks any special characters...
---
Flash is not wired on Dreams users actually have, document that.
Document purpose of pwrsink.c.
Signed-off-by: Pavel Machek <pavel@xxxxxx>
diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c
index c1a7431..a65cce5 100644
--- a/arch/arm/mach-msm/board-trout.c
+++ b/arch/arm/mach-msm/board-trout.c
@@ -304,6 +304,8 @@ static struct timed_gpio timed_gpios[] = {
.max_timeout = 15000,
},
{
+ /* Prototype versions of HTC dream had LED flash;
+ released hw lacks it. */
.name = "flash",
.gpio = TROUT_GPIO_FLASH_EN,
.max_timeout = 400,
diff --git a/arch/arm/mach-msm/htc_pwrsink.c b/arch/arm/mach-msm/htc_pwrsink.c
index 3d3c55c..b74f776 100644
--- a/arch/arm/mach-msm/htc_pwrsink.c
+++ b/arch/arm/mach-msm/htc_pwrsink.c
@@ -15,6 +15,10 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
+ * Some of HTC devices don't have a battery gauge IC and estimate
+ * current drain based on hints provided to the baseband from the apps
+ * processor.
+ *
*/
#include <linux/platform_device.h>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/