aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2009-03-10 09:59:22 +0000
committerAndy Green <agreen@octopus.localdomain>2009-03-10 09:59:22 +0000
commitb2474f313a45de93eb914d2a13bfab81c70e685a (patch)
tree3540a9636f0b1409ff795c7946c3990fc2af49a1 /arch
parente8ee87681eb8a32f8a695053523e99ffcd5feb83 (diff)
fix-3d7k-camif-disable-config.patch
This lets us turn off CONFIG_S3C_DEV_CAMIF and suppress it turning on power (still seemed to issue clock though). Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-s3c6410/mach-om-3d7k.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c6410/mach-om-3d7k.c b/arch/arm/mach-s3c6410/mach-om-3d7k.c
index 6ec3892c139..e54abd83bc2 100644
--- a/arch/arm/mach-s3c6410/mach-om-3d7k.c
+++ b/arch/arm/mach-s3c6410/mach-om-3d7k.c
@@ -69,6 +69,9 @@
#include <plat/cpu.h>
#include <plat/tzic-sp890.h>
#include <plat/usb-control.h>
+/* temp -- move to camera driver along with _NORMAL register setting */
+#include <plat/regs-sys.h>
+#include <plat/regs-syscon-power.h>
/* #include <plat/udc.h> */
#include <linux/i2c.h>
@@ -978,7 +981,9 @@ static struct platform_device *om_3d7k_devices[] __initdata = {
&om_3d7k_device_spi_lcm,
&s3c_device_usbgadget,
&s3c24xx_pwm_device,
+#ifdef CONFIG_S3C_DEV_CAMIF
&s3c_device_camif,
+#endif
};
@@ -1040,10 +1045,16 @@ 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);
+#ifdef CONFIG_S3C_DEV_CAMIF
/* @@@ 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);
+
+ /* so it doesn't get lost */
+ __raw_writel(__raw_readl(S3C64XX_NORMAL_CFG) |
+ S3C64XX_NORMALCFG_DOMAIN_I_ON, S3C64XX_NORMAL_CFG);
+#endif
}
static void om_3d7k_l1k002_pwronoff(int level)