beagleboard-validation:linux.git
6 years agoomap: Adding beagle i2c eeprom driver to read EDID
Mathieu J. Poirier [Fri, 24 Sep 2010 01:22:48 +0000 (18:22 -0700)]
omap: Adding beagle i2c eeprom driver to read EDID

Adding i2c eeprom driver to access monitor EDID binary information
from user space, something that is required by 'decode-edid' and
'parse-edid'.

BugLink: https://bugs.launchpad.net/bugs/608279
Signed-off-by: Mathieu Poirier <mathieu.poirier@canonical.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
6 years agoomap3: beaglexm: fix power on of DVI
Koen Kooi [Wed, 12 Jan 2011 00:23:29 +0000 (00:23 +0000)]
omap3: beaglexm: fix power on of DVI

TFP410 DVI chip is used to provide display out.
This chip is controlled by 2 lines:
LDO which supplies the power is controlled over gpio + 2
and the enable of the chip itself is done over gpio + 1
NOTE: the LDO is necessary for LED, serial blocks as well.

gpio + 1 was used to sense USB overcurrent in vanilla beagle.

Without this fix, the display would not function as the LDO
remains shut down.

[nm@ti.com: split up, added descriptive changelogs]
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Koen Kooi <koen@beagleboard.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
6 years agoomap3: beaglexm: fix DVI reset GPIO
Koen Kooi [Tue, 11 Jan 2011 17:13:36 +0000 (17:13 +0000)]
omap3: beaglexm: fix DVI reset GPIO

GPIO reset line for Beagle XM is different from vanilla beagle
so we populate it as part of gpio update routine.

This in part fixes the issue of display not functioning on beagle XM
platform.

[nm@ti.com: split up, added descriptive changelogs]
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Koen Kooi <koen@beagleboard.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
6 years agoomap3: beaglexm: fix EHCI power up GPIO dir
Koen Kooi [Tue, 11 Jan 2011 17:13:35 +0000 (17:13 +0000)]
omap3: beaglexm: fix EHCI power up GPIO dir

EHCI enable power pin is inverted (active high) in comparison
to vanilla beagle which is active low. Handle this case conditionally.

Without this fix, Beagle XM 4 port EHCI will not function and no
networking will be available

[nm@ti.com: split up, added descriptive changelogs]
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Koen Kooi <koen@beagleboard.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
6 years agoomap: Beagle: no gpio_wp pin connection on xM
Robert Nelson [Fri, 24 Sep 2010 01:22:48 +0000 (18:22 -0700)]
omap: Beagle: no gpio_wp pin connection on xM

The omap3630 based BeagleBoard xM uses a MicroSD card slot with
no write protection.

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
6 years agoomap: Beagle: only Cx boards use pin 23 for write protect
Robert Nelson [Fri, 24 Sep 2010 01:22:48 +0000 (18:22 -0700)]
omap: Beagle: only Cx boards use pin 23 for write protect

system_rev comes from u-boot and is a constant 0x20, so
Bx boards also fall in this 'if' and will get setup with the
wrong gpio_wp pin. Switch to using the Beagle revision routine
to correcly set pin 23 only for C1/2/3 and C4 Boards. Bx boards
will then use the correct default pin setting.

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
6 years agoomap: Beagle: revision detection
Robert Nelson [Fri, 24 Sep 2010 01:22:47 +0000 (18:22 -0700)]
omap: Beagle: revision detection

Due to the omap3530 ES3.0 Silicon being used on both the
B5/B6 and C1/2/3 Beagle we can't use the cpu_is_omap34xx()
routines to differentiate the Beagle Boards.

However gpio pins 171,172,173 where setup for this prupose, so
lets use them.

Changes:
for older U-Boot's, use omap_mux_init_gpio()
keep Beagle Rev in board-omap3beagle.c
gpio_free on gpio request failure

Tested on Beagle Revisions: B5, C2, C4, and xMA

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
7 years agoOMAP3: craneboard: add support for TinCanTools Trainer expansion board
Koen Kooi [Wed, 19 Jan 2011 15:36:09 +0000 (16:36 +0100)]
OMAP3: craneboard: add support for TinCanTools Trainer expansion board

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7 years agoOMAP3: craneboard: print expansionboard name detected from uboot
Koen Kooi [Wed, 19 Jan 2011 15:30:06 +0000 (16:30 +0100)]
OMAP3: craneboard: print expansionboard name detected from uboot

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7 years agoOMAP: DSS2: OMAPFB: swap front and back porches for both hsync and vsync
Tasslehoff Kjappfot [Wed, 8 Sep 2010 10:46:14 +0000 (12:46 +0200)]
OMAP: DSS2: OMAPFB: swap front and back porches for both hsync and vsync

Framebuffer's left and right margins are relative to the active pixel
area. Front and back porches are relative to the sync area.

Left margin was wrongly assigned to front porch (and right to back),
this patch fixes it.

Signed-off-by: tasskjapp@gmail.com
Reviewed-by: Russ.Dill@gmail.com
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
7 years agoPSP 3.0.1.6 kernel source patched with OCF-Linux
Greg Turner [Wed, 19 Jan 2011 15:19:37 +0000 (16:19 +0100)]
PSP 3.0.1.6 kernel source patched with OCF-Linux

7 years agoBeagleBoard: Adjust USER button pin for xM
Jason Kridner [Sat, 17 Jul 2010 19:28:22 +0000 (14:28 -0500)]
BeagleBoard: Adjust USER button pin for xM

7 years agoomap3beagle: Add camera bootarg
Sergio Aguirre [Thu, 22 Jul 2010 20:38:43 +0000 (15:38 -0500)]
omap3beagle: Add camera bootarg

This adds a new 'camera' bootarg, with (so far) 2 new possible types:
- lbcmvga: Leopard Board Camera Module: MT9V113 VGA
- lbcm3m1: Leopard Board Camera Module: MT9T111 3MP

Also, cleans up a little bit the current i2c2 bus init code.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoMove sensor rest to after applying power.
Steve Kipisz [Thu, 5 Aug 2010 15:51:11 +0000 (10:51 -0500)]
Move sensor rest to after applying power.

7 years agomt9v113: Fix State variable handling
Sergio Aguirre [Thu, 22 Jul 2010 18:29:16 +0000 (13:29 -0500)]
mt9v113: Fix State variable handling

State variable was misused, and was running detection all the
time the sensor was powered back on.

Reason? power off code was putting it to "not detected" always.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Fix dual sensor registration
Sergio Aguirre [Thu, 22 Jul 2010 16:03:33 +0000 (11:03 -0500)]
omap3beagle: camera: Fix dual sensor registration

dev_index should be different, which represents an internal index
in the master camera driver.

Also, make device video nodes be alloted with the "first free", by setting
dev_minor to -1.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Trigger autofocus at the end of context switch
Sergio Aguirre [Mon, 19 Jul 2010 22:45:38 +0000 (17:45 -0500)]
mt9t112: Trigger autofocus at the end of context switch

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Adjust 50/60Hz flickering settings
Sergio Aguirre [Mon, 19 Jul 2010 22:30:29 +0000 (17:30 -0500)]
mt9t112: Adjust 50/60Hz flickering settings

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Fix pll p-dividers abstraction
Sergio Aguirre [Mon, 19 Jul 2010 17:31:47 +0000 (12:31 -0500)]
mt9t112: Fix pll p-dividers abstraction

Previously, it wasn't clear that the values needed to be filled
were (val - 1). Fix that.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Make context B stream unlimited frames
Sergio Aguirre [Sun, 18 Jul 2010 06:47:41 +0000 (01:47 -0500)]
mt9t112: Make context B stream unlimited frames

Context A does this by default, so, only context B needs
to be configured like this.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Disable JPEG in Context B
Sergio Aguirre [Sun, 18 Jul 2010 06:45:29 +0000 (01:45 -0500)]
mt9t112: Disable JPEG in Context B

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Add Context selection to configuration
Sergio Aguirre [Sun, 18 Jul 2010 06:12:41 +0000 (01:12 -0500)]
mt9t112: Add Context selection to configuration

Thsi makes always start at least with preview mode
(context A), and then, if needed, transition to capture
mode (context B)

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agortl8192su: remove bogus Kconfig depend on PCI and add another product ID
Koen Kooi [Sun, 18 Jul 2010 09:25:12 +0000 (11:25 +0200)]
rtl8192su: remove bogus Kconfig depend on PCI and add another product ID

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7 years agomt9t112: Remove "smart" size selection
Sergio Aguirre [Fri, 16 Jul 2010 22:09:10 +0000 (17:09 -0500)]
mt9t112: Remove "smart" size selection

This code is broken, as it doesn't really adjust all other
settings, but output size to desired size. It isn't really
toggling everything that needs, and giving the false impression
of good size flexibility.

So, meanwhile, let's put fixed init settings for the contexts,
and toggle between them (implemented in other patch).

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Correct register settings for mt9t111 sensor
Sergio Aguirre [Fri, 16 Jul 2010 12:52:06 +0000 (07:52 -0500)]
mt9t112: Correct register settings for mt9t111 sensor

This now matches with Aptina's recommended values.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Prepare 24MHz xclk for mt9t112
Sergio Aguirre [Fri, 16 Jul 2010 04:43:20 +0000 (23:43 -0500)]
omap3beagle: camera: Prepare 24MHz xclk for mt9t112

Adjust calculations of timings based on # of EXTCLK cycles.

Also, set default requested framerate to 30 fps.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Prepare for 24MHz EXTCLK and 30 fps
Sergio Aguirre [Fri, 16 Jul 2010 04:41:32 +0000 (23:41 -0500)]
mt9t112: Prepare for 24MHz EXTCLK and 30 fps

Set Aptina recommended values to get 30 FPS with VGA, which
are achievable given the new PLL divider settings, considering
an input of 24MHz in the master clock.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Add back 3MP basesize
Sergio Aguirre [Thu, 15 Jul 2010 23:33:00 +0000 (18:33 -0500)]
mt9t112: Add back 3MP basesize

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Switch flag for no sensor ISP
Sergio Aguirre [Thu, 15 Jul 2010 23:15:32 +0000 (18:15 -0500)]
omap3beagle: camera: Switch flag for no sensor ISP

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Do init_camera every powerup
Sergio Aguirre [Thu, 15 Jul 2010 22:53:44 +0000 (17:53 -0500)]
mt9t112: Do init_camera every powerup

This is because we want to ensure we always come from a known state.

Probably this could be revisited later for optimization.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoSQUASH: omap3beagle: camera: Bring back mt9t111 support
Sergio Aguirre [Thu, 15 Jul 2010 22:53:07 +0000 (17:53 -0500)]
SQUASH: omap3beagle: camera: Bring back mt9t111 support

7 years agoomap34xxcam: Fix multi pixel format negotiation
Sergio Aguirre [Thu, 1 Jul 2010 18:57:26 +0000 (13:57 -0500)]
omap34xxcam: Fix multi pixel format negotiation

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Change MT9T111 references to new MT9T112 driver
Sergio Aguirre [Thu, 15 Jul 2010 20:47:23 +0000 (15:47 -0500)]
omap3beagle: camera: Change MT9T111 references to new MT9T112 driver

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoDEBUG: omap3beagle: Add MT9T112 to defconfig
Sergio Aguirre [Thu, 15 Jul 2010 05:55:43 +0000 (00:55 -0500)]
DEBUG: omap3beagle: Add MT9T112 to defconfig

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Fix null pointer kernel bug
Sergio Aguirre [Thu, 1 Jul 2010 14:12:37 +0000 (09:12 -0500)]
mt9t112: Fix null pointer kernel bug

We were trying to access a null pointer (info) which we weren't
initializing anywhere.

Fix this.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Add more info to public header
Sergio Aguirre [Thu, 1 Jul 2010 12:33:49 +0000 (07:33 -0500)]
mt9t112: Add more info to public header

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t112: Migrate from soc_camera to v4l2-int-device
Sergio Aguirre [Thu, 1 Jul 2010 12:26:38 +0000 (07:26 -0500)]
mt9t112: Migrate from soc_camera to v4l2-int-device

This is to use the driver with the old OMAP3 Camera-ISP platform.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agosoc-camera: mt9t112: modify exiting conditions from standby mode
Kuninori Morimoto [Tue, 2 Feb 2010 04:17:54 +0000 (13:17 +0900)]
soc-camera: mt9t112: modify exiting conditions from standby mode

This polling is needed if camera is in standby mode, but current exiting
condition is inverted.

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
7 years agoV4L/DVB (13670): soc-camera: Add mt9t112 camera driver
Kuninori Morimoto [Fri, 11 Dec 2009 14:53:55 +0000 (11:53 -0300)]
V4L/DVB (13670): soc-camera: Add mt9t112 camera driver

create mode 100644 drivers/media/video/mt9t112.c
 create mode 100644 include/media/mt9t112.h

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
7 years agoREMOVE: v4l2: Delete MT9T111 sensor driver
Sergio Aguirre [Thu, 15 Jul 2010 05:50:07 +0000 (00:50 -0500)]
REMOVE: v4l2: Delete MT9T111 sensor driver

This removes MT9T111 support from the kernel.

Reason? Driver already exists in open source, and we're going to
reuse that one instead.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Bring back mt9t111 support
Sergio Aguirre [Mon, 12 Jul 2010 21:42:41 +0000 (16:42 -0500)]
omap3beagle: camera: Bring back mt9t111 support

Restore MT9T111 sensor support.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Cleanup regulator usage
Sergio Aguirre [Mon, 12 Jul 2010 20:53:44 +0000 (15:53 -0500)]
omap3beagle: camera: Cleanup regulator usage

We were missing the point of regulator abstraction layer.

Camera board file shouldn't be aware of what vaux is using, but
just asking for a specific power supply (for cam_1v8 and cam_2v8).

How is that mapped before, is something that the regulator machine
should figure out.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Cleanup of boardfile
Sergio Aguirre [Mon, 12 Jul 2010 20:44:18 +0000 (15:44 -0500)]
omap3beagle: camera: Cleanup of boardfile

This removes a lot of dead code.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9v113: AE param tuned to get 28~30FPS
Vaibhav Hiremath [Thu, 15 Jul 2010 08:23:03 +0000 (13:53 +0530)]
mt9v113: AE param tuned to get 28~30FPS

Please note that with this change we are compromising with
image quality, so should be used only in case of high FPS use-case.

7 years agomt9v113: Settings from Aptima used to increase FPS
Vaibhav Hiremath [Wed, 14 Jul 2010 13:37:34 +0000 (19:07 +0530)]
mt9v113: Settings from Aptima used to increase FPS

The FPS is still low at around ~15FPS, expected one is 30FPS.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoomap3beagle-camera: Further clode cleanup
Vaibhav Hiremath [Wed, 14 Jul 2010 13:37:06 +0000 (19:07 +0530)]
omap3beagle-camera: Further clode cleanup

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoMT9V113: Min, Max clk input changed as per the spec
Vaibhav Hiremath [Tue, 13 Jul 2010 14:10:39 +0000 (19:40 +0530)]
MT9V113: Min, Max clk input changed as per the spec

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agomt9v113:Clean Up: Remove unneccessary code/printf
Vaibhav Hiremath [Tue, 13 Jul 2010 14:09:34 +0000 (19:39 +0530)]
mt9v113:Clean Up: Remove unneccessary code/printf

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoomap3beagle-camera:Clean up: Remove unneccessary code/printf
Vaibhav Hiremath [Tue, 13 Jul 2010 14:08:51 +0000 (19:38 +0530)]
omap3beagle-camera:Clean up: Remove unneccessary code/printf

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoomap3beagle: camera: Fix parallel i/f settings
Sergio Aguirre [Mon, 12 Jul 2010 19:11:44 +0000 (14:11 -0500)]
omap3beagle: camera: Fix parallel i/f settings

This makes the sensor input be shifted from 13:4 -> 9:0, as
in YUV streaming, the 8 least significant pins are used.

Also, activate the 8 to 16 bit conversion bridge in ISP, in
big endian mode.

This makes the ISP interpret the data correctly now. ;)

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3isp: ccdc: Set datalines to 10 for YUV_SYNC
Sergio Aguirre [Mon, 12 Jul 2010 19:09:38 +0000 (14:09 -0500)]
omap3isp: ccdc: Set datalines to 10 for YUV_SYNC

Most of the sensors we use are 10 bits, so set this as
default.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3isp: Set vd_pol to 0 by default on all cases
Sergio Aguirre [Sat, 10 Jul 2010 14:57:40 +0000 (09:57 -0500)]
omap3isp: Set vd_pol to 0 by default on all cases

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3isp: Fix bad YUV_BT checks in datapath_config
Sergio Aguirre [Sat, 10 Jul 2010 14:51:16 +0000 (09:51 -0500)]
omap3isp: Fix bad YUV_BT checks in datapath_config

The use of an external write enable signals (from ISP point of
view) shouldn't depend on the sensor parallel interface type.

Also, the bit shift selection should NOT be other than 9_0 by
default (i.e. No shift).

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3isp: Fix Wrong check on non-interlaced sensor on isr
Sergio Aguirre [Fri, 9 Jul 2010 21:56:18 +0000 (16:56 -0500)]
omap3isp: Fix Wrong check on non-interlaced sensor on isr

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9v113: Fix wrong active widths
Sergio Aguirre [Fri, 9 Jul 2010 21:22:38 +0000 (16:22 -0500)]
mt9v113: Fix wrong active widths

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoMT9V113: Fixed sensor nitialization issues
Vaibhav Hiremath [Fri, 9 Jul 2010 12:08:09 +0000 (17:38 +0530)]
MT9V113: Fixed sensor nitialization issues

With this patch sensor is now able to generate HS, VS and pixel clock, also
CCDC is able to generate HS/VS, VD0, VD1 interrupts.

There are some issues with Buffer processing in ISR routine because of which
DQBUF still hangs.

7 years agoBeagleXM:Cam: Add support for MT9V113 VGA Sensor
Vaibhav Hiremath [Wed, 7 Jul 2010 06:25:43 +0000 (11:55 +0530)]
BeagleXM:Cam: Add support for MT9V113 VGA Sensor

This patch replaces the MT9T111 to MT9V113 sensor.

7 years agoWIP: mt9t111: Work in progress for camera enablement
Sergio Aguirre [Fri, 25 Jun 2010 21:01:47 +0000 (16:01 -0500)]
WIP: mt9t111: Work in progress for camera enablement

This is changing so far:
- Remove useless printk's in enum_frameinterval calls.
- Call mt9t111_loaddefault instead of mt9t111_configure dummy function.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: only register camera driver for 36xx based SoCs
Koen Kooi [Sun, 27 Jun 2010 14:11:39 +0000 (16:11 +0200)]
omap3beagle: camera: only register camera driver for 36xx based SoCs

This is a workaround for the bootcrash when used on 35xx based beagleboards.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7 years agoomap3beagle: camera: Set padconf settings in cam init
Sergio Aguirre [Fri, 25 Jun 2010 21:01:00 +0000 (16:01 -0500)]
omap3beagle: camera: Set padconf settings in cam init

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t111: Fix detect function retval and cleanup prints
Sergio Aguirre [Fri, 25 Jun 2010 18:43:54 +0000 (13:43 -0500)]
mt9t111: Fix detect function retval and cleanup prints

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Complement remainig sensor hw config settings
Sergio Aguirre [Fri, 25 Jun 2010 17:04:48 +0000 (12:04 -0500)]
omap3beagle: camera: Complement remainig sensor hw config settings

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Rename regulators to match actual voltage levels
Sergio Aguirre [Fri, 25 Jun 2010 17:03:59 +0000 (12:03 -0500)]
omap3beagle: camera: Rename regulators to match actual voltage levels

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Change vaux4 to 1.8v
Sergio Aguirre [Fri, 25 Jun 2010 16:24:07 +0000 (11:24 -0500)]
omap3beagle: camera: Change vaux4 to 1.8v

Both voltage sources seem to need 1.8v.

After this, sensor is detected :)

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Fix powerup sequence
Sergio Aguirre [Thu, 24 Jun 2010 23:21:52 +0000 (18:21 -0500)]
omap3beagle: camera: Fix powerup sequence

The powerup sequence was very incomplete. After revisiting the
Aptina developer's guide, the resulting powerup sequence is followed.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Clarify regulators names
Sergio Aguirre [Thu, 24 Jun 2010 22:53:55 +0000 (17:53 -0500)]
omap3beagle: camera: Clarify regulators names

Changed:
 - beagle_mt9t111_reg1 -> beagle_mt9t111_1_8v
 - beagle_mt9t111_reg2 -> beagle_mt9t111_2_8v

To help clarify sequence.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t111: Fix max supported xclk
Sergio Aguirre [Thu, 24 Jun 2010 22:43:23 +0000 (17:43 -0500)]
mt9t111: Fix max supported xclk

According to Aptina documentation, the max should be 54 MHz, not 75 MHz.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: set mclk for mt9t111
Sergio Aguirre [Thu, 24 Jun 2010 21:34:13 +0000 (16:34 -0500)]
omap3beagle: camera: set mclk for mt9t111

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3isp: core: Do smarter MCLK setting
Sergio Aguirre [Wed, 25 Nov 2009 18:30:46 +0000 (12:30 -0600)]
omap3isp: core: Do smarter MCLK setting

Since the ratio between MCLK and DPLL4_M5 could not be 1:1
(i.e. on 3430 its 2:1), it's necessary to check ratio
between those 2 first.

This should make MCLK setting more adequate to different
chipsets.

Tested on Zoom2 (3430 ES3.1)

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoFix: Moved MCLK setting to the board file
Penda, Naveen [Thu, 22 Oct 2009 00:37:01 +0000 (06:07 +0530)]
Fix: Moved MCLK setting to the board file

This patch provides the flexibility to set  the MCLK frequency
 from the board file

Signed-off-by: Naveen Penda <pnaveen@ti.com>
Signed-off-by: Curran, Dominic <dcurran@ti.com>
7 years agoomap3isp: set CAM_MCLK to 172.8 MHz, allows exact 9.6 MHz for camera xclka/b
Tuukka Toivonen [Thu, 2 Jul 2009 14:17:55 +0000 (16:17 +0200)]
omap3isp: set CAM_MCLK to 172.8 MHz, allows exact 9.6 MHz for camera xclka/b

Camera cam_xclka and cam_xclkb clocks are generated by dividing
CAM_MCLK with an integer. We want to use 9.6 MHz for cameras,
so CAM_MCLK should be multiple of it. Otherwise the generated
frequency is slightly off due to rounding.

Signed-off-by: Tuukka Toivonen <tuukka.o.toivonen@nokia.com>
7 years agoomap3beagle: camera: Fix wrong XCLKA selection
Sergio Aguirre [Thu, 24 Jun 2010 22:31:49 +0000 (17:31 -0500)]
omap3beagle: camera: Fix wrong XCLKA selection

The CAM_USE_XCLKA should have been 0 instead of 1.

Otherwise it was activating XCLKB instead!

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoRevert "DEBUG: omap3beagle: camera: Force mode0 in cam_xclka"
Sergio Aguirre [Thu, 24 Jun 2010 19:27:39 +0000 (14:27 -0500)]
Revert "DEBUG: omap3beagle: camera: Force mode0 in cam_xclka"

This reverts commit 158e14b3d449dde2c6aa9f8cddb86fbbee2d2cd7.

7 years agoOMAP3: CLOCK: Add capability to change rate of dpll4_m5_ck_3630
Sergio Aguirre [Fri, 5 Feb 2010 00:12:37 +0000 (18:12 -0600)]
OMAP3: CLOCK: Add capability to change rate of dpll4_m5_ck_3630

Add necessary clk_sel definitions to clock framework to allow changing
dpll4_m5_ck_3630 rate.

Based on patch by Tuukka Toivonen <tuukka.o.toivonen@nokia.com> with subject:

OMAP3: CLOCK: Add capability to change rate of dpll4_m5_ck

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoDEBUG: omap3beagle: camera: Force mode0 in cam_xclka
Sergio Aguirre [Wed, 23 Jun 2010 20:03:24 +0000 (15:03 -0500)]
DEBUG: omap3beagle: camera: Force mode0 in cam_xclka

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoARM: OMAP3: make camera code build if MT9T111 is built as module or disabled
Koen Kooi [Wed, 16 Jun 2010 07:45:46 +0000 (09:45 +0200)]
ARM: OMAP3: make camera code build if MT9T111 is built as module or disabled

7 years agoomap3beagle: camera: Move i2c registration to the main board
Sergio Aguirre [Wed, 16 Jun 2010 01:58:46 +0000 (04:58 +0300)]
omap3beagle: camera: Move i2c registration to the main board

This is because the board-omap3beagle-camera.c file now is
late_initcall, and the i2c bus registration needed to be before
i2c host init.

So, in order to have the i2c init, meanwhile having late_initcall,
this is so far the best solution.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Change arch -> late_initcall
Sergio Aguirre [Wed, 16 Jun 2010 01:28:06 +0000 (04:28 +0300)]
omap3beagle: camera: Change arch -> late_initcall

This is for ensuring that the regulators are initialized already.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoRevert "TEMP: omap3beagle: cam: Enable OMAP_MUX"
Sergio Aguirre [Wed, 16 Jun 2010 00:23:57 +0000 (03:23 +0300)]
Revert "TEMP: omap3beagle: cam: Enable OMAP_MUX"

This reverts commit 7d5f49845f06feadb9bc97d458d1ce03814ff5f4.

Reason?

Kernel panic on MMC partition mount, so probably muxing is broken
somewhere.

7 years agoomap3beagle: camera: Fix null pointer dereference
Sergio Aguirre [Fri, 11 Jun 2010 22:53:50 +0000 (17:53 -0500)]
omap3beagle: camera: Fix null pointer dereference

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoTEMP: omap3beagle: cam: Enable OMAP_MUX
Sergio Aguirre [Fri, 11 Jun 2010 21:52:25 +0000 (16:52 -0500)]
TEMP: omap3beagle: cam: Enable OMAP_MUX

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: camera: Add support for regulators
Sergio Aguirre [Fri, 11 Jun 2010 21:50:39 +0000 (16:50 -0500)]
omap3beagle: camera: Add support for regulators

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoTEMP: omap3beagle: camera: Add defconfig
Sergio Aguirre [Fri, 11 Jun 2010 21:18:30 +0000 (16:18 -0500)]
TEMP: omap3beagle: camera: Add defconfig

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoomap3beagle: Add camera support
Sergio Aguirre [Fri, 11 Jun 2010 21:15:58 +0000 (16:15 -0500)]
omap3beagle: Add camera support

This is tested with the xM + Leopard imaging module camera, which
has a MT9T111.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t111: Pass v4l2_int_device data
Sergio Aguirre [Fri, 11 Jun 2010 21:17:56 +0000 (16:17 -0500)]
mt9t111: Pass v4l2_int_device data

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t111: Fix all checkpatch errors
Sergio Aguirre [Fri, 11 Jun 2010 18:51:49 +0000 (13:51 -0500)]
mt9t111: Fix all checkpatch errors

The code was plagued with checkpatch errors. Fix them!

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agomt9t111: first stab at merging sensor driver based on a patch by Leopard Imaging
OpenEmbedded User [Tue, 9 Feb 2010 16:16:13 +0000 (17:16 +0100)]
mt9t111: first stab at merging sensor driver based on a patch by Leopard Imaging

7 years agoARM: OMAP: beagle: add support for beagleFPGA expansionboard: http://members.cox...
Koen Kooi [Sat, 15 May 2010 19:47:32 +0000 (21:47 +0200)]
ARM: OMAP: beagle: add support for beagleFPGA expansionboard: members.cox.net/ebrombaugh1/embedded/beagle/beagle_fpga.html

7 years agoARM: OMAP: beagle: every known beagle (except revB) uses 2 chipselects so don't use...
Koen Kooi [Thu, 13 May 2010 19:43:08 +0000 (21:43 +0200)]
ARM: OMAP: beagle: every known beagle (except revB) uses 2 chipselects so don't use NULL for the second chipselect timings

7 years agoMTD: silence ecc errors on mtdblock0
Steve Sakoman [Mon, 26 Apr 2010 18:17:26 +0000 (11:17 -0700)]
MTD: silence ecc errors on mtdblock0

mtdblock0 is the x-load partition, which uses hw ecc
this confuses linux, which uses sw ecc
this patch silences ecc error messages when linux peeks into mtdblock0
* not for upstream submission *

7 years agomusb: allow host io without gadget module
Ajay Kumar Gupta [Wed, 14 Apr 2010 10:38:37 +0000 (16:08 +0530)]
musb: allow host io without gadget module

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
7 years agoARM: Expose some PMON registers through sysfs
Mans Rullgard [Sat, 28 Mar 2009 13:05:02 +0000 (13:05 +0000)]
ARM: Expose some PMON registers through sysfs

7 years agoARM: Add option to allow userspace access to performance counters
Mans Rullgard [Tue, 10 Nov 2009 00:52:56 +0000 (00:52 +0000)]
ARM: Add option to allow userspace access to performance counters

This adds an option to allow userspace access to the performance monitor
registers of the Cortex-A8.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoARM: Add option to allow userspace PLE access
Mans Rullgard [Tue, 10 Nov 2009 00:41:54 +0000 (00:41 +0000)]
ARM: Add option to allow userspace PLE access

This adds a Kconfig option to allow userspace to access the L2 preload
engine (PLE) found in Cortex-A8.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoARM: Expose some CPU control registers via sysfs
Mans Rullgard [Tue, 10 Nov 2009 00:39:21 +0000 (00:39 +0000)]
ARM: Expose some CPU control registers via sysfs

This creates sysfs files under /sys/devices/system/cpu/cpuN
exposing the values of the control register, auxiliary control
register, and L2 cache auxiliary control register.  Writing to
the files allows setting the value of bits which are safe to
change at any time.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoARM: Print warning on alignment trap in kernel mode
Mans Rullgard [Sat, 28 Mar 2009 13:21:55 +0000 (13:21 +0000)]
ARM: Print warning on alignment trap in kernel mode

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoARM: Add prompt for CONFIG_ALIGNMENT_TRAP
Mans Rullgard [Mon, 13 Oct 2008 19:32:16 +0000 (20:32 +0100)]
ARM: Add prompt for CONFIG_ALIGNMENT_TRAP

This adds a prompt text for CONFIG_ALIGNMENT_TRAP, thus making it
visible in make *config.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoRTC: add support for backup battery recharge
Steve Sakoman [Thu, 4 Feb 2010 20:26:22 +0000 (12:26 -0800)]
RTC: add support for backup battery recharge

7 years agomodedb.c: add proper 720p60 mode
Koen Kooi [Mon, 8 Mar 2010 13:38:31 +0000 (14:38 +0100)]
modedb.c: add proper 720p60 mode

7 years agoSwitch SGX clocks to 200MHz on DM37xx/OMAP36xx
Prabindh Sundareson [Wed, 3 Mar 2010 14:45:35 +0000 (15:45 +0100)]
Switch SGX clocks to 200MHz on DM37xx/OMAP36xx