diff options
author | Werner Almesberger <werner@openmoko.org> | 2009-03-05 14:40:27 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-03-05 14:40:27 +0000 |
commit | fcc8cec4e6a2bd534210ba4299e7daf530568d08 (patch) | |
tree | 142ae6263821a12a36317e0a375519a99999f4e2 /arch | |
parent | 1c07916501614ce24b3530f9c2651001fc41eb49 (diff) |
Dirty hacks to make it all work
A few dirty hacks to make the camera driver work:
- because V4L no longer guarantees that minor numbers provided by the
client are actually used, the preview/codec selection mechanism falls
apart. We work around this by defaulting to preview when we don't
know better.
- power up the camera in platform code, not cleanly via power control
device.
Signed-off-by: Werner Almesberger <werner@openmoko.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c6410/mach-om-3d7k.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c6410/mach-om-3d7k.c b/arch/arm/mach-s3c6410/mach-om-3d7k.c index 2dccffd7347..dbe2ce71275 100644 --- a/arch/arm/mach-s3c6410/mach-om-3d7k.c +++ b/arch/arm/mach-s3c6410/mach-om-3d7k.c @@ -1025,6 +1025,10 @@ static void om_3d7k_pcf50633_attach_child_devices(struct pcf50633 *pcf) pcf50633_reg_write(pcf, PCF50633_REG_LEDDIM, 0x01); pcf50633_reg_write(pcf, PCF50633_REG_LEDENA, 0x01); + /* @@@ do this properly later - WA */ + pcf50633_reg_write(om_3d7k_pcf, 0x30, 0x21); + pcf50633_reg_write(om_3d7k_pcf, 0x39, 0x13); + pcf50633_reg_write(om_3d7k_pcf, 0x3a, 0x21); } static void om_3d7k_l1k002_pwronoff(int level) |