aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-05-07 14:03:00 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-05-07 14:06:53 +0200
commitb2c1e278fb570b1cfeddff3b12deb755ccd7ccf6 (patch)
treefd06526e1b7883304350bf393cacddd6e5c902f0
parent55cc71060176ccdca80bdfa6c52796d558bf39d5 (diff)
downloadopenembedded-core-contrib-b2c1e278fb570b1cfeddff3b12deb755ccd7ccf6.tar.gz
linux-omap-psp 2.6.32: sync with .dev
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0001-BeagleBoard-Adjust-USER-button-pin-for-xM.patch6
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0001-OMAP3-craneboard-print-expansionboard-name-detected-.patch51
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0001-PSP-3.0.1.6-kernel-source-patched-with-OCF-Linux.patch385
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0001-Revert-omap3-beagle-Fix-compile-time-errors.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0001-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch58
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0002-OMAP3-craneboard-add-support-for-TinCanTools-Trainer.patch55
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0002-board-omap3touchbook-make-it-build-against-TI-linux-.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0003-ARM-OMAP-add-support-for-TCT-Zippy-to-Beagle-board-f.patch6
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0004-ARM-OMAP-Make-beagle-u-boot-partition-writable.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0005-board-omap3-beagle-add-DSS2-support.patch6
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0006-board-omap3beagle-prepare-for-DM3730-based-Beagleboa.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0007-ARM-OMAP-beagleboard-Add-infrastructure-to-do-fixups.patch8
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0008-ARM-OMAP-beagleboard-pre-export-GPIOs-to-userspace-w.patch6
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0009-ARM-OMAP-beagleboard-initialize-ds1307-and-eeprom-on.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0010-ARM-OMAP-update-beagleboard-defconfig.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0011-ASoC-enable-audio-capture-by-default-for-twl4030.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0012-MTD-NAND-omap2-proper-fix-for-subpage-read-ECC-error.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0014-DSS2-add-bootarg-for-selecting-svideo-or-composite-f.patch6
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0015-ISP-add-some-more-from-Leopard-imaging-patch.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0016-ARM-OMAP-Overo-Add-support-for-second-ethernet-port.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0017-drivers-net-smsc911x-return-ENODEV-if-device-is-not-.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0018-drivers-input-touchscreen-ads7846-return-ENODEV-if-d.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0019-drivers-mfd-add-twl4030-madc-driver.patch14
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0020-ARM-OMAP-Add-missing-twl4030-madc-header-file.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0021-ARM-OMAP-Add-twl4030-madc-support-to-Overo.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0022-ARM-OMAP-Add-twl4030-madc-support-to-Beagle.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0023-netdev-rt73usb-add-vendor-device-ID-for-Ceiva-Wirele.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0024-mmc-don-t-display-single-block-read-console-messages.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0025-ARM-OMAP2-mmc-twl4030-move-clock-input-selection-pri.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0026-board-overo-add-PM-code-and-sync-with-http-www.sakom.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0027-twl4030-madc-adjust-for-twl4030-twl-api-changes.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0028-OMAP-DSS2-Re-add-support-for-Samsung-lte430wq-f0c-pa.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0029-OMAP-DSS2-Add-support-for-LG-Philips-LB035Q02-panel.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0030-Fix-for-bus-width-which-improves-SD-card-s-peformanc.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0031-ARM-VFP-add-support-to-sync-the-VFP-state-of-the-cur.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0032-ARM-VFP-preserve-the-HW-context-when-calling-signal-.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0033-Switch-SGX-clocks-to-200MHz-on-DM37xx-OMAP36xx.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0034-modedb.c-add-proper-720p60-mode.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0035-RTC-add-support-for-backup-battery-recharge.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0036-ARM-Add-prompt-for-CONFIG_ALIGNMENT_TRAP.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0037-ARM-Print-warning-on-alignment-trap-in-kernel-mode.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0038-ARM-Expose-some-CPU-control-registers-via-sysfs.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0039-ARM-Add-option-to-allow-userspace-PLE-access.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0040-ARM-Add-option-to-allow-userspace-access-to-performa.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0041-ARM-Expose-some-PMON-registers-through-sysfs.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0042-musb-allow-host-io-without-gadget-module.patch6
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0043-MTD-silence-ecc-errors-on-mtdblock0.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0044-ARM-OMAP-beagle-every-known-beagle-except-revB-uses-.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch6
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/beagleboard/defconfig36
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0001-mt9t111-first-stab-at-merging-sensor-driver-based-on.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0002-mt9t111-Fix-all-checkpatch-errors.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0003-mt9t111-Pass-v4l2_int_device-data.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0004-omap3beagle-Add-camera-support.patch6
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0005-TEMP-omap3beagle-camera-Add-defconfig.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0006-omap3beagle-camera-Add-support-for-regulators.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0007-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0008-omap3beagle-camera-Fix-null-pointer-dereference.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0009-Revert-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0010-omap3beagle-camera-Change-arch-late_initcall.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0011-omap3beagle-camera-Move-i2c-registration-to-the-main.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0012-ARM-OMAP3-make-camera-code-build-if-MT9T111-is-built.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0013-DEBUG-omap3beagle-camera-Force-mode0-in-cam_xclka.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0014-OMAP3-CLOCK-Add-capability-to-change-rate-of-dpll4_m.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0015-Revert-DEBUG-omap3beagle-camera-Force-mode0-in-cam_x.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0016-omap3beagle-camera-Fix-wrong-XCLKA-selection.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0017-omap3isp-set-CAM_MCLK-to-172.8-MHz-allows-exact-9.6-.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0018-Fix-Moved-MCLK-setting-to-the-board-file.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0019-omap3isp-core-Do-smarter-MCLK-setting.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0020-omap3beagle-camera-set-mclk-for-mt9t111.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0021-mt9t111-Fix-max-supported-xclk.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0022-omap3beagle-camera-Clarify-regulators-names.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0023-omap3beagle-camera-Fix-powerup-sequence.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0024-omap3beagle-camera-Change-vaux4-to-1.8v.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0025-omap3beagle-camera-Rename-regulators-to-match-actual.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0026-omap3beagle-camera-Complement-remainig-sensor-hw-con.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0027-mt9t111-Fix-detect-function-retval-and-cleanup-print.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0031-BeagleXM-Cam-Add-support-for-MT9V113-VGA-Sensor.patch10
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0032-MT9V113-Fixed-sensor-nitialization-issues.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0033-mt9v113-Fix-wrong-active-widths.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0034-omap3isp-Fix-Wrong-check-on-non-interlaced-sensor-on.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0035-omap3isp-Fix-bad-YUV_BT-checks-in-datapath_config.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0036-omap3isp-Set-vd_pol-to-0-by-default-on-all-cases.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0037-omap3isp-ccdc-Set-datalines-to-10-for-YUV_SYNC.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0038-omap3beagle-camera-Fix-parallel-i-f-settings.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0039-omap3beagle-camera-Clean-up-Remove-unneccessary-code.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0040-mt9v113-Clean-Up-Remove-unneccessary-code-printf.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0041-MT9V113-Min-Max-clk-input-changed-as-per-the-spec.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0042-omap3beagle-camera-Further-clode-cleanup.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0043-mt9v113-Settings-from-Aptima-used-to-increase-FPS.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0044-mt9v113-AE-param-tuned-to-get-28-30FPS.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0045-omap3beagle-camera-Cleanup-of-boardfile.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0046-omap3beagle-camera-Cleanup-regulator-usage.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0047-omap3beagle-camera-Bring-back-mt9t111-support.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0048-REMOVE-v4l2-Delete-MT9T111-sensor-driver.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0049-V4L-DVB-13670-soc-camera-Add-mt9t112-camera-driver.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0050-soc-camera-mt9t112-modify-exiting-conditions-from-st.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0051-mt9t112-Migrate-from-soc_camera-to-v4l2-int-device.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0052-mt9t112-Add-more-info-to-public-header.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0053-mt9t112-Fix-null-pointer-kernel-bug.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0054-DEBUG-omap3beagle-Add-MT9T112-to-defconfig.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0055-omap3beagle-camera-Change-MT9T111-references-to-new-.patch4
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0056-omap34xxcam-Fix-multi-pixel-format-negotiation.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0057-SQUASH-omap3beagle-camera-Bring-back-mt9t111-support.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0058-mt9t112-Do-init_camera-every-powerup.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0059-omap3beagle-camera-Switch-flag-for-no-sensor-ISP.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0060-mt9t112-Add-back-3MP-basesize.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0062-omap3beagle-camera-Prepare-24MHz-xclk-for-mt9t112.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0063-mt9t112-Correct-register-settings-for-mt9t111-sensor.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0064-mt9t112-Remove-smart-size-selection.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0065-rtl8192su-remove-bogus-Kconfig-depend-on-PCI-and-add.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0066-mt9t112-Add-Context-selection-to-configuration.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0067-mt9t112-Disable-JPEG-in-Context-B.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0068-mt9t112-Make-context-B-stream-unlimited-frames.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0069-mt9t112-Fix-pll-p-dividers-abstraction.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0070-mt9t112-Adjust-50-60Hz-flickering-settings.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0071-mt9t112-Trigger-autofocus-at-the-end-of-context-swit.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0073-mt9v113-Fix-State-variable-handling.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch2
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0075-omap3beagle-Add-camera-bootarg.patch6
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/5m03/0001-mt9p031-import-driver-from-https-github.com-Aptina-B.patch1547
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/cam/5m03/0002-board-omap3beagle-import-li5m03-driver-from-https-gi.patch294
-rw-r--r--recipes-bsp/linux/linux-omap-psp-2.6.32/porches.patch10
-rw-r--r--recipes-bsp/linux/linux-omap-psp_2.6.32.bb7
130 files changed, 2416 insertions, 357 deletions
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-BeagleBoard-Adjust-USER-button-pin-for-xM.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-BeagleBoard-Adjust-USER-button-pin-for-xM.patch
index af6c0249d6..a9c297d432 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-BeagleBoard-Adjust-USER-button-pin-for-xM.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-BeagleBoard-Adjust-USER-button-pin-for-xM.patch
@@ -1,4 +1,4 @@
-From 6fc2495bb9f1fa166f7f4190ecd0b988034f54ea Mon Sep 17 00:00:00 2001
+From 1c63789190687e20ddbed3084e7ae893176d0dd6 Mon Sep 17 00:00:00 2001
From: Jason Kridner <jkridner@beagleboard.org>
Date: Sat, 17 Jul 2010 14:28:22 -0500
Subject: [PATCH] BeagleBoard: Adjust USER button pin for xM
@@ -8,10 +8,10 @@ Subject: [PATCH] BeagleBoard: Adjust USER button pin for xM
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 7c9e40a..f93616b 100644
+index 1e8b77b..2677b41 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
-@@ -829,6 +829,11 @@ static void __init omap3_beagle_init(void)
+@@ -854,6 +854,11 @@ static void __init omap3_beagle_init(void)
{
omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
omap3_beagle_i2c_init();
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-OMAP3-craneboard-print-expansionboard-name-detected-.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-OMAP3-craneboard-print-expansionboard-name-detected-.patch
new file mode 100644
index 0000000000..be7c4d7b43
--- /dev/null
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-OMAP3-craneboard-print-expansionboard-name-detected-.patch
@@ -0,0 +1,51 @@
+From e618eb6ab097d2f655ee6094d5e3c0dc603d7242 Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+Date: Wed, 19 Jan 2011 16:30:06 +0100
+Subject: [PATCH 1/2] OMAP3: craneboard: print expansionboard name detected from uboot
+
+Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
+---
+ arch/arm/mach-omap2/board-am3517crane.c | 13 +++++++++++++
+ 1 files changed, 13 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c
+index 0bf4f60..300a79d 100644
+--- a/arch/arm/mach-omap2/board-am3517crane.c
++++ b/arch/arm/mach-omap2/board-am3517crane.c
+@@ -55,6 +55,8 @@
+
+ #define NAND_BLOCK_SIZE SZ_128K
+
++char expansionboard_name[16];
++
+ static struct mtd_partition am3517crane_nand_partitions[] = {
+ /* All the partition sizes are listed in terms of NAND block size */
+ {
+@@ -724,6 +726,15 @@ static struct am3517_hsmmc_info mmc[] = {
+ {} /* Terminator */
+ };
+
++static int __init expansionboard_setup(char *str)
++{
++ if (!str)
++ return -EINVAL;
++ strncpy(expansionboard_name, str, 16);
++ printk(KERN_INFO "Crane expansionboard: %s\n", expansionboard_name);
++ return 0;
++}
++
+ static void __init am3517_crane_init(void)
+ {
+
+@@ -762,6 +773,8 @@ static void __init am3517_crane_map_io(void)
+ omap2_map_common_io();
+ }
+
++early_param("buddy", expansionboard_setup);
++
+ MACHINE_START(CRANEBOARD, "AM3517/05 CRANEBOARD")
+ .phys_io = 0x48000000,
+ .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc,
+--
+1.6.6.1
+
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-PSP-3.0.1.6-kernel-source-patched-with-OCF-Linux.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-PSP-3.0.1.6-kernel-source-patched-with-OCF-Linux.patch
index 461c5334bb..561670e9e6 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-PSP-3.0.1.6-kernel-source-patched-with-OCF-Linux.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-PSP-3.0.1.6-kernel-source-patched-with-OCF-Linux.patch
@@ -1,11 +1,12 @@
-From aa85bfafe1cc81c3446952f4b9614bc6dd16fb72 Mon Sep 17 00:00:00 2001
+From 8e1595675e4f2ad795faecb30e0657ac556913d1 Mon Sep 17 00:00:00 2001
From: Greg Turner <gregturner@ti.com>
-Date: Wed, 8 Dec 2010 11:31:30 -0600
+Date: Wed, 19 Jan 2011 16:19:37 +0100
Subject: [PATCH] PSP 3.0.1.6 kernel source patched with OCF-Linux
---
crypto/Kconfig | 3 +
crypto/Makefile | 2 +
+ crypto/modules.builtin | 22 +
crypto/ocf/Config.in | 36 +
crypto/ocf/Kconfig | 119 +
crypto/ocf/Makefile | 124 +
@@ -193,7 +194,8 @@ Subject: [PATCH] PSP 3.0.1.6 kernel source patched with OCF-Linux
include/linux/miscdevice.h | 1 +
include/linux/random.h | 29 +
kernel/pid.c | 1 +
- 189 files changed, 86726 insertions(+), 0 deletions(-)
+ 190 files changed, 86748 insertions(+), 0 deletions(-)
+ create mode 100644 crypto/modules.builtin
create mode 100644 crypto/ocf/Config.in
create mode 100644 crypto/ocf/Kconfig
create mode 100644 crypto/ocf/Makefile
@@ -383,7 +385,7 @@ index 81c185a..9f1c30f 100644
+++ b/crypto/Kconfig
@@ -822,3 +822,6 @@ config CRYPTO_ANSI_CPRNG
source "drivers/crypto/Kconfig"
-
+
endif # if CRYPTO
+
+source "crypto/ocf/Kconfig"
@@ -395,12 +397,40 @@ index 9e8f619..79631fc 100644
@@ -85,6 +85,8 @@ obj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o
obj-$(CONFIG_CRYPTO_TEST) += tcrypt.o
obj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o
-
+
+obj-$(CONFIG_OCF_OCF) += ocf/
+
#
# generic algorithms and the async_tx api
#
+diff --git a/crypto/modules.builtin b/crypto/modules.builtin
+new file mode 100644
+index 0000000..04825d1
+--- /dev/null
++++ b/crypto/modules.builtin
+@@ -0,0 +1,22 @@
++kernel/crypto/crypto.ko
++kernel/crypto/crypto_wq.ko
++kernel/crypto/crypto_algapi.ko
++kernel/crypto/aead.ko
++kernel/crypto/crypto_blkcipher.ko
++kernel/crypto/chainiv.ko
++kernel/crypto/eseqiv.ko
++kernel/crypto/crypto_hash.ko
++kernel/crypto/pcompress.ko
++kernel/crypto/cryptomgr.ko
++kernel/crypto/md5.ko
++kernel/crypto/ecb.ko
++kernel/crypto/cbc.ko
++kernel/crypto/des_generic.ko
++kernel/crypto/aes_generic.ko
++kernel/crypto/arc4.ko
++kernel/crypto/deflate.ko
++kernel/crypto/michael_mic.ko
++kernel/crypto/crc32c.ko
++kernel/crypto/lzo.ko
++kernel/crypto/rng.ko
++kernel/crypto/krng.ko
diff --git a/crypto/ocf/Config.in b/crypto/ocf/Config.in
new file mode 100644
index 0000000..d722cba
@@ -700,7 +730,7 @@ index 0000000..fa951f4
+
diff --git a/crypto/ocf/README b/crypto/ocf/README
new file mode 100644
-index 0000000..5ac39f7
+index 0000000..ba0a7de
--- /dev/null
+++ b/crypto/ocf/README
@@ -0,0 +1,167 @@
@@ -891,7 +921,7 @@ index 0000000..e7e634b
+
diff --git a/crypto/ocf/c7108/aes-7108.c b/crypto/ocf/c7108/aes-7108.c
new file mode 100644
-index 0000000..a5ac054
+index 0000000..6dbc515
--- /dev/null
+++ b/crypto/ocf/c7108/aes-7108.c
@@ -0,0 +1,839 @@
@@ -1736,7 +1766,7 @@ index 0000000..a5ac054
+MODULE_DESCRIPTION("Cypher 7108 Crypto (OCF module for kernel crypto)");
diff --git a/crypto/ocf/c7108/aes-7108.h b/crypto/ocf/c7108/aes-7108.h
new file mode 100644
-index 0000000..0c7bfcb
+index 0000000..48711b4
--- /dev/null
+++ b/crypto/ocf/c7108/aes-7108.h
@@ -0,0 +1,134 @@
@@ -1876,7 +1906,7 @@ index 0000000..0c7bfcb
+#endif /* __C7108_AES_7108_H__ */
diff --git a/crypto/ocf/criov.c b/crypto/ocf/criov.c
new file mode 100644
-index 0000000..6d7d3ad
+index 0000000..d04b984
--- /dev/null
+++ b/crypto/ocf/criov.c
@@ -0,0 +1,215 @@
@@ -2097,7 +2127,7 @@ index 0000000..6d7d3ad
+
diff --git a/crypto/ocf/crypto.c b/crypto/ocf/crypto.c
new file mode 100644
-index 0000000..9735f0c
+index 0000000..1adbaa7
--- /dev/null
+++ b/crypto/ocf/crypto.c
@@ -0,0 +1,1784 @@
@@ -3910,7 +3940,7 @@ index 0000000..eeed0d6
+
diff --git a/crypto/ocf/cryptocteon/cavium_crypto.c b/crypto/ocf/cryptocteon/cavium_crypto.c
new file mode 100644
-index 0000000..ceaf77c
+index 0000000..0254b9b
--- /dev/null
+++ b/crypto/ocf/cryptocteon/cavium_crypto.c
@@ -0,0 +1,2283 @@
@@ -6779,7 +6809,7 @@ index 0000000..9940f59
+MODULE_DESCRIPTION("Cryptocteon (OCF module for Cavium OCTEON crypto)");
diff --git a/crypto/ocf/cryptodev.c b/crypto/ocf/cryptodev.c
new file mode 100644
-index 0000000..87a4c37
+index 0000000..d20da17
--- /dev/null
+++ b/crypto/ocf/cryptodev.c
@@ -0,0 +1,1061 @@
@@ -7846,7 +7876,7 @@ index 0000000..87a4c37
+MODULE_DESCRIPTION("Cryptodev (user interface to OCF)");
diff --git a/crypto/ocf/cryptodev.h b/crypto/ocf/cryptodev.h
new file mode 100644
-index 0000000..6032317
+index 0000000..bb11a56
--- /dev/null
+++ b/crypto/ocf/cryptodev.h
@@ -0,0 +1,479 @@
@@ -8331,7 +8361,7 @@ index 0000000..6032317
+#endif /* _CRYPTO_CRYPTO_H_ */
diff --git a/crypto/ocf/cryptosoft.c b/crypto/ocf/cryptosoft.c
new file mode 100644
-index 0000000..52e1570
+index 0000000..fa8838e
--- /dev/null
+++ b/crypto/ocf/cryptosoft.c
@@ -0,0 +1,1210 @@
@@ -9547,7 +9577,7 @@ index 0000000..52e1570
+MODULE_DESCRIPTION("Cryptosoft (OCF module for kernel crypto)");
diff --git a/crypto/ocf/ep80579/Makefile b/crypto/ocf/ep80579/Makefile
new file mode 100644
-index 0000000..9aab295
+index 0000000..e488374
--- /dev/null
+++ b/crypto/ocf/ep80579/Makefile
@@ -0,0 +1,119 @@
@@ -9672,7 +9702,7 @@ index 0000000..9aab295
+endif
diff --git a/crypto/ocf/ep80579/icp_asym.c b/crypto/ocf/ep80579/icp_asym.c
new file mode 100644
-index 0000000..d2641c5
+index 0000000..ebdddc1
--- /dev/null
+++ b/crypto/ocf/ep80579/icp_asym.c
@@ -0,0 +1,1334 @@
@@ -11012,7 +11042,7 @@ index 0000000..d2641c5
+}
diff --git a/crypto/ocf/ep80579/icp_common.c b/crypto/ocf/ep80579/icp_common.c
new file mode 100644
-index 0000000..5d46c0a
+index 0000000..06a4cf2
--- /dev/null
+++ b/crypto/ocf/ep80579/icp_common.c
@@ -0,0 +1,773 @@
@@ -11791,7 +11821,7 @@ index 0000000..5d46c0a
+ LAC_MAX_VER);
diff --git a/crypto/ocf/ep80579/icp_ocf.h b/crypto/ocf/ep80579/icp_ocf.h
new file mode 100644
-index 0000000..d9dde87
+index 0000000..854b306
--- /dev/null
+++ b/crypto/ocf/ep80579/icp_ocf.h
@@ -0,0 +1,376 @@
@@ -12173,7 +12203,7 @@ index 0000000..d9dde87
+/* ICP_OCF_H_ */
diff --git a/crypto/ocf/ep80579/icp_sym.c b/crypto/ocf/ep80579/icp_sym.c
new file mode 100644
-index 0000000..e1c7148
+index 0000000..a3edc43
--- /dev/null
+++ b/crypto/ocf/ep80579/icp_sym.c
@@ -0,0 +1,1153 @@
@@ -13351,7 +13381,7 @@ index 0000000..163fed0
+
diff --git a/crypto/ocf/hifn/hifn7751.c b/crypto/ocf/hifn/hifn7751.c
new file mode 100644
-index 0000000..6136e84
+index 0000000..e7a5958
--- /dev/null
+++ b/crypto/ocf/hifn/hifn7751.c
@@ -0,0 +1,2976 @@
@@ -16333,7 +16363,7 @@ index 0000000..6136e84
+MODULE_DESCRIPTION("OCF driver for hifn PCI crypto devices");
diff --git a/crypto/ocf/hifn/hifn7751reg.h b/crypto/ocf/hifn/hifn7751reg.h
new file mode 100644
-index 0000000..ccf54f9
+index 0000000..23d70c5
--- /dev/null
+++ b/crypto/ocf/hifn/hifn7751reg.h
@@ -0,0 +1,540 @@
@@ -16879,7 +16909,7 @@ index 0000000..ccf54f9
+#endif /* __HIFN_H__ */
diff --git a/crypto/ocf/hifn/hifn7751var.h b/crypto/ocf/hifn/hifn7751var.h
new file mode 100644
-index 0000000..9a5f231
+index 0000000..6146bfb
--- /dev/null
+++ b/crypto/ocf/hifn/hifn7751var.h
@@ -0,0 +1,369 @@
@@ -17254,7 +17284,7 @@ index 0000000..9a5f231
+#endif /* __HIFN7751VAR_H__ */
diff --git a/crypto/ocf/hifn/hifnHIPP.c b/crypto/ocf/hifn/hifnHIPP.c
new file mode 100644
-index 0000000..45ad7ba
+index 0000000..1785147
--- /dev/null
+++ b/crypto/ocf/hifn/hifnHIPP.c
@@ -0,0 +1,420 @@
@@ -17732,7 +17762,7 @@ index 0000000..8c0e720
+#endif /* __HIPP_H__ */
diff --git a/crypto/ocf/hifn/hifnHIPPvar.h b/crypto/ocf/hifn/hifnHIPPvar.h
new file mode 100644
-index 0000000..61d292f
+index 0000000..dde47f7
--- /dev/null
+++ b/crypto/ocf/hifn/hifnHIPPvar.h
@@ -0,0 +1,93 @@
@@ -17941,7 +17971,7 @@ index 0000000..d94a3b7
+
diff --git a/crypto/ocf/ixp4xx/ixp4xx.c b/crypto/ocf/ixp4xx/ixp4xx.c
new file mode 100644
-index 0000000..d5414a4
+index 0000000..7af7b0a
--- /dev/null
+++ b/crypto/ocf/ixp4xx/ixp4xx.c
@@ -0,0 +1,1324 @@
@@ -19296,7 +19326,7 @@ index 0000000..6dafd00
+
diff --git a/crypto/ocf/kirkwood/cesa/AES/mvAes.h b/crypto/ocf/kirkwood/cesa/AES/mvAes.h
new file mode 100644
-index 0000000..07a8601
+index 0000000..969727f
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/AES/mvAes.h
@@ -0,0 +1,62 @@
@@ -19364,7 +19394,7 @@ index 0000000..07a8601
+
diff --git a/crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c b/crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c
new file mode 100644
-index 0000000..a65dc28
+index 0000000..2f57e4f
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c
@@ -0,0 +1,317 @@
@@ -19712,7 +19742,7 @@ index 0000000..ec81e40
+#endif /* __RIJNDAEL_ALG_H */
diff --git a/crypto/ocf/kirkwood/cesa/AES/mvAesApi.c b/crypto/ocf/kirkwood/cesa/AES/mvAesApi.c
new file mode 100644
-index 0000000..b432dc6
+index 0000000..70ae60d
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/AES/mvAesApi.c
@@ -0,0 +1,312 @@
@@ -20030,7 +20060,7 @@ index 0000000..b432dc6
+
diff --git a/crypto/ocf/kirkwood/cesa/mvCesa.c b/crypto/ocf/kirkwood/cesa/mvCesa.c
new file mode 100644
-index 0000000..17ab086
+index 0000000..e09ad62
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvCesa.c
@@ -0,0 +1,3126 @@
@@ -23162,7 +23192,7 @@ index 0000000..17ab086
+}
diff --git a/crypto/ocf/kirkwood/cesa/mvCesa.h b/crypto/ocf/kirkwood/cesa/mvCesa.h
new file mode 100644
-index 0000000..c0abc9b
+index 0000000..6898699
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvCesa.h
@@ -0,0 +1,412 @@
@@ -23580,7 +23610,7 @@ index 0000000..c0abc9b
+#endif /* __mvCesa_h__ */
diff --git a/crypto/ocf/kirkwood/cesa/mvCesaDebug.c b/crypto/ocf/kirkwood/cesa/mvCesaDebug.c
new file mode 100644
-index 0000000..31b78a8
+index 0000000..0b7cb48
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvCesaDebug.c
@@ -0,0 +1,484 @@
@@ -24070,7 +24100,7 @@ index 0000000..31b78a8
+}
diff --git a/crypto/ocf/kirkwood/cesa/mvCesaRegs.h b/crypto/ocf/kirkwood/cesa/mvCesaRegs.h
new file mode 100644
-index 0000000..6b7ce12
+index 0000000..c6eecae
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvCesaRegs.h
@@ -0,0 +1,357 @@
@@ -24433,7 +24463,7 @@ index 0000000..6b7ce12
+
diff --git a/crypto/ocf/kirkwood/cesa/mvCesaTest.c b/crypto/ocf/kirkwood/cesa/mvCesaTest.c
new file mode 100644
-index 0000000..7463293
+index 0000000..694f780
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvCesaTest.c
@@ -0,0 +1,3096 @@
@@ -27535,7 +27565,7 @@ index 0000000..7463293
+}
diff --git a/crypto/ocf/kirkwood/cesa/mvLru.c b/crypto/ocf/kirkwood/cesa/mvLru.c
new file mode 100644
-index 0000000..9ab29a8
+index 0000000..4b5f877
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvLru.c
@@ -0,0 +1,158 @@
@@ -27699,7 +27729,7 @@ index 0000000..9ab29a8
+}
diff --git a/crypto/ocf/kirkwood/cesa/mvLru.h b/crypto/ocf/kirkwood/cesa/mvLru.h
new file mode 100644
-index 0000000..896e7f8
+index 0000000..39d2f89
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvLru.h
@@ -0,0 +1,112 @@
@@ -27817,7 +27847,7 @@ index 0000000..896e7f8
+#endif /* __mvLru_h__ */
diff --git a/crypto/ocf/kirkwood/cesa/mvMD5.c b/crypto/ocf/kirkwood/cesa/mvMD5.c
new file mode 100644
-index 0000000..189f629
+index 0000000..b012976
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvMD5.c
@@ -0,0 +1,349 @@
@@ -28172,7 +28202,7 @@ index 0000000..189f629
+}
diff --git a/crypto/ocf/kirkwood/cesa/mvMD5.h b/crypto/ocf/kirkwood/cesa/mvMD5.h
new file mode 100644
-index 0000000..d05c6b6
+index 0000000..d20281e
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvMD5.h
@@ -0,0 +1,93 @@
@@ -28271,7 +28301,7 @@ index 0000000..d05c6b6
+#endif /* __mvMD5_h__ */
diff --git a/crypto/ocf/kirkwood/cesa/mvSHA1.c b/crypto/ocf/kirkwood/cesa/mvSHA1.c
new file mode 100644
-index 0000000..0e0786b
+index 0000000..6342985
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvSHA1.c
@@ -0,0 +1,239 @@
@@ -28516,7 +28546,7 @@ index 0000000..0e0786b
+}
diff --git a/crypto/ocf/kirkwood/cesa/mvSHA1.h b/crypto/ocf/kirkwood/cesa/mvSHA1.h
new file mode 100644
-index 0000000..17df9fc
+index 0000000..1914f47
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa/mvSHA1.h
@@ -0,0 +1,88 @@
@@ -28610,7 +28640,7 @@ index 0000000..17df9fc
+#endif /* __mvSHA1_h__ */
diff --git a/crypto/ocf/kirkwood/cesa_ocf_drv.c b/crypto/ocf/kirkwood/cesa_ocf_drv.c
new file mode 100644
-index 0000000..ccf9227
+index 0000000..c056b1f
--- /dev/null
+++ b/crypto/ocf/kirkwood/cesa_ocf_drv.c
@@ -0,0 +1,1296 @@
@@ -29912,7 +29942,7 @@ index 0000000..ccf9227
+MODULE_DESCRIPTION("OCF module for Orion CESA crypto");
diff --git a/crypto/ocf/kirkwood/mvHal/common/mv802_3.h b/crypto/ocf/kirkwood/mvHal/common/mv802_3.h
new file mode 100644
-index 0000000..3769dde
+index 0000000..b03cdbd
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mv802_3.h
@@ -0,0 +1,213 @@
@@ -30131,7 +30161,7 @@ index 0000000..3769dde
+#endif /* __INCmv802_3h */
diff --git a/crypto/ocf/kirkwood/mvHal/common/mvCommon.c b/crypto/ocf/kirkwood/mvHal/common/mvCommon.c
new file mode 100644
-index 0000000..dc0e0cf
+index 0000000..ecb41a8
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mvCommon.c
@@ -0,0 +1,277 @@
@@ -30414,7 +30444,7 @@ index 0000000..dc0e0cf
+
diff --git a/crypto/ocf/kirkwood/mvHal/common/mvCommon.h b/crypto/ocf/kirkwood/mvHal/common/mvCommon.h
new file mode 100644
-index 0000000..c8e9ce1
+index 0000000..5caf47c
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mvCommon.h
@@ -0,0 +1,308 @@
@@ -30728,7 +30758,7 @@ index 0000000..c8e9ce1
+#endif /* __INCmvCommonh */
diff --git a/crypto/ocf/kirkwood/mvHal/common/mvDebug.c b/crypto/ocf/kirkwood/mvHal/common/mvDebug.c
new file mode 100644
-index 0000000..087f36d
+index 0000000..d98a9e4
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mvDebug.c
@@ -0,0 +1,326 @@
@@ -31060,7 +31090,7 @@ index 0000000..087f36d
+
diff --git a/crypto/ocf/kirkwood/mvHal/common/mvDebug.h b/crypto/ocf/kirkwood/mvHal/common/mvDebug.h
new file mode 100644
-index 0000000..e4975be
+index 0000000..ed07a1f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mvDebug.h
@@ -0,0 +1,178 @@
@@ -31244,7 +31274,7 @@ index 0000000..e4975be
+
diff --git a/crypto/ocf/kirkwood/mvHal/common/mvDeviceId.h b/crypto/ocf/kirkwood/mvHal/common/mvDeviceId.h
new file mode 100644
-index 0000000..4782094
+index 0000000..2e0c04f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mvDeviceId.h
@@ -0,0 +1,225 @@
@@ -31475,7 +31505,7 @@ index 0000000..4782094
+#endif /* __INCmvDeviceIdh */
diff --git a/crypto/ocf/kirkwood/mvHal/common/mvHalVer.h b/crypto/ocf/kirkwood/mvHal/common/mvHalVer.h
new file mode 100644
-index 0000000..3bfcfe1
+index 0000000..1849198
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mvHalVer.h
@@ -0,0 +1,73 @@
@@ -31555,7 +31585,7 @@ index 0000000..3bfcfe1
\ No newline at end of file
diff --git a/crypto/ocf/kirkwood/mvHal/common/mvStack.c b/crypto/ocf/kirkwood/mvHal/common/mvStack.c
new file mode 100644
-index 0000000..41ca7ce
+index 0000000..7ba48ea
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mvStack.c
@@ -0,0 +1,100 @@
@@ -31661,7 +31691,7 @@ index 0000000..41ca7ce
+}
diff --git a/crypto/ocf/kirkwood/mvHal/common/mvStack.h b/crypto/ocf/kirkwood/mvHal/common/mvStack.h
new file mode 100644
-index 0000000..e247e61
+index 0000000..7e33d91
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mvStack.h
@@ -0,0 +1,140 @@
@@ -31807,7 +31837,7 @@ index 0000000..e247e61
+
diff --git a/crypto/ocf/kirkwood/mvHal/common/mvTypes.h b/crypto/ocf/kirkwood/mvHal/common/mvTypes.h
new file mode 100644
-index 0000000..de212a1
+index 0000000..1538a24
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/common/mvTypes.h
@@ -0,0 +1,245 @@
@@ -32058,7 +32088,7 @@ index 0000000..de212a1
+
diff --git a/crypto/ocf/kirkwood/mvHal/dbg-trace.c b/crypto/ocf/kirkwood/mvHal/dbg-trace.c
new file mode 100644
-index 0000000..644fd02
+index 0000000..6576d35
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/dbg-trace.c
@@ -0,0 +1,110 @@
@@ -32174,7 +32204,7 @@ index 0000000..644fd02
+
diff --git a/crypto/ocf/kirkwood/mvHal/dbg-trace.h b/crypto/ocf/kirkwood/mvHal/dbg-trace.h
new file mode 100644
-index 0000000..a5aac26
+index 0000000..e3dd480
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/dbg-trace.h
@@ -0,0 +1,24 @@
@@ -32204,7 +32234,7 @@ index 0000000..a5aac26
+#endif
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvLib.c b/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvLib.c
new file mode 100644
-index 0000000..5f62784
+index 0000000..8a6ba2c
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvLib.c
@@ -0,0 +1,2513 @@
@@ -34723,7 +34753,7 @@ index 0000000..5f62784
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvLib.h b/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvLib.h
new file mode 100644
-index 0000000..dead633
+index 0000000..522493d
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvLib.h
@@ -0,0 +1,376 @@
@@ -35105,7 +35135,7 @@ index 0000000..dead633
+#endif /* __INCmvBoardEnvLibh */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvSpec.c b/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvSpec.c
new file mode 100644
-index 0000000..e256c4f
+index 0000000..54508c0
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvSpec.c
@@ -0,0 +1,848 @@
@@ -35959,7 +35989,7 @@ index 0000000..e256c4f
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvSpec.h b/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvSpec.h
new file mode 100644
-index 0000000..0372eee
+index 0000000..b11dafb
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/boardEnv/mvBoardEnvSpec.h
@@ -0,0 +1,262 @@
@@ -36227,7 +36257,7 @@ index 0000000..0372eee
+#endif /* __INCmvBoardEnvSpech */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/cpu/mvCpu.c b/crypto/ocf/kirkwood/mvHal/kw_family/cpu/mvCpu.c
new file mode 100644
-index 0000000..fed0fa1
+index 0000000..9e39354
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/cpu/mvCpu.c
@@ -0,0 +1,320 @@
@@ -36553,7 +36583,7 @@ index 0000000..fed0fa1
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/cpu/mvCpu.h b/crypto/ocf/kirkwood/mvHal/kw_family/cpu/mvCpu.h
new file mode 100644
-index 0000000..7f58b03
+index 0000000..dd3a70e
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/cpu/mvCpu.h
@@ -0,0 +1,99 @@
@@ -36658,7 +36688,7 @@ index 0000000..7f58b03
+#endif /* __INCmvCpuh */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvAddrDec.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvAddrDec.c
new file mode 100644
-index 0000000..fbe7c56
+index 0000000..2e6226b
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvAddrDec.c
@@ -0,0 +1,296 @@
@@ -36960,7 +36990,7 @@ index 0000000..fbe7c56
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvAddrDec.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvAddrDec.h
new file mode 100644
-index 0000000..946737f
+index 0000000..fcb5a31
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvAddrDec.h
@@ -0,0 +1,203 @@
@@ -37169,7 +37199,7 @@ index 0000000..946737f
+#endif /* __INCmvCtrlEnvAddrDech */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvAsm.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvAsm.h
new file mode 100644
-index 0000000..6f6367a
+index 0000000..14a5ac4
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvAsm.h
@@ -0,0 +1,98 @@
@@ -37273,7 +37303,7 @@ index 0000000..6f6367a
+#endif /* __INCmvCtrlEnvAsmh */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvLib.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvLib.c
new file mode 100644
-index 0000000..adf451d
+index 0000000..fa097a2
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvLib.c
@@ -0,0 +1,1825 @@
@@ -39104,7 +39134,7 @@ index 0000000..adf451d
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvLib.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvLib.h
new file mode 100644
-index 0000000..6e2e813
+index 0000000..0f8d2b4
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvLib.h
@@ -0,0 +1,185 @@
@@ -39295,7 +39325,7 @@ index 0000000..6e2e813
+#endif /* __INCmvCtrlEnvLibh */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvRegs.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvRegs.h
new file mode 100644
-index 0000000..ae3f141
+index 0000000..b889e24
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvRegs.h
@@ -0,0 +1,419 @@
@@ -39720,7 +39750,7 @@ index 0000000..ae3f141
+#endif
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvSpec.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvSpec.h
new file mode 100644
-index 0000000..e41d80a
+index 0000000..12d2066
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/mvCtrlEnvSpec.h
@@ -0,0 +1,257 @@
@@ -39983,7 +40013,7 @@ index 0000000..e41d80a
+#endif /* __INCmvCtrlEnvSpech */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvAhbToMbus.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvAhbToMbus.c
new file mode 100644
-index 0000000..d21bb07
+index 0000000..d22c4fc
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvAhbToMbus.c
@@ -0,0 +1,1048 @@
@@ -41037,7 +41067,7 @@ index 0000000..d21bb07
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvAhbToMbus.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvAhbToMbus.h
new file mode 100644
-index 0000000..1b352a1
+index 0000000..a1d93b7
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvAhbToMbus.h
@@ -0,0 +1,130 @@
@@ -41173,7 +41203,7 @@ index 0000000..1b352a1
+#endif /* __INCmvAhbToMbush */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvAhbToMbusRegs.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvAhbToMbusRegs.h
new file mode 100644
-index 0000000..97dc631
+index 0000000..c5682e8
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvAhbToMbusRegs.h
@@ -0,0 +1,143 @@
@@ -41322,7 +41352,7 @@ index 0000000..97dc631
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvCpuIf.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvCpuIf.c
new file mode 100644
-index 0000000..872dc6e
+index 0000000..396f003
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvCpuIf.c
@@ -0,0 +1,1036 @@
@@ -42364,7 +42394,7 @@ index 0000000..872dc6e
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvCpuIf.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvCpuIf.h
new file mode 100644
-index 0000000..224ed07
+index 0000000..5755a40
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvCpuIf.h
@@ -0,0 +1,120 @@
@@ -42490,7 +42520,7 @@ index 0000000..224ed07
+#endif /* __INCmvCpuIfh */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvCpuIfRegs.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvCpuIfRegs.h
new file mode 100644
-index 0000000..8cfeee2
+index 0000000..58c04c0
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvCpuIfRegs.h
@@ -0,0 +1,304 @@
@@ -42800,7 +42830,7 @@ index 0000000..8cfeee2
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysAudio.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysAudio.c
new file mode 100644
-index 0000000..769475f
+index 0000000..8475956
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysAudio.c
@@ -0,0 +1,324 @@
@@ -43130,7 +43160,7 @@ index 0000000..769475f
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysAudio.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysAudio.h
new file mode 100644
-index 0000000..f59eb9a
+index 0000000..7e078ff
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysAudio.h
@@ -0,0 +1,123 @@
@@ -43259,7 +43289,7 @@ index 0000000..f59eb9a
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysCesa.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysCesa.c
new file mode 100644
-index 0000000..84d0cd0
+index 0000000..9b50bae
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysCesa.c
@@ -0,0 +1,382 @@
@@ -43647,7 +43677,7 @@ index 0000000..84d0cd0
+}
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysCesa.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysCesa.h
new file mode 100644
-index 0000000..73bcdc5
+index 0000000..9bc3fee
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysCesa.h
@@ -0,0 +1,100 @@
@@ -43753,7 +43783,7 @@ index 0000000..73bcdc5
+#endif
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysDram.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysDram.c
new file mode 100644
-index 0000000..6f76c2c
+index 0000000..7df47b3
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysDram.c
@@ -0,0 +1,348 @@
@@ -44107,7 +44137,7 @@ index 0000000..6f76c2c
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysDram.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysDram.h
new file mode 100644
-index 0000000..7bd9c9d
+index 0000000..f16b947
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysDram.h
@@ -0,0 +1,80 @@
@@ -44193,7 +44223,7 @@ index 0000000..7bd9c9d
+#endif
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysGbe.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysGbe.c
new file mode 100644
-index 0000000..7f6e4a5
+index 0000000..663acd3
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysGbe.c
@@ -0,0 +1,658 @@
@@ -44857,7 +44887,7 @@ index 0000000..7f6e4a5
+}
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysGbe.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysGbe.h
new file mode 100644
-index 0000000..615af51
+index 0000000..aac5517
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysGbe.h
@@ -0,0 +1,113 @@
@@ -44976,7 +45006,7 @@ index 0000000..615af51
+#endif
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysPex.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysPex.c
new file mode 100644
-index 0000000..b0cb466
+index 0000000..9576acb
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysPex.c
@@ -0,0 +1,1697 @@
@@ -46679,7 +46709,7 @@ index 0000000..b0cb466
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysPex.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysPex.h
new file mode 100644
-index 0000000..3505613
+index 0000000..c1555f6
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysPex.h
@@ -0,0 +1,348 @@
@@ -47033,7 +47063,7 @@ index 0000000..3505613
+#endif
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSata.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSata.c
new file mode 100644
-index 0000000..f100a12
+index 0000000..4c0485f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSata.c
@@ -0,0 +1,430 @@
@@ -47469,7 +47499,7 @@ index 0000000..f100a12
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSata.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSata.h
new file mode 100644
-index 0000000..325fb8d
+index 0000000..e401992
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSata.h
@@ -0,0 +1,128 @@
@@ -47603,7 +47633,7 @@ index 0000000..325fb8d
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSdmmc.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSdmmc.c
new file mode 100644
-index 0000000..6d2a919
+index 0000000..682f6f1
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSdmmc.c
@@ -0,0 +1,427 @@
@@ -48036,7 +48066,7 @@ index 0000000..6d2a919
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSdmmc.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSdmmc.h
new file mode 100644
-index 0000000..4c50a2b
+index 0000000..f8357c1
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysSdmmc.h
@@ -0,0 +1,125 @@
@@ -48167,7 +48197,7 @@ index 0000000..4c50a2b
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTdm.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTdm.c
new file mode 100644
-index 0000000..ecf6944
+index 0000000..159d79f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTdm.c
@@ -0,0 +1,462 @@
@@ -48635,7 +48665,7 @@ index 0000000..ecf6944
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTdm.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTdm.h
new file mode 100644
-index 0000000..0d3140f
+index 0000000..3603095
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTdm.h
@@ -0,0 +1,106 @@
@@ -48747,7 +48777,7 @@ index 0000000..0d3140f
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTs.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTs.c
new file mode 100644
-index 0000000..4415c7c
+index 0000000..8cd0018
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTs.c
@@ -0,0 +1,591 @@
@@ -49344,7 +49374,7 @@ index 0000000..4415c7c
+}
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTs.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTs.h
new file mode 100644
-index 0000000..4282589
+index 0000000..1478b09
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysTs.h
@@ -0,0 +1,110 @@
@@ -49963,7 +49993,7 @@ index 0000000..195b5e1
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysUsb.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysUsb.h
new file mode 100644
-index 0000000..07f98de
+index 0000000..b712900
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysUsb.h
@@ -0,0 +1,125 @@
@@ -50094,7 +50124,7 @@ index 0000000..07f98de
+#endif /* __INCmvUsbh */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysXor.c b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysXor.c
new file mode 100644
-index 0000000..f9d0ab3
+index 0000000..1e1da8f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysXor.c
@@ -0,0 +1,662 @@
@@ -50762,7 +50792,7 @@ index 0000000..f9d0ab3
+}
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysXor.h b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysXor.h
new file mode 100644
-index 0000000..73b2d9e
+index 0000000..0a7be8f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/ctrlEnv/sys/mvSysXor.h
@@ -0,0 +1,140 @@
@@ -50908,7 +50938,7 @@ index 0000000..73b2d9e
+#endif
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/device/mvDevice.c b/crypto/ocf/kirkwood/mvHal/kw_family/device/mvDevice.c
new file mode 100644
-index 0000000..80325fc
+index 0000000..a327944
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/device/mvDevice.c
@@ -0,0 +1,75 @@
@@ -50989,7 +51019,7 @@ index 0000000..80325fc
+
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/device/mvDevice.h b/crypto/ocf/kirkwood/mvHal/kw_family/device/mvDevice.h
new file mode 100644
-index 0000000..9350779
+index 0000000..a8a382b
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/device/mvDevice.h
@@ -0,0 +1,74 @@
@@ -51069,7 +51099,7 @@ index 0000000..9350779
+#endif /* #ifndef __INCmvDeviceH */
diff --git a/crypto/ocf/kirkwood/mvHal/kw_family/device/mvDeviceRegs.h b/crypto/ocf/kirkwood/mvHal/kw_family/device/mvDeviceRegs.h
new file mode 100644
-index 0000000..80778ad
+index 0000000..599dfe3
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/kw_family/device/mvDeviceRegs.h
@@ -0,0 +1,101 @@
@@ -51176,7 +51206,7 @@ index 0000000..80778ad
+#endif /* #ifndef __INCmvDeviceRegsH */
diff --git a/crypto/ocf/kirkwood/mvHal/linux_oss/mvOs.c b/crypto/ocf/kirkwood/mvHal/linux_oss/mvOs.c
new file mode 100644
-index 0000000..75f7e88
+index 0000000..749b885
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/linux_oss/mvOs.c
@@ -0,0 +1,211 @@
@@ -51393,7 +51423,7 @@ index 0000000..75f7e88
+
diff --git a/crypto/ocf/kirkwood/mvHal/linux_oss/mvOs.h b/crypto/ocf/kirkwood/mvHal/linux_oss/mvOs.h
new file mode 100644
-index 0000000..8da562a
+index 0000000..9122a52
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/linux_oss/mvOs.h
@@ -0,0 +1,423 @@
@@ -51822,7 +51852,7 @@ index 0000000..8da562a
+
diff --git a/crypto/ocf/kirkwood/mvHal/linux_oss/mvOsSata.h b/crypto/ocf/kirkwood/mvHal/linux_oss/mvOsSata.h
new file mode 100644
-index 0000000..c925a9e
+index 0000000..170481a
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/linux_oss/mvOsSata.h
@@ -0,0 +1,158 @@
@@ -51986,7 +52016,7 @@ index 0000000..c925a9e
+#endif /* __INCmvOsLinuxh */
diff --git a/crypto/ocf/kirkwood/mvHal/mvSysHwConfig.h b/crypto/ocf/kirkwood/mvHal/mvSysHwConfig.h
new file mode 100644
-index 0000000..d761060
+index 0000000..8352290
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mvSysHwConfig.h
@@ -0,0 +1,375 @@
@@ -52367,7 +52397,7 @@ index 0000000..d761060
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/cntmr/mvCntmr.c b/crypto/ocf/kirkwood/mvHal/mv_hal/cntmr/mvCntmr.c
new file mode 100644
-index 0000000..717c150
+index 0000000..6be5ea8
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/cntmr/mvCntmr.c
@@ -0,0 +1,376 @@
@@ -52749,7 +52779,7 @@ index 0000000..717c150
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/cntmr/mvCntmr.h b/crypto/ocf/kirkwood/mvHal/mv_hal/cntmr/mvCntmr.h
new file mode 100644
-index 0000000..b911d0f
+index 0000000..b4b1a9d
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/cntmr/mvCntmr.h
@@ -0,0 +1,121 @@
@@ -52876,7 +52906,7 @@ index 0000000..b911d0f
+#endif /* __INCmvTmrWtdgh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/cntmr/mvCntmrRegs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/cntmr/mvCntmrRegs.h
new file mode 100644
-index 0000000..b69bc66
+index 0000000..1cd9041
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/cntmr/mvCntmrRegs.h
@@ -0,0 +1,121 @@
@@ -53003,7 +53033,7 @@ index 0000000..b69bc66
+#endif /* __INCmvTmrwtdgRegsh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuCntrs.c b/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuCntrs.c
new file mode 100644
-index 0000000..609e674
+index 0000000..03d6d09
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuCntrs.c
@@ -0,0 +1,207 @@
@@ -53216,7 +53246,7 @@ index 0000000..609e674
+}
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuCntrs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuCntrs.h
new file mode 100644
-index 0000000..8d49af0
+index 0000000..0b4998c
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuCntrs.h
@@ -0,0 +1,213 @@
@@ -53435,7 +53465,7 @@ index 0000000..8d49af0
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuL2Cntrs.c b/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuL2Cntrs.c
new file mode 100644
-index 0000000..0333862
+index 0000000..2401002
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuL2Cntrs.c
@@ -0,0 +1,143 @@
@@ -53584,7 +53614,7 @@ index 0000000..0333862
+}
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuL2Cntrs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuL2Cntrs.h
new file mode 100644
-index 0000000..570d701
+index 0000000..ad6a36f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/cpu/mvCpuL2Cntrs.h
@@ -0,0 +1,151 @@
@@ -53741,7 +53771,7 @@ index 0000000..570d701
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDram.c b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDram.c
new file mode 100644
-index 0000000..d1b8a3d
+index 0000000..5c6db90
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDram.c
@@ -0,0 +1,1479 @@
@@ -55226,7 +55256,7 @@ index 0000000..d1b8a3d
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDram.h b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDram.h
new file mode 100644
-index 0000000..678e224
+index 0000000..6e79d1e
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDram.h
@@ -0,0 +1,191 @@
@@ -55423,7 +55453,7 @@ index 0000000..678e224
+#endif /* __INCmvDram */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIf.c b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIf.c
new file mode 100644
-index 0000000..12fb26a
+index 0000000..c44dabe
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIf.c
@@ -0,0 +1,1599 @@
@@ -57028,7 +57058,7 @@ index 0000000..12fb26a
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIf.h b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIf.h
new file mode 100644
-index 0000000..8bfa3e8
+index 0000000..8ae67e7
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIf.h
@@ -0,0 +1,179 @@
@@ -57213,7 +57243,7 @@ index 0000000..8bfa3e8
+#endif /* __INCmvDramIfh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIfConfig.h b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIfConfig.h
new file mode 100644
-index 0000000..a7c6644
+index 0000000..049595e
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIfConfig.h
@@ -0,0 +1,192 @@
@@ -57411,7 +57441,7 @@ index 0000000..a7c6644
+#endif /* __INCmvDramIfh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIfRegs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIfRegs.h
new file mode 100644
-index 0000000..e9cd7c4
+index 0000000..f4a2726
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr1_2/mvDramIfRegs.h
@@ -0,0 +1,306 @@
@@ -57723,7 +57753,7 @@ index 0000000..e9cd7c4
+#endif /* __INCmvDramIfRegsh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIf.c b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIf.c
new file mode 100644
-index 0000000..a214c95
+index 0000000..8c9ce24
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIf.c
@@ -0,0 +1,1855 @@
@@ -59584,7 +59614,7 @@ index 0000000..a214c95
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIf.h b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIf.h
new file mode 100644
-index 0000000..23f2e54
+index 0000000..b7b596c
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIf.h
@@ -0,0 +1,172 @@
@@ -59762,7 +59792,7 @@ index 0000000..23f2e54
+#endif /* __INCmvDramIfh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIfConfig.h b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIfConfig.h
new file mode 100644
-index 0000000..6141c46
+index 0000000..b008c23
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIfConfig.h
@@ -0,0 +1,157 @@
@@ -59925,7 +59955,7 @@ index 0000000..6141c46
+#endif /* __INCmvDramIfh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIfRegs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIfRegs.h
new file mode 100644
-index 0000000..369eda6
+index 0000000..c2458a6
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIfRegs.h
@@ -0,0 +1,423 @@
@@ -60354,7 +60384,7 @@ index 0000000..369eda6
+#endif /* __INCmvDramIfRegsh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIfStaticInit.h b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIfStaticInit.h
new file mode 100644
-index 0000000..f3bf83b
+index 0000000..5b3ed85
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/mvDramIfStaticInit.h
@@ -0,0 +1,179 @@
@@ -60539,7 +60569,7 @@ index 0000000..f3bf83b
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/spd/mvSpd.c b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/spd/mvSpd.c
new file mode 100644
-index 0000000..7a26f90
+index 0000000..dcc8fdf
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/spd/mvSpd.c
@@ -0,0 +1,1474 @@
@@ -62019,7 +62049,7 @@ index 0000000..7a26f90
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/spd/mvSpd.h b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/spd/mvSpd.h
new file mode 100644
-index 0000000..f955466
+index 0000000..ae692ef
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/ddr2/spd/mvSpd.h
@@ -0,0 +1,192 @@
@@ -62217,7 +62247,7 @@ index 0000000..f955466
+#endif /* __INCmvDram */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEth.c b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEth.c
new file mode 100644
-index 0000000..d24e788
+index 0000000..2acd82b
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEth.c
@@ -0,0 +1,2952 @@
@@ -65175,7 +65205,7 @@ index 0000000..d24e788
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthDebug.c b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthDebug.c
new file mode 100644
-index 0000000..f533475
+index 0000000..62edcb5
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthDebug.c
@@ -0,0 +1,748 @@
@@ -65929,7 +65959,7 @@ index 0000000..f533475
+}
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthDebug.h b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthDebug.h
new file mode 100644
-index 0000000..f026f96
+index 0000000..b772a74
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthDebug.h
@@ -0,0 +1,146 @@
@@ -66081,7 +66111,7 @@ index 0000000..f026f96
+#endif
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthGbe.h b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthGbe.h
new file mode 100644
-index 0000000..f4cae50
+index 0000000..83ad6ad
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthGbe.h
@@ -0,0 +1,751 @@
@@ -66838,7 +66868,7 @@ index 0000000..f4cae50
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthRegs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthRegs.h
new file mode 100644
-index 0000000..7b9f052
+index 0000000..0f57ee7
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/gbe/mvEthRegs.h
@@ -0,0 +1,700 @@
@@ -67544,7 +67574,7 @@ index 0000000..7b9f052
+#endif /* __INCmvEthRegsh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/eth/mvEth.h b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/mvEth.h
new file mode 100644
-index 0000000..c42ed1a
+index 0000000..30f2a40
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/eth/mvEth.h
@@ -0,0 +1,356 @@
@@ -67906,7 +67936,7 @@ index 0000000..c42ed1a
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/gpp/mvGpp.c b/crypto/ocf/kirkwood/mvHal/mv_hal/gpp/mvGpp.c
new file mode 100644
-index 0000000..889d4d9
+index 0000000..d7a5132
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/gpp/mvGpp.c
@@ -0,0 +1,362 @@
@@ -68274,7 +68304,7 @@ index 0000000..889d4d9
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/gpp/mvGpp.h b/crypto/ocf/kirkwood/mvHal/mv_hal/gpp/mvGpp.h
new file mode 100644
-index 0000000..526d324
+index 0000000..801472d
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/gpp/mvGpp.h
@@ -0,0 +1,118 @@
@@ -68398,7 +68428,7 @@ index 0000000..526d324
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/gpp/mvGppRegs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/gpp/mvGppRegs.h
new file mode 100644
-index 0000000..b6fec34
+index 0000000..14b199f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/gpp/mvGppRegs.h
@@ -0,0 +1,116 @@
@@ -68520,7 +68550,7 @@ index 0000000..b6fec34
+#endif /* #ifndef __INCmvGppRegsH */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/mvPciIf.c b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/mvPciIf.c
new file mode 100644
-index 0000000..672d3e3
+index 0000000..5ee430c
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/mvPciIf.c
@@ -0,0 +1,669 @@
@@ -69195,7 +69225,7 @@ index 0000000..672d3e3
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/mvPciIf.h b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/mvPciIf.h
new file mode 100644
-index 0000000..9c2d160
+index 0000000..5f7caaa
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/mvPciIf.h
@@ -0,0 +1,134 @@
@@ -69335,7 +69365,7 @@ index 0000000..9c2d160
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/mvPciIfRegs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/mvPciIfRegs.h
new file mode 100644
-index 0000000..08d4d2d
+index 0000000..754e837
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/mvPciIfRegs.h
@@ -0,0 +1,245 @@
@@ -69586,7 +69616,7 @@ index 0000000..08d4d2d
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/pci_util/mvPciUtils.c b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/pci_util/mvPciUtils.c
new file mode 100644
-index 0000000..f216979
+index 0000000..6de1b0c
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/pci_util/mvPciUtils.c
@@ -0,0 +1,1006 @@
@@ -70598,7 +70628,7 @@ index 0000000..f216979
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/pci_util/mvPciUtils.h b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/pci_util/mvPciUtils.h
new file mode 100644
-index 0000000..2ee0b17
+index 0000000..444f53c
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pci-if/pci_util/mvPciUtils.h
@@ -0,0 +1,323 @@
@@ -70927,7 +70957,7 @@ index 0000000..2ee0b17
+#endif /* #ifndef __INCmvPciUtilsh */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pci/mvPci.c b/crypto/ocf/kirkwood/mvHal/mv_hal/pci/mvPci.c
new file mode 100644
-index 0000000..4a08734
+index 0000000..5430f51
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pci/mvPci.c
@@ -0,0 +1,1047 @@
@@ -71980,7 +72010,7 @@ index 0000000..4a08734
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pci/mvPci.h b/crypto/ocf/kirkwood/mvHal/mv_hal/pci/mvPci.h
new file mode 100644
-index 0000000..4746336
+index 0000000..3c521db
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pci/mvPci.h
@@ -0,0 +1,185 @@
@@ -72171,7 +72201,7 @@ index 0000000..4746336
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pci/mvPciRegs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/pci/mvPciRegs.h
new file mode 100644
-index 0000000..89d0ef1
+index 0000000..9ae555f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pci/mvPciRegs.h
@@ -0,0 +1,411 @@
@@ -72588,7 +72618,7 @@ index 0000000..89d0ef1
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvPex.c b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvPex.c
new file mode 100644
-index 0000000..068aac2
+index 0000000..709bb49
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvPex.c
@@ -0,0 +1,1143 @@
@@ -73737,7 +73767,7 @@ index 0000000..068aac2
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvPex.h b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvPex.h
new file mode 100644
-index 0000000..d8f1cdd
+index 0000000..e84fdf9
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvPex.h
@@ -0,0 +1,168 @@
@@ -73911,7 +73941,7 @@ index 0000000..d8f1cdd
+#endif /* #ifndef __INCPEXH */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvPexRegs.h b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvPexRegs.h
new file mode 100644
-index 0000000..8ac1698
+index 0000000..ea19e2f
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvPexRegs.h
@@ -0,0 +1,751 @@
@@ -74668,7 +74698,7 @@ index 0000000..8ac1698
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvVrtBrgPex.c b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvVrtBrgPex.c
new file mode 100644
-index 0000000..19c871a
+index 0000000..59d0383
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvVrtBrgPex.c
@@ -0,0 +1,313 @@
@@ -74987,7 +75017,7 @@ index 0000000..19c871a
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvVrtBrgPex.h b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvVrtBrgPex.h
new file mode 100644
-index 0000000..82eb72d
+index 0000000..0741713
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/pex/mvVrtBrgPex.h
@@ -0,0 +1,82 @@
@@ -75075,7 +75105,7 @@ index 0000000..82eb72d
+#endif /* #ifndef __INCPEXH */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/mvSFlash.c b/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/mvSFlash.c
new file mode 100644
-index 0000000..6c5bc19
+index 0000000..2643699
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/mvSFlash.c
@@ -0,0 +1,1522 @@
@@ -76603,7 +76633,7 @@ index 0000000..6c5bc19
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/mvSFlash.h b/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/mvSFlash.h
new file mode 100644
-index 0000000..f441a5c
+index 0000000..5bb160b
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/mvSFlash.h
@@ -0,0 +1,166 @@
@@ -76775,7 +76805,7 @@ index 0000000..f441a5c
+#endif /* __INCmvSFlashH */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/mvSFlashSpec.h b/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/mvSFlashSpec.h
new file mode 100644
-index 0000000..eeb4426
+index 0000000..cef4255
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/sflash/mvSFlashSpec.h
@@ -0,0 +1,233 @@
@@ -77014,7 +77044,7 @@ index 0000000..eeb4426
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/spi/mvSpi.c b/crypto/ocf/kirkwood/mvHal/mv_hal/spi/mvSpi.c
new file mode 100644
-index 0000000..39e0b72
+index 0000000..efdd6ae
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/spi/mvSpi.c
@@ -0,0 +1,576 @@
@@ -77596,7 +77626,7 @@ index 0000000..39e0b72
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/spi/mvSpi.h b/crypto/ocf/kirkwood/mvHal/mv_hal/spi/mvSpi.h
new file mode 100644
-index 0000000..74859f0
+index 0000000..c3db297
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/spi/mvSpi.h
@@ -0,0 +1,94 @@
@@ -78039,7 +78069,7 @@ index 0000000..329e26b
+#endif /* __INCmvSpiCmndhH */
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/spi/mvSpiSpec.h b/crypto/ocf/kirkwood/mvHal/mv_hal/spi/mvSpiSpec.h
new file mode 100644
-index 0000000..658159a
+index 0000000..e943787
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/spi/mvSpiSpec.h
@@ -0,0 +1,98 @@
@@ -78143,7 +78173,7 @@ index 0000000..658159a
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/twsi/mvTwsi.c b/crypto/ocf/kirkwood/mvHal/mv_hal/twsi/mvTwsi.c
new file mode 100644
-index 0000000..0bf8b75
+index 0000000..12d27b3
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/twsi/mvTwsi.c
@@ -0,0 +1,1023 @@
@@ -79172,7 +79202,7 @@ index 0000000..0bf8b75
+}
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/twsi/mvTwsi.h b/crypto/ocf/kirkwood/mvHal/mv_hal/twsi/mvTwsi.h
new file mode 100644
-index 0000000..bd5b6d0
+index 0000000..c3eddd1
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/twsi/mvTwsi.h
@@ -0,0 +1,121 @@
@@ -79299,7 +79329,7 @@ index 0000000..bd5b6d0
+
diff --git a/crypto/ocf/kirkwood/mvHal/mv_hal/twsi/mvTwsiSpec.h b/crypto/ocf/kirkwood/mvHal/mv_hal/twsi/mvTwsiSpec.h
new file mode 100644
-index 0000000..d0c2b9e
+index 0000000..ebb6db7
--- /dev/null
+++ b/crypto/ocf/kirkwood/mvHal/mv_hal/twsi/mvTwsiSpec.h
@@ -0,0 +1,160 @@
@@ -80225,7 +80255,7 @@ index 0000000..044bcac
+
diff --git a/crypto/ocf/ocfnull/ocfnull.c b/crypto/ocf/ocfnull/ocfnull.c
new file mode 100644
-index 0000000..a6b76cd
+index 0000000..3df150d
--- /dev/null
+++ b/crypto/ocf/ocfnull/ocfnull.c
@@ -0,0 +1,203 @@
@@ -81883,7 +81913,7 @@ index 0000000..1a0dcc8
+#endif /* PASEMI_FNU_H */
diff --git a/crypto/ocf/random.c b/crypto/ocf/random.c
new file mode 100644
-index 0000000..38dad13
+index 0000000..b5d97e1
--- /dev/null
+++ b/crypto/ocf/random.c
@@ -0,0 +1,322 @@
@@ -82595,7 +82625,7 @@ index 0000000..9a36b08
+
diff --git a/crypto/ocf/safe/md5.c b/crypto/ocf/safe/md5.c
new file mode 100644
-index 0000000..077c42e
+index 0000000..fa10789
--- /dev/null
+++ b/crypto/ocf/safe/md5.c
@@ -0,0 +1,308 @@
@@ -82991,7 +83021,7 @@ index 0000000..690f5bf
+#endif /* ! _NETINET6_MD5_H_*/
diff --git a/crypto/ocf/safe/safe.c b/crypto/ocf/safe/safe.c
new file mode 100644
-index 0000000..7e65101
+index 0000000..87984f7
--- /dev/null
+++ b/crypto/ocf/safe/safe.c
@@ -0,0 +1,2288 @@
@@ -85285,7 +85315,7 @@ index 0000000..7e65101
+MODULE_DESCRIPTION("OCF driver for safenet PCI crypto devices");
diff --git a/crypto/ocf/safe/safereg.h b/crypto/ocf/safe/safereg.h
new file mode 100644
-index 0000000..dbaf98f
+index 0000000..d3461f9
--- /dev/null
+++ b/crypto/ocf/safe/safereg.h
@@ -0,0 +1,421 @@
@@ -86329,7 +86359,7 @@ index 0000000..2591b8a
+
diff --git a/crypto/ocf/talitos/talitos.c b/crypto/ocf/talitos/talitos.c
new file mode 100644
-index 0000000..9404634
+index 0000000..0cef3bd
--- /dev/null
+++ b/crypto/ocf/talitos/talitos.c
@@ -0,0 +1,1359 @@
@@ -87694,7 +87724,7 @@ index 0000000..9404634
+MODULE_DESCRIPTION("OCF driver for Freescale SEC (talitos)");
diff --git a/crypto/ocf/talitos/talitos_dev.h b/crypto/ocf/talitos/talitos_dev.h
new file mode 100644
-index 0000000..a8b0479
+index 0000000..86bb57c
--- /dev/null
+++ b/crypto/ocf/talitos/talitos_dev.h
@@ -0,0 +1,277 @@
@@ -88119,12 +88149,12 @@ index 0000000..03a6249
+
+#endif
diff --git a/drivers/char/random.c b/drivers/char/random.c
-index 8258982..d382084 100644
+index 8258982..6509c94 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -129,6 +129,9 @@
* unsigned int value);
- * void add_interrupt_randomness(int irq);
+ * void add_interrupt_randomness(int irq);
*
+ * void random_input_words(__u32 *buf, size_t wordcount, int ent_count)
+ * int random_input_wait(void);
@@ -88149,7 +88179,7 @@ index 8258982..d382084 100644
@@ -714,6 +724,61 @@ void add_disk_randomness(struct gendisk *disk)
}
#endif
-
+
+/*
+ * random_input_words - add bulk entropy to pool
+ *
@@ -88206,20 +88236,20 @@ index 8258982..d382084 100644
+
+
#define EXTRACT_SIZE 10
-
+
/*********************************************************************
diff --git a/fs/fcntl.c b/fs/fcntl.c
index 2cf93ec..1b6d2bb 100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -141,6 +141,7 @@ SYSCALL_DEFINE1(dup, unsigned int, fildes)
- }
- return ret;
+ }
+ return ret;
}
+EXPORT_SYMBOL(sys_dup);
-
+
#define SETFL_MASK (O_APPEND | O_NONBLOCK | O_NDELAY | O_DIRECT | O_NOATIME)
-
+
diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h
index adaf3c1..e961a9a 100644
--- a/include/linux/miscdevice.h
@@ -88237,17 +88267,17 @@ index 25d02fe..b59ec10 100644
--- a/include/linux/random.h
+++ b/include/linux/random.h
@@ -9,6 +9,7 @@
-
+
#include <linux/types.h>
#include <linux/ioctl.h>
+#include <linux/types.h> /* for __u32 in user space */
#include <linux/irqnr.h>
-
+
/* ioctl()'s for the random number generator */
@@ -34,6 +35,30 @@
/* Clear the entropy pool and associated counters. (Superuser only.) */
#define RNDCLEARPOOL _IO( 'R', 0x06 )
-
+
+#ifdef CONFIG_FIPS_RNG
+
+/* Size of seed value - equal to AES blocksize */
@@ -88273,30 +88303,31 @@ index 25d02fe..b59ec10 100644
+#endif /* #ifdef CONFIG_FIPS_RNG */
+
struct rand_pool_info {
- int entropy_count;
- int buf_size;
+ int entropy_count;
+ int buf_size;
@@ -50,6 +75,10 @@ extern void add_input_randomness(unsigned int type, unsigned int code,
- unsigned int value);
+ unsigned int value);
extern void add_interrupt_randomness(int irq);
-
+
+extern void random_input_words(__u32 *buf, size_t wordcount, int ent_count);
+extern int random_input_wait(void);
+#define HAS_RANDOM_INPUT_WAIT 1
+
extern void get_random_bytes(void *buf, int nbytes);
void generate_random_uuid(unsigned char uuid_out[16]);
-
+
diff --git a/kernel/pid.c b/kernel/pid.c
index d3f722d..e041b52 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -387,6 +387,7 @@ struct task_struct *find_task_by_vpid(pid_t vnr)
{
- return find_task_by_pid_ns(vnr, current->nsproxy->pid_ns);
+ return find_task_by_pid_ns(vnr, current->nsproxy->pid_ns);
}
+EXPORT_SYMBOL(find_task_by_vpid);
-
+
struct pid *get_task_pid(struct task_struct *task, enum pid_type type)
{
---
-1.7.0.4
+--
+1.6.6.1
+
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-Revert-omap3-beagle-Fix-compile-time-errors.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-Revert-omap3-beagle-Fix-compile-time-errors.patch
index 675501dae8..abcf45b6bc 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-Revert-omap3-beagle-Fix-compile-time-errors.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-Revert-omap3-beagle-Fix-compile-time-errors.patch
@@ -1,4 +1,4 @@
-From aab782ab0942d6fd654311b937596b24a0ace3c6 Mon Sep 17 00:00:00 2001
+From 09b6266a567b22e07200973312ffb8f43e7f7d43 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Fri, 30 Apr 2010 11:12:24 +0200
Subject: [PATCH 01/45] Revert "omap3: beagle: Fix compile-time errors"
@@ -11,7 +11,7 @@ This reverts commit da5b291cba631d303cb137fa6a620c494d828197.
1 files changed, 3 insertions(+), 31 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 865a8d7..15e48f2 100644
+index c5da58e..330fb25 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -56,22 +56,6 @@
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch
new file mode 100644
index 0000000000..37d5fb90f1
--- /dev/null
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0001-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch
@@ -0,0 +1,58 @@
+From 787c524fc478068d18eef72f43074b47722e50b0 Mon Sep 17 00:00:00 2001
+From: Greg KH <gregkh@suse.de>
+Date: Thu, 5 Aug 2010 13:53:35 -0700
+Subject: [PATCH] cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
+
+We really shouldn't be asking userspace to create new root filesystems.
+So follow along with all of the other in-kernel filesystems, and provide
+a mount point in sysfs.
+
+For cgroupfs, this should be in /sys/fs/cgroup/ This change provides
+that mount point when the cgroup filesystem is registered in the kernel.
+
+Acked-by: Paul Menage <menage@google.com>
+Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
+Cc: Li Zefan <lizf@cn.fujitsu.com>
+Cc: Lennart Poettering <lennart@poettering.net>
+Cc: Kay Sievers <kay.sievers@vrfy.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+---
+ kernel/cgroup.c | 13 ++++++++++++-
+ 1 files changed, 12 insertions(+), 1 deletions(-)
+
+diff --git a/kernel/cgroup.c b/kernel/cgroup.c
+index 0249f4b..db21dd8 100644
+--- a/kernel/cgroup.c
++++ b/kernel/cgroup.c
+@@ -1472,6 +1472,8 @@ static struct file_system_type cgroup_fs_type = {
+ .kill_sb = cgroup_kill_sb,
+ };
+
++static struct kobject *cgroup_kobj;
++
+ static inline struct cgroup *__d_cgrp(struct dentry *dentry)
+ {
+ return dentry->d_fsdata;
+@@ -3283,9 +3285,18 @@ int __init cgroup_init(void)
+ hhead = css_set_hash(init_css_set.subsys);
+ hlist_add_head(&init_css_set.hlist, hhead);
+ BUG_ON(!init_root_id(&rootnode));
++
++ cgroup_kobj = kobject_create_and_add("cgroup", fs_kobj);
++ if (!cgroup_kobj) {
++ err = -ENOMEM;
++ goto out;
++ }
++
+ err = register_filesystem(&cgroup_fs_type);
+- if (err < 0)
++ if (err < 0) {
++ kobject_put(cgroup_kobj);
+ goto out;
++ }
+
+ proc_create("cgroups", 0, NULL, &proc_cgroupstats_operations);
+
+--
+1.6.6.1
+
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0002-OMAP3-craneboard-add-support-for-TinCanTools-Trainer.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0002-OMAP3-craneboard-add-support-for-TinCanTools-Trainer.patch
new file mode 100644
index 0000000000..4b1f109635
--- /dev/null
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0002-OMAP3-craneboard-add-support-for-TinCanTools-Trainer.patch
@@ -0,0 +1,55 @@
+From ba5fd3ed4031a826309ab26045d27dbef88de418 Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+Date: Wed, 19 Jan 2011 16:36:09 +0100
+Subject: [PATCH 2/2] OMAP3: craneboard: add support for TinCanTools Trainer expansion board
+
+Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
+---
+ arch/arm/mach-omap2/board-am3517crane.c | 31 +++++++++++++++++++++++++++++++
+ 1 files changed, 31 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c
+index 300a79d..cbe2174 100644
+--- a/arch/arm/mach-omap2/board-am3517crane.c
++++ b/arch/arm/mach-omap2/board-am3517crane.c
+@@ -747,6 +747,37 @@ static void __init am3517_crane_init(void)
+ am3517crane_flash_init();
+ usb_musb_init();
+
++ if(!strcmp(expansionboard_name, "trainer"))
++ {
++ printk(KERN_INFO "Beagle expansionboard: exporting GPIOs 130-141,162 to userspace\n");
++ gpio_request(130, "sysfs");
++ gpio_export(130, 1);
++ gpio_request(131, "sysfs");
++ gpio_export(131, 1);
++ gpio_request(132, "sysfs");
++ gpio_export(132, 1);
++ gpio_request(133, "sysfs");
++ gpio_export(133, 1);
++ gpio_request(134, "sysfs");
++ gpio_export(134, 1);
++ gpio_request(135, "sysfs");
++ gpio_export(135, 1);
++ gpio_request(136, "sysfs");
++ gpio_export(136, 1);
++ gpio_request(137, "sysfs");
++ gpio_export(137, 1);
++ gpio_request(138, "sysfs");
++ gpio_export(138, 1);
++ gpio_request(139, "sysfs");
++ gpio_export(139, 1);
++ gpio_request(140, "sysfs");
++ gpio_export(140, 1);
++ gpio_request(141, "sysfs");
++ gpio_export(141, 1);
++ gpio_request(162, "sysfs");
++ gpio_export(162, 1);
++ }
++
+ /* Configure GPIO for EHCI port */
+ omap_mux_init_gpio(35, OMAP_PIN_OUTPUT);
+ gpio_request(35, "usb_ehci_enable");
+--
+1.6.6.1
+
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0002-board-omap3touchbook-make-it-build-against-TI-linux-.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0002-board-omap3touchbook-make-it-build-against-TI-linux-.patch
index d9fb77b7f3..c695b71269 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0002-board-omap3touchbook-make-it-build-against-TI-linux-.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0002-board-omap3touchbook-make-it-build-against-TI-linux-.patch
@@ -1,4 +1,4 @@
-From 06352060e3862e2c11719a6ef4ac0ae1b5f5fdf6 Mon Sep 17 00:00:00 2001
+From 5e84443afe149d9f503b63b1c87f23b807fe9e46 Mon Sep 17 00:00:00 2001
From: Koen Kooi <k-kooi@ti.com>
Date: Sat, 30 Jan 2010 15:49:15 +0100
Subject: [PATCH 02/45] board-omap3touchbook: make it build against TI linux-omap 2.6.32-PSP
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0003-ARM-OMAP-add-support-for-TCT-Zippy-to-Beagle-board-f.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0003-ARM-OMAP-add-support-for-TCT-Zippy-to-Beagle-board-f.patch
index d2e676387f..07ade0a5e2 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0003-ARM-OMAP-add-support-for-TCT-Zippy-to-Beagle-board-f.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0003-ARM-OMAP-add-support-for-TCT-Zippy-to-Beagle-board-f.patch
@@ -1,4 +1,4 @@
-From 4afa80923880088a3d6780257ccce72a88884e19 Mon Sep 17 00:00:00 2001
+From aeef52fa662c9a6d85b11474359fb9504fc1cf49 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <sakoman@gmail.com>
Date: Tue, 15 Dec 2009 15:34:29 -0800
Subject: [PATCH 03/45] ARM: OMAP: add support for TCT Zippy to Beagle board file
@@ -9,7 +9,7 @@ Signed-off-by: Steve Sakoman <sakoman@gmail.com>
1 files changed, 71 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 15e48f2..a4a793f 100644
+index 330fb25..ddfb9c0 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -21,6 +21,7 @@
@@ -121,7 +121,7 @@ index 15e48f2..a4a793f 100644
/* Bus 3 is attached to the DVI port where devices like the pico DLP
* projector don't work reliably with 400kHz */
omap_register_i2c_bus(3, 100, NULL, 0);
-@@ -453,6 +519,8 @@ static void __init omap3_beagle_init(void)
+@@ -448,6 +514,8 @@ static void __init omap3_beagle_init(void)
/* REVISIT leave DVI powered down until it's needed ... */
gpio_direction_output(170, true);
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0004-ARM-OMAP-Make-beagle-u-boot-partition-writable.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0004-ARM-OMAP-Make-beagle-u-boot-partition-writable.patch
index 97439a0394..46a46e77f6 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0004-ARM-OMAP-Make-beagle-u-boot-partition-writable.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0004-ARM-OMAP-Make-beagle-u-boot-partition-writable.patch
@@ -1,4 +1,4 @@
-From ef987a45a496dad17bafb2dead78513a7f820dc8 Mon Sep 17 00:00:00 2001
+From 701bababc8f9e458e01bdb512199ce175110fe19 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Thu, 17 Dec 2009 12:40:24 -0800
Subject: [PATCH 04/45] ARM: OMAP: Make beagle u-boot partition writable
@@ -8,7 +8,7 @@ Subject: [PATCH 04/45] ARM: OMAP: Make beagle u-boot partition writable
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index a4a793f..4b2dd65 100644
+index ddfb9c0..9f72c7a 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -112,7 +112,6 @@ static struct mtd_partition omap3beagle_nand_partitions[] = {
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0005-board-omap3-beagle-add-DSS2-support.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0005-board-omap3-beagle-add-DSS2-support.patch
index 02c3fbabd5..e337a4f21a 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0005-board-omap3-beagle-add-DSS2-support.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0005-board-omap3-beagle-add-DSS2-support.patch
@@ -1,4 +1,4 @@
-From 3915909dbac222212ee97bd6c8057df442a85bd3 Mon Sep 17 00:00:00 2001
+From 818b8bbfb472de23b10aec58acd55eb31fafe0b9 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Wed, 10 Feb 2010 15:07:36 +0100
Subject: [PATCH 05/45] board-omap3-beagle: add DSS2 support
@@ -8,7 +8,7 @@ Subject: [PATCH 05/45] board-omap3-beagle: add DSS2 support
1 files changed, 103 insertions(+), 27 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 4b2dd65..79d43d0 100644
+index 9f72c7a..3b7f6ec 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -40,6 +40,7 @@
@@ -184,7 +184,7 @@ index 4b2dd65..79d43d0 100644
};
static void __init omap3beagle_flash_init(void)
-@@ -527,8 +602,9 @@ static void __init omap3_beagle_init(void)
+@@ -522,8 +597,9 @@ static void __init omap3_beagle_init(void)
/* Ensure SDRC pins are mux'd for self-refresh */
omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0006-board-omap3beagle-prepare-for-DM3730-based-Beagleboa.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0006-board-omap3beagle-prepare-for-DM3730-based-Beagleboa.patch
index 10e728b3ad..2b32660240 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0006-board-omap3beagle-prepare-for-DM3730-based-Beagleboa.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0006-board-omap3beagle-prepare-for-DM3730-based-Beagleboa.patch
@@ -1,4 +1,4 @@
-From f8b1eeb8f3dc580f24b5d2a2b140c74cfa88c5eb Mon Sep 17 00:00:00 2001
+From e36c63f1fe13a60bdf6e9b3dd46ad969d6fe418d Mon Sep 17 00:00:00 2001
From: Koen Kooi <k-kooi@ti.com>
Date: Wed, 27 Jan 2010 21:57:13 +0100
Subject: [PATCH 06/45] board-omap3beagle: prepare for DM3730 based BeagleboardXM
@@ -11,7 +11,7 @@ Subject: [PATCH 06/45] board-omap3beagle: prepare for DM3730 based BeagleboardXM
1 files changed, 54 insertions(+), 8 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 79d43d0..b1e4d73 100644
+index 3b7f6ec..429dacb 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -53,6 +53,23 @@
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0007-ARM-OMAP-beagleboard-Add-infrastructure-to-do-fixups.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0007-ARM-OMAP-beagleboard-Add-infrastructure-to-do-fixups.patch
index feea7fe967..86e6a7092b 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0007-ARM-OMAP-beagleboard-Add-infrastructure-to-do-fixups.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0007-ARM-OMAP-beagleboard-Add-infrastructure-to-do-fixups.patch
@@ -1,4 +1,4 @@
-From 902bf175d5050e9f9892b594bd6093b65c1be8cc Mon Sep 17 00:00:00 2001
+From 25ae9895ed107a6fe9d9c4345f21bbdaee4ccde6 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Mon, 3 May 2010 14:41:29 +0200
Subject: [PATCH 07/45] ARM: OMAP: beagleboard: Add infrastructure to do fixups based on expansionboard name passed by u-boot
@@ -9,7 +9,7 @@ And add support for zippy2
1 files changed, 78 insertions(+), 10 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index b1e4d73..8223763 100644
+index 429dacb..ac96551 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -75,6 +75,8 @@ static struct omap_opp * _omap37x_l3_rate_table = NULL;
@@ -131,7 +131,7 @@ index b1e4d73..8223763 100644
static void __init omap3_beagle_init(void)
{
omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
-@@ -639,8 +689,24 @@ static void __init omap3_beagle_init(void)
+@@ -634,8 +684,24 @@ static void __init omap3_beagle_init(void)
/* REVISIT leave DVI powered down until it's needed ... */
gpio_direction_output(170, true);
@@ -158,7 +158,7 @@ index b1e4d73..8223763 100644
usb_musb_init();
usb_ehci_init(&ehci_pdata);
omap3beagle_flash_init();
-@@ -657,6 +723,8 @@ static void __init omap3_beagle_map_io(void)
+@@ -652,6 +718,8 @@ static void __init omap3_beagle_map_io(void)
omap2_map_common_io();
}
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0008-ARM-OMAP-beagleboard-pre-export-GPIOs-to-userspace-w.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0008-ARM-OMAP-beagleboard-pre-export-GPIOs-to-userspace-w.patch
index 3cf6d8db9d..88ca739d04 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0008-ARM-OMAP-beagleboard-pre-export-GPIOs-to-userspace-w.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0008-ARM-OMAP-beagleboard-pre-export-GPIOs-to-userspace-w.patch
@@ -1,4 +1,4 @@
-From 35b951339ea47b542c548e102768817d4123a24b Mon Sep 17 00:00:00 2001
+From bf88487c59994b71cc57687915de0dc207a74b6b Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Mon, 3 May 2010 21:38:34 +0200
Subject: [PATCH 08/45] ARM: OMAP: beagleboard: pre-export GPIOs to userspace when using a Tincantools trainerboard
@@ -9,10 +9,10 @@ This really needs a for loop, patches welcome
1 files changed, 32 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 8223763..abbc1b2 100644
+index ac96551..c9af202 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
-@@ -706,7 +706,38 @@ static void __init omap3_beagle_init(void)
+@@ -701,7 +701,38 @@ static void __init omap3_beagle_init(void)
mmc[1].gpio_wp = 141;
mmc[1].gpio_cd = 162;
}
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0009-ARM-OMAP-beagleboard-initialize-ds1307-and-eeprom-on.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0009-ARM-OMAP-beagleboard-initialize-ds1307-and-eeprom-on.patch
index 3729aec728..4079bcce9c 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0009-ARM-OMAP-beagleboard-initialize-ds1307-and-eeprom-on.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0009-ARM-OMAP-beagleboard-initialize-ds1307-and-eeprom-on.patch
@@ -1,4 +1,4 @@
-From 9b98719bf7787f1ec8eef6b09cb5b94100de7d12 Mon Sep 17 00:00:00 2001
+From f957bb53ba0c0056efd2c10d446ed9cfd6bd62ca Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Mon, 3 May 2010 22:31:34 +0200
Subject: [PATCH 09/45] ARM: OMAP: beagleboard: initialize ds1307 and eeprom only for zippy and zippy2
@@ -8,7 +8,7 @@ Subject: [PATCH 09/45] ARM: OMAP: beagleboard: initialize ds1307 and eeprom only
1 files changed, 35 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index abbc1b2..cb11b07 100644
+index c9af202..b3c8cb7 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -496,24 +496,55 @@ static struct i2c_board_info __initdata beagle_i2c1_boardinfo[] = {
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0010-ARM-OMAP-update-beagleboard-defconfig.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0010-ARM-OMAP-update-beagleboard-defconfig.patch
index 89bd4eecdc..aea1ae2a9c 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0010-ARM-OMAP-update-beagleboard-defconfig.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0010-ARM-OMAP-update-beagleboard-defconfig.patch
@@ -1,4 +1,4 @@
-From f1e6a762a7bf8d7ff7700011f60a005f28025239 Mon Sep 17 00:00:00 2001
+From b552461dec414a8e8705a226de2e6ef6d5931db9 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Tue, 27 Apr 2010 10:51:15 +0200
Subject: [PATCH 10/45] ARM: OMAP: update beagleboard defconfig
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0011-ASoC-enable-audio-capture-by-default-for-twl4030.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0011-ASoC-enable-audio-capture-by-default-for-twl4030.patch
index 75cbf5c11c..e02a9ab10d 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0011-ASoC-enable-audio-capture-by-default-for-twl4030.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0011-ASoC-enable-audio-capture-by-default-for-twl4030.patch
@@ -1,4 +1,4 @@
-From d9b1154227bf4fde9b08d3d5d427ef6e56e9cae1 Mon Sep 17 00:00:00 2001
+From 3cd85787199204da2faec4b4150302bf2228de48 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Thu, 17 Dec 2009 12:45:20 -0800
Subject: [PATCH 11/45] ASoC: enable audio capture by default for twl4030
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0012-MTD-NAND-omap2-proper-fix-for-subpage-read-ECC-error.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0012-MTD-NAND-omap2-proper-fix-for-subpage-read-ECC-error.patch
index 0c75a14f36..a8f3d8b460 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0012-MTD-NAND-omap2-proper-fix-for-subpage-read-ECC-error.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0012-MTD-NAND-omap2-proper-fix-for-subpage-read-ECC-error.patch
@@ -1,4 +1,4 @@
-From 20276b3c5eb8dabc7169aee30ad38f9308a0572f Mon Sep 17 00:00:00 2001
+From 7d8868d73fdd95eb928f54f881978590643e50cc Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Thu, 31 Dec 2009 07:05:02 -0800
Subject: [PATCH 12/45] MTD: NAND: omap2: proper fix for subpage read ECC errors
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch
index f89d8cb5ce..7f4954a959 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0013-OMAP3630-DSS2-Enable-Pre-Multiplied-Alpha-Support.patch
@@ -1,4 +1,4 @@
-From 37bcddac7dbfe61576489e4c55b32d8b45eb1c5a Mon Sep 17 00:00:00 2001
+From af96930d2412b4af27407a48e262ce1bb2e32427 Mon Sep 17 00:00:00 2001
From: Sudeep Basavaraj <sudeep.basavaraj@ti.com>
Date: Tue, 5 Jan 2010 18:58:18 +0530
Subject: [PATCH 13/45] OMAP3630:DSS2:Enable Pre-Multiplied Alpha Support
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0014-DSS2-add-bootarg-for-selecting-svideo-or-composite-f.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0014-DSS2-add-bootarg-for-selecting-svideo-or-composite-f.patch
index 0f69e58fbc..d9554e1455 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0014-DSS2-add-bootarg-for-selecting-svideo-or-composite-f.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0014-DSS2-add-bootarg-for-selecting-svideo-or-composite-f.patch
@@ -1,4 +1,4 @@
-From d03b9f3dc00274820bed99cc22d8425d6bf0e7b4 Mon Sep 17 00:00:00 2001
+From ba26db491acb2d0ee6ef6e51756e843dfd56a125 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Tue, 19 Jan 2010 21:19:15 -0800
Subject: [PATCH 14/45] DSS2: add bootarg for selecting svideo or composite for tv output
@@ -10,7 +10,7 @@ also add pal-16 and ntsc-16 omapfb.mode settings for 16bpp
2 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c
-index 1127e85..53fa54e 100644
+index 8be116f..fbfc24b 100644
--- a/drivers/video/omap2/dss/venc.c
+++ b/drivers/video/omap2/dss/venc.c
@@ -87,6 +87,11 @@
@@ -25,7 +25,7 @@ index 1127e85..53fa54e 100644
struct venc_config {
u32 f_control;
u32 vidout_ctrl;
-@@ -430,6 +435,23 @@ static int venc_panel_probe(struct omap_dss_device *dssdev)
+@@ -432,6 +437,23 @@ static int venc_panel_probe(struct omap_dss_device *dssdev)
{
dssdev->panel.timings = omap_dss_pal_timings;
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0015-ISP-add-some-more-from-Leopard-imaging-patch.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0015-ISP-add-some-more-from-Leopard-imaging-patch.patch
index ce57880379..f8030bbd0a 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0015-ISP-add-some-more-from-Leopard-imaging-patch.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0015-ISP-add-some-more-from-Leopard-imaging-patch.patch
@@ -1,4 +1,4 @@
-From a30000387ff4ec1ab0ca46c2429bfd184210bb24 Mon Sep 17 00:00:00 2001
+From 739ec82561686ad0c5cc8befef3bcd74339d205e Mon Sep 17 00:00:00 2001
From: Koen Kooi <k-kooi@ti.com>
Date: Thu, 11 Feb 2010 21:34:00 +0100
Subject: [PATCH 15/45] ISP: add some more from Leopard imaging patch
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0016-ARM-OMAP-Overo-Add-support-for-second-ethernet-port.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0016-ARM-OMAP-Overo-Add-support-for-second-ethernet-port.patch
index 923efee198..4b9bd2155a 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0016-ARM-OMAP-Overo-Add-support-for-second-ethernet-port.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0016-ARM-OMAP-Overo-Add-support-for-second-ethernet-port.patch
@@ -1,4 +1,4 @@
-From 0edbb992b0bc4e6a1b39d760695a4857b9b7ffa7 Mon Sep 17 00:00:00 2001
+From 1fc84dc95abaf51294efa10fe111d65bc0b08483 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <sakoman@gmail.com>
Date: Tue, 15 Dec 2009 14:59:42 -0800
Subject: [PATCH 16/45] ARM: OMAP: Overo: Add support for second ethernet port
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0017-drivers-net-smsc911x-return-ENODEV-if-device-is-not-.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0017-drivers-net-smsc911x-return-ENODEV-if-device-is-not-.patch
index 89812cc4f2..40fbbff19a 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0017-drivers-net-smsc911x-return-ENODEV-if-device-is-not-.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0017-drivers-net-smsc911x-return-ENODEV-if-device-is-not-.patch
@@ -1,4 +1,4 @@
-From 5c527b02d8511b5210bdddc6fcfd009bfcaff3d7 Mon Sep 17 00:00:00 2001
+From f6084470f7861f9cc05faec2a8f8825ec55f7022 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <sakoman@gmail.com>
Date: Tue, 15 Dec 2009 15:17:44 -0800
Subject: [PATCH 17/45] drivers: net: smsc911x: return ENODEV if device is not found
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0018-drivers-input-touchscreen-ads7846-return-ENODEV-if-d.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0018-drivers-input-touchscreen-ads7846-return-ENODEV-if-d.patch
index c8bfc34247..1ee7f324d9 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0018-drivers-input-touchscreen-ads7846-return-ENODEV-if-d.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0018-drivers-input-touchscreen-ads7846-return-ENODEV-if-d.patch
@@ -1,4 +1,4 @@
-From 88b6ac2d3b90cc8eb8d130673c96645bb439e47c Mon Sep 17 00:00:00 2001
+From 56f59d080226a7a6a033e7f20e8a41d1c327e5a1 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <sakoman@gmail.com>
Date: Tue, 15 Dec 2009 15:24:10 -0800
Subject: [PATCH 18/45] drivers: input: touchscreen: ads7846: return ENODEV if device is not found
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0019-drivers-mfd-add-twl4030-madc-driver.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0019-drivers-mfd-add-twl4030-madc-driver.patch
index 51252a3ed1..55c5e1917b 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0019-drivers-mfd-add-twl4030-madc-driver.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0019-drivers-mfd-add-twl4030-madc-driver.patch
@@ -1,6 +1,6 @@
-From 0aee5eef478b55bf987c45ced3365099e28698cb Mon Sep 17 00:00:00 2001
+From b9270dc07b1b66cce33580bca6276c20f1bf68d2 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
-Date: Thu, 17 Dec 2009 14:19:34 -0800
+Date: Wed, 19 Jan 2011 16:06:42 +0100
Subject: [PATCH 19/45] drivers: mfd: add twl4030 madc driver
---
@@ -11,13 +11,13 @@ Subject: [PATCH 19/45] drivers: mfd: add twl4030 madc driver
create mode 100644 drivers/mfd/twl4030-madc.c
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
-index 8782978..aefdd66 100644
+index 306b346..6221146 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
-@@ -135,6 +135,27 @@ config TWL4030_CODEC
- select MFD_CORE
+@@ -148,6 +148,27 @@ config TWL4030_CODEC
default n
+
+config TWL4030_MADC
+ tristate "TWL4030 MADC Driver"
+ depends on TWL4030_CORE
@@ -43,7 +43,7 @@ index 8782978..aefdd66 100644
bool
default n
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
-index ca2f2c4..ec9c4f2 100644
+index 85dc3a7..44350e7 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -29,6 +29,7 @@ obj-$(CONFIG_MENELAUS) += menelaus.o
@@ -52,7 +52,7 @@ index ca2f2c4..ec9c4f2 100644
obj-$(CONFIG_TWL4030_CODEC) += twl4030-codec.o
+obj-$(CONFIG_TWL4030_MADC) += twl4030-madc.o
- obj-$(CONFIG_MFD_MC13783) += mc13783-core.o
+ obj-$(CONFIG_TPS65910_CORE) += tps65910-core.o
diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c
new file mode 100644
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0020-ARM-OMAP-Add-missing-twl4030-madc-header-file.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0020-ARM-OMAP-Add-missing-twl4030-madc-header-file.patch
index 87ce318858..0e1bdaf750 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0020-ARM-OMAP-Add-missing-twl4030-madc-header-file.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0020-ARM-OMAP-Add-missing-twl4030-madc-header-file.patch
@@ -1,4 +1,4 @@
-From d93f9d5e636931519fb440cf8ad493c95bfaf5ca Mon Sep 17 00:00:00 2001
+From b13ea241d699a10e3f5347a90bc3d31329f3601d Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Thu, 17 Dec 2009 15:54:58 -0800
Subject: [PATCH 20/45] ARM: OMAP: Add missing twl4030 madc header file
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0021-ARM-OMAP-Add-twl4030-madc-support-to-Overo.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0021-ARM-OMAP-Add-twl4030-madc-support-to-Overo.patch
index 471d07d274..e1515e162f 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0021-ARM-OMAP-Add-twl4030-madc-support-to-Overo.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0021-ARM-OMAP-Add-twl4030-madc-support-to-Overo.patch
@@ -1,4 +1,4 @@
-From bdde1d2b9726ebf0dd74f6dad0dfc858333ca784 Mon Sep 17 00:00:00 2001
+From 6b34060f2a665d94e953a7a9b3d66a79e1736cd6 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Thu, 17 Dec 2009 14:27:15 -0800
Subject: [PATCH 21/45] ARM: OMAP: Add twl4030 madc support to Overo
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0022-ARM-OMAP-Add-twl4030-madc-support-to-Beagle.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0022-ARM-OMAP-Add-twl4030-madc-support-to-Beagle.patch
index be53fdafb4..48e777ba61 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0022-ARM-OMAP-Add-twl4030-madc-support-to-Beagle.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0022-ARM-OMAP-Add-twl4030-madc-support-to-Beagle.patch
@@ -1,4 +1,4 @@
-From 7775140814ed11c0332a57ed30f69c6da0ab466d Mon Sep 17 00:00:00 2001
+From 04101f4527b88fbd540fc89f2a8af06d26030fd1 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Thu, 17 Dec 2009 14:32:36 -0800
Subject: [PATCH 22/45] ARM: OMAP: Add twl4030 madc support to Beagle
@@ -8,7 +8,7 @@ Subject: [PATCH 22/45] ARM: OMAP: Add twl4030 madc support to Beagle
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index cb11b07..c4ebaab 100644
+index b3c8cb7..dd830b1 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -473,6 +473,10 @@ static struct twl4030_codec_data beagle_codec_data = {
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0023-netdev-rt73usb-add-vendor-device-ID-for-Ceiva-Wirele.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0023-netdev-rt73usb-add-vendor-device-ID-for-Ceiva-Wirele.patch
index ec26ee4da6..e5ba1d1de2 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0023-netdev-rt73usb-add-vendor-device-ID-for-Ceiva-Wirele.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0023-netdev-rt73usb-add-vendor-device-ID-for-Ceiva-Wirele.patch
@@ -1,4 +1,4 @@
-From c59df25a1d1ad6c7fbb11fac6e7404d05639f4bd Mon Sep 17 00:00:00 2001
+From 6c58da582504f23256ec656a03706a1df438f291 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Tue, 19 Jan 2010 20:00:46 -0800
Subject: [PATCH 23/45] netdev: rt73usb - add vendor/device ID for Ceiva Wireless PartNo 81726-00702
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0024-mmc-don-t-display-single-block-read-console-messages.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0024-mmc-don-t-display-single-block-read-console-messages.patch
index 10bdffa071..4b4e54fa23 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0024-mmc-don-t-display-single-block-read-console-messages.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0024-mmc-don-t-display-single-block-read-console-messages.patch
@@ -1,4 +1,4 @@
-From 1af64d89d41aae6ab26b61c23060a02af72b6fb2 Mon Sep 17 00:00:00 2001
+From b17b11c0f8d56f868da267641486b62e1a44790b Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Mon, 4 Jan 2010 19:20:25 -0800
Subject: [PATCH 24/45] mmc: don't display single block read console messages
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0025-ARM-OMAP2-mmc-twl4030-move-clock-input-selection-pri.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0025-ARM-OMAP2-mmc-twl4030-move-clock-input-selection-pri.patch
index 358ba723eb..78666fb4f3 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0025-ARM-OMAP2-mmc-twl4030-move-clock-input-selection-pri.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0025-ARM-OMAP2-mmc-twl4030-move-clock-input-selection-pri.patch
@@ -1,4 +1,4 @@
-From 664b6e1a8f1bcd0bed227b367f7ed029a5be0fa7 Mon Sep 17 00:00:00 2001
+From 297f577635fe0182e596112c33b213fd22b4efa7 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Sun, 24 Jan 2010 09:33:56 -0800
Subject: [PATCH 25/45] ARM: OMAP2: mmc-twl4030: move clock input selection prior to vcc test
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0026-board-overo-add-PM-code-and-sync-with-http-www.sakom.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0026-board-overo-add-PM-code-and-sync-with-http-www.sakom.patch
index 41e3846bb9..53bfbe0d2f 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0026-board-overo-add-PM-code-and-sync-with-http-www.sakom.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0026-board-overo-add-PM-code-and-sync-with-http-www.sakom.patch
@@ -1,4 +1,4 @@
-From 2b3cfbcd286a0c1b0df90b7af7982c772031abd8 Mon Sep 17 00:00:00 2001
+From 1f91f7f6dea0268e23d5e3e78b6c8dc5ed245313 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Sun, 14 Feb 2010 12:52:02 +0100
Subject: [PATCH 26/45] board-overo: add PM code and sync with http://www.sakoman.com/cgi-bin/gitweb.cgi?p=linux-omap-2.6.git;a=shortlog;h=refs/heads/omap3-2.6.32
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0027-twl4030-madc-adjust-for-twl4030-twl-api-changes.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0027-twl4030-madc-adjust-for-twl4030-twl-api-changes.patch
index 3b741c0a1e..1f8fb069c8 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0027-twl4030-madc-adjust-for-twl4030-twl-api-changes.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0027-twl4030-madc-adjust-for-twl4030-twl-api-changes.patch
@@ -1,4 +1,4 @@
-From ea14002af533b155db59e15b5bccc6374aa8a5d1 Mon Sep 17 00:00:00 2001
+From e102ffa8fcc1586ed7d4c1390b7b2c7d7d359c40 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Mon, 15 Feb 2010 14:20:51 +0100
Subject: [PATCH 27/45] twl4030-madc: adjust for twl4030 -> twl api changes
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0028-OMAP-DSS2-Re-add-support-for-Samsung-lte430wq-f0c-pa.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0028-OMAP-DSS2-Re-add-support-for-Samsung-lte430wq-f0c-pa.patch
index 9857d6142f..58f4701a42 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0028-OMAP-DSS2-Re-add-support-for-Samsung-lte430wq-f0c-pa.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0028-OMAP-DSS2-Re-add-support-for-Samsung-lte430wq-f0c-pa.patch
@@ -1,4 +1,4 @@
-From fea02525d71cc64fb84f011768a5f5d0bb248dc7 Mon Sep 17 00:00:00 2001
+From 5e227dbb55a40c616cca8a2345a159310c729897 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Mon, 15 Feb 2010 14:38:00 +0100
Subject: [PATCH 28/45] OMAP: DSS2: (Re)add support for Samsung lte430wq-f0c panel
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0029-OMAP-DSS2-Add-support-for-LG-Philips-LB035Q02-panel.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0029-OMAP-DSS2-Add-support-for-LG-Philips-LB035Q02-panel.patch
index e07a1ac04f..4f24fdd9e5 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0029-OMAP-DSS2-Add-support-for-LG-Philips-LB035Q02-panel.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0029-OMAP-DSS2-Add-support-for-LG-Philips-LB035Q02-panel.patch
@@ -1,4 +1,4 @@
-From 528f8c676d21e4eea4599226168f25e684f99eae Mon Sep 17 00:00:00 2001
+From e960b2c16c24198a669a7c49e6282333faa74a3e Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Thu, 17 Dec 2009 15:05:30 -0800
Subject: [PATCH 29/45] OMAP: DSS2: Add support for LG Philips LB035Q02 panel
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0030-Fix-for-bus-width-which-improves-SD-card-s-peformanc.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0030-Fix-for-bus-width-which-improves-SD-card-s-peformanc.patch
index a19b3beb7c..306389e79f 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0030-Fix-for-bus-width-which-improves-SD-card-s-peformanc.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0030-Fix-for-bus-width-which-improves-SD-card-s-peformanc.patch
@@ -1,4 +1,4 @@
-From 5615ccd89eb521c2365992bdb7c08879fe039daa Mon Sep 17 00:00:00 2001
+From ed355dc59a30638b914152d52752d5e0ca06ecbd Mon Sep 17 00:00:00 2001
From: Kishore Kadiyala <kishore.kadiyala@ti.com>
Date: Wed, 17 Feb 2010 19:34:47 +0530
Subject: [PATCH 30/45] Fix for bus width which improves SD card's peformance.
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0031-ARM-VFP-add-support-to-sync-the-VFP-state-of-the-cur.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0031-ARM-VFP-add-support-to-sync-the-VFP-state-of-the-cur.patch
index 85952f289e..28d9f37610 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0031-ARM-VFP-add-support-to-sync-the-VFP-state-of-the-cur.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0031-ARM-VFP-add-support-to-sync-the-VFP-state-of-the-cur.patch
@@ -1,4 +1,4 @@
-From 14b44ddc3119dc497b4d17901884af4f068c5ada Mon Sep 17 00:00:00 2001
+From b366c2810c736d8d544cf261f3354eebaf5e5655 Mon Sep 17 00:00:00 2001
From: Imre Deak <imre.deak@nokia.com>
Date: Thu, 4 Feb 2010 21:38:02 +0200
Subject: [PATCH 31/45] ARM: VFP: add support to sync the VFP state of the current thread
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0032-ARM-VFP-preserve-the-HW-context-when-calling-signal-.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0032-ARM-VFP-preserve-the-HW-context-when-calling-signal-.patch
index 658c9755c2..f257130693 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0032-ARM-VFP-preserve-the-HW-context-when-calling-signal-.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0032-ARM-VFP-preserve-the-HW-context-when-calling-signal-.patch
@@ -1,4 +1,4 @@
-From 7cdc806843b28f0f35dd41fb79aac815773a3550 Mon Sep 17 00:00:00 2001
+From 1be18045f852e78bf78d2042a5210c53d830f81b Mon Sep 17 00:00:00 2001
From: Imre Deak <imre.deak@nokia.com>
Date: Thu, 4 Feb 2010 21:38:30 +0200
Subject: [PATCH 32/45] ARM: VFP: preserve the HW context when calling signal handlers
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0033-Switch-SGX-clocks-to-200MHz-on-DM37xx-OMAP36xx.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0033-Switch-SGX-clocks-to-200MHz-on-DM37xx-OMAP36xx.patch
index 00e0b64392..5711d393d2 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0033-Switch-SGX-clocks-to-200MHz-on-DM37xx-OMAP36xx.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0033-Switch-SGX-clocks-to-200MHz-on-DM37xx-OMAP36xx.patch
@@ -1,4 +1,4 @@
-From 19f0835c3c8fa52280ae74bbc23dce747708f4af Mon Sep 17 00:00:00 2001
+From 754249937d4ea60207bd85d172240840caa8fa2c Mon Sep 17 00:00:00 2001
From: Prabindh Sundareson <prabu@ti.com>
Date: Wed, 3 Mar 2010 15:45:35 +0100
Subject: [PATCH 33/45] Switch SGX clocks to 200MHz on DM37xx/OMAP36xx
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0034-modedb.c-add-proper-720p60-mode.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0034-modedb.c-add-proper-720p60-mode.patch
index d2298e0b3b..e7d4b25cab 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0034-modedb.c-add-proper-720p60-mode.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0034-modedb.c-add-proper-720p60-mode.patch
@@ -1,4 +1,4 @@
-From 2f4193b92096394cfd56e3757c8d6ca8e13d5c4d Mon Sep 17 00:00:00 2001
+From 48fe0d059d9bd5a8486309db26c7780fe3044626 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Mon, 8 Mar 2010 14:38:31 +0100
Subject: [PATCH 34/45] modedb.c: add proper 720p60 mode
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0035-RTC-add-support-for-backup-battery-recharge.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0035-RTC-add-support-for-backup-battery-recharge.patch
index 0f76d7aeed..6daabafa97 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0035-RTC-add-support-for-backup-battery-recharge.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0035-RTC-add-support-for-backup-battery-recharge.patch
@@ -1,4 +1,4 @@
-From 237492efd365a0f69d41d818fc368f5621aa8f3b Mon Sep 17 00:00:00 2001
+From eade32775fc8fc3c25c9bdace1828fe649a31e0a Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Thu, 4 Feb 2010 12:26:22 -0800
Subject: [PATCH 35/45] RTC: add support for backup battery recharge
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0036-ARM-Add-prompt-for-CONFIG_ALIGNMENT_TRAP.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0036-ARM-Add-prompt-for-CONFIG_ALIGNMENT_TRAP.patch
index 9e32d62d12..2505f42870 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0036-ARM-Add-prompt-for-CONFIG_ALIGNMENT_TRAP.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0036-ARM-Add-prompt-for-CONFIG_ALIGNMENT_TRAP.patch
@@ -1,4 +1,4 @@
-From aa2753fcce815b4a86be5c95238cf029a948e5ff Mon Sep 17 00:00:00 2001
+From f4902a8ee1bbc739a60dcd970705c5665e98691f Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Mon, 13 Oct 2008 20:32:16 +0100
Subject: [PATCH 36/45] ARM: Add prompt for CONFIG_ALIGNMENT_TRAP
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0037-ARM-Print-warning-on-alignment-trap-in-kernel-mode.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0037-ARM-Print-warning-on-alignment-trap-in-kernel-mode.patch
index 5fb8b0dc1e..9594edd217 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0037-ARM-Print-warning-on-alignment-trap-in-kernel-mode.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0037-ARM-Print-warning-on-alignment-trap-in-kernel-mode.patch
@@ -1,4 +1,4 @@
-From a265396d38d93b371dbba020fb64aee42b4d4905 Mon Sep 17 00:00:00 2001
+From 310ec494b3c860e657290648821dbc98da9fff90 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 28 Mar 2009 13:21:55 +0000
Subject: [PATCH 37/45] ARM: Print warning on alignment trap in kernel mode
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0038-ARM-Expose-some-CPU-control-registers-via-sysfs.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0038-ARM-Expose-some-CPU-control-registers-via-sysfs.patch
index 0dc8ff6508..0b19cb709c 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0038-ARM-Expose-some-CPU-control-registers-via-sysfs.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0038-ARM-Expose-some-CPU-control-registers-via-sysfs.patch
@@ -1,4 +1,4 @@
-From b2792916bb10bdd3093bf88ca62064a3b10ad877 Mon Sep 17 00:00:00 2001
+From 9eeb533964f73b661d23f7b145b96aa5d247e950 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Tue, 10 Nov 2009 00:39:21 +0000
Subject: [PATCH 38/45] ARM: Expose some CPU control registers via sysfs
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0039-ARM-Add-option-to-allow-userspace-PLE-access.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0039-ARM-Add-option-to-allow-userspace-PLE-access.patch
index fb6e86fde3..f72c477f60 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0039-ARM-Add-option-to-allow-userspace-PLE-access.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0039-ARM-Add-option-to-allow-userspace-PLE-access.patch
@@ -1,4 +1,4 @@
-From f9ab0732a5302bd52026f92430c91b253aa4111b Mon Sep 17 00:00:00 2001
+From 2f716593e3f11859bf98c997183c47587c2dba76 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Tue, 10 Nov 2009 00:41:54 +0000
Subject: [PATCH 39/45] ARM: Add option to allow userspace PLE access
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0040-ARM-Add-option-to-allow-userspace-access-to-performa.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0040-ARM-Add-option-to-allow-userspace-access-to-performa.patch
index bcd9c9d24e..5cecd3fa1e 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0040-ARM-Add-option-to-allow-userspace-access-to-performa.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0040-ARM-Add-option-to-allow-userspace-access-to-performa.patch
@@ -1,4 +1,4 @@
-From 6efdc547be5f685b4f29b05eba73cb56441fd898 Mon Sep 17 00:00:00 2001
+From dd1e35157bfd32303aaf87b1ec3f85d8dd1c0014 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Tue, 10 Nov 2009 00:52:56 +0000
Subject: [PATCH 40/45] ARM: Add option to allow userspace access to performance counters
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0041-ARM-Expose-some-PMON-registers-through-sysfs.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0041-ARM-Expose-some-PMON-registers-through-sysfs.patch
index 3ceac2fe82..c5ee454c56 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0041-ARM-Expose-some-PMON-registers-through-sysfs.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0041-ARM-Expose-some-PMON-registers-through-sysfs.patch
@@ -1,4 +1,4 @@
-From 51643be36a5b45636cd7208a81a09638d7913604 Mon Sep 17 00:00:00 2001
+From 13fdb12b3744ca0eaf00d5339919b17ce933c6d5 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 28 Mar 2009 13:05:02 +0000
Subject: [PATCH 41/45] ARM: Expose some PMON registers through sysfs
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0042-musb-allow-host-io-without-gadget-module.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0042-musb-allow-host-io-without-gadget-module.patch
index 7a066d4237..65c12c8eef 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0042-musb-allow-host-io-without-gadget-module.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0042-musb-allow-host-io-without-gadget-module.patch
@@ -1,4 +1,4 @@
-From 38d07e3ffe848680df123f7422ec4b150bbc8f68 Mon Sep 17 00:00:00 2001
+From 97283f52ea7fbb9b611a65d031c997e4ae44d465 Mon Sep 17 00:00:00 2001
From: Ajay Kumar Gupta <ajay.gupta@ti.com>
Date: Wed, 14 Apr 2010 16:08:37 +0530
Subject: [PATCH 42/45] musb: allow host io without gadget module
@@ -10,7 +10,7 @@ Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
2 files changed, 9 insertions(+), 31 deletions(-)
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
-index 98874c5..a448fa6 100644
+index 71ec7e8..9988553 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2101,10 +2101,12 @@ bad_config:
@@ -42,7 +42,7 @@ index 98874c5..a448fa6 100644
musb->xceiv->default_a = 0;
musb->xceiv->state = OTG_STATE_B_IDLE;
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
-index fd842af..b9ef9f3 100644
+index 454f6db..d0d1cee 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1768,24 +1768,6 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0043-MTD-silence-ecc-errors-on-mtdblock0.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0043-MTD-silence-ecc-errors-on-mtdblock0.patch
index 6f210bee5c..b80e3d62dc 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0043-MTD-silence-ecc-errors-on-mtdblock0.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0043-MTD-silence-ecc-errors-on-mtdblock0.patch
@@ -1,4 +1,4 @@
-From 089d3a51f0467d68c42b2df88a6f9a0488aada47 Mon Sep 17 00:00:00 2001
+From 2379628bcd6c08e472020c78019ce8ea3fce3027 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Mon, 26 Apr 2010 11:17:26 -0700
Subject: [PATCH 43/45] MTD: silence ecc errors on mtdblock0
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0044-ARM-OMAP-beagle-every-known-beagle-except-revB-uses-.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0044-ARM-OMAP-beagle-every-known-beagle-except-revB-uses-.patch
index a558fe3ce9..5656c3562e 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0044-ARM-OMAP-beagle-every-known-beagle-except-revB-uses-.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0044-ARM-OMAP-beagle-every-known-beagle-except-revB-uses-.patch
@@ -1,4 +1,4 @@
-From 2db9c35d01af6f4b3e44fac3466b5d6b62e52232 Mon Sep 17 00:00:00 2001
+From 71886bfebaf13c74a55f11264096286a554e5a3d Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Thu, 13 May 2010 21:43:08 +0200
Subject: [PATCH 44/45] ARM: OMAP: beagle: every known beagle (except revB) uses 2 chipselects so don't use NULL for the second chipselect timings
@@ -8,7 +8,7 @@ Subject: [PATCH 44/45] ARM: OMAP: beagle: every known beagle (except revB) uses
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index c4ebaab..4aa91cb 100644
+index dd830b1..078e026 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -614,7 +614,7 @@ static void __init omap3_beagle_init_irq(void)
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch
index 0278c4e68e..2a48a301bf 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/0045-ARM-OMAP-beagle-add-support-for-beagleFPGA-expansion.patch
@@ -1,4 +1,4 @@
-From 46df6bfeaff6f64bfae3fd9ac930bd6c768a352f Mon Sep 17 00:00:00 2001
+From 1ebb6f864a831fc8efebe4a7a9f65d07fa31466a Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Sat, 15 May 2010 21:47:32 +0200
Subject: [PATCH 45/45] ARM: OMAP: beagle: add support for beagleFPGA expansionboard: http://members.cox.net/ebrombaugh1/embedded/beagle/beagle_fpga.html
@@ -8,7 +8,7 @@ Subject: [PATCH 45/45] ARM: OMAP: beagle: add support for beagleFPGA expansionbo
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 4aa91cb..93b9e5f 100644
+index 078e026..b313350 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -24,6 +24,7 @@
@@ -52,7 +52,7 @@ index 4aa91cb..93b9e5f 100644
static void __init omap3_beagle_init_irq(void)
{
if (cpu_is_omap3630())
-@@ -774,6 +794,12 @@ static void __init omap3_beagle_init(void)
+@@ -769,6 +789,12 @@ static void __init omap3_beagle_init(void)
gpio_export(162, 1);
}
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/beagleboard/defconfig b/recipes-bsp/linux/linux-omap-psp-2.6.32/beagleboard/defconfig
index eff98b4ac3..2abbd1a7cb 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/beagleboard/defconfig
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/beagleboard/defconfig
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.32
-# Wed Jul 21 12:01:38 2010
+# Sun May 1 17:33:44 2011
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
@@ -85,7 +85,7 @@ CONFIG_KALLSYMS=y
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
-# CONFIG_ELF_CORE is not set
+CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
@@ -269,6 +269,7 @@ CONFIG_MACH_OMAP3_BEAGLE=y
# CONFIG_MACH_OVERO is not set
# CONFIG_MACH_OMAP3EVM is not set
# CONFIG_MACH_OMAP3517EVM is not set
+# CONFIG_MACH_CRANEBOARD is not set
# CONFIG_MACH_OMAP3_PANDORA is not set
# CONFIG_MACH_OMAP3_TOUCHBOOK is not set
# CONFIG_MACH_OMAP_3430SDP is not set
@@ -380,9 +381,9 @@ CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_DEBUG=y
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_STAT_DETAILS=y
-# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
-CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
@@ -390,7 +391,9 @@ CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
-# CONFIG_CPU_IDLE is not set
+CONFIG_CPU_IDLE=y
+CONFIG_CPU_IDLE_GOV_LADDER=y
+CONFIG_CPU_IDLE_GOV_MENU=y
#
# Floating point emulation
@@ -407,6 +410,7 @@ CONFIG_NEON=y
# Userspace binary formats
#
CONFIG_BINFMT_ELF=y
+# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
CONFIG_HAVE_AOUT=y
CONFIG_BINFMT_AOUT=m
CONFIG_BINFMT_MISC=y
@@ -1617,6 +1621,7 @@ CONFIG_MFD_CORE=y
# CONFIG_TPS65010 is not set
CONFIG_TWL4030_CORE=y
CONFIG_TWL4030_POWER=y
+# CONFIG_TPS65910_CORE is not set
CONFIG_TWL4030_CODEC=y
# CONFIG_TWL4030_MADC is not set
# CONFIG_MFD_TMIO is not set
@@ -1791,7 +1796,18 @@ CONFIG_VIDEO_OMAP3=y
CONFIG_VIDEO_OMAP3_ISP=y
CONFIG_VIDEO_OMAP34XX_ISP_PREVIEWER=y
CONFIG_VIDEO_OMAP34XX_ISP_RESIZER=y
-# CONFIG_SOC_CAMERA is not set
+CONFIG_SOC_CAMERA=y
+# CONFIG_SOC_CAMERA_MT9M001 is not set
+# CONFIG_SOC_CAMERA_MT9M111 is not set
+CONFIG_SOC_CAMERA_MT9P031=m
+# CONFIG_SOC_CAMERA_MT9T031 is not set
+# CONFIG_SOC_CAMERA_MT9V022 is not set
+# CONFIG_SOC_CAMERA_RJ54N1 is not set
+# CONFIG_SOC_CAMERA_TW9910 is not set
+# CONFIG_SOC_CAMERA_PLATFORM is not set
+# CONFIG_SOC_CAMERA_OV772X is not set
+# CONFIG_SOC_CAMERA_OV9640 is not set
+# CONFIG_VIDEO_SH_MOBILE_CEU is not set
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS=m
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
@@ -3021,6 +3037,11 @@ CONFIG_CRYPTO_LZO=y
#
CONFIG_CRYPTO_ANSI_CPRNG=m
CONFIG_CRYPTO_HW=y
+
+#
+# OCF Configuration
+#
+# CONFIG_OCF_OCF is not set
CONFIG_BINARY_PRINTF=y
#
@@ -3048,6 +3069,3 @@ CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
CONFIG_NLATTR=y
-CONFIG_ELF_CORE=y
-# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
-
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0001-mt9t111-first-stab-at-merging-sensor-driver-based-on.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0001-mt9t111-first-stab-at-merging-sensor-driver-based-on.patch
index ccd979c329..bd4a7f8871 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0001-mt9t111-first-stab-at-merging-sensor-driver-based-on.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0001-mt9t111-first-stab-at-merging-sensor-driver-based-on.patch
@@ -1,4 +1,4 @@
-From a03a0f8d0c856a152f477efea64e7df1c927c9b1 Mon Sep 17 00:00:00 2001
+From 4e23fe54d7f8ecc1c927d225b1b74e6b00e22997 Mon Sep 17 00:00:00 2001
From: OpenEmbedded User <oe@OE-builder.(none)>
Date: Tue, 9 Feb 2010 17:16:13 +0100
Subject: [PATCH 01/75] mt9t111: first stab at merging sensor driver based on a patch by Leopard Imaging
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0002-mt9t111-Fix-all-checkpatch-errors.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0002-mt9t111-Fix-all-checkpatch-errors.patch
index a44bd48230..4fa44f00df 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0002-mt9t111-Fix-all-checkpatch-errors.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0002-mt9t111-Fix-all-checkpatch-errors.patch
@@ -1,4 +1,4 @@
-From 29157ffef7f3813c1ec23f9d11eb485242d53454 Mon Sep 17 00:00:00 2001
+From 5609c8fe642a0517bd151ad477fcd05d0abc7dc4 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 11 Jun 2010 13:51:49 -0500
Subject: [PATCH 02/75] mt9t111: Fix all checkpatch errors
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0003-mt9t111-Pass-v4l2_int_device-data.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0003-mt9t111-Pass-v4l2_int_device-data.patch
index a54aeb7000..0c6b90aa7c 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0003-mt9t111-Pass-v4l2_int_device-data.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0003-mt9t111-Pass-v4l2_int_device-data.patch
@@ -1,4 +1,4 @@
-From e6af1e25ce53f1011fe6a1920cc9877ae51d2e95 Mon Sep 17 00:00:00 2001
+From bb40914cf9e313d70385e647f956a55df15e717f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 11 Jun 2010 16:17:56 -0500
Subject: [PATCH 03/75] mt9t111: Pass v4l2_int_device data
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0004-omap3beagle-Add-camera-support.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0004-omap3beagle-Add-camera-support.patch
index 1f28b22433..511bd93c37 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0004-omap3beagle-Add-camera-support.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0004-omap3beagle-Add-camera-support.patch
@@ -1,4 +1,4 @@
-From e91589e4c2736495be6f1252599d5115b33ac8c8 Mon Sep 17 00:00:00 2001
+From 8b7b00860ac8c558c7156ff676655942027f7f53 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 11 Jun 2010 16:15:58 -0500
Subject: [PATCH 04/75] omap3beagle: Add camera support
@@ -17,7 +17,7 @@ Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
create mode 100644 arch/arm/mach-omap2/board-omap3beagle-camera.h
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
-index fa01859..4d9dcdd 100644
+index 9042317..a49d436 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -87,7 +87,8 @@ obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o \
@@ -312,7 +312,7 @@ index 0000000..1026aeb
+
+#endif /* __BOARD_OMAP3BEAGLE_LMB_H_ */
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 93b9e5f..31de2f9 100644
+index b313350..d6b69a6 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -712,6 +712,31 @@ static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = {
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0005-TEMP-omap3beagle-camera-Add-defconfig.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0005-TEMP-omap3beagle-camera-Add-defconfig.patch
index 17f8f589f9..b14321ba8e 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0005-TEMP-omap3beagle-camera-Add-defconfig.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0005-TEMP-omap3beagle-camera-Add-defconfig.patch
@@ -1,4 +1,4 @@
-From 1f6871f7ea78c182ebc1ac4b743485b1d48f2882 Mon Sep 17 00:00:00 2001
+From 754e3fe541b0784ed84282b95268fbb9c68d65c5 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 11 Jun 2010 16:18:30 -0500
Subject: [PATCH 05/75] TEMP: omap3beagle: camera: Add defconfig
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0006-omap3beagle-camera-Add-support-for-regulators.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0006-omap3beagle-camera-Add-support-for-regulators.patch
index 3a44521606..1af46198f3 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0006-omap3beagle-camera-Add-support-for-regulators.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0006-omap3beagle-camera-Add-support-for-regulators.patch
@@ -1,4 +1,4 @@
-From 0f967d630fb4b3e55f202b91cbabbd631107923d Mon Sep 17 00:00:00 2001
+From a8bad5bfa652d2e35575f864da6192d41c85c818 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 11 Jun 2010 16:50:39 -0500
Subject: [PATCH 06/75] omap3beagle: camera: Add support for regulators
@@ -156,7 +156,7 @@ index e93437f..af8581a 100644
+}
arch_initcall(omap3beaglelmb_init);
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 31de2f9..448ab23 100644
+index d6b69a6..aa16acd 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -403,6 +403,56 @@ static struct twl4030_gpio_platform_data beagle_gpio_data = {
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0007-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0007-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch
index 232835d9dc..76140eb8e2 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0007-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0007-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch
@@ -1,4 +1,4 @@
-From 4b111d4e4f4050db9fcca746f9b8a893d3d60f98 Mon Sep 17 00:00:00 2001
+From 297b25089d0a06c89101e4f6a3189419be19369f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 11 Jun 2010 16:52:25 -0500
Subject: [PATCH 07/75] TEMP: omap3beagle: cam: Enable OMAP_MUX
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0008-omap3beagle-camera-Fix-null-pointer-dereference.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0008-omap3beagle-camera-Fix-null-pointer-dereference.patch
index 2232f94e51..ecc83965c6 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0008-omap3beagle-camera-Fix-null-pointer-dereference.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0008-omap3beagle-camera-Fix-null-pointer-dereference.patch
@@ -1,4 +1,4 @@
-From e5dc69cd15b96c2ffc5807a4127a94a32c9b4242 Mon Sep 17 00:00:00 2001
+From c46eeb468f9bb69ca4c82abd1ff07e0f35aaa50f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 11 Jun 2010 17:53:50 -0500
Subject: [PATCH 08/75] omap3beagle: camera: Fix null pointer dereference
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0009-Revert-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0009-Revert-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch
index 4bdf46690b..cfcd2360f5 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0009-Revert-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0009-Revert-TEMP-omap3beagle-cam-Enable-OMAP_MUX.patch
@@ -1,4 +1,4 @@
-From 0c7579c682c3eb3dc5190e1b28743be0b33571e3 Mon Sep 17 00:00:00 2001
+From 4dc4c88bdb1f4be3de42f1cf5e8d5d62b6a2a04e Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Wed, 16 Jun 2010 03:23:57 +0300
Subject: [PATCH 09/75] Revert "TEMP: omap3beagle: cam: Enable OMAP_MUX"
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0010-omap3beagle-camera-Change-arch-late_initcall.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0010-omap3beagle-camera-Change-arch-late_initcall.patch
index 9854403d12..c9f2340a08 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0010-omap3beagle-camera-Change-arch-late_initcall.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0010-omap3beagle-camera-Change-arch-late_initcall.patch
@@ -1,4 +1,4 @@
-From d14c2924e8bb7d9a864dfeb0aca37ef9fc913f7d Mon Sep 17 00:00:00 2001
+From e998edf3c99b4f8a16519a2dc968b1841a274b7f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Wed, 16 Jun 2010 04:28:06 +0300
Subject: [PATCH 10/75] omap3beagle: camera: Change arch -> late_initcall
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0011-omap3beagle-camera-Move-i2c-registration-to-the-main.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0011-omap3beagle-camera-Move-i2c-registration-to-the-main.patch
index c61ad08ef0..15e647e5e1 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0011-omap3beagle-camera-Move-i2c-registration-to-the-main.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0011-omap3beagle-camera-Move-i2c-registration-to-the-main.patch
@@ -1,4 +1,4 @@
-From 527c026c03e34471e34a731322422eacbb30fb35 Mon Sep 17 00:00:00 2001
+From 17c85e1bf42b03f4e764280b8a626853506517e6 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Wed, 16 Jun 2010 04:58:46 +0300
Subject: [PATCH 11/75] omap3beagle: camera: Move i2c registration to the main board
@@ -73,7 +73,7 @@ index 55a113c..1652f15 100644
printk(KERN_INFO MODULE_NAME ": Driver registration complete \n");
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 448ab23..97ccf04 100644
+index aa16acd..757d430 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -71,6 +71,11 @@ static struct omap_opp * _omap35x_l3_rate_table = NULL;
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0012-ARM-OMAP3-make-camera-code-build-if-MT9T111-is-built.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0012-ARM-OMAP3-make-camera-code-build-if-MT9T111-is-built.patch
index e83b078511..7edb156386 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0012-ARM-OMAP3-make-camera-code-build-if-MT9T111-is-built.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0012-ARM-OMAP3-make-camera-code-build-if-MT9T111-is-built.patch
@@ -1,4 +1,4 @@
-From 860ff4be70242f2d2964e0d431d09231cbf6bfde Mon Sep 17 00:00:00 2001
+From a36ff286ba2355488bd093f001a722d888cf9a8b Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Wed, 16 Jun 2010 09:45:46 +0200
Subject: [PATCH 12/75] ARM: OMAP3: make camera code build if MT9T111 is built as module or disabled
@@ -8,7 +8,7 @@ Subject: [PATCH 12/75] ARM: OMAP3: make camera code build if MT9T111 is built as
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 97ccf04..3d4b0bc 100644
+index 757d430..1e9a868 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -71,7 +71,7 @@ static struct omap_opp * _omap35x_l3_rate_table = NULL;
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0013-DEBUG-omap3beagle-camera-Force-mode0-in-cam_xclka.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0013-DEBUG-omap3beagle-camera-Force-mode0-in-cam_xclka.patch
index f2d6a256ec..fceb5ed46a 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0013-DEBUG-omap3beagle-camera-Force-mode0-in-cam_xclka.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0013-DEBUG-omap3beagle-camera-Force-mode0-in-cam_xclka.patch
@@ -1,4 +1,4 @@
-From 1326478d7bdb80f9d7d791e54eeead48ece93bff Mon Sep 17 00:00:00 2001
+From 7c09434499a8daa650b934a62d3f651f868e0e70 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Wed, 23 Jun 2010 15:03:24 -0500
Subject: [PATCH 13/75] DEBUG: omap3beagle: camera: Force mode0 in cam_xclka
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0014-OMAP3-CLOCK-Add-capability-to-change-rate-of-dpll4_m.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0014-OMAP3-CLOCK-Add-capability-to-change-rate-of-dpll4_m.patch
index c396856419..0b4df8846a 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0014-OMAP3-CLOCK-Add-capability-to-change-rate-of-dpll4_m.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0014-OMAP3-CLOCK-Add-capability-to-change-rate-of-dpll4_m.patch
@@ -1,4 +1,4 @@
-From 484186abcf6d44cc690c73d68148edde8b0b365b Mon Sep 17 00:00:00 2001
+From 2841aa647058815680fe3ef969e7fda5e821016f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 4 Feb 2010 18:12:37 -0600
Subject: [PATCH 14/75] OMAP3: CLOCK: Add capability to change rate of dpll4_m5_ck_3630
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0015-Revert-DEBUG-omap3beagle-camera-Force-mode0-in-cam_x.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0015-Revert-DEBUG-omap3beagle-camera-Force-mode0-in-cam_x.patch
index a6a42a7379..090043b948 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0015-Revert-DEBUG-omap3beagle-camera-Force-mode0-in-cam_x.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0015-Revert-DEBUG-omap3beagle-camera-Force-mode0-in-cam_x.patch
@@ -1,4 +1,4 @@
-From 327cb4ef7120d00bcc6a725375f2eb6aa02de899 Mon Sep 17 00:00:00 2001
+From 1ae58f6d2ec41a1b7d0cdeca4de4b9d9760195bf Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 24 Jun 2010 14:27:39 -0500
Subject: [PATCH 15/75] Revert "DEBUG: omap3beagle: camera: Force mode0 in cam_xclka"
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0016-omap3beagle-camera-Fix-wrong-XCLKA-selection.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0016-omap3beagle-camera-Fix-wrong-XCLKA-selection.patch
index f56227316c..68dd1b5030 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0016-omap3beagle-camera-Fix-wrong-XCLKA-selection.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0016-omap3beagle-camera-Fix-wrong-XCLKA-selection.patch
@@ -1,4 +1,4 @@
-From eb9738897009bea572be12bfb812c9a5ad8ef293 Mon Sep 17 00:00:00 2001
+From 00bfc925651aa2c35a1726f15c028ef106f350ab Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 24 Jun 2010 17:31:49 -0500
Subject: [PATCH 16/75] omap3beagle: camera: Fix wrong XCLKA selection
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0017-omap3isp-set-CAM_MCLK-to-172.8-MHz-allows-exact-9.6-.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0017-omap3isp-set-CAM_MCLK-to-172.8-MHz-allows-exact-9.6-.patch
index 058217278a..78f7296ae7 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0017-omap3isp-set-CAM_MCLK-to-172.8-MHz-allows-exact-9.6-.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0017-omap3isp-set-CAM_MCLK-to-172.8-MHz-allows-exact-9.6-.patch
@@ -1,4 +1,4 @@
-From 26b873e74231529962132d9d80c8921b584f6e84 Mon Sep 17 00:00:00 2001
+From fc6044176be3518fee98430ebe36cc144d6feed2 Mon Sep 17 00:00:00 2001
From: Tuukka Toivonen <tuukka.o.toivonen@nokia.com>
Date: Thu, 2 Jul 2009 16:17:55 +0200
Subject: [PATCH 17/75] omap3isp: set CAM_MCLK to 172.8 MHz, allows exact 9.6 MHz for camera xclka/b
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0018-Fix-Moved-MCLK-setting-to-the-board-file.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0018-Fix-Moved-MCLK-setting-to-the-board-file.patch
index 978ae22633..a47ee196fa 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0018-Fix-Moved-MCLK-setting-to-the-board-file.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0018-Fix-Moved-MCLK-setting-to-the-board-file.patch
@@ -1,4 +1,4 @@
-From 1156c4406ff37b425c596804624ad6014006fcc1 Mon Sep 17 00:00:00 2001
+From 6e9a8ed420020b5692b511b3e8a7c2c1325e1ca2 Mon Sep 17 00:00:00 2001
From: Penda, Naveen <pnaveen@ti.com>
Date: Thu, 22 Oct 2009 06:07:01 +0530
Subject: [PATCH 18/75] Fix: Moved MCLK setting to the board file
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0019-omap3isp-core-Do-smarter-MCLK-setting.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0019-omap3isp-core-Do-smarter-MCLK-setting.patch
index 8a16d66c99..53fe6219cb 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0019-omap3isp-core-Do-smarter-MCLK-setting.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0019-omap3isp-core-Do-smarter-MCLK-setting.patch
@@ -1,4 +1,4 @@
-From 3da817ad292e1414b175484cf384f1fcca351493 Mon Sep 17 00:00:00 2001
+From 97761e2bdf286662e3c96f5a24fe568cac98fc9b Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Wed, 25 Nov 2009 12:30:46 -0600
Subject: [PATCH 19/75] omap3isp: core: Do smarter MCLK setting
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0020-omap3beagle-camera-set-mclk-for-mt9t111.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0020-omap3beagle-camera-set-mclk-for-mt9t111.patch
index 6beeac88cb..97423f9404 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0020-omap3beagle-camera-set-mclk-for-mt9t111.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0020-omap3beagle-camera-set-mclk-for-mt9t111.patch
@@ -1,4 +1,4 @@
-From 434ac18f2ac9969570dd9347f9933f4ed5147749 Mon Sep 17 00:00:00 2001
+From b744cbb89e3dd00a3f12d349ec0be604dffb5776 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 24 Jun 2010 16:34:13 -0500
Subject: [PATCH 20/75] omap3beagle: camera: set mclk for mt9t111
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0021-mt9t111-Fix-max-supported-xclk.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0021-mt9t111-Fix-max-supported-xclk.patch
index 04ae8e5061..731f20e7dc 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0021-mt9t111-Fix-max-supported-xclk.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0021-mt9t111-Fix-max-supported-xclk.patch
@@ -1,4 +1,4 @@
-From f32acfd90df92c93328c093c2414f6a11b98ce57 Mon Sep 17 00:00:00 2001
+From 3bca76ae1008ba2b2788214a59fd7813c69f9254 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 24 Jun 2010 17:43:23 -0500
Subject: [PATCH 21/75] mt9t111: Fix max supported xclk
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0022-omap3beagle-camera-Clarify-regulators-names.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0022-omap3beagle-camera-Clarify-regulators-names.patch
index 056295c031..8dcb76bb79 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0022-omap3beagle-camera-Clarify-regulators-names.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0022-omap3beagle-camera-Clarify-regulators-names.patch
@@ -1,4 +1,4 @@
-From b5058c1ca4af6076dff7e1f592f871030ba31a95 Mon Sep 17 00:00:00 2001
+From db7e3a7af04196e80fe15e2a651440575f9313af Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 24 Jun 2010 17:53:55 -0500
Subject: [PATCH 22/75] omap3beagle: camera: Clarify regulators names
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0023-omap3beagle-camera-Fix-powerup-sequence.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0023-omap3beagle-camera-Fix-powerup-sequence.patch
index 085c80c00e..052b91528e 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0023-omap3beagle-camera-Fix-powerup-sequence.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0023-omap3beagle-camera-Fix-powerup-sequence.patch
@@ -1,4 +1,4 @@
-From 294459d9500c75256cff282f441b6cf68077a3e9 Mon Sep 17 00:00:00 2001
+From e4f2c3641ccae2cb1614c8fda5ce307170b20921 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 24 Jun 2010 18:21:52 -0500
Subject: [PATCH 23/75] omap3beagle: camera: Fix powerup sequence
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0024-omap3beagle-camera-Change-vaux4-to-1.8v.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0024-omap3beagle-camera-Change-vaux4-to-1.8v.patch
index 58975458e9..a0a2e91b29 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0024-omap3beagle-camera-Change-vaux4-to-1.8v.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0024-omap3beagle-camera-Change-vaux4-to-1.8v.patch
@@ -1,4 +1,4 @@
-From 967227a235ddafbc5a5391093e95a12972e93e9d Mon Sep 17 00:00:00 2001
+From 9f31f599f847c7eab995d22a683c8b32aaa5be7f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 25 Jun 2010 11:24:07 -0500
Subject: [PATCH 24/75] omap3beagle: camera: Change vaux4 to 1.8v
@@ -13,7 +13,7 @@ Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 3d4b0bc..09e8459 100644
+index 1e9a868..af9b818 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -446,8 +446,8 @@ static struct regulator_init_data beagle_vaux3 = {
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0025-omap3beagle-camera-Rename-regulators-to-match-actual.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0025-omap3beagle-camera-Rename-regulators-to-match-actual.patch
index 0f930f5672..c32c4405c2 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0025-omap3beagle-camera-Rename-regulators-to-match-actual.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0025-omap3beagle-camera-Rename-regulators-to-match-actual.patch
@@ -1,4 +1,4 @@
-From f5bc21e02cfc66734591104ec1b58556dccfed70 Mon Sep 17 00:00:00 2001
+From 784407ada9241d907cf08145885410351a7eafc4 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 25 Jun 2010 12:03:59 -0500
Subject: [PATCH 25/75] omap3beagle: camera: Rename regulators to match actual voltage levels
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0026-omap3beagle-camera-Complement-remainig-sensor-hw-con.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0026-omap3beagle-camera-Complement-remainig-sensor-hw-con.patch
index b4357a5c4a..854d197901 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0026-omap3beagle-camera-Complement-remainig-sensor-hw-con.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0026-omap3beagle-camera-Complement-remainig-sensor-hw-con.patch
@@ -1,4 +1,4 @@
-From 871c9ac8687787ff29c5445325acf1ca388b9563 Mon Sep 17 00:00:00 2001
+From e14b36353ea3f3d55192cf986310c275ed8cfcc9 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 25 Jun 2010 12:04:48 -0500
Subject: [PATCH 26/75] omap3beagle: camera: Complement remainig sensor hw config settings
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0027-mt9t111-Fix-detect-function-retval-and-cleanup-print.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0027-mt9t111-Fix-detect-function-retval-and-cleanup-print.patch
index 537628a736..4ca56e1d2f 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0027-mt9t111-Fix-detect-function-retval-and-cleanup-print.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0027-mt9t111-Fix-detect-function-retval-and-cleanup-print.patch
@@ -1,4 +1,4 @@
-From a5693b7d9b22036323edf1e4200e6e59f67e8f9d Mon Sep 17 00:00:00 2001
+From db54f40408b0907a6cf314232bbf2b9f12ac0d9d Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 25 Jun 2010 13:43:54 -0500
Subject: [PATCH 27/75] mt9t111: Fix detect function retval and cleanup prints
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch
index 6e77bfda99..c9dda1a9fd 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch
@@ -1,4 +1,4 @@
-From 7417633c6dbf657cf3778800d59e94a9b7bf6942 Mon Sep 17 00:00:00 2001
+From 9d152df885cb6f6874259d93df558e649f62774f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 25 Jun 2010 16:01:00 -0500
Subject: [PATCH 28/75] omap3beagle: camera: Set padconf settings in cam init
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch
index 4b25b5986a..d642d6cb50 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch
@@ -1,4 +1,4 @@
-From 6cce810371e763a367b69a38e53635657804694c Mon Sep 17 00:00:00 2001
+From 7a8fe70470bd026b249f47c0aa37578a97fb2bb3 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Sun, 27 Jun 2010 16:11:39 +0200
Subject: [PATCH 29/75] omap3beagle: camera: only register camera driver for 36xx based SoCs
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch
index c2236964ea..11abb8b4ec 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch
@@ -1,4 +1,4 @@
-From 05232a5ba68cab14877a4032cc7995c15254195d Mon Sep 17 00:00:00 2001
+From b310c5ad504443f0d125ca92106f497e14acd8bd Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 25 Jun 2010 16:01:47 -0500
Subject: [PATCH 30/75] WIP: mt9t111: Work in progress for camera enablement
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0031-BeagleXM-Cam-Add-support-for-MT9V113-VGA-Sensor.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0031-BeagleXM-Cam-Add-support-for-MT9V113-VGA-Sensor.patch
index 1c19b770b9..f8b4af9d0d 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0031-BeagleXM-Cam-Add-support-for-MT9V113-VGA-Sensor.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0031-BeagleXM-Cam-Add-support-for-MT9V113-VGA-Sensor.patch
@@ -1,4 +1,4 @@
-From 4080bcdb05f5fdb51a16faa011a68205f0cb7482 Mon Sep 17 00:00:00 2001
+From 2355a460abc09be0a8c61360792a59056eb09230 Mon Sep 17 00:00:00 2001
From: Vaibhav Hiremath <hvaibhav@ti.com>
Date: Wed, 7 Jul 2010 11:55:43 +0530
Subject: [PATCH 31/75] BeagleXM:Cam: Add support for MT9V113 VGA Sensor
@@ -327,7 +327,7 @@ index 8faa437..6c06265 100644
}
late_initcall(omap3beaglelmb_init);
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 09e8459..6835c1a 100644
+index af9b818..d4b0b0a 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -71,10 +71,10 @@ static struct omap_opp * _omap35x_l3_rate_table = NULL;
@@ -406,7 +406,7 @@ index 09e8459..6835c1a 100644
.mode = SPI_MODE_1,
},
};
-@@ -835,7 +835,7 @@ static void __init omap3_beagle_init(void)
+@@ -830,7 +830,7 @@ static void __init omap3_beagle_init(void)
/* REVISIT leave DVI powered down until it's needed ... */
gpio_direction_output(170, true);
@@ -415,7 +415,7 @@ index 09e8459..6835c1a 100644
{
printk(KERN_INFO "Beagle expansionboard: initializing enc28j60\n");
omap3beagle_enc28j60_init();
-@@ -843,8 +843,8 @@ static void __init omap3_beagle_init(void)
+@@ -838,8 +838,8 @@ static void __init omap3_beagle_init(void)
mmc[1].gpio_wp = 141;
mmc[1].gpio_cd = 162;
}
@@ -426,7 +426,7 @@ index 09e8459..6835c1a 100644
{
printk(KERN_INFO "Beagle expansionboard: initializing ks_8851\n");
omap3beagle_ks8851_init();
-@@ -885,7 +885,7 @@ static void __init omap3_beagle_init(void)
+@@ -880,7 +880,7 @@ static void __init omap3_beagle_init(void)
}
if(!strcmp(expansionboard_name, "beaglefpga"))
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0032-MT9V113-Fixed-sensor-nitialization-issues.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0032-MT9V113-Fixed-sensor-nitialization-issues.patch
index ffb1e6b3a4..72d9aa6652 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0032-MT9V113-Fixed-sensor-nitialization-issues.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0032-MT9V113-Fixed-sensor-nitialization-issues.patch
@@ -1,4 +1,4 @@
-From b4d9f3d3f45b3f47ec243df170381b0c2d1049e7 Mon Sep 17 00:00:00 2001
+From d35c02203462b5c94c7be1abeba9be2a175646fe Mon Sep 17 00:00:00 2001
From: Vaibhav Hiremath <hvaibhav@ti.com>
Date: Fri, 9 Jul 2010 17:38:09 +0530
Subject: [PATCH 32/75] MT9V113: Fixed sensor nitialization issues
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0033-mt9v113-Fix-wrong-active-widths.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0033-mt9v113-Fix-wrong-active-widths.patch
index c436b9106a..06eec34eaf 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0033-mt9v113-Fix-wrong-active-widths.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0033-mt9v113-Fix-wrong-active-widths.patch
@@ -1,4 +1,4 @@
-From 77361cf426202a92395921c25e77190b8fb0cdd6 Mon Sep 17 00:00:00 2001
+From 54295e317df7f12a7b9e4f5a55f4801717863bb1 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 9 Jul 2010 16:22:38 -0500
Subject: [PATCH 33/75] mt9v113: Fix wrong active widths
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0034-omap3isp-Fix-Wrong-check-on-non-interlaced-sensor-on.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0034-omap3isp-Fix-Wrong-check-on-non-interlaced-sensor-on.patch
index 72af3798be..6bf18244d7 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0034-omap3isp-Fix-Wrong-check-on-non-interlaced-sensor-on.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0034-omap3isp-Fix-Wrong-check-on-non-interlaced-sensor-on.patch
@@ -1,4 +1,4 @@
-From d6e6a76aa9d842ed9f8963ed10fc884cff3af5dd Mon Sep 17 00:00:00 2001
+From 0cd100387c233429ce2b9c8ceb7a36e900785fce Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 9 Jul 2010 16:56:18 -0500
Subject: [PATCH 34/75] omap3isp: Fix Wrong check on non-interlaced sensor on isr
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0035-omap3isp-Fix-bad-YUV_BT-checks-in-datapath_config.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0035-omap3isp-Fix-bad-YUV_BT-checks-in-datapath_config.patch
index bb2a7f14aa..e0be1a8239 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0035-omap3isp-Fix-bad-YUV_BT-checks-in-datapath_config.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0035-omap3isp-Fix-bad-YUV_BT-checks-in-datapath_config.patch
@@ -1,4 +1,4 @@
-From e069619a821aca3569440a4d8ccf3727ebe80ddd Mon Sep 17 00:00:00 2001
+From d9c512d63c23d8f60e897357263bef4668660b13 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Sat, 10 Jul 2010 09:51:16 -0500
Subject: [PATCH 35/75] omap3isp: Fix bad YUV_BT checks in datapath_config
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0036-omap3isp-Set-vd_pol-to-0-by-default-on-all-cases.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0036-omap3isp-Set-vd_pol-to-0-by-default-on-all-cases.patch
index 6a43782c35..f5ceb0d773 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0036-omap3isp-Set-vd_pol-to-0-by-default-on-all-cases.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0036-omap3isp-Set-vd_pol-to-0-by-default-on-all-cases.patch
@@ -1,4 +1,4 @@
-From 2f4a4612cd2fa21468f708a9c981e39a3927611f Mon Sep 17 00:00:00 2001
+From 5f87765bb16091048e67bc56f7ce1ab0694d9186 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Sat, 10 Jul 2010 09:57:40 -0500
Subject: [PATCH 36/75] omap3isp: Set vd_pol to 0 by default on all cases
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0037-omap3isp-ccdc-Set-datalines-to-10-for-YUV_SYNC.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0037-omap3isp-ccdc-Set-datalines-to-10-for-YUV_SYNC.patch
index ebb3686dc4..12e59601bd 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0037-omap3isp-ccdc-Set-datalines-to-10-for-YUV_SYNC.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0037-omap3isp-ccdc-Set-datalines-to-10-for-YUV_SYNC.patch
@@ -1,4 +1,4 @@
-From 67e3840b98c88da4417e386d3e955385a120138e Mon Sep 17 00:00:00 2001
+From d9c257a16e4f4c5c6bff57cbe3b9673d3cf61bfa Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Mon, 12 Jul 2010 14:09:38 -0500
Subject: [PATCH 37/75] omap3isp: ccdc: Set datalines to 10 for YUV_SYNC
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0038-omap3beagle-camera-Fix-parallel-i-f-settings.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0038-omap3beagle-camera-Fix-parallel-i-f-settings.patch
index 456c4d2cda..a95897190b 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0038-omap3beagle-camera-Fix-parallel-i-f-settings.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0038-omap3beagle-camera-Fix-parallel-i-f-settings.patch
@@ -1,4 +1,4 @@
-From efa8018485d29f3545e174dc10af0d01b9197077 Mon Sep 17 00:00:00 2001
+From cd05a2c5c623cc497f0d56b35b29d28a9206a3bd Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Mon, 12 Jul 2010 14:11:44 -0500
Subject: [PATCH 38/75] omap3beagle: camera: Fix parallel i/f settings
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0039-omap3beagle-camera-Clean-up-Remove-unneccessary-code.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0039-omap3beagle-camera-Clean-up-Remove-unneccessary-code.patch
index 0c836dba8b..77b19fad64 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0039-omap3beagle-camera-Clean-up-Remove-unneccessary-code.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0039-omap3beagle-camera-Clean-up-Remove-unneccessary-code.patch
@@ -1,4 +1,4 @@
-From 9f2341ea93de0e76d71c075791cdada7b9ce163b Mon Sep 17 00:00:00 2001
+From 6466bc74ab74cafb6aec47040b3408fc2be3455b Mon Sep 17 00:00:00 2001
From: Vaibhav Hiremath <hvaibhav@ti.com>
Date: Tue, 13 Jul 2010 19:38:51 +0530
Subject: [PATCH 39/75] omap3beagle-camera:Clean up: Remove unneccessary code/printf
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0040-mt9v113-Clean-Up-Remove-unneccessary-code-printf.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0040-mt9v113-Clean-Up-Remove-unneccessary-code-printf.patch
index 9e0361d89b..8012160724 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0040-mt9v113-Clean-Up-Remove-unneccessary-code-printf.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0040-mt9v113-Clean-Up-Remove-unneccessary-code-printf.patch
@@ -1,4 +1,4 @@
-From c0b564c145013ca024787702dc9f43c56016c5ec Mon Sep 17 00:00:00 2001
+From 9c9215eade28a09ac12888e9a02af107955009c5 Mon Sep 17 00:00:00 2001
From: Vaibhav Hiremath <hvaibhav@ti.com>
Date: Tue, 13 Jul 2010 19:39:34 +0530
Subject: [PATCH 40/75] mt9v113:Clean Up: Remove unneccessary code/printf
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0041-MT9V113-Min-Max-clk-input-changed-as-per-the-spec.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0041-MT9V113-Min-Max-clk-input-changed-as-per-the-spec.patch
index a9cac28ba7..bae51993da 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0041-MT9V113-Min-Max-clk-input-changed-as-per-the-spec.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0041-MT9V113-Min-Max-clk-input-changed-as-per-the-spec.patch
@@ -1,4 +1,4 @@
-From b174adfdb2836b01f8306f6112b7a8c36540f7d2 Mon Sep 17 00:00:00 2001
+From f92ea92f012235a17c04021de470b65aeb7fbe29 Mon Sep 17 00:00:00 2001
From: Vaibhav Hiremath <hvaibhav@ti.com>
Date: Tue, 13 Jul 2010 19:40:39 +0530
Subject: [PATCH 41/75] MT9V113: Min, Max clk input changed as per the spec
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0042-omap3beagle-camera-Further-clode-cleanup.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0042-omap3beagle-camera-Further-clode-cleanup.patch
index 19fb41eabc..8855e6d626 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0042-omap3beagle-camera-Further-clode-cleanup.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0042-omap3beagle-camera-Further-clode-cleanup.patch
@@ -1,4 +1,4 @@
-From a23ae536374534ed021479b63ec093d5e58a9186 Mon Sep 17 00:00:00 2001
+From 7f6cbc648dcf2d7805f12e7b56bb2c7b602ca61d Mon Sep 17 00:00:00 2001
From: Vaibhav Hiremath <hvaibhav@ti.com>
Date: Wed, 14 Jul 2010 19:07:06 +0530
Subject: [PATCH 42/75] omap3beagle-camera: Further clode cleanup
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0043-mt9v113-Settings-from-Aptima-used-to-increase-FPS.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0043-mt9v113-Settings-from-Aptima-used-to-increase-FPS.patch
index 262bd30a6f..af7e4d08e6 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0043-mt9v113-Settings-from-Aptima-used-to-increase-FPS.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0043-mt9v113-Settings-from-Aptima-used-to-increase-FPS.patch
@@ -1,4 +1,4 @@
-From 3f7280192c69d6437c5d0e7c46ab2de345b52e5d Mon Sep 17 00:00:00 2001
+From b13a4b53a958c182adf61af6b1ea35826fe97de5 Mon Sep 17 00:00:00 2001
From: Vaibhav Hiremath <hvaibhav@ti.com>
Date: Wed, 14 Jul 2010 19:07:34 +0530
Subject: [PATCH 43/75] mt9v113: Settings from Aptima used to increase FPS
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0044-mt9v113-AE-param-tuned-to-get-28-30FPS.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0044-mt9v113-AE-param-tuned-to-get-28-30FPS.patch
index 24e36fc282..bf8347cef9 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0044-mt9v113-AE-param-tuned-to-get-28-30FPS.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0044-mt9v113-AE-param-tuned-to-get-28-30FPS.patch
@@ -1,4 +1,4 @@
-From f33e1a25ca1d7e8418f076a9aead8fa66341f964 Mon Sep 17 00:00:00 2001
+From 12b4010768d5bf36bdc1100204be1a9de913d4f4 Mon Sep 17 00:00:00 2001
From: Vaibhav Hiremath <hvaibhav@ti.com>
Date: Thu, 15 Jul 2010 13:53:03 +0530
Subject: [PATCH 44/75] mt9v113: AE param tuned to get 28~30FPS
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0045-omap3beagle-camera-Cleanup-of-boardfile.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0045-omap3beagle-camera-Cleanup-of-boardfile.patch
index 6e60351f0f..f4c6ba0244 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0045-omap3beagle-camera-Cleanup-of-boardfile.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0045-omap3beagle-camera-Cleanup-of-boardfile.patch
@@ -1,4 +1,4 @@
-From c442dbd71313f119dce989b0b8d5ebaca9296863 Mon Sep 17 00:00:00 2001
+From 62059bb8a86836a042bf1720a9bc4bdfa301026f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Mon, 12 Jul 2010 15:44:18 -0500
Subject: [PATCH 45/75] omap3beagle: camera: Cleanup of boardfile
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0046-omap3beagle-camera-Cleanup-regulator-usage.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0046-omap3beagle-camera-Cleanup-regulator-usage.patch
index cca32620b4..9f3cbb260d 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0046-omap3beagle-camera-Cleanup-regulator-usage.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0046-omap3beagle-camera-Cleanup-regulator-usage.patch
@@ -1,4 +1,4 @@
-From 240def7eda2939e944ab70726cdecf270865553d Mon Sep 17 00:00:00 2001
+From d3ea23ea580848bb5e0ed423db4d914661cd1d7d Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Mon, 12 Jul 2010 15:53:44 -0500
Subject: [PATCH 46/75] omap3beagle: camera: Cleanup regulator usage
@@ -117,7 +117,7 @@ index befa7d4..c91529d 100644
gpio_free(LEOPARD_RESET_GPIO);
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 6835c1a..a1535ca 100644
+index d4b0b0a..b0da483 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -414,18 +414,14 @@ static struct platform_device beagle_cam_device = {
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0047-omap3beagle-camera-Bring-back-mt9t111-support.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0047-omap3beagle-camera-Bring-back-mt9t111-support.patch
index b058200a81..d861477675 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0047-omap3beagle-camera-Bring-back-mt9t111-support.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0047-omap3beagle-camera-Bring-back-mt9t111-support.patch
@@ -1,4 +1,4 @@
-From 046dac666301c0df22679424169675045c70defd Mon Sep 17 00:00:00 2001
+From e81cdbd3c914965685e213ceef5a14775bfb9397 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Mon, 12 Jul 2010 16:42:41 -0500
Subject: [PATCH 47/75] omap3beagle: camera: Bring back mt9t111 support
@@ -217,7 +217,7 @@ index c91529d..2e49158 100644
{
cam_1v8_reg = regulator_get(&pdev->dev, "cam_1v8");
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index a1535ca..239bd44 100644
+index b0da483..0e7e8b2 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -77,6 +77,12 @@ static struct omap_opp * _omap37x_l3_rate_table = NULL;
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0048-REMOVE-v4l2-Delete-MT9T111-sensor-driver.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0048-REMOVE-v4l2-Delete-MT9T111-sensor-driver.patch
index 6a9919f503..79ea2b5771 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0048-REMOVE-v4l2-Delete-MT9T111-sensor-driver.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0048-REMOVE-v4l2-Delete-MT9T111-sensor-driver.patch
@@ -1,4 +1,4 @@
-From 682012ca5bc9b6e3dc2536736d3eedbad3598d64 Mon Sep 17 00:00:00 2001
+From 59d42cae8d60b7e86013293055f6c989ab578f26 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 00:50:07 -0500
Subject: [PATCH 48/75] REMOVE: v4l2: Delete MT9T111 sensor driver
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0049-V4L-DVB-13670-soc-camera-Add-mt9t112-camera-driver.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0049-V4L-DVB-13670-soc-camera-Add-mt9t112-camera-driver.patch
index 5f34fa13b8..b4ca4a6c1b 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0049-V4L-DVB-13670-soc-camera-Add-mt9t112-camera-driver.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0049-V4L-DVB-13670-soc-camera-Add-mt9t112-camera-driver.patch
@@ -1,4 +1,4 @@
-From fab15f2df5c6ee2dc9fc5256d5c4330e6447dd3b Mon Sep 17 00:00:00 2001
+From 1164e8b10b5237d1cf60c1e9752324b62f30a6bc Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Date: Fri, 11 Dec 2009 11:53:55 -0300
Subject: [PATCH 49/75] V4L/DVB (13670): soc-camera: Add mt9t112 camera driver
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0050-soc-camera-mt9t112-modify-exiting-conditions-from-st.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0050-soc-camera-mt9t112-modify-exiting-conditions-from-st.patch
index 81c74f1417..551717dd5f 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0050-soc-camera-mt9t112-modify-exiting-conditions-from-st.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0050-soc-camera-mt9t112-modify-exiting-conditions-from-st.patch
@@ -1,4 +1,4 @@
-From c3080e6e6ea59efc7f7812951a9972229fcc5078 Mon Sep 17 00:00:00 2001
+From eb14ff193fa8cbe52f47349c0aeca2d91ea5cfd8 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Date: Tue, 2 Feb 2010 13:17:54 +0900
Subject: [PATCH 50/75] soc-camera: mt9t112: modify exiting conditions from standby mode
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0051-mt9t112-Migrate-from-soc_camera-to-v4l2-int-device.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0051-mt9t112-Migrate-from-soc_camera-to-v4l2-int-device.patch
index d2cdbffc26..0c3b7af2b6 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0051-mt9t112-Migrate-from-soc_camera-to-v4l2-int-device.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0051-mt9t112-Migrate-from-soc_camera-to-v4l2-int-device.patch
@@ -1,4 +1,4 @@
-From f4b417bf9b373e042f6cfb921bc67dd18d0a752f Mon Sep 17 00:00:00 2001
+From bd42ce1ffea1be835f54ac61bb7ea4e0cd99e7aa Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 1 Jul 2010 07:26:38 -0500
Subject: [PATCH 51/75] mt9t112: Migrate from soc_camera to v4l2-int-device
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0052-mt9t112-Add-more-info-to-public-header.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0052-mt9t112-Add-more-info-to-public-header.patch
index 22c9c4d4fc..3aeea03a12 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0052-mt9t112-Add-more-info-to-public-header.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0052-mt9t112-Add-more-info-to-public-header.patch
@@ -1,4 +1,4 @@
-From 4e0c0d1ec79c097bb2e580f186a89963b9e35d8c Mon Sep 17 00:00:00 2001
+From d72241c7dc39f0976bcd7d05d43a86935e0deb68 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 1 Jul 2010 07:33:49 -0500
Subject: [PATCH 52/75] mt9t112: Add more info to public header
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0053-mt9t112-Fix-null-pointer-kernel-bug.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0053-mt9t112-Fix-null-pointer-kernel-bug.patch
index b24638f84d..d03795f59a 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0053-mt9t112-Fix-null-pointer-kernel-bug.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0053-mt9t112-Fix-null-pointer-kernel-bug.patch
@@ -1,4 +1,4 @@
-From 8ef0425ef8bc0d228e03666cf7d0af564882fcef Mon Sep 17 00:00:00 2001
+From 0f6b697fb422f8eb8df539f82df49f0f6f976bc3 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 1 Jul 2010 09:12:37 -0500
Subject: [PATCH 53/75] mt9t112: Fix null pointer kernel bug
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0054-DEBUG-omap3beagle-Add-MT9T112-to-defconfig.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0054-DEBUG-omap3beagle-Add-MT9T112-to-defconfig.patch
index ff364bd1c6..e5ae822dbc 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0054-DEBUG-omap3beagle-Add-MT9T112-to-defconfig.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0054-DEBUG-omap3beagle-Add-MT9T112-to-defconfig.patch
@@ -1,4 +1,4 @@
-From b5eb720c7424a1018fd7b76b7bfb3a1e720ab77b Mon Sep 17 00:00:00 2001
+From f66312bff0655778847882a26dfb14a54e9b92ca Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 00:55:43 -0500
Subject: [PATCH 54/75] DEBUG: omap3beagle: Add MT9T112 to defconfig
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0055-omap3beagle-camera-Change-MT9T111-references-to-new-.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0055-omap3beagle-camera-Change-MT9T111-references-to-new-.patch
index 38618cd7e6..1a58dea88e 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0055-omap3beagle-camera-Change-MT9T111-references-to-new-.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0055-omap3beagle-camera-Change-MT9T111-references-to-new-.patch
@@ -1,4 +1,4 @@
-From ecf53d3104b6b73b1b32a9a5b39af2f258d74f8d Mon Sep 17 00:00:00 2001
+From fad06fbbfb3e25683672d41c3f5649500d5eda73 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 15:47:23 -0500
Subject: [PATCH 55/75] omap3beagle: camera: Change MT9T111 references to new MT9T112 driver
@@ -171,7 +171,7 @@ index 2e49158..0b4dff7 100644
static int beagle_cam_probe(struct platform_device *pdev)
{
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index 239bd44..f93616b 100644
+index 0e7e8b2..7c9e40a 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -77,10 +77,10 @@ static struct omap_opp * _omap37x_l3_rate_table = NULL;
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0056-omap34xxcam-Fix-multi-pixel-format-negotiation.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0056-omap34xxcam-Fix-multi-pixel-format-negotiation.patch
index 8040b32f3b..9c041c751a 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0056-omap34xxcam-Fix-multi-pixel-format-negotiation.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0056-omap34xxcam-Fix-multi-pixel-format-negotiation.patch
@@ -1,4 +1,4 @@
-From bfca10fcff055b53728881c4c443f18e1387c722 Mon Sep 17 00:00:00 2001
+From 13238be1e612ab4113413cf21e83307ea9e18f1e Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 1 Jul 2010 13:57:26 -0500
Subject: [PATCH 56/75] omap34xxcam: Fix multi pixel format negotiation
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0057-SQUASH-omap3beagle-camera-Bring-back-mt9t111-support.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0057-SQUASH-omap3beagle-camera-Bring-back-mt9t111-support.patch
index 81614069ad..4ee6758cbe 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0057-SQUASH-omap3beagle-camera-Bring-back-mt9t111-support.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0057-SQUASH-omap3beagle-camera-Bring-back-mt9t111-support.patch
@@ -1,4 +1,4 @@
-From 42caf665931e5f86e514fcf5e011daff395836c2 Mon Sep 17 00:00:00 2001
+From 535b7f5333636f7e42f6bea67ed9f298afe0fe3c Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 17:53:07 -0500
Subject: [PATCH 57/75] SQUASH: omap3beagle: camera: Bring back mt9t111 support
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0058-mt9t112-Do-init_camera-every-powerup.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0058-mt9t112-Do-init_camera-every-powerup.patch
index a0cf68d3a3..66c4e17373 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0058-mt9t112-Do-init_camera-every-powerup.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0058-mt9t112-Do-init_camera-every-powerup.patch
@@ -1,4 +1,4 @@
-From a9afe5db3c54dc9dcc1025d493afe854a6e86914 Mon Sep 17 00:00:00 2001
+From 52bfcc9b6bcb30cf81589c483f1344c568be7300 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 17:53:44 -0500
Subject: [PATCH 58/75] mt9t112: Do init_camera every powerup
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0059-omap3beagle-camera-Switch-flag-for-no-sensor-ISP.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0059-omap3beagle-camera-Switch-flag-for-no-sensor-ISP.patch
index c273035781..9c85674284 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0059-omap3beagle-camera-Switch-flag-for-no-sensor-ISP.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0059-omap3beagle-camera-Switch-flag-for-no-sensor-ISP.patch
@@ -1,4 +1,4 @@
-From 86ecf1214056406f84852a9863b2e0f4cd64c52c Mon Sep 17 00:00:00 2001
+From 1865b5a5f27a7de1e12d52a096e435e5dd177a48 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 18:15:32 -0500
Subject: [PATCH 59/75] omap3beagle: camera: Switch flag for no sensor ISP
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0060-mt9t112-Add-back-3MP-basesize.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0060-mt9t112-Add-back-3MP-basesize.patch
index e7b7403e7f..32b825bfa6 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0060-mt9t112-Add-back-3MP-basesize.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0060-mt9t112-Add-back-3MP-basesize.patch
@@ -1,4 +1,4 @@
-From 022aa1373b5bfb77bc90f9e1abb485e0717f28c2 Mon Sep 17 00:00:00 2001
+From 9cfb19dd4093463361f279276e67d2c61e0f7d5e Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 18:33:00 -0500
Subject: [PATCH 60/75] mt9t112: Add back 3MP basesize
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch
index 6f47dd91ea..af30cb73cd 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch
@@ -1,4 +1,4 @@
-From aabf8386a23795f73722bf74901bd8aa46ebe1ba Mon Sep 17 00:00:00 2001
+From 8da9ec7ae90f238bd9b245bc80a1c6559df61f59 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 23:41:32 -0500
Subject: [PATCH 61/75] mt9t112: Prepare for 24MHz EXTCLK and 30 fps
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0062-omap3beagle-camera-Prepare-24MHz-xclk-for-mt9t112.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0062-omap3beagle-camera-Prepare-24MHz-xclk-for-mt9t112.patch
index 0d5a047cb5..2550430cd5 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0062-omap3beagle-camera-Prepare-24MHz-xclk-for-mt9t112.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0062-omap3beagle-camera-Prepare-24MHz-xclk-for-mt9t112.patch
@@ -1,4 +1,4 @@
-From 00cd18c8b6bd6b7f6c627d2b1284ca8f98f1fda4 Mon Sep 17 00:00:00 2001
+From b00bc4caeb798661983eca4f548f0f69301bfb32 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 23:43:20 -0500
Subject: [PATCH 62/75] omap3beagle: camera: Prepare 24MHz xclk for mt9t112
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0063-mt9t112-Correct-register-settings-for-mt9t111-sensor.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0063-mt9t112-Correct-register-settings-for-mt9t111-sensor.patch
index ad5297fa27..7f5261fb10 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0063-mt9t112-Correct-register-settings-for-mt9t111-sensor.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0063-mt9t112-Correct-register-settings-for-mt9t111-sensor.patch
@@ -1,4 +1,4 @@
-From 898d1ae2cad72e2b74a0a354b323ba91f2cd4a2a Mon Sep 17 00:00:00 2001
+From fa6380a53783b185189c372dd5e9d17f46c5c4d7 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 16 Jul 2010 07:52:06 -0500
Subject: [PATCH 63/75] mt9t112: Correct register settings for mt9t111 sensor
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0064-mt9t112-Remove-smart-size-selection.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0064-mt9t112-Remove-smart-size-selection.patch
index a39eeba1d8..b3506dc28c 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0064-mt9t112-Remove-smart-size-selection.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0064-mt9t112-Remove-smart-size-selection.patch
@@ -1,4 +1,4 @@
-From f6b91f473fe590e80eff6fd16e6fbcc15ce12b9a Mon Sep 17 00:00:00 2001
+From 2c8e7e157de32ebc5c8d60bf642c2f29f607c3d0 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 16 Jul 2010 17:09:10 -0500
Subject: [PATCH 64/75] mt9t112: Remove "smart" size selection
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0065-rtl8192su-remove-bogus-Kconfig-depend-on-PCI-and-add.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0065-rtl8192su-remove-bogus-Kconfig-depend-on-PCI-and-add.patch
index 0ceb1a50bf..72697f74fa 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0065-rtl8192su-remove-bogus-Kconfig-depend-on-PCI-and-add.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0065-rtl8192su-remove-bogus-Kconfig-depend-on-PCI-and-add.patch
@@ -1,4 +1,4 @@
-From 088fc53bfda23acd009213c5ff83f411bf09e307 Mon Sep 17 00:00:00 2001
+From 132469e10e712ff4b386fb78a4c78343f151ebc4 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Sun, 18 Jul 2010 11:25:12 +0200
Subject: [PATCH 65/75] rtl8192su: remove bogus Kconfig depend on PCI and add another product ID
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0066-mt9t112-Add-Context-selection-to-configuration.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0066-mt9t112-Add-Context-selection-to-configuration.patch
index f797f1e4e5..0afb340d85 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0066-mt9t112-Add-Context-selection-to-configuration.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0066-mt9t112-Add-Context-selection-to-configuration.patch
@@ -1,4 +1,4 @@
-From c085125afaa6641b5db8e88f227eb4141ed6d59c Mon Sep 17 00:00:00 2001
+From a1066fd19c56f96201b877b394247db9c41c3c18 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Sun, 18 Jul 2010 01:12:41 -0500
Subject: [PATCH 66/75] mt9t112: Add Context selection to configuration
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0067-mt9t112-Disable-JPEG-in-Context-B.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0067-mt9t112-Disable-JPEG-in-Context-B.patch
index 060764ec4b..954e07611f 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0067-mt9t112-Disable-JPEG-in-Context-B.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0067-mt9t112-Disable-JPEG-in-Context-B.patch
@@ -1,4 +1,4 @@
-From 4fd52aac9743364e805cb3b4d1c9e8cb53a434a5 Mon Sep 17 00:00:00 2001
+From b1196ec5f007cef5cd3342ed3dbf3415bf721bd4 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Sun, 18 Jul 2010 01:45:29 -0500
Subject: [PATCH 67/75] mt9t112: Disable JPEG in Context B
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0068-mt9t112-Make-context-B-stream-unlimited-frames.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0068-mt9t112-Make-context-B-stream-unlimited-frames.patch
index f630d2eabc..6025dc2976 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0068-mt9t112-Make-context-B-stream-unlimited-frames.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0068-mt9t112-Make-context-B-stream-unlimited-frames.patch
@@ -1,4 +1,4 @@
-From c8f30b77094542bca32a3c900e6afc4d9d4d7a74 Mon Sep 17 00:00:00 2001
+From 362f211f85aa5e0f7519fca599428e03b05cb05f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Sun, 18 Jul 2010 01:47:41 -0500
Subject: [PATCH 68/75] mt9t112: Make context B stream unlimited frames
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0069-mt9t112-Fix-pll-p-dividers-abstraction.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0069-mt9t112-Fix-pll-p-dividers-abstraction.patch
index 8b99319046..07c2e20106 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0069-mt9t112-Fix-pll-p-dividers-abstraction.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0069-mt9t112-Fix-pll-p-dividers-abstraction.patch
@@ -1,4 +1,4 @@
-From 9c37d9acd3f7909cb1f4e437e0b5fe31dd6214d6 Mon Sep 17 00:00:00 2001
+From bf70e34844f0a3984d4ca48614fa39896ce5ca5f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Mon, 19 Jul 2010 12:31:47 -0500
Subject: [PATCH 69/75] mt9t112: Fix pll p-dividers abstraction
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0070-mt9t112-Adjust-50-60Hz-flickering-settings.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0070-mt9t112-Adjust-50-60Hz-flickering-settings.patch
index 593b29bb7a..e9d4fe8732 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0070-mt9t112-Adjust-50-60Hz-flickering-settings.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0070-mt9t112-Adjust-50-60Hz-flickering-settings.patch
@@ -1,4 +1,4 @@
-From 3768ad7fb5304b05ee2184ba929a9896a3f8212a Mon Sep 17 00:00:00 2001
+From aa90dfe987d42500ff2306baf66f526509fdfae0 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Mon, 19 Jul 2010 17:30:29 -0500
Subject: [PATCH 70/75] mt9t112: Adjust 50/60Hz flickering settings
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0071-mt9t112-Trigger-autofocus-at-the-end-of-context-swit.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0071-mt9t112-Trigger-autofocus-at-the-end-of-context-swit.patch
index dda88c4d4f..10ba57db72 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0071-mt9t112-Trigger-autofocus-at-the-end-of-context-swit.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0071-mt9t112-Trigger-autofocus-at-the-end-of-context-swit.patch
@@ -1,4 +1,4 @@
-From a807b9f107bdcfbc9ba54ee4e67960f2e9912912 Mon Sep 17 00:00:00 2001
+From 18589703f191cee2568324b475ae479dd7f3b779 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Mon, 19 Jul 2010 17:45:38 -0500
Subject: [PATCH 71/75] mt9t112: Trigger autofocus at the end of context switch
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch
index ab040e14dc..409c08fb35 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch
@@ -1,4 +1,4 @@
-From 4ceb51197a0f0f2ebd9fc9530033f38de289a1cf Mon Sep 17 00:00:00 2001
+From 838aed68f8efa16e9915795ddb968157d40fca6b Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 22 Jul 2010 11:03:33 -0500
Subject: [PATCH 72/75] omap3beagle: camera: Fix dual sensor registration
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0073-mt9v113-Fix-State-variable-handling.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0073-mt9v113-Fix-State-variable-handling.patch
index 42e685ebc1..9bd006e1e0 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0073-mt9v113-Fix-State-variable-handling.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0073-mt9v113-Fix-State-variable-handling.patch
@@ -1,4 +1,4 @@
-From ac6564db6442fe40c974f233750c2fdd20735006 Mon Sep 17 00:00:00 2001
+From e3d5c3eb67e2ef91e08b0fcd26778b8505268a8a Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 22 Jul 2010 13:29:16 -0500
Subject: [PATCH 73/75] mt9v113: Fix State variable handling
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch
index aaab1f7424..24fb458af4 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch
@@ -1,4 +1,4 @@
-From cf2b4381eeb1bb33c60fa48ea7ba27de13bca5ab Mon Sep 17 00:00:00 2001
+From f68eb83d33624b83b4ddd77daf3966de686ffaf0 Mon Sep 17 00:00:00 2001
From: Steve Kipisz <s-kipisz2@ti.com>
Date: Thu, 5 Aug 2010 10:51:11 -0500
Subject: [PATCH 74/75] Move sensor rest to after applying power.
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0075-omap3beagle-Add-camera-bootarg.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0075-omap3beagle-Add-camera-bootarg.patch
index fb1b04923f..066bbb48e0 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0075-omap3beagle-Add-camera-bootarg.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/0075-omap3beagle-Add-camera-bootarg.patch
@@ -1,4 +1,4 @@
-From b23565171bddf4f2e454f7857d52a5a79da00ba7 Mon Sep 17 00:00:00 2001
+From d15c09a8ed5441dd843257b6a4396dd058a2e68f Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 22 Jul 2010 15:38:43 -0500
Subject: [PATCH 75/75] omap3beagle: Add camera bootarg
@@ -15,7 +15,7 @@ Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
1 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
-index f93616b..2677b41 100644
+index 7c9e40a..1e8b77b 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -89,6 +89,7 @@ extern struct mt9t112_platform_data mt9t112_pdata;
@@ -95,7 +95,7 @@ index f93616b..2677b41 100644
static void __init omap3_beagle_init(void)
{
omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
-@@ -915,6 +940,7 @@ static void __init omap3_beagle_map_io(void)
+@@ -910,6 +935,7 @@ static void __init omap3_beagle_map_io(void)
}
early_param("buddy", expansionboard_setup);
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/5m03/0001-mt9p031-import-driver-from-https-github.com-Aptina-B.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/5m03/0001-mt9p031-import-driver-from-https-github.com-Aptina-B.patch
new file mode 100644
index 0000000000..ee728b9d59
--- /dev/null
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/5m03/0001-mt9p031-import-driver-from-https-github.com-Aptina-B.patch
@@ -0,0 +1,1547 @@
+From eefcf5de4689fbd00119d7a7df75244ca6ca1187 Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+Date: Sun, 1 May 2011 16:40:54 +0200
+Subject: [PATCH 1/2] mt9p031: import driver from https://github.com/Aptina/BeagleBoard-xM/tree/master/Angstrom/MT9P031
+
+Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
+---
+ drivers/media/video/Kconfig | 6 +
+ drivers/media/video/Makefile | 1 +
+ drivers/media/video/mt9p031.c | 1445 +++++++++++++++++++++++++++++++++++++++
+ include/media/mt9p031.h | 30 +
+ include/media/v4l2-chip-ident.h | 1 +
+ 5 files changed, 1483 insertions(+), 0 deletions(-)
+ create mode 100644 drivers/media/video/mt9p031.c
+ create mode 100644 include/media/mt9p031.h
+
+diff --git a/drivers/media/video/Kconfig b/drivers/media/video/Kconfig
+index 4c1fb0f..59f1133 100644
+--- a/drivers/media/video/Kconfig
++++ b/drivers/media/video/Kconfig
+@@ -832,6 +832,12 @@ config SOC_CAMERA_MT9M111
+ help
+ This driver supports MT9M111 and MT9M112 cameras from Micron
+
++config SOC_CAMERA_MT9P031
++ tristate "mt9p031 support"
++ depends on SOC_CAMERA && I2C
++ help
++ This driver supports MT9P031 cameras from Micron.
++
+ config SOC_CAMERA_MT9T031
+ tristate "mt9t031 support"
+ depends on SOC_CAMERA && I2C
+diff --git a/drivers/media/video/Makefile b/drivers/media/video/Makefile
+index fb7e46c..f3110e7 100644
+--- a/drivers/media/video/Makefile
++++ b/drivers/media/video/Makefile
+@@ -79,6 +79,7 @@ obj-$(CONFIG_VIDEO_MT9V113) += mt9v113.o
+
+ obj-$(CONFIG_SOC_CAMERA_MT9M001) += mt9m001.o
+ obj-$(CONFIG_SOC_CAMERA_MT9M111) += mt9m111.o
++obj-$(CONFIG_SOC_CAMERA_MT9P031) += mt9p031.o
+ obj-$(CONFIG_SOC_CAMERA_MT9T031) += mt9t031.o
+ obj-$(CONFIG_SOC_CAMERA_MT9V022) += mt9v022.o
+ obj-$(CONFIG_SOC_CAMERA_OV772X) += ov772x.o
+diff --git a/drivers/media/video/mt9p031.c b/drivers/media/video/mt9p031.c
+new file mode 100644
+index 0000000..3047e43
+--- /dev/null
++++ b/drivers/media/video/mt9p031.c
+@@ -0,0 +1,1445 @@
++/*
++ * drivers/media/video/mt9p031.c
++ *
++ * Aptina mt9p031 sensor driver
++ *
++ *
++ * Copyright (C) 2010 Aptina Imaging
++ *
++ *
++ * Leverage mt9p012.c
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
++ *
++ */
++
++
++#include <linux/delay.h>
++#include <linux/i2c.h>
++#include <linux/init.h>
++#include <linux/module.h>
++#include <linux/slab.h>
++#include <linux/kernel.h>
++#include <linux/videodev2.h>
++#include <linux/sysfs.h>
++
++#include <media/mt9p031.h>
++#include <media/v4l2-int-device.h>
++#include <media/v4l2-chip-ident.h>
++
++#define MT9P031_DEBUG
++
++#ifdef MT9P031_DEBUG
++#define DPRINTK_DRIVER(format, ...) \
++ printk(KERN_INFO "_MT9P031_DRIVER: " format, ## __VA_ARGS__)
++#else
++#define DPRINTK_DRIVER(format, ...)
++#endif
++/************************************************************************
++ macro
++************************************************************************/
++// Macro to configure I2c level shifter. Use only for MT9P031 Headboards from Aptina; not required for Leopard Imaging or elsewise.
++#define MT9P031_HEADBOARD
++
++#define MT9P031_CHIP_ID 0x1801
++#define MT9P031_MAX_HEIGHT 1944
++#define MT9P031_MAX_WIDTH 2592
++#define MT9P031_MIN_HEIGHT 2
++#define MT9P031_MIN_WIDTH 2
++
++#define VGA_HEIGHT 480
++#define VGA_WIDTH 640
++
++#define MT9P031_NORMAL_OPERATION_MODE (0x1F82) //write
++#define MT9P031_OUTPUT_CTRL_CHIP_UNSELECT (0x1F80)
++#define MT9P031_OUTPUT_CTRL_HALT (0x1F83)
++
++/* FPS Capabilities */
++#define MT9P031_MIN_FPS 10
++#define MT9P031_DEF_FPS 30
++#define MT9P031_MAX_FPS 50
++
++#define MT9P031_XCLK_NOM_1 12000000
++#define MT9P031_XCLK_NOM_2 24000000
++
++/* Analog gain values */
++#define MT9P031_EV_MIN_GAIN 0
++#define MT9P031_EV_MAX_GAIN 47
++#define MT9P031_EV_DEF_GAIN 24
++#define MT9P031_EV_GAIN_STEP 1
++
++/* Exposure time values */
++#define MT9P031_MIN_EXPOSURE 15000
++#define MT9P031_MAX_EXPOSURE 128000
++#define MT9P031_DEF_EXPOSURE 33000
++#define MT9P031_EXPOSURE_STEP 100
++#define Q12 4096
++/************************************************************************
++ Register Address
++************************************************************************/
++
++#define REG_MT9P031_CHIP_VERSION 0x00
++#define REG_MT9P031_ROWSTART 0x01
++#define REG_MT9P031_COLSTART 0x02
++#define REG_MT9P031_HEIGHT 0x03
++#define REG_MT9P031_WIDTH 0x04
++#define REG_MT9P031_HBLANK 0x05
++#define REG_MT9P031_VBLANK 0x06
++#define REG_MT9P031_OUT_CTRL 0x07
++#define REG_MT9P031_SHUTTER_WIDTH_U 0x08
++#define REG_MT9P031_SHUTTER_WIDTH_L 0x09
++#define REG_MT9P031_PCLK_CTRL 0x0a
++#define REG_MT9P031_RESTART 0x0b
++#define REG_MT9P031_SHUTTER_DELAY 0x0c
++#define REG_MT9P031_RESET 0x0d
++
++#define REG_MT9P031_PLL_CTRL 0x10
++#define REG_MT9P031_PLL_CONF1 0x11
++#define REG_MT9P031_PLL_CONF2 0x12
++
++#define REG_MT9P031_READ_MODE1 0x1e
++#define REG_MT9P031_READ_MODE2 0x20
++#define REG_MT9P031_ROW_ADDR_MODE 0x22
++#define REG_MT9P031_COL_ADDR_MODE 0x23
++#define REG_MT9P031_GREEN_1_GAIN 0x2b
++#define REG_MT9P031_BLUE_GAIN 0x2c
++#define REG_MT9P031_RED_GAIN 0x2d
++#define REG_MT9P031_GREEN_2_GAIN 0x2e
++#define REG_MT9P031_GLOBAL_GAIN 0x35
++#define REG_MT9P031_CHIP_VERSION_ALT 0x0FF
++
++/************************************************************************
++ struct
++************************************************************************/
++struct mt9p031_frame_size {
++ u16 width;
++ u16 height;
++};
++
++struct mt9p031_priv {
++ struct mt9p031_platform_data *pdata;
++ struct v4l2_int_device *v4l2_int_device;
++ struct i2c_client *client;
++ struct v4l2_pix_format pix;
++ struct v4l2_fract timeperframe;
++ unsigned long xclk_current;
++ int fps;
++ int scaler;
++ int ver;
++ int model;
++ u32 flags;
++/* for flags */
++#define INIT_DONE (1<<0)
++};
++
++struct mt9p031_priv sysPriv;
++
++static const struct v4l2_fmtdesc mt9p031_formats[] = {
++ {
++ .description = "Bayer (sRGB) 10 bit",
++ .pixelformat = V4L2_PIX_FMT_SRGGB10,
++ },
++};
++
++static const unsigned int mt9p031_num_formats = ARRAY_SIZE(mt9p031_formats);
++
++/***********************Minimum Horizontal blanking*********************/
++int hb_min[4][4] = {
++ { 450, 430, 0, 420 },
++ { 796, 776, 0, 766 },
++ { 0, 0, 0, 0 },
++ { 1488, 1468, 0, 1458 },
++};
++
++/**************************supported sizes******************************/
++const static struct mt9p031_frame_size mt9p031_sizes[] = {
++ { 640, 480 },
++ { 1280, 720 },
++ { 1920, 1080 },
++ { 2048, 1536 }, //3MP
++ { 2592, 1944 }, //5MP
++};
++
++
++struct mt9p031_format_params {
++ int width;
++ int height;
++ int row_start;
++ int col_start;
++ int row_size;
++ int col_size;
++ int hblank;
++ int vblank;
++ int integ_time;
++ int row_addr_mode;
++ int col_addr_mode;
++ int read_mode_2_config;
++ int shutter_width_hi;
++ int shutter_delay;
++ int row_bin;
++ int col_bin;
++};
++
++enum mt9p031_image_size {
++ VGA_BIN_30FPS,
++ HDV_720P_30FPS,
++ //HDV_720P_60FPS,
++ //HDV_720P_60FPS_LVB,
++ HDV_1080P_30FPS,
++ MT9P031_THREE_MP,
++ MT9P031_FIVE_MP,
++};
++
++enum mt9p031_image_size mt9p031_current_format;
++
++const struct mt9p031_format_params mt9p031_supported_formats[] = {
++ { 640, 480, 64, 24, 1919, 2559, 0, 0, 0x0296, 0x0033, 0x0033, 0x0060, 0, 0, 3, 3 }, // VGA_BIN_30FPS
++ { 1280, 720, 64, 24, 1439, 2559, 0, 0, 0x0296, 0x0011, 0x0011, 0x0060, 0, 0, 1, 1 }, // 720P_HD_30FPS
++ //{ 1280, 720, 0x0040, 0x0018, 0x059F, 0x09FF, 0, 0, 0x0296, 0x0011, 0x0011, 0x0060, 0, 0, 1, 1 }, // 720P_HD_60FPS
++ //{ 1280, 720, 0x0040, 0x0018, 0x059F, 0x09FF, 0, 0x02D0, 0x0296, 0x0011, 0x0011, 0x0060, 0, 0, 1, 1 }, // 720P_HD_60FPS_LVB
++ { 1920, 1080, 431, 335, 1079, 1919, 0, 0x0037, 0x01AC, 0, 0, 0x0040, 0, 0, 0, 0 }, // 1080P_30FPS
++ { 2048, 1536, 431, 335, 1535, 2047, 0, 0x0037, 0x01AC, 0, 0, 0x0040, 0, 0, 0, 0 }, // 3MP CAPTURE
++ { 2592, 1944, 431, 335, 1943, 2591, 0, 0x0037, 0x01AC, 0, 0, 0x0040, 0, 0, 0, 0 }, // 5MP CAPTURE
++};
++
++
++const struct v4l2_fract mt9p031_frameintervals[] = {
++ { .numerator = 1, .denominator = 10 },
++ { .numerator = 1, .denominator = 20 },
++ { .numerator = 1, .denominator = 30 },
++ { .numerator = 1, .denominator = 40 },
++ { .numerator = 1, .denominator = 50 },
++};
++
++
++const u16 MT9P031_EV_GAIN_TBL[48] = {
++ /* Gain x1 */
++ 8, 9, 10, 11, 12, 13, 14, 15,
++ /* Gain x2 */
++ 16, 17, 18, 19, 20, 21, 22, 23,
++ /* Gain x3 */
++ 24, 25, 26, 27, 28, 29, 30, 31,
++ /* Gain x4 */
++ 32, 33, 34, 35,
++ /* Gain x5 */
++ 81, 82, 83,
++ /* Gain x6 */
++ 84, 85, 86, 87, 88, 89, 90, 91,
++ /* Gain x7 */
++ 92, 93, 94, 95, 96, 97, 98, 99,
++ /* Gain x8 */
++ 100,
++};
++
++#ifdef MT9P031_HEADBOARD
++/**
++ * mt9p031_config_PCA9543A - configure on-board I2c level-shifter PCA9543A of MT9P031 Headboards from Aptina
++ * @client: pointer to i2c client
++ * Configures the level shifter to enable channel 0
++ */
++static int mt9p031_config_PCA9543A(const struct i2c_client *client)
++{
++ struct i2c_msg msg;
++ int ret;
++ u8 buf;
++ buf = 0x21;
++
++ msg.addr = (0xE6 >> 1); //slave address of PCA9543A
++ msg.flags = 0;
++ msg.len = 1;
++ msg.buf = &buf;
++
++ ret = i2c_transfer(client->adapter, &msg, 1);
++
++ return 0;
++
++}
++#endif //MT9P031_HEADBOARD
++
++/**
++ * mt9p031_reg_read - read resgiter value
++ * @client: pointer to i2c client
++ * @command: register address
++ */
++static int mt9p031_reg_read(const struct i2c_client *client, u16 command, u16 *val)
++{
++ struct i2c_msg msg[2];
++ u8 buf[2];
++ int ret;
++
++ // 8-bit/ byte addressable register
++ buf[0] = command & 0xff;
++
++ msg[0].addr = client->addr;
++ msg[0].flags = 0;
++ msg[0].len = 1;
++ msg[0].buf = buf ;
++ ret = i2c_transfer(client->adapter, &msg[0], 1);
++
++ if(ret >= 0) {
++ msg[1].addr = client->addr;
++ msg[1].flags = I2C_M_RD; //1
++ msg[1].len = 2;
++ msg[1].buf = buf;
++ ret = i2c_transfer(client->adapter, &msg[1], 1);
++ }
++ /*
++ * if return value of this function is < 0,
++ * it mean error.
++ * else, under 16bit is valid data.
++ */
++ if(ret >= 0) {
++ *val = 0;
++ *val = buf[1] + (buf[0] << 8);
++ return 0;
++ }
++
++ v4l_err(client, "read from offset 0x%x error %d", command, ret);
++ return ret;
++}
++
++/**
++ * mt9p031_reg_write - read resgiter value
++ * @client: pointer to i2c client
++ * @command: register address
++ * @data: value to be written
++ */
++static int mt9p031_reg_write(const struct i2c_client *client,
++ u16 command, u16 data)
++{
++ struct i2c_msg msg;
++ u8 buf[3];
++ int ret;
++
++ // 8-bit/ byte addressable register
++
++ buf[0] = command & 0xff;
++ data = swab16(data);
++ memcpy(buf + 1, &data, 2);
++
++ msg.addr = client->addr;
++ msg.flags = 0;
++ msg.len = 3;
++ msg.buf = buf;
++
++ /*
++ * i2c_transfer return message length,
++ * but this function should return 0 if correct case
++ */
++ ret = i2c_transfer(client->adapter, &msg, 1);
++ if (ret >= 0)
++ ret = 0;
++
++ return ret;
++}
++
++/**
++ * struct vcontrol - Video controls
++ * @v4l2_queryctrl: V4L2 VIDIOC_QUERYCTRL ioctl structure
++ * @current_value: current value of this control
++ */
++static struct vcontrol {
++ struct v4l2_queryctrl qc;
++ int current_value;
++} mt9p031_video_control[] = {
++ {
++ {
++ .id = V4L2_CID_EXPOSURE,
++ .type = V4L2_CTRL_TYPE_INTEGER,
++ .name = "Exposure",
++ .minimum = MT9P031_MIN_EXPOSURE,
++ .maximum = MT9P031_MAX_EXPOSURE,
++ .step = MT9P031_EXPOSURE_STEP,
++ .default_value = MT9P031_DEF_EXPOSURE,
++ },
++ .current_value = MT9P031_DEF_EXPOSURE,
++ },
++ {
++ {
++ .id = V4L2_CID_GAIN,
++ .type = V4L2_CTRL_TYPE_INTEGER,
++ .name = "Analog Gain",
++ .minimum = MT9P031_EV_MIN_GAIN,
++ .maximum = MT9P031_EV_MAX_GAIN,
++ .step = MT9P031_EV_GAIN_STEP,
++ .default_value = MT9P031_EV_DEF_GAIN,
++ },
++ .current_value = MT9P031_EV_DEF_GAIN,
++ },
++};
++
++/**
++ * find_vctrl - Finds the requested ID in the video control structure array
++ * @id: ID of control to search the video control array for
++ *
++ * Returns the index of the requested ID from the control structure array
++ */
++static int
++find_vctrl(int id)
++{
++ int i;
++
++ if (id < V4L2_CID_BASE)
++ return -EDOM;
++
++ for (i = (ARRAY_SIZE(mt9p031_video_control) - 1); i >= 0; i--)
++ if (mt9p031_video_control[i].qc.id == id)
++ break;
++ if (i < 0)
++ i = -EINVAL;
++ return i;
++}
++
++/**
++ * mt9p031_calc_size - Find the best match for a requested image capture size
++ * @width: requested image width in pixels
++ * @height: requested image height in pixels
++ *
++ * Find the best match for a requested image capture size. The best match
++ * is chosen as the nearest match that has the same number or fewer pixels
++ * as the requested size, or the smallest image size if the requested size
++ * has fewer pixels than the smallest image.
++ */
++static enum mt9p031_image_size mt9p031_calc_size(unsigned int width,
++ unsigned int height)
++{
++ enum mt9p031_image_size isize;
++ unsigned long pixels = width * height;
++
++ for (isize = VGA_BIN_30FPS; isize <= MT9P031_FIVE_MP; isize++) {
++ if (mt9p031_sizes[isize].height *
++ mt9p031_sizes[isize].width >= pixels) {
++
++ return isize;
++ }
++ }
++
++ return MT9P031_FIVE_MP;
++}
++
++/**
++ * mt9p031_find_isize - Find the best match for a requested image capture size
++ * @width: requested image width in pixels
++ * @height: requested image height in pixels
++ *
++ * Find the best match for a requested image capture size. The best match
++ * is chosen as the nearest match that has the same number or fewer pixels
++ * as the requested size, or the smallest image size if the requested size
++ * has fewer pixels than the smallest image.
++ */
++static enum mt9p031_image_size mt9p031_find_isize(unsigned int width)
++{
++ enum mt9p031_image_size isize;
++
++ for (isize = VGA_BIN_30FPS; isize <= MT9P031_FIVE_MP; isize++) {
++ if (mt9p031_sizes[isize].width >= width)
++ break;
++ }
++
++ return isize;
++}
++
++/**
++ * mt9p031_calc_xclk - Calculate the required xclk frequency
++ * @c: i2c client driver structure
++ *
++ * Given the image capture format in pix, the nominal frame period in
++ * timeperframe, calculate and return the required xclk frequency
++ */
++static unsigned long mt9p031_calc_xclk(struct i2c_client *c)
++{
++ struct mt9p031_priv *priv = i2c_get_clientdata(c);
++ struct v4l2_fract *timeperframe = &priv->timeperframe;
++
++ if (timeperframe->numerator == 0 ||
++ timeperframe->denominator == 0) {
++ /* supply a default nominal_timeperframe */
++ timeperframe->numerator = 1;
++ timeperframe->denominator = MT9P031_DEF_FPS;
++ }
++
++ priv->fps = timeperframe->denominator / timeperframe->numerator;
++ if (priv->fps < MT9P031_MIN_FPS)
++ priv->fps = MT9P031_MIN_FPS;
++ else if (priv->fps > MT9P031_MAX_FPS)
++ priv->fps = MT9P031_MAX_FPS;
++
++ timeperframe->numerator = 1;
++ timeperframe->denominator = priv->fps;
++
++ return MT9P031_XCLK_NOM_1;
++}
++
++/**
++ * mt9p031_set_params - sets register settings according to resolution
++ * @client: pointer to standard i2c client
++ * @width: width as queried by ioctl
++ * @height: height as queried by ioctl
++ */
++static int mt9p031_set_params(struct i2c_client *client, u32 width, u32 height)
++{
++ struct mt9p031_priv *priv = i2c_get_clientdata(client);
++ struct v4l2_pix_format *pix = &priv->pix;
++ int ret;
++ enum mt9p031_image_size i;
++
++ i = mt9p031_find_isize(pix->width);
++ priv->pix.width = mt9p031_supported_formats[i].width;
++ priv->pix.height = mt9p031_supported_formats[i].height;
++
++ ret = mt9p031_reg_write(client, REG_MT9P031_ROWSTART, mt9p031_supported_formats[i].row_start); //ROW_WINDOW_START_REG
++ ret |= mt9p031_reg_write(client, REG_MT9P031_COLSTART, mt9p031_supported_formats[i].col_start); //COL_WINDOW_START_REG
++ ret |= mt9p031_reg_write(client, REG_MT9P031_HEIGHT, mt9p031_supported_formats[i].row_size); //ROW_WINDOW_SIZE_REG=1439
++ ret |= mt9p031_reg_write(client, REG_MT9P031_WIDTH, mt9p031_supported_formats[i].col_size); //COL_WINDOW_SIZE_REG=2559
++ ret |= mt9p031_reg_write(client, REG_MT9P031_HBLANK, mt9p031_supported_formats[i].hblank); //HORZ_BLANK=0
++ ret |= mt9p031_reg_write(client, REG_MT9P031_VBLANK, mt9p031_supported_formats[i].vblank); //VERT_BLANK_REG=720
++ ret |= mt9p031_reg_write(client, REG_MT9P031_SHUTTER_WIDTH_L, 0x0400); //SHUTTER_WIDTH_LOW (INTEG_TIME_REG = 1024)
++ ret |= mt9p031_reg_write(client, REG_MT9P031_ROW_ADDR_MODE, mt9p031_supported_formats[i].row_addr_mode); //ROW_MODE, ROW_SKIP=1, ROW_BIN=1
++ ret |= mt9p031_reg_write(client, REG_MT9P031_COL_ADDR_MODE, mt9p031_supported_formats[i].col_addr_mode); //COL_MODE, COL_SKIP=1, COL_BIN=1
++ ret |= mt9p031_reg_write(client, REG_MT9P031_READ_MODE2, mt9p031_supported_formats[i].read_mode_2_config); //READ_MODE_2, COL_SUM
++ ret |= mt9p031_reg_write(client, REG_MT9P031_SHUTTER_WIDTH_U, mt9p031_supported_formats[i].shutter_width_hi); //SHUTTER_WIDTH_HI
++ ret |= mt9p031_reg_write(client, REG_MT9P031_SHUTTER_WIDTH_L, mt9p031_supported_formats[i].integ_time); //SHUTTER_WIDTH_LOW (INTEG_TIME_REG)
++ ret |= mt9p031_reg_write(client, REG_MT9P031_SHUTTER_DELAY, mt9p031_supported_formats[i].shutter_delay); //SHUTTER_DELAY_REG
++
++ return ret;
++}
++
++/**
++ * mt9p031_init_camera - initialize camera settings
++ * @client: pointer to i2c client
++ * Initialize camera settings
++ */
++static int mt9p031_init_camera(const struct i2c_client *client)
++{
++ int ret;
++ struct mt9p031_priv *priv = i2c_get_clientdata(client);
++ struct v4l2_pix_format *pix = &priv->pix;
++
++ ret = mt9p031_reg_write(client, REG_MT9P031_PLL_CTRL, 0x0051); //PLL_CTRL; power up pll
++ ret |= mt9p031_reg_write(client, REG_MT9P031_PLL_CONF1, 0x1801); //PLL_CONFIG_1: m=24, n=1
++ ret |= mt9p031_reg_write(client, REG_MT9P031_PLL_CONF2, 0x0002); //PLL_CONFIG_2: p1=2, p2=0
++ mdelay(10); //wait 10 ms for VCO to lock
++ ret |= mt9p031_reg_write(client, REG_MT9P031_PLL_CTRL, 0x0053); //PLL_CONTROL; use PLL
++ mdelay(200);
++
++ ret |= mt9p031_set_params(priv->client, pix->width, pix->height);
++
++ ret |= mt9p031_reg_write(client, REG_MT9P031_RESET, 0x0001); //High
++ ret |= mt9p031_reg_write(client, REG_MT9P031_RESET, 0x0000); //Low
++ mdelay(100);
++
++ ret |= mt9p031_reg_write(client, REG_MT9P031_GREEN_1_GAIN, 0x0051); //Green1_gain_reg
++ ret |= mt9p031_reg_write(client, REG_MT9P031_BLUE_GAIN, 0x0051); //Blue_gain_reg
++ ret |= mt9p031_reg_write(client, REG_MT9P031_RED_GAIN, 0x0051); //Red_gain_reg
++ ret |= mt9p031_reg_write(client, REG_MT9P031_GREEN_2_GAIN, 0x0051); //Green2_gain_reg
++ ret |= mt9p031_reg_write(client, REG_MT9P031_GLOBAL_GAIN, 0x0008); //Analog Gain
++ ret |= mt9p031_reg_write(client, REG_MT9P031_READ_MODE1, 0x0006); //Read_mode_1 //disable AB
++ ret |= mt9p031_reg_write(client, REG_MT9P031_OUT_CTRL, 0x1F8E); //Enable parll fifo data
++
++ return ret>= 0 ? 0 : -EIO;
++}
++
++/************************************************************************
++ i2c driver
++************************************************************************/
++/**
++ * mt9p031_detect - Detect if an mt9p031 is present, and if so which revision
++ * @client: pointer to the i2c client driver structure
++ *
++ * Returns a negative error number if no device is detected
++ */
++static int mt9p031_detect(struct i2c_client *client)
++{
++ struct mt9p031_priv *priv = i2c_get_clientdata(client);
++ const char *devname;
++ u16 chipid;
++
++ if (!client)
++ return -ENODEV;
++ /*
++ * Set Normal Mode
++ */
++ if(mt9p031_reg_write(client, REG_MT9P031_OUT_CTRL, MT9P031_NORMAL_OPERATION_MODE))
++ return -ENODEV;
++ /*
++ * check and show chip ID
++ */
++ if(mt9p031_reg_read(client, REG_MT9P031_CHIP_VERSION, &chipid))
++ return -ENODEV;
++
++ if(chipid == MT9P031_CHIP_ID) {
++ devname = "mt9p031";
++ priv->model = V4L2_IDENT_MT9P031;
++ dev_info(&client->dev, "%s chip ID %04x\n", devname, chipid);
++ return 0;
++ }
++
++ dev_err(&client->dev, "Product ID error %04x\n", chipid);
++ return -ENODEV;
++}
++
++/**
++ * mt9p031_set_exposure_time - sets exposure time per input value
++ * @exp_time: exposure time to be set on device
++ * @client: pointer to standard i2c client
++ * @lvc: pointer to V4L2 exposure entry in video_controls array
++ *
++ * If the requested exposure time is within the allowed limits, the HW
++ * is configured to use the new exposure time, and the video_controls
++ * array is updated with the new current value.
++ * The function returns 0 upon success. Otherwise an error code is
++ * returned.
++ */
++static int mt9p031_set_exposure_time(u32 exp_time, struct i2c_client *client,
++ struct vcontrol *lvc)
++{
++ int ret = 0, i, shutter_width, so_p, t_pix_clk, sd_p, shutter_delay;
++ int sw_l ,sw_u ,W ,h_blanking, t_row;
++
++ if(exp_time < MT9P031_MIN_EXPOSURE)
++ exp_time = MT9P031_MIN_EXPOSURE;
++ else if(exp_time > MT9P031_MAX_EXPOSURE)
++ exp_time = MT9P031_MAX_EXPOSURE;
++
++ shutter_delay = mt9p031_supported_formats[mt9p031_current_format].shutter_delay;
++ sd_p = min(shutter_delay + 1, 1504);
++ so_p = 208 * (mt9p031_supported_formats[mt9p031_current_format].row_bin + 1) + 98 + sd_p - 94;
++ t_pix_clk = (Q12/96 );
++ h_blanking = mt9p031_supported_formats[mt9p031_current_format].hblank + 1;
++ W = 2 * (int)((mt9p031_supported_formats[mt9p031_current_format].row_size + 1) / (2 * (mt9p031_supported_formats[mt9p031_current_format].row_bin + 1)) + 1);
++ t_row = 2 * t_pix_clk * max(W/2 + max(h_blanking, hb_min[mt9p031_supported_formats[mt9p031_current_format].row_bin][mt9p031_supported_formats[mt9p031_current_format].col_bin]),
++ (41 + 346 * (mt9p031_supported_formats[mt9p031_current_format].row_bin + 1) + 99))/Q12;
++
++ shutter_width = (exp_time + 2*so_p*t_pix_clk) / t_row;
++
++ if (shutter_width< 3) {
++ sd_p = 1232 > shutter_delay ? 1232 : shutter_delay;
++ so_p = 208 * (mt9p031_supported_formats[mt9p031_current_format].row_bin + 1) + 98 + sd_p - 94;
++ shutter_width = ((exp_time*Q12 + 2*so_p*t_pix_clk) / (t_row * Q12));
++ }
++
++ if (shutter_width < 1)
++ shutter_width = 1;
++ sw_l = shutter_width& 0xffff;
++ sw_u = (shutter_width)>> 16;
++ ret = mt9p031_reg_write(client, REG_MT9P031_SHUTTER_WIDTH_L,sw_l);
++ mdelay(1);
++ ret = mt9p031_reg_write(client, REG_MT9P031_SHUTTER_WIDTH_U,sw_u);
++
++ if (ret)
++ dev_err(&client->dev, "Error setting exposure time %d\n",
++ ret);
++ else{
++ i = find_vctrl(V4L2_CID_EXPOSURE);
++ if (i >= 0) {
++ lvc = &mt9p031_video_control[i];
++ lvc->current_value = exp_time;
++ }
++ }
++
++ return ret;
++}
++
++/**
++ * mt9p031_set_gain - sets sensor analog gain per input value
++ * @lineargain: analog gain value index to be set on device
++ * @client: pointer to standard i2c client
++ * @lvc: pointer to V4L2 analog gain entry in video_controls array
++ *
++ * If the requested analog gain is within the allowed limits, the HW
++ * is configured to use the new gain value, and the video_controls
++ * array is updated with the new current value.
++ * The function returns 0 upon success. Otherwise an error code is
++ * returned.
++ */
++int mt9p031_set_gain(u16 lineargain, struct i2c_client *client,
++ struct vcontrol *lvc)
++{
++ int ret= 0, i;
++ u16 reg_gain = 0;
++
++ if (lineargain < MT9P031_EV_MIN_GAIN) {
++ lineargain = MT9P031_EV_MIN_GAIN;
++ v4l_err(client, "Gain out of legal range.");
++ }
++ if (lineargain > MT9P031_EV_MAX_GAIN) {
++ lineargain = MT9P031_EV_MAX_GAIN;
++ v4l_err(client, "Gain out of legal range.");
++ }
++
++ reg_gain = MT9P031_EV_GAIN_TBL[lineargain];
++ ret = mt9p031_reg_write(client, REG_MT9P031_GLOBAL_GAIN,
++ reg_gain);
++
++ if (ret) {
++ dev_err(&client->dev, "Error setting gain.%d", ret);
++ return ret;
++ }
++ else {
++ i = find_vctrl(V4L2_CID_GAIN);
++ if (i >= 0) {
++ lvc = &mt9p031_video_control[i];
++ lvc->current_value = lineargain;
++ }
++ }
++
++ return ret;
++}
++
++/************************************************************************
++ v4l2_ioctls
++************************************************************************/
++
++/**
++ * mt9p031_v4l2_int_s_power - V4L2 sensor interface handler for vidioc_int_s_power_num
++ * @s: pointer to standard V4L2 device structure
++ * @on: power state to which device is to be set
++ *
++ * Sets devices power state to requrested state, if possible.
++ */
++static int mt9p031_v4l2_int_s_power(struct v4l2_int_device *s,
++ enum v4l2_power power)
++{
++ struct mt9p031_priv *priv = s->priv;
++ struct i2c_client *client = priv->client;
++
++ int ret;
++
++ switch (power) {
++ case V4L2_POWER_STANDBY:
++ /* FALLTHROUGH */
++ case V4L2_POWER_OFF:
++ ret = priv->pdata->power_set(s, power);
++ if (ret < 0) {
++ dev_err(&client->dev, "Unable to set target board power "
++ "state (OFF/STANDBY)\n");
++ return ret;
++ }
++ break;
++ case V4L2_POWER_ON:
++ ret = priv->pdata->power_set(s, power);
++
++ if (ret < 0) {
++ dev_err(&client->dev, "Unable to set target board power "
++ "state (ON)\n");
++ return ret;
++ }
++ if (!(priv->flags & INIT_DONE)) {
++ ret = mt9p031_detect(client);
++ if (ret < 0) {
++ dev_err(&client->dev, "Unable to detect sensor\n");
++ return ret;
++ }
++ priv->flags |= INIT_DONE;
++ }
++
++ ret = mt9p031_init_camera(client);
++ if (ret < 0) {
++ dev_err(&client->dev, "Unable to initialize sensor\n");
++ return ret;
++ }
++ }
++
++ return 0;
++}
++
++/**
++ * mt9p031_v4l2_s_ctrl - V4L2 sensor interface handler for VIDIOC_S_CTRL ioctl
++ * @s: pointer to standard V4L2 device structure
++ * @vc: standard V4L2 VIDIOC_S_CTRL ioctl structure
++ *
++ * If the requested control is supported, sets the control's current
++ * value in HW (and updates the video_control[] array). Otherwise,
++ * returns -EINVAL if the control is not supported.
++ */
++static int mt9p031_v4l2_s_ctrl(struct v4l2_int_device *s,
++ struct v4l2_control *vc)
++{
++ int retval = -EINVAL;
++ int i;
++ struct vcontrol *lvc;
++ struct mt9p031_priv *priv = s->priv;
++ struct i2c_client *client = priv->client;
++
++ i = find_vctrl(vc->id);
++ if (i < 0)
++ return -EINVAL;
++ lvc = &mt9p031_video_control[i];
++
++ switch (vc->id) {
++ case V4L2_CID_EXPOSURE:
++ retval = mt9p031_set_exposure_time(vc->value, client, lvc);
++ break;
++ case V4L2_CID_GAIN:
++ retval = mt9p031_set_gain(vc->value, client, lvc);
++ break;
++ }
++
++ return retval;
++}
++
++/**
++ * mt9p031_v4l2_g_ctrl - V4L2 sensor interface handler for VIDIOC_G_CTRL ioctl
++ * @s: pointer to standard V4L2 device structure
++ * @vc: standard V4L2 VIDIOC_G_CTRL ioctl structure
++ *
++ * If the requested control is supported, returns the control's current
++ * value from the video_control[] array. Otherwise, returns -EINVAL
++ * if the control is not supported.
++ */
++static int mt9p031_v4l2_g_ctrl(struct v4l2_int_device *s,
++ struct v4l2_control *vc)
++{
++ struct vcontrol *lvc;
++ int i;
++
++ i = find_vctrl(vc->id);
++ if (i < 0)
++ return -EINVAL;
++ lvc = &mt9p031_video_control[i];
++
++ switch (vc->id) {
++ case V4L2_CID_EXPOSURE:
++ vc->value = lvc->current_value;
++ break;
++ case V4L2_CID_GAIN:
++ vc->value = lvc->current_value;
++ break;
++ }
++
++ return 0;
++}
++
++/**
++ * mt9p031_v4l2_queryctrl - V4L2 sensor interface handler for VIDIOC_QUERYCTRL ioctl
++ * @s: pointer to standard V4L2 device structure
++ * @qc: standard V4L2 VIDIOC_QUERYCTRL ioctl structure
++ *
++ * If the requested control is supported, returns the control information
++ * from the video_control[] array. Otherwise, returns -EINVAL if the
++ * control is not supported.
++ */
++static int mt9p031_v4l2_queryctrl(struct v4l2_int_device *s, struct v4l2_queryctrl *qc)
++{
++ int i;
++
++ i = find_vctrl(qc->id);
++ if (i == -EINVAL)
++ qc->flags = V4L2_CTRL_FLAG_DISABLED;
++
++ if (i < 0)
++ return -EINVAL;
++
++ *qc = mt9p031_video_control[i].qc;
++ return 0;
++}
++
++
++/**
++ * mt9p031_v4l2_int_enum_fmt_cap - Implement the CAPTURE buffer VIDIOC_ENUM_FMT ioctl
++ * @s: pointer to standard V4L2 device structure
++ * @fmt: standard V4L2 VIDIOC_ENUM_FMT ioctl structure
++ *
++ * Implement the VIDIOC_ENUM_FMT ioctl for the CAPTURE buffer type.
++ */
++static int mt9p031_v4l2_int_enum_fmt_cap(struct v4l2_int_device *s,
++ struct v4l2_fmtdesc *fmt)
++{
++ int index = fmt->index;
++ enum v4l2_buf_type type = fmt->type;
++
++ memset(fmt, 0, sizeof(*fmt));
++ fmt->index = index;
++ fmt->type = type;
++
++ switch (fmt->type) {
++ case V4L2_BUF_TYPE_VIDEO_CAPTURE:
++ if (index >= ARRAY_SIZE(mt9p031_formats))
++ return -EINVAL;
++ break;
++ default:
++ return -EINVAL;
++ }
++
++ strlcpy(fmt->description, mt9p031_formats[index].description,
++ sizeof(fmt->description));
++ fmt->pixelformat = mt9p031_formats[index].pixelformat;
++
++ return 0;
++}
++
++/**
++ * mt9p031_v4l2_int_try_fmt_cap - Implement the CAPTURE buffer VIDIOC_TRY_FMT ioctl
++ * @s: pointer to standard V4L2 device structure
++ * @f: pointer to standard V4L2 VIDIOC_TRY_FMT ioctl structure
++ *
++ * Implement the VIDIOC_TRY_FMT ioctl for the CAPTURE buffer type. This
++ * ioctl is used to negotiate the image capture size and pixel format
++ * without actually making it take effect.
++ */
++static int mt9p031_v4l2_int_try_fmt_cap(struct v4l2_int_device *s,
++ struct v4l2_format *f)
++{
++ enum mt9p031_image_size isize;
++ int ifmt;
++ struct v4l2_pix_format *pix = &f->fmt.pix;
++ struct mt9p031_priv *priv = s->priv;
++ struct v4l2_pix_format *pix2 = &priv->pix;
++
++ isize = mt9p031_calc_size(pix->width, pix->height);
++ mt9p031_current_format = isize;
++
++ pix->width = mt9p031_sizes[isize].width;
++ pix->height = mt9p031_sizes[isize].height;
++ for (ifmt = 0; ifmt < mt9p031_num_formats; ifmt++) {
++ if (pix->pixelformat == mt9p031_formats[ifmt].pixelformat)
++ break;
++ }
++ if (ifmt == mt9p031_num_formats)
++ ifmt = 0;
++ pix->pixelformat = mt9p031_formats[ifmt].pixelformat;
++ pix->field = V4L2_FIELD_NONE;
++ pix->bytesperline = pix->width * 2;
++ pix->sizeimage = pix->bytesperline * pix->height;
++ pix->priv = 0;
++ pix->colorspace = V4L2_COLORSPACE_SRGB;
++
++ *pix2 = *pix;
++
++ return 0;
++}
++
++/**
++ * mt9p031_v4l2_int_s_fmt_cap - V4L2 sensor interface handler for VIDIOC_S_FMT ioctl
++ * @s: pointer to standard V4L2 device structure
++ * @f: pointer to standard V4L2 VIDIOC_S_FMT ioctl structure
++ *
++ * If the requested format is supported, configures the HW to use that
++ * format, returns error code if format not supported or HW can't be
++ * correctly configured.
++ */
++static int mt9p031_v4l2_int_s_fmt_cap(struct v4l2_int_device *s,
++ struct v4l2_format *f)
++{
++ struct mt9p031_priv *priv = s->priv;
++ struct v4l2_pix_format *pix = &f->fmt.pix;
++ int rval;
++
++ rval = mt9p031_v4l2_int_try_fmt_cap(s, f);
++ if (!rval)
++ priv->pix = *pix;
++
++ return rval;
++}
++
++/**
++ * mt9p031_v4l2_int_g_fmt_cap - V4L2 sensor interface handler for ioctl_g_fmt_cap
++ * @s: pointer to standard V4L2 device structure
++ * @f: pointer to standard V4L2 v4l2_format structure
++ *
++ * Returns the sensor's current pixel format in the v4l2_format
++ * parameter.
++ */
++static int mt9p031_v4l2_int_g_fmt_cap(struct v4l2_int_device *s,
++ struct v4l2_format *f)
++{
++ struct mt9p031_priv *priv = s->priv;
++
++ f->fmt.pix.width = priv->pix.width;
++ f->fmt.pix.height = priv->pix.height;
++ f->fmt.pix.pixelformat = V4L2_COLORSPACE_SRGB;
++ f->fmt.pix.pixelformat = priv->pix.pixelformat;
++ f->fmt.pix.field = V4L2_FIELD_NONE;
++
++ return 0;
++}
++
++/**
++ * mt9p031_v4l2_int_s_parm - V4L2 sensor interface handler for VIDIOC_S_PARM ioctl
++ * @s: pointer to standard V4L2 device structure
++ * @a: pointer to standard V4L2 VIDIOC_S_PARM ioctl structure
++ *
++ * Configures the sensor to use the input parameters, if possible. If
++ * not possible, reverts to the old parameters and returns the
++ * appropriate error code.
++ */
++
++
++static int mt9p031_v4l2_int_s_parm(struct v4l2_int_device *s,
++ struct v4l2_streamparm *a)
++{
++ struct mt9p031_priv *priv = s->priv;
++ struct i2c_client *client = priv->client;
++ struct v4l2_fract *timeperframe = &a->parm.capture.timeperframe;
++
++ priv->timeperframe = *timeperframe;
++ priv->xclk_current = mt9p031_calc_xclk(client);
++ *timeperframe = priv->timeperframe;
++
++ return 0;
++}
++
++/**
++ * mt9p031_v4l2_int_g_parm - V4L2 sensor interface handler for VIDIOC_G_PARM ioctl
++ * @s: pointer to standard V4L2 device structure
++ * @a: pointer to standard V4L2 VIDIOC_G_PARM ioctl structure
++ *
++ * Returns the sensor's video CAPTURE parameters.
++ */
++static int mt9p031_v4l2_int_g_parm(struct v4l2_int_device *s,
++ struct v4l2_streamparm *a)
++{
++ struct mt9p031_priv *priv = s->priv;
++ struct v4l2_captureparm *cparm = &a->parm.capture;
++
++ if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
++ return -EINVAL;
++
++ memset(a, 0, sizeof(*a));
++ a->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
++
++ cparm->capability = V4L2_CAP_TIMEPERFRAME;
++ cparm->timeperframe.numerator = 1;
++ cparm->timeperframe = priv->timeperframe;
++
++ return 0;
++}
++
++/**
++ * mt9p031_v4l2_int_g_priv - V4L2 sensor interface handler for vidioc_int_g_priv_num
++ * @s: pointer to standard V4L2 device structure
++ * @p: void pointer to hold sensor's private data address
++ *
++ * Returns device's (sensor's) private data area address in p parameter
++ */
++static int mt9p031_v4l2_int_g_priv(struct v4l2_int_device *s, void *p)
++{
++ struct mt9p031_priv *priv = s->priv;
++
++ return priv->pdata->priv_data_set(p);
++}
++
++/**
++ * mt9p031_v4l2_int_g_ifparm - V4L2 sensor interface handler for vidioc_int_g_priv_num
++ * @s: pointer to standard V4L2 device structure
++ * @p: void pointer to hold sensor's ifparm
++ *
++ * Returns device's (sensor's) ifparm in p parameter
++ */
++static int mt9p031_v4l2_int_g_ifparm(struct v4l2_int_device *s,
++ struct v4l2_ifparm *p)
++{
++ struct mt9p031_priv *priv = s->priv;
++ int rval;
++
++ if (p == NULL)
++ return -EINVAL;
++
++ if (!priv->pdata->ifparm)
++ return -EINVAL;
++
++ rval = priv->pdata->ifparm(p);
++ if (rval) {
++ v4l_err(priv->client, "g_ifparm.Err[%d]\n", rval);
++ return rval;
++ }
++
++ return 0;
++}
++
++/**
++ * mt9p031_v4l2_int_enum_framesizes - V4L2 sensor if handler for vidioc_int_enum_framesizes
++ * @s: pointer to standard V4L2 device structure
++ * @frms: pointer to standard V4L2 framesizes enumeration structure
++ *
++ * Returns possible framesizes depending on choosen pixel format
++ */
++static int mt9p031_v4l2_int_enum_framesizes(struct v4l2_int_device *s,
++ struct v4l2_frmsizeenum *frms)
++{
++ int ifmt;
++
++ for (ifmt = 0; ifmt < ARRAY_SIZE(mt9p031_formats); ifmt++)
++ if (mt9p031_formats[ifmt].pixelformat == frms->pixel_format)
++ break;
++
++ if (ifmt == ARRAY_SIZE(mt9p031_formats))
++ return -EINVAL;
++
++ /* Do we already reached all discrete framesizes? */
++ if (frms->index >= ARRAY_SIZE(mt9p031_sizes))
++ return -EINVAL;
++
++ frms->type = V4L2_FRMSIZE_TYPE_DISCRETE;
++ frms->discrete.width = mt9p031_sizes[frms->index].width;
++ frms->discrete.height = mt9p031_sizes[frms->index].height;
++
++ return 0;
++}
++
++static int mt9p031_v4l2_int_enum_frameintervals(struct v4l2_int_device *s,
++ struct v4l2_frmivalenum *frmi)
++{
++ int ifmt;
++ int max_size;
++
++ for (ifmt = 0; ifmt < ARRAY_SIZE(mt9p031_formats); ifmt++)
++ if (mt9p031_formats[ifmt].pixelformat == frmi->pixel_format)
++ break;
++
++ if (ifmt == ARRAY_SIZE(mt9p031_formats))
++ return -EINVAL;
++
++ max_size = ARRAY_SIZE(mt9p031_sizes);
++
++ for(ifmt = 0; ifmt < max_size; ifmt++) {
++ if(frmi->width <= mt9p031_sizes[ifmt].width) {
++ frmi->type = V4L2_FRMSIZE_TYPE_DISCRETE;
++ frmi->discrete.numerator =
++ mt9p031_frameintervals[frmi->index].numerator;
++ frmi->discrete.denominator =
++ mt9p031_frameintervals[frmi->index].denominator;
++
++ if(frmi->discrete.denominator <= mt9p031_frameintervals[max_size - ifmt - 1].denominator)
++ return 0;
++ else
++ return -EINVAL;
++ }
++ }
++
++ return 0;
++}
++
++static struct v4l2_int_ioctl_desc mt9p031_ioctl_desc[] = {
++ { .num = vidioc_int_enum_framesizes_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_enum_framesizes },
++ { .num = vidioc_int_enum_frameintervals_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_enum_frameintervals },
++ { .num = vidioc_int_s_power_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_s_power },
++ { .num = vidioc_int_g_priv_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_g_priv },
++ { .num = vidioc_int_g_ifparm_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_g_ifparm },
++ { .num = vidioc_int_enum_fmt_cap_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_enum_fmt_cap },
++ { .num = vidioc_int_try_fmt_cap_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_try_fmt_cap },
++ { .num = vidioc_int_g_fmt_cap_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_g_fmt_cap },
++ { .num = vidioc_int_s_fmt_cap_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_s_fmt_cap },
++ { .num = vidioc_int_g_parm_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_g_parm },
++ { .num = vidioc_int_s_parm_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_int_s_parm },
++ { .num = vidioc_int_g_ctrl_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_g_ctrl },
++ { .num = vidioc_int_s_ctrl_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_s_ctrl },
++ { .num = vidioc_int_queryctrl_num,
++ .func = (v4l2_int_ioctl_func *)mt9p031_v4l2_queryctrl },
++};
++
++#ifdef MT9P031_DEBUG
++/**
++ * ---------------------------------------------------------------------------------
++ * Sysfs
++ * ---------------------------------------------------------------------------------
++ */
++
++/* Basic register read write support */
++static u16 mt9p031_attr_basic_addr = 0x0000;
++
++static ssize_t
++mt9p031_basic_reg_addr_show( struct device *dev, struct device_attribute *attr, char *buf)
++{
++ return sprintf(buf, "0x%x\n", mt9p031_attr_basic_addr);
++}
++
++static ssize_t
++mt9p031_basic_reg_addr_store( struct device *dev, struct device_attribute *attr, const char *buf, size_t n)
++{
++ u16 val;
++ sscanf(buf, "%hx", &val);
++ mt9p031_attr_basic_addr = (u16) val;
++ return n;
++}
++
++static DEVICE_ATTR( basic_reg_addr, S_IRUGO|S_IWUSR, mt9p031_basic_reg_addr_show, mt9p031_basic_reg_addr_store);
++
++
++static ssize_t
++mt9p031_basic_reg_val_show( struct device *dev, struct device_attribute *attr, char *buf)
++{
++ u16 val;
++ int ret;
++ ret = mt9p031_reg_read(sysPriv.client, mt9p031_attr_basic_addr, &val);
++ if(ret < 0){
++ printk(KERN_INFO "mt9p031: Basic register read failed");
++ return 1; // nothing processed
++ } else {
++ return sprintf(buf, "0x%x\n", val);
++ }
++}
++
++static ssize_t
++mt9p031_basic_reg_val_store( struct device *dev, struct device_attribute *attr, const char *buf, size_t n)
++{
++ u32 val;
++ sscanf(buf, "%x", &val);
++
++ if (mt9p031_reg_write(sysPriv.client, mt9p031_attr_basic_addr, (u16)val)) {
++ printk(KERN_INFO "mt9p031: Basic regiser write failed");
++ return n; // nothing processed
++ } else {
++ return n;
++ }
++}
++static DEVICE_ATTR( basic_reg_val, S_IRUGO|S_IWUSR, mt9p031_basic_reg_val_show, mt9p031_basic_reg_val_store);
++
++
++/* Exposure time access support */
++static ssize_t
++mt9p031_exposure_val_show( struct device *dev, struct device_attribute *attr, char *buf)
++{
++ u32 val;
++ struct vcontrol *lvc;
++ int i = find_vctrl(V4L2_CID_EXPOSURE);
++ if (i < 0)
++ return -EINVAL;
++ lvc = &mt9p031_video_control[i];
++ val = lvc->current_value;
++
++ if(val < 0){
++ printk(KERN_INFO "mt9p031: Exposure value read failed");
++ return 1; // nothing processed
++ } else {
++ return sprintf(buf, "%d\n", val);
++ }
++}
++
++
++static ssize_t
++mt9p031_exposure_val_store( struct device *dev, struct device_attribute *attr, const char *buf, size_t n)
++{
++ u32 val;
++ struct i2c_client *client;
++ struct vcontrol *lvc;
++
++ sscanf(buf, "%d", &val);
++ client = sysPriv.client;
++
++ lvc = &mt9p031_video_control[V4L2_CID_EXPOSURE];
++
++ if (mt9p031_set_exposure_time((u32)val, client, lvc)) {
++ printk(KERN_INFO "mt9p031: Exposure write failed");
++ return n; // nothing processed
++ } else {
++ return n;
++ }
++}
++
++static DEVICE_ATTR( exposure_val, S_IRUGO|S_IWUSR, mt9p031_exposure_val_show, mt9p031_exposure_val_store);
++
++
++/* Global Gain access support */
++static ssize_t
++mt9p031_gain_val_show( struct device *dev, struct device_attribute *attr, char *buf)
++{
++ u16 val;
++ struct vcontrol *lvc;
++
++ int i = find_vctrl(V4L2_CID_GAIN);
++ if (i < 0)
++ return -EINVAL;
++ lvc = &mt9p031_video_control[i];
++ val = lvc->current_value;
++
++ if(val < 0){
++ printk(KERN_INFO "mt9p031: Global Gain value read failed");
++ return 1; // nothing processed
++ } else {
++ return sprintf(buf, "%d\n", val);
++ }
++}
++
++static ssize_t
++mt9p031_gain_val_store( struct device *dev, struct device_attribute *attr, const char *buf, size_t n)
++{
++ u16 val;
++ struct i2c_client *client;
++ struct vcontrol *lvc;
++
++ sscanf(buf, "%hd", &val);
++ client = sysPriv.client;
++
++ lvc = &mt9p031_video_control[V4L2_CID_GAIN];
++
++ if (mt9p031_set_gain(val, client, lvc)) {
++ printk(KERN_INFO "mt9p031: Global gain write failed");
++ return n; // nothing processed
++ } else {
++ return n;
++ }
++}
++
++static DEVICE_ATTR( gain_val, S_IRUGO|S_IWUSR, mt9p031_gain_val_show, mt9p031_gain_val_store);
++
++
++static struct attribute *mt9p031_sysfs_attr[] = {
++ &dev_attr_basic_reg_addr.attr,
++ &dev_attr_basic_reg_val.attr,
++ &dev_attr_exposure_val.attr,
++ &dev_attr_gain_val.attr,
++};
++
++static int mt9p031_sysfs_add(struct kobject *kobj)
++{
++ int i = ARRAY_SIZE(mt9p031_sysfs_attr);
++ int rval = 0;
++
++ do {
++ rval = sysfs_create_file(kobj, mt9p031_sysfs_attr[--i]);
++ } while((i > 0) && (rval == 0));
++ return rval;
++}
++
++static int mt9p031_sysfs_rm(struct kobject *kobj)
++{
++ int i = ARRAY_SIZE(mt9p031_sysfs_attr);
++ int rval = 0;
++
++ do {
++ sysfs_remove_file(kobj, mt9p031_sysfs_attr[--i]);
++ } while(i > 0);
++ return rval;
++}
++#endif //MT9P031_DEBUG
++
++static struct v4l2_int_slave mt9p031_slave = {
++ .ioctls = mt9p031_ioctl_desc,
++ .num_ioctls = ARRAY_SIZE(mt9p031_ioctl_desc),
++};
++
++static int mt9p031_probe(struct i2c_client *client,
++ const struct i2c_device_id *did)
++{
++ struct mt9p031_priv *priv;
++ struct v4l2_int_device *v4l2_int_device;
++ int ret;
++ if (!client->dev.platform_data) {
++ dev_err(&client->dev, "no platform data?\n");
++ return -ENODEV;
++ }
++
++ priv = kzalloc(sizeof(*priv), GFP_KERNEL);
++ if (!priv)
++ return -ENOMEM;
++
++ v4l2_int_device = kzalloc(sizeof(*v4l2_int_device), GFP_KERNEL);
++ if (!v4l2_int_device) {
++ kfree(priv);
++ return -ENOMEM;
++ }
++
++#ifdef MT9P031_HEADBOARD
++ mt9p031_config_PCA9543A(client); //configure i2c level shifter on mt9p031 head-board, no need for Leopard module
++ mdelay(10);
++#endif //MT9P031_HEADBOARD
++
++ v4l2_int_device->module = THIS_MODULE;
++ strncpy(v4l2_int_device->name, "mt9p031", sizeof(v4l2_int_device->name));
++
++ v4l2_int_device->type = v4l2_int_type_slave;
++ v4l2_int_device->u.slave = &mt9p031_slave;
++
++ v4l2_int_device->priv = priv;
++
++ priv->v4l2_int_device = v4l2_int_device;
++ priv->client = client;
++ priv->pdata = client->dev.platform_data;
++
++ priv->pdata->flags = MT9P031_FLAG_PCLK_RISING_EDGE;
++
++ /* Setting Pixel Values */
++ priv->pix.width = mt9p031_sizes[0].width;
++ priv->pix.height = mt9p031_sizes[0].height;
++ priv->pix.pixelformat = mt9p031_formats[0].pixelformat;
++
++ i2c_set_clientdata(client, priv);
++
++ sysPriv.client = priv->client;
++
++ ret = v4l2_int_device_register(priv->v4l2_int_device);
++ if (ret) {
++ i2c_set_clientdata(client, NULL);
++ kfree(v4l2_int_device);
++ kfree(priv);
++ }
++
++#ifdef MT9P031_DEBUG
++ mt9p031_sysfs_add(&client->dev.kobj);
++#endif //MT9P031_DEBUG
++ return ret;
++}
++
++static int mt9p031_remove(struct i2c_client *client)
++{
++ struct mt9p031_priv *priv = i2c_get_clientdata(client);
++
++ v4l2_int_device_unregister(priv->v4l2_int_device);
++ i2c_set_clientdata(client, NULL);
++ mt9p031_sysfs_rm(&client->dev.kobj);
++
++ kfree(priv->v4l2_int_device);
++ kfree(priv);
++ return 0;
++}
++
++static const struct i2c_device_id mt9p031_id[] = {
++ { "mt9p031", 0 },
++ { }
++};
++MODULE_DEVICE_TABLE(i2c, mt9p031_id);
++
++static struct i2c_driver mt9p031_i2c_driver = {
++ .driver = {
++ .name = "mt9p031",
++ },
++ .probe = mt9p031_probe,
++ .remove = mt9p031_remove,
++ .id_table = mt9p031_id,
++};
++
++/************************************************************************
++ module function
++************************************************************************/
++static int __init mt9p031_module_init(void)
++{
++ return i2c_add_driver(&mt9p031_i2c_driver);
++}
++
++static void __exit mt9p031_module_exit(void)
++{
++ i2c_del_driver(&mt9p031_i2c_driver);
++}
++
++module_init(mt9p031_module_init);
++module_exit(mt9p031_module_exit);
++
++MODULE_DESCRIPTION("mt9p031 sensor driver");
++MODULE_AUTHOR("Aptina");
++MODULE_LICENSE("GPL v2");
++
+diff --git a/include/media/mt9p031.h b/include/media/mt9p031.h
+new file mode 100644
+index 0000000..d119589
+--- /dev/null
++++ b/include/media/mt9p031.h
+@@ -0,0 +1,30 @@
++/* mt9p031 Camera
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ */
++
++#ifndef __MT9P031_H__
++#define __MT9P031_H__
++
++#include <media/v4l2-int-device.h>
++
++#define MT9P031_I2C_ADDR 0x48 //(0x90 >> 1)
++
++#define MT9P031_CLK_MAX (27000000) /* 27MHz */
++#define MT9P031_CLK_MIN (6000000) /* 6Mhz */
++
++#define MT9P031_FLAG_PCLK_RISING_EDGE (1 << 0)
++#define MT9P031_FLAG_DATAWIDTH_8 (1 << 1) /* default width is 10 */
++
++struct mt9p031_platform_data {
++ char *master;
++ int (*power_set) (struct v4l2_int_device *s, enum v4l2_power on);
++ int (*ifparm) (struct v4l2_ifparm *p);
++ int (*priv_data_set) (void *);
++ u32 (*set_xclk) (struct v4l2_int_device *s, u32 xclkfreq);
++ u32 flags;
++};
++
++#endif /* __MT9P031_H__ */
+diff --git a/include/media/v4l2-chip-ident.h b/include/media/v4l2-chip-ident.h
+index 6cc107d..7599bf1 100644
+--- a/include/media/v4l2-chip-ident.h
++++ b/include/media/v4l2-chip-ident.h
+@@ -271,6 +271,7 @@ enum {
+ V4L2_IDENT_MT9T112 = 45022,
+ V4L2_IDENT_MT9V111 = 45031,
+ V4L2_IDENT_MT9V112 = 45032,
++ V4L2_IDENT_MT9P031 = 6145,
+
+ /* HV7131R CMOS sensor: just ident 46000 */
+ V4L2_IDENT_HV7131R = 46000,
+--
+1.6.6.1
+
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/5m03/0002-board-omap3beagle-import-li5m03-driver-from-https-gi.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/5m03/0002-board-omap3beagle-import-li5m03-driver-from-https-gi.patch
new file mode 100644
index 0000000000..2b45f1970b
--- /dev/null
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/cam/5m03/0002-board-omap3beagle-import-li5m03-driver-from-https-gi.patch
@@ -0,0 +1,294 @@
+From 675ad06f53fbb0c7f398aaff8c3508196dfeb9bc Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+Date: Sun, 1 May 2011 16:41:57 +0200
+Subject: [PATCH 2/2] board-omap3beagle: import li5m03 driver from https://github.com/Aptina/BeagleBoard-xM/tree/master/Angstrom/MT9P031
+
+Properly hook it into the board file and some more updates
+
+Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
+---
+ arch/arm/mach-omap2/board-omap3beagle-camera.c | 186 +++++++++++++++++++++++-
+ arch/arm/mach-omap2/board-omap3beagle.c | 20 +++
+ 2 files changed, 198 insertions(+), 8 deletions(-)
+
+diff --git a/arch/arm/mach-omap2/board-omap3beagle-camera.c b/arch/arm/mach-omap2/board-omap3beagle-camera.c
+index 110c2c9..97f0e7a 100644
+--- a/arch/arm/mach-omap2/board-omap3beagle-camera.c
++++ b/arch/arm/mach-omap2/board-omap3beagle-camera.c
+@@ -160,6 +160,8 @@ static int mt9v113_power_set(struct v4l2_int_device *s, enum v4l2_power power)
+ case V4L2_POWER_ON:
+
+ isp_configure_interface(vdev->cam->isp, &mt9v113_if_config);
++ /* Set RESET_BAR to 0 */
++ gpio_set_value(LEOPARD_RESET_GPIO, 0);
+
+ /* turn on VDD */
+ regulator_enable(cam_1v8_reg);
+@@ -168,9 +170,6 @@ static int mt9v113_power_set(struct v4l2_int_device *s, enum v4l2_power power)
+ regulator_enable(cam_2v8_reg);
+ mdelay(50);
+
+- /* Set RESET_BAR to 0 */
+- gpio_set_value(LEOPARD_RESET_GPIO, 0);
+-
+ /* Enable EXTCLK */
+ isp_set_xclk(vdev->cam->isp, MT9V113_CLK_MIN*2, CAM_USE_XCLKA);
+ /*
+@@ -294,7 +293,7 @@ static int mt9t112_set_prv_data(void *priv)
+ }
+
+ /**
+- * @brief mt9t112_power_set - Power-on or power-off TVP5146 device
++ * @brief mt9t112_power_set - Power-on or power-off MT9T112 device
+ *
+ * @param power - enum, Power on/off, resume/standby
+ *
+@@ -320,6 +319,8 @@ static int mt9t112_power_set(struct v4l2_int_device *s, enum v4l2_power power)
+ isp_configure_interface(vdev->cam->isp, &mt9t112_if_config);
+ #endif
+
++ /* Set RESET_BAR to 0 */
++ gpio_set_value(LEOPARD_RESET_GPIO, 0);
+
+ /* turn on VDD */
+ regulator_enable(cam_1v8_reg);
+@@ -331,11 +332,8 @@ static int mt9t112_power_set(struct v4l2_int_device *s, enum v4l2_power power)
+
+ mdelay(50);
+
+- /* Set RESET_BAR to 0 */
+- gpio_set_value(LEOPARD_RESET_GPIO, 0);
+-
+ /* Enable EXTCLK */
+- isp_set_xclk(vdev->cam->isp, 24000000, CAM_USE_XCLKA);
++ isp_set_xclk(vdev->cam->isp, 12000000, CAM_USE_XCLKA);
+
+ /*
+ * Wait at least 70 CLK cycles (w/EXTCLK = 24MHz):
+@@ -372,6 +370,178 @@ struct mt9t112_platform_data mt9t112_pdata = {
+
+ #endif /* #ifdef CONFIG_VIDEO_MT9T112 */
+
++#if defined(CONFIG_SOC_CAMERA_MT9P031) || defined(CONFIG_SOC_CAMERA_MT9P031_MODULE)
++#include <media/mt9p031.h>
++
++#define ISP_MT9P031_MCLK 216000000
++
++/* Arbitrary memory handling limit */
++#define MT9P031_BIGGEST_FRAME_BYTE_SIZE PAGE_ALIGN((2592 * 1944) * 2 * 4 )
++
++static struct isp_interface_config mt9p031_if_config = {
++ .ccdc_par_ser = ISP_PARLL,
++ .dataline_shift = 0x1,
++ .hsvs_syncdetect = ISPCTRL_SYNC_DETECT_VSRISE,
++ .strobe = 0x0,
++ .prestrobe = 0x0,
++ .shutter = 0x0,
++ .cam_mclk = ISP_MT9P031_MCLK,
++ .wenlog = ISPCCDC_CFG_WENLOG_AND,
++ .wait_hs_vs = 2,
++ .u.par.par_bridge = 0x0,
++ .u.par.par_clk_pol = 0x0,
++};
++
++static struct v4l2_ifparm mt9p031_ifparm_s = {
++ .if_type = V4L2_IF_TYPE_RAW,
++ .u = {
++ .raw = {
++ .frame_start_on_rising_vs = 1,
++ .bt_sync_correct = 0,
++ .swap = 0,
++ .latch_clk_inv = 0,
++ .nobt_hs_inv = 0, /* active high */
++ .nobt_vs_inv = 0, /* active high */
++ .clock_min = MT9P031_CLK_MIN,
++ .clock_max = MT9P031_CLK_MAX,
++ },
++ },
++};
++
++/**
++ * @brief mt9p031_ifparm - Returns the mt9p031 interface parameters
++ *
++ * @param p - pointer to v4l2_ifparm structure
++ *
++ * @return result of operation - 0 is success
++ */
++static int mt9p031_ifparm(struct v4l2_ifparm *p)
++{
++ if (p == NULL)
++ return -EINVAL;
++
++ *p = mt9p031_ifparm_s;
++ return 0;
++}
++
++#if defined(CONFIG_VIDEO_OMAP3) || defined(CONFIG_VIDEO_OMAP3_MODULE)
++static struct omap34xxcam_hw_config mt9p031_hwc = {
++ .dev_index = 1,
++ .dev_minor = -1,
++ .dev_type = OMAP34XXCAM_SLAVE_SENSOR,
++ .u.sensor.sensor_isp = 0,
++ .u.sensor.capture_mem = MT9P031_BIGGEST_FRAME_BYTE_SIZE,
++ .u.sensor.ival_default = { 1, 30 },
++};
++#endif
++
++/**
++ * @brief mt9p031_set_prv_data - Returns mt9p031 omap34xx driver private data
++ *
++ * @param priv - pointer to omap34xxcam_hw_config structure
++ *
++ * @return result of operation - 0 is success
++ */
++static int mt9p031_set_prv_data(void *priv)
++{
++#if defined(CONFIG_VIDEO_OMAP3) || defined(CONFIG_VIDEO_OMAP3_MODULE)
++ struct omap34xxcam_hw_config *hwc = priv;
++
++ if (priv == NULL)
++ return -EINVAL;
++
++ *hwc = mt9p031_hwc;
++ return 0;
++#else
++ return -EINVAL;
++#endif
++}
++
++/**
++ * @brief mt9p031_power_set - Power-on or power-off mt9p031 device
++ *
++ * @param power - enum, Power on/off, resume/standby
++ *
++ * @return result of operation - 0 is success
++ */
++static int mt9p031_power_set(struct v4l2_int_device *s, enum v4l2_power power)
++{
++ struct omap34xxcam_videodev *vdev = s->u.slave->master->priv;
++ switch (power) {
++ case V4L2_POWER_OFF:
++ case V4L2_POWER_STANDBY:
++ isp_set_xclk(vdev->cam->isp, 0, CAM_USE_XCLKA);
++
++ if (regulator_is_enabled(cam_1v8_reg))
++ regulator_disable(cam_1v8_reg);
++ if (regulator_is_enabled(cam_2v8_reg))
++ regulator_disable(cam_2v8_reg);
++ break;
++
++ case V4L2_POWER_ON:
++#if defined(CONFIG_VIDEO_OMAP3) || defined(CONFIG_VIDEO_OMAP3_MODULE)
++ isp_configure_interface(vdev->cam->isp, &mt9p031_if_config);
++#endif
++
++ /* Set RESET_BAR to 0 */
++ gpio_set_value(LEOPARD_RESET_GPIO, 0);
++
++ /* turn on VDD */
++ regulator_enable(cam_1v8_reg);
++
++ mdelay(1);
++
++ /* turn on VDD_IO */
++ regulator_enable(cam_2v8_reg);
++
++ mdelay(50);
++
++ /* Enable EXTCLK */
++ isp_set_xclk(vdev->cam->isp, 24000000, CAM_USE_XCLKA); //works for 36MHz too; try at lower freq
++
++ /*
++ * Wait at least 70 CLK cycles (w/EXTCLK = 24MHz):
++ * ((1000000 * 70) / 24000000) = aprox 2.91 us.
++ */
++
++ udelay(3);
++
++ /* Set RESET_BAR to 1 */
++ gpio_set_value(LEOPARD_RESET_GPIO, 1);
++
++ /*
++ * Wait at least 100 CLK cycles (w/EXTCLK = 24MHz):
++ * ((1000000 * 100) / 24000000) = aprox 4.16 us.
++ */
++
++ udelay(5);
++
++ break;
++
++ default:
++ return -ENODEV;
++ break;
++ }
++ return 0;
++}
++
++static u32 mt9p031_set_xclk(struct v4l2_int_device *s, u32 xclkfreq)
++{
++ struct omap34xxcam_videodev *vdev = s->u.slave->master->priv;
++ return isp_set_xclk(vdev->cam->isp, xclkfreq, 0);
++}
++
++
++struct mt9p031_platform_data mt9p031_pdata = {
++ .master = "omap34xxcam",
++ .power_set = mt9p031_power_set,
++ .set_xclk = mt9p031_set_xclk,
++ .priv_data_set = mt9p031_set_prv_data,
++ .ifparm = mt9p031_ifparm,
++};
++
++#endif /* #ifdef CONFIG_SOC_CAMERA_MT9P031 */
++
+ static int beagle_cam_probe(struct platform_device *pdev)
+ {
+ cam_1v8_reg = regulator_get(&pdev->dev, "cam_1v8");
+diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
+index 2677b41..e561431 100644
+--- a/arch/arm/mach-omap2/board-omap3beagle.c
++++ b/arch/arm/mach-omap2/board-omap3beagle.c
+@@ -83,6 +83,12 @@ extern struct mt9v113_platform_data mt9v113_pdata;
+ extern struct mt9t112_platform_data mt9t112_pdata;
+ #endif
+
++#if defined(CONFIG_SOC_CAMERA_MT9P031) || defined(CONFIG_SOC_CAMERA_MT9P031_MODULE)
++#include <media/v4l2-int-device.h>
++#include <media/mt9p031.h>
++extern struct mt9p031_platform_data mt9p031_pdata;
++#endif
++
+ #define GPMC_CS0_BASE 0x60
+ #define GPMC_CS_SIZE 0x30
+
+@@ -614,6 +620,15 @@ static struct i2c_board_info __initdata beagle_lbcm3m1_i2c2_boardinfo[] = {
+ #endif
+ };
+
++static struct i2c_board_info __initdata beagle_lbcm5m03_i2c2_boardinfo[] = {
++#if defined(CONFIG_SOC_CAMERA_MT9P031) || defined(CONFIG_SOC_CAMERA_MT9P031_MODULE)
++ {
++ I2C_BOARD_INFO("mt9p031", MT9P031_I2C_ADDR),
++ .platform_data = &mt9p031_pdata,
++ },
++#endif
++};
++
+ static int __init omap3_beagle_i2c_init(void)
+ {
+ omap_register_i2c_bus(1, 2600, beagle_i2c1_boardinfo,
+@@ -636,6 +651,11 @@ static int __init omap3_beagle_i2c_init(void)
+ " registering i2c2 bus for lbcm3m1\n");
+ omap_register_i2c_bus(2, 400, beagle_lbcm3m1_i2c2_boardinfo,
+ ARRAY_SIZE(beagle_lbcm3m1_i2c2_boardinfo));
++ } else if (!strcmp(cameraboard_name, "lbcm5m03")) {
++ printk(KERN_INFO "Beagle cameraboard:"
++ " registering i2c2 bus for lbcm5m03\n");
++ omap_register_i2c_bus(2, 400, beagle_lbcm5m03_i2c2_boardinfo,
++ ARRAY_SIZE(beagle_lbcm5m03_i2c2_boardinfo));
+ } else {
+ omap_register_i2c_bus(2, 400, NULL, 0);
+ }
+--
+1.6.6.1
+
diff --git a/recipes-bsp/linux/linux-omap-psp-2.6.32/porches.patch b/recipes-bsp/linux/linux-omap-psp-2.6.32/porches.patch
index 630af6f1bd..d631c6fe16 100644
--- a/recipes-bsp/linux/linux-omap-psp-2.6.32/porches.patch
+++ b/recipes-bsp/linux/linux-omap-psp-2.6.32/porches.patch
@@ -1,4 +1,4 @@
-From 00a84122fd2c1974f6dc79fce11a34154caab848 Mon Sep 17 00:00:00 2001
+From 91dc9ee523ad7f2a09cabf8082396eca0ef68000 Mon Sep 17 00:00:00 2001
From: Tasslehoff Kjappfot <tasskjapp@gmail.com>
Date: Wed, 8 Sep 2010 12:46:14 +0200
Subject: [PATCH] OMAP: DSS2: OMAPFB: swap front and back porches for both hsync and vsync
@@ -17,10 +17,10 @@ Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
-index 39f53b1..bddfca6 100644
+index 0fe87e0..4cb8355 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
-@@ -714,10 +714,10 @@ int check_fb_var(struct fb_info *fbi, struct fb_var_screeninfo *var)
+@@ -737,10 +737,10 @@ int check_fb_var(struct fb_info *fbi, struct fb_var_screeninfo *var)
var->pixclock = timings.pixel_clock != 0 ?
KHZ2PICOS(timings.pixel_clock) :
0;
@@ -35,7 +35,7 @@ index 39f53b1..bddfca6 100644
var->hsync_len = timings.hsw;
var->vsync_len = timings.vsw;
} else {
-@@ -2059,10 +2059,10 @@ static int omapfb_mode_to_timings(const char *mode_str,
+@@ -2019,10 +2019,10 @@ static int omapfb_mode_to_timings(const char *mode_str,
if (r != 0) {
timings->pixel_clock = PICOS2KHZ(var.pixclock);
@@ -51,5 +51,5 @@ index 39f53b1..bddfca6 100644
timings->vsw = var.vsync_len;
timings->x_res = var.xres;
--
-1.6.1
+1.6.6.1
diff --git a/recipes-bsp/linux/linux-omap-psp_2.6.32.bb b/recipes-bsp/linux/linux-omap-psp_2.6.32.bb
index f21761fc7d..e7ee5eb22f 100644
--- a/recipes-bsp/linux/linux-omap-psp_2.6.32.bb
+++ b/recipes-bsp/linux/linux-omap-psp_2.6.32.bb
@@ -9,7 +9,7 @@ COMPATIBLE_MACHINE = "am3517-crane|beagleboard|omap3evm|am3517-evm|dm37x-evm|am3
SRCREV = "5fc29e7b2a76a64a739f857858ef0b98294aa155"
# The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc
-MACHINE_KERNEL_PR_append = "a+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "b+gitr${SRCREV}"
SRC_URI += "git://arago-project.org/git/projects/linux-omap3.git;protocol=git;branch=master \
file://0001-Added-Crane-Board-support.patch \
@@ -133,9 +133,13 @@ SRC_URI += "git://arago-project.org/git/projects/linux-omap3.git;protocol=git;br
file://cam/0073-mt9v113-Fix-State-variable-handling.patch \
file://cam/0074-Move-sensor-rest-to-after-applying-power.patch \
file://cam/0075-omap3beagle-Add-camera-bootarg.patch \
+ file://cam/5m03/0001-mt9p031-import-driver-from-https-github.com-Aptina-B.patch \
file://0001-BeagleBoard-Adjust-USER-button-pin-for-xM.patch \
file://0001-PSP-3.0.1.6-kernel-source-patched-with-OCF-Linux.patch \
file://porches.patch \
+ file://0001-OMAP3-craneboard-print-expansionboard-name-detected-.patch \
+ file://0002-OMAP3-craneboard-add-support-for-TinCanTools-Trainer.patch \
+ file://0001-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch \
file://defconfig"
SRC_URI_append_beagleboard = " file://logo_linux_clut224.ppm \
@@ -147,6 +151,7 @@ SRC_URI_append_beagleboard = " file://logo_linux_clut224.ppm \
file://beagleboard-xmc/0006-omap3-beaglexm-fix-power-on-of-DVI.patch \
file://beagleboard-xmc/0007-beagleboard-hack-in-support-from-xM-rev-C.patch \
file://beagleboard-xmc/0008-omap3-beagle-cleaned-up-board-revision-conditions.patch \
+ file://cam/5m03/0002-board-omap3beagle-import-li5m03-driver-from-https-gi.patch \
"
SRC_URI_append_omap3-touchbook = " \