Re: HTC Dream aka. t-mobile g1 support

Pavel Machek
2009-06-17T09:11:54Z

> > ...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@ucw.cz>

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