Changeset 4942
- Timestamp:
- 02/27/09 13:41:19 (4 years ago)
- Location:
- developers/werner/gta03/cam/patches
- Files:
-
- 1 added
- 5 edited
-
add-s3c-cam-config.patch (modified) (2 diffs)
-
add-s3c-camif.patch (modified) (5 diffs)
-
fix-s3c64xx_setrate_clksrc.patch (modified) (2 diffs)
-
mach-gta03-add-cam.patch (modified) (3 diffs)
-
series (modified) (1 diff)
-
wip.patch (added)
Legend:
- Unmodified
- Added
- Removed
-
developers/werner/gta03/cam/patches/add-s3c-cam-config.patch
r4938 r4942 1 1 Index: cam/drivers/media/video/Kconfig 2 2 =================================================================== 3 --- cam.orig/drivers/media/video/Kconfig 2009-02-2 6 19:40:37.000000000 +08004 +++ cam/drivers/media/video/Kconfig 2009-02-2 6 19:42:02.000000000 +08003 --- cam.orig/drivers/media/video/Kconfig 2009-02-27 18:34:40.000000000 +0800 4 +++ cam/drivers/media/video/Kconfig 2009-02-27 18:42:11.000000000 +0800 5 5 @@ -711,6 +711,25 @@ 6 6 CMOS camera controller. This is the controller found on first- … … 31 31 Index: cam/drivers/media/video/Makefile 32 32 =================================================================== 33 --- cam.orig/drivers/media/video/Makefile 2009-02-2 6 19:42:41.000000000 +080034 +++ cam/drivers/media/video/Makefile 2009-02-2 6 19:43:10.000000000 +080033 --- cam.orig/drivers/media/video/Makefile 2009-02-27 18:34:40.000000000 +0800 34 +++ cam/drivers/media/video/Makefile 2009-02-27 18:34:45.000000000 +0800 35 35 @@ -134,6 +134,8 @@ 36 36 obj-$(CONFIG_VIDEO_VIVI) += vivi.o -
developers/werner/gta03/cam/patches/add-s3c-camif.patch
r4941 r4942 2 2 =================================================================== 3 3 --- /dev/null 1970-01-01 00:00:00.000000000 +0000 4 +++ cam/drivers/media/video/s3c_camera_driver.c 2009-02-27 1 5:24:15.000000000 +08005 @@ -0,0 +1,188 5@@4 +++ cam/drivers/media/video/s3c_camera_driver.c 2009-02-27 19:07:42.000000000 +0800 5 @@ -0,0 +1,1884 @@ 6 6 +/* drivers/media/video/s3c_camera_driver.c 7 7 + * … … 1847 1847 +void s3c_camif_open_sensor(camif_cis_t *cis) 1848 1848 +{ 1849 +printk("@@@ s3c_camif_open_sensor: cam_clock %p cis %p\n", cam_clock, cis);1850 1849 + clk_set_rate(cam_clock, cis->camclk); 1851 1850 + s3c_camif_reset(cis->reset_type, cis->reset_udelay); … … 1892 1891 =================================================================== 1893 1892 --- /dev/null 1970-01-01 00:00:00.000000000 +0000 1894 +++ cam/drivers/media/video/s3c_camif.c 2009-02-27 1 5:24:15.000000000 +08001893 +++ cam/drivers/media/video/s3c_camif.c 2009-02-27 18:55:24.000000000 +0800 1895 1894 @@ -0,0 +1,1872 @@ 1896 1895 +/* drivers/media/video/s3c_camif.c … … 3769 3768 =================================================================== 3770 3769 --- /dev/null 1970-01-01 00:00:00.000000000 +0000 3771 +++ cam/drivers/media/video/s3c_camif.h 2009-02-27 1 5:24:15.000000000 +08003770 +++ cam/drivers/media/video/s3c_camif.h 2009-02-27 18:55:24.000000000 +0800 3772 3771 @@ -0,0 +1,404 @@ 3773 3772 +/* drivers/media/video/s3c_camif.h … … 4178 4177 =================================================================== 4179 4178 --- /dev/null 1970-01-01 00:00:00.000000000 +0000 4180 +++ cam/drivers/media/video/videodev2_s3c.h 2009-02-27 1 5:24:15.000000000 +08004179 +++ cam/drivers/media/video/videodev2_s3c.h 2009-02-27 18:55:24.000000000 +0800 4181 4180 @@ -0,0 +1,210 @@ 4182 4181 +#ifndef __VIDEODEV2_S3C_H_ -
developers/werner/gta03/cam/patches/fix-s3c64xx_setrate_clksrc.patch
r4941 r4942 2 2 appears to be parent clock selection logic. This patch corrects it. 3 3 4 I also added a BUG_ON, since an overly large divider can cause5 unrelated clocks to be changed.4 I also added a check for overly large dividers to prevent them 5 from changing unrelated clocks. 6 6 7 7 Signed-off-by: Werner Almesberger <werner@openmoko.org> … … 11 11 Index: cam/arch/arm/plat-s3c64xx/s3c6400-clock.c 12 12 =================================================================== 13 --- cam.orig/arch/arm/plat-s3c64xx/s3c6400-clock.c 2009-02-27 1 6:17:15.000000000 +080014 +++ cam/arch/arm/plat-s3c64xx/s3c6400-clock.c 2009-02-27 1 6:52:50.000000000 +080015 @@ -239,10 +239,1 1@@13 --- cam.orig/arch/arm/plat-s3c64xx/s3c6400-clock.c 2009-02-27 18:55:24.000000000 +0800 14 +++ cam/arch/arm/plat-s3c64xx/s3c6400-clock.c 2009-02-27 18:56:07.000000000 +0800 15 @@ -239,10 +239,12 @@ 16 16 17 17 rate = clk_round_rate(clk, rate); 18 18 div = clk_get_rate(clk->parent) / rate; 19 + BUG_ON(div > 16); 19 + if (div > 16) 20 + return -EINVAL; 20 21 21 22 val = __raw_readl(reg); -
developers/werner/gta03/cam/patches/mach-gta03-add-cam.patch
r4941 r4942 1 1 Index: cam/arch/arm/mach-s3c6410/mach-om-gta03.c 2 2 =================================================================== 3 --- cam.orig/arch/arm/mach-s3c6410/mach-om-gta03.c 2009-02-27 1 4:02:45.000000000 +08004 +++ cam/arch/arm/mach-s3c6410/mach-om-gta03.c 2009-02-27 1 4:05:14.000000000 +08003 --- cam.orig/arch/arm/mach-s3c6410/mach-om-gta03.c 2009-02-27 17:54:12.000000000 +0800 4 +++ cam/arch/arm/mach-s3c6410/mach-om-gta03.c 2009-02-27 18:20:14.000000000 +0800 5 5 @@ -84,6 +84,8 @@ 6 6 #include <plat/regs-usb-hs-otg.h> … … 12 12 /* ------------------------------------------------------------------------------- 13 13 * GTA03 FIQ related 14 @@ -873,6 +875,7 @@ 14 @@ -878,6 +880,9 @@ 15 .irq = GTA03_IRQ_LED, 16 .platform_data = &om_gta03_lp5521_pdata, 17 }, 18 + { 19 + I2C_BOARD_INFO("s5k4xa", 0x2d), 20 + }, 21 22 }; 23 24 @@ -894,6 +899,7 @@ 15 25 >a03_device_spi_lcm, 16 26 &s3c_device_usbgadget, … … 20 30 21 31 32 @@ -951,6 +957,10 @@ 33 pcf50633_reg_write(pcf, PCF50633_REG_LEDENA, 0x01); 34 pcf50633_reg_write(pcf, PCF50633_REG_LEDOUT, 0x3f); 35 36 + /* @@@ do this properly later - WA */ 37 + pcf50633_reg_write(om_gta03_pcf, 0x30, 0x21); 38 + pcf50633_reg_write(om_gta03_pcf, 0x39, 0x13); 39 + pcf50633_reg_write(om_gta03_pcf, 0x3a, 0x21); 40 } 41 42 static void gta03_l1k002_pwronoff(int level) 22 43 Index: cam/arch/arm/mach-s3c6410/Kconfig 23 44 =================================================================== 24 --- cam.orig/arch/arm/mach-s3c6410/Kconfig 2009-02-27 1 4:02:44.000000000 +080025 +++ cam/arch/arm/mach-s3c6410/Kconfig 2009-02-27 1 4:02:52.000000000 +080045 --- cam.orig/arch/arm/mach-s3c6410/Kconfig 2009-02-27 17:54:12.000000000 +0800 46 +++ cam/arch/arm/mach-s3c6410/Kconfig 2009-02-27 17:54:24.000000000 +0800 26 47 @@ -70,6 +70,7 @@ 27 48 select S3C6410_SETUP_SDHCI -
developers/werner/gta03/cam/patches/series
r4941 r4942 4 4 add-s5k4.patch 5 5 add-s3c-cam-platform.patch 6 mach-gta03-add-cam.patch7 6 add-64xx-cam-clock.patch 8 7 add-s3c-camif.patch 8 mach-gta03-add-cam.patch 9 9 fix-s3c64xx_setrate_clksrc.patch 10 wip.patch
Note: See TracChangeset
for help on using the changeset viewer.
