pandora-kernel.git
14 years agoMerge branch 'pandora-27-omap1' into rev2 rev2
Grazvydas Ignotas [Wed, 25 Nov 2009 21:37:09 +0000 (23:37 +0200)]
Merge branch 'pandora-27-omap1' into rev2

14 years agojoydev: update button hack for game button change
Grazvydas Ignotas [Wed, 25 Nov 2009 21:32:46 +0000 (23:32 +0200)]
joydev: update button hack for game button change

Also changes order so that game buttons go first.

14 years agoinput: change game button scancodes to KEY_KPx
Grazvydas Ignotas [Wed, 25 Nov 2009 21:28:41 +0000 (23:28 +0200)]
input: change game button scancodes to KEY_KPx

Craig et al. decided to drop SNES layout, using independend
keycodes instead.

14 years agoMerge branch 'pandora-27-omap1' into rev2
Grazvydas Ignotas [Wed, 25 Nov 2009 13:43:13 +0000 (15:43 +0200)]
Merge branch 'pandora-27-omap1' into rev2

14 years agoset up charger LED trigger
Grazvydas Ignotas [Tue, 24 Nov 2009 15:06:05 +0000 (17:06 +0200)]
set up charger LED trigger

14 years agoBCI: don't set OTG_EN
Grazvydas Ignotas [Tue, 24 Nov 2009 13:47:30 +0000 (15:47 +0200)]
BCI: don't set OTG_EN

This was already done by caller - USB code. Also avoids setting up
clock for i2c needlessly.

14 years agoBCI: USB charging fixes, charge current setup for AC/USB
Grazvydas Ignotas [Tue, 24 Nov 2009 13:34:00 +0000 (15:34 +0200)]
BCI: USB charging fixes, charge current setup for AC/USB

14 years agoLED: make triggers track their state
Grazvydas Ignotas [Tue, 24 Nov 2009 12:24:45 +0000 (14:24 +0200)]
LED: make triggers track their state

Sometimes events trigger before LEDs are registered, but simple
triggers don't track their state and LED starts as if nothing
happened.

Add some state tracking to simple triggers.

14 years agomusb: hack to get host device hotplug working
Grazvydas Ignotas [Tue, 24 Nov 2009 12:21:05 +0000 (14:21 +0200)]
musb: hack to get host device hotplug working

It is now possible to hotplug USB devices on OTG port. Still
sometimes several replugs are needed though (due to bugs).

14 years agotwl4030-usb: changes for VBUS/ID detection on OTG port
Grazvydas Ignotas [Tue, 24 Nov 2009 12:18:20 +0000 (14:18 +0200)]
twl4030-usb: changes for VBUS/ID detection on OTG port

Some hackish code involving VUSB3V1 regulator power source
switching to get VBUS/ID detection working better.

14 years agotwl4030-usb: remove unneeded code
Grazvydas Ignotas [Sun, 22 Nov 2009 22:12:53 +0000 (00:12 +0200)]
twl4030-usb: remove unneeded code

This code was removed from later versions of the driver
(part of it is leftover from OMAP1, part is non-functional
because i2c access is disabled when it's called).

14 years agousb: musb: remove dead code from procfs
Felipe Balbi [Thu, 11 Sep 2008 08:53:25 +0000 (11:53 +0300)]
usb: musb: remove dead code from procfs

When removing the procfs file, I forgot to remove some
code that created and removed that file. Here's a patch
to fix it. Ideally this patch will be melded into the patch
removing the procfs file, don't know if it's possible still.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoBCI: fix current calculation and CGAIN bit set procedure
Grazvydas Ignotas [Fri, 20 Nov 2009 10:18:57 +0000 (12:18 +0200)]
BCI: fix current calculation and CGAIN bit set procedure

Use TI formula for current calculation and a bit cleaner
way to set CGAIN bit.

14 years agovsense: change reset handling
Grazvydas Ignotas [Fri, 20 Nov 2009 10:10:50 +0000 (12:10 +0200)]
vsense: change reset handling

Leave reset on first use and stay that way - the nub
firmware has power management of it's own (powers itself down
when not in use).

14 years agoASoC: change powerdown default to 1 minute
Grazvydas Ignotas [Thu, 19 Nov 2009 12:40:37 +0000 (14:40 +0200)]
ASoC: change powerdown default to 1 minute

14 years agoMerge branch 'pandora-27-omap1' into rev2
Grazvydas Ignotas [Fri, 30 Oct 2009 10:01:00 +0000 (12:01 +0200)]
Merge branch 'pandora-27-omap1' into rev2

14 years agovsense: use shorter data transfers
Grazvydas Ignotas [Wed, 28 Oct 2009 14:31:16 +0000 (16:31 +0200)]
vsense: use shorter data transfers

The nub controller supports terminating transfer early,
so read only data we need for quicker transfers.

14 years agodrop i2c bus speed to 100kHz so that bq27500 works reliably
Grazvydas Ignotas [Wed, 28 Oct 2009 14:29:07 +0000 (16:29 +0200)]
drop i2c bus speed to 100kHz so that bq27500 works reliably

14 years agoMerge branch 'pandora-27-omap1' into rev2
Grazvydas Ignotas [Wed, 21 Oct 2009 08:49:06 +0000 (11:49 +0300)]
Merge branch 'pandora-27-omap1' into rev2

14 years agobci_battery: avoid clearing unrelated REG_GPBR1 bits
Grazvydas Ignotas [Tue, 20 Oct 2009 13:19:40 +0000 (16:19 +0300)]
bci_battery: avoid clearing unrelated REG_GPBR1 bits

14 years agobacklight: fix register writes
Grazvydas Ignotas [Tue, 20 Oct 2009 13:12:52 +0000 (16:12 +0300)]
backlight: fix register writes

Use read-modify-write procedure to avoid trashing other bits.
Also use some delays to avoid hiting 1-wire mode in LED driver chip.

14 years agoRevert "rev3 changes" for rev2 branch.
Grazvydas Ignotas [Wed, 7 Oct 2009 11:08:52 +0000 (14:08 +0300)]
Revert "rev3 changes" for rev2 branch.

This reverts commit 4162fb142cd8d5a435b69fa44d6b1eec349420c9.

14 years agohack: enable 32kHz during boot so that BT works
Grazvydas Ignotas [Wed, 7 Oct 2009 10:53:36 +0000 (13:53 +0300)]
hack: enable 32kHz during boot so that BT works

14 years agoadd bci stuff to defconfig
Grazvydas Ignotas [Wed, 12 Aug 2009 09:05:49 +0000 (12:05 +0300)]
add bci stuff to defconfig

14 years agobci: test code from linux-omap list
Grazvydas Ignotas [Wed, 12 Aug 2009 09:01:24 +0000 (12:01 +0300)]
bci: test code from linux-omap list

14 years agopandora: setup data for madc and bci, allow bci driver to compile
Grazvydas Ignotas [Wed, 12 Aug 2009 08:58:33 +0000 (11:58 +0300)]
pandora: setup data for madc and bci, allow bci driver to compile

14 years agomadc: populate madc->dev to avoid a crash
Grazvydas Ignotas [Wed, 12 Aug 2009 08:54:57 +0000 (11:54 +0300)]
madc: populate madc->dev to avoid a crash

14 years agorev3 changes
Grazvydas Ignotas [Tue, 19 May 2009 14:32:17 +0000 (17:32 +0300)]
rev3 changes

14 years agoinput: hack: get alt/ctrl picked up as start/select by jsdev
Grazvydas Ignotas [Sun, 7 Jun 2009 16:43:03 +0000 (19:43 +0300)]
input: hack: get alt/ctrl picked up as start/select by jsdev

14 years agoinput: make start select act as alt/ctrl
Grazvydas Ignotas [Tue, 19 May 2009 14:07:38 +0000 (17:07 +0300)]
input: make start select act as alt/ctrl

14 years agodefconfig: enable DSS2
Grazvydas Ignotas [Sun, 3 May 2009 19:36:39 +0000 (22:36 +0300)]
defconfig: enable DSS2

14 years agoDSS2: add support for FBIO_WAITFORVSYNC
Grazvydas Ignotas [Sun, 3 May 2009 12:43:15 +0000 (15:43 +0300)]
DSS2: add support for FBIO_WAITFORVSYNC

FBIO_WAITFORVSYNC is semi-stardard ioctl for waiting vsync, already
used by some userspace, so add it as an alias for OMAPFB_WAITFORVSYNC.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
14 years agoDSS2: use 16bpp recommended_bpp, for now
Grazvydas Ignotas [Sun, 3 May 2009 12:36:09 +0000 (15:36 +0300)]
DSS2: use 16bpp recommended_bpp, for now

14 years agomisc: remove wait_vsync proc entry
Grazvydas Ignotas [Fri, 1 May 2009 16:55:33 +0000 (19:55 +0300)]
misc: remove wait_vsync proc entry

DSS2 offers OMAPFB_WAITFORVSYNC ioctl for that.

14 years agoDSS2: Add DSS2 support for Pandora
Grazvydas Ignotas [Fri, 1 May 2009 16:53:28 +0000 (19:53 +0300)]
DSS2: Add DSS2 support for Pandora

14 years agoDSS2: Add TPO TD043MTEA1 panel
Grazvydas Ignotas [Wed, 29 Apr 2009 09:36:40 +0000 (12:36 +0300)]
DSS2: Add TPO TD043MTEA1 panel

This panel is used by OMAP3 pandora.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
14 years agoDSS2: Documentation update for new sysfs entries in omapdss/manager
Hardik Shah [Mon, 27 Apr 2009 07:45:07 +0000 (13:15 +0530)]
DSS2: Documentation update for new sysfs entries in omapdss/manager

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: Rotation attrs for YUV need not to be reversed for 90 and 270
Hardik Shah [Fri, 24 Apr 2009 09:03:48 +0000 (14:33 +0530)]
DSS2: Rotation attrs for YUV need not to be reversed for 90 and 270

DSS2 supports horizontal mirroing. so only 180 and 0 degree attributes needs
to be reversed for mirroring.
Slight corrupt image is seen with 90 ad 270 degree rotation with mirroring
when the image height and widht is not 32-pixels aligned. To be specific
resolution is 168X192.

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: Added global alpha support.
Hardik Shah [Fri, 24 Apr 2009 09:59:06 +0000 (15:29 +0530)]
DSS2: Added global alpha support.

global_alpha sysfs entry for video1 plane will always show 255 as
it does not support global_alpha.
Initliazied the global alpha field for all the overlays
to 255 (fully opaque).
Documentation also updated.

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: DSI: more error handling
Tomi Valkeinen [Mon, 27 Apr 2009 08:06:16 +0000 (11:06 +0300)]
DSS2: DSI: more error handling

14 years agoDSS2: disable LCD & DIGIT before resetting DSS
Tomi Valkeinen [Thu, 23 Apr 2009 07:46:53 +0000 (10:46 +0300)]
DSS2: disable LCD & DIGIT before resetting DSS

This seems to fix the synclost problem that we get, if the bootloader
starts the DSS and the kernel resets it.

14 years agoDSS2: VRAM: fix section mismatch warning
Imre Deak [Wed, 22 Apr 2009 12:40:48 +0000 (14:40 +0200)]
DSS2: VRAM: fix section mismatch warning

postponed_regions are accessed from the non __init
omap_vram_add_region().

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: VRAM: use debugfs, not procfs
Tomi Valkeinen [Wed, 22 Apr 2009 11:11:52 +0000 (14:11 +0300)]
DSS2: VRAM: use debugfs, not procfs

14 years agoDSS2: OMAPFB: remove fb clearing code
Tomi Valkeinen [Wed, 22 Apr 2009 07:26:06 +0000 (10:26 +0300)]
DSS2: OMAPFB: remove fb clearing code

VRAM manager does the clearing now when the area is allocated.

14 years agoDSS2: VRAM: clear allocated area with DMA
Tomi Valkeinen [Wed, 22 Apr 2009 07:25:20 +0000 (10:25 +0300)]
DSS2: VRAM: clear allocated area with DMA

Use DMA constant fill feature to clear VRAM area when
someone allocates it.

14 years agoOMAP2/3: DMA: implement trans copy and const fill
Tomi Valkeinen [Wed, 22 Apr 2009 07:06:08 +0000 (10:06 +0300)]
OMAP2/3: DMA: implement trans copy and const fill

Implement transparent copy and constant fill features for OMAP2/3.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoDSS2: fix return value for rotate_type sysfs function
Imre Deak [Tue, 21 Apr 2009 13:18:36 +0000 (15:18 +0200)]
DSS2: fix return value for rotate_type sysfs function

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: DSI: decrease sync timeout from 60s to 2s
Tomi Valkeinen [Tue, 21 Apr 2009 07:11:55 +0000 (10:11 +0300)]
DSS2: DSI: decrease sync timeout from 60s to 2s

The framedone-problem should be ok now, so we shouldn't get long waits.

14 years agoDSS2: Fixed line endings from , to ;
Tomi Valkeinen [Tue, 21 Apr 2009 06:25:16 +0000 (09:25 +0300)]
DSS2: Fixed line endings from , to ;

14 years agoDSS2: add sysfs entry for seting the rotate type
Imre Deak [Mon, 20 Apr 2009 12:55:33 +0000 (14:55 +0200)]
DSS2: add sysfs entry for seting the rotate type

This can help in utilizing VRAM memory better. Since with VRFB rotation
we waste a lot of physical memory due to the VRFB HW design, provide the
possibility to turn it off and free the extra memory for the use by other
planes for example.

14 years agoDSS2: Swap field 0 and field 1 registers
Ville Syrjälä [Mon, 20 Apr 2009 14:26:20 +0000 (16:26 +0200)]
DSS2: Swap field 0 and field 1 registers

The values for the registers which have alternate values for each field
were reveresed to what the hardware expects. For the hardware field 0
is the even field or the bottom field, field 1 is the odd field or the
top field. So simply swap the register values.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: Don't enable fieldmode automatically
Ville Syrjälä [Mon, 20 Apr 2009 14:26:19 +0000 (16:26 +0200)]
DSS2: Don't enable fieldmode automatically

The only case where enabling fieldmode automatically seems reasonable
is when source and destination heights are equal. Some kind of user
controllable knob should be added so the user could enable field mode
when the source is interlaced.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: Disable vertical offset with fieldmode
Ville Syrjälä [Mon, 20 Apr 2009 14:26:18 +0000 (16:26 +0200)]
DSS2: Disable vertical offset with fieldmode

When using fieldmode each field is basically a separate picture so the
vertical filter should start at phase 0 for both fields.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: Provided proper exclusion for destination color keying and alpha blending.
Hardik Shah [Fri, 17 Apr 2009 08:54:46 +0000 (14:24 +0530)]
DSS2: Provided proper exclusion for destination color keying and alpha blending.

OMAP does not support destination color key and alpha blending
simultaneously.  So this patch does not allow the user
so set both at a time.

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: Add sysfs entry to for the alpha blending support.
Hardik Shah [Fri, 17 Apr 2009 08:28:21 +0000 (13:58 +0530)]
DSS2: Add sysfs entry to for the alpha blending support.

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2:OMAPFB: Some color keying pointerd renamed in DSS2. Replicated in FB
Hardik Shah [Fri, 17 Apr 2009 04:21:25 +0000 (09:51 +0530)]
DSS2:OMAPFB: Some color keying pointerd renamed in DSS2. Replicated in FB

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: Added support for querying color keying.
Hardik Shah [Fri, 17 Apr 2009 04:12:36 +0000 (09:42 +0530)]
DSS2: Added support for querying color keying.

V4L2 Framework has a ioctl for getting/setting color keying.
So added the function manager pointers for doing same.

Modifed the color keying sysfs entries to use manager
function pointer. Earlier they were calling direcly
dispc function to set/enable color keying.

Some of color-keying function pointers in the overlay_manager
structure re-named to be more specific.

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: Added support for setting and querying alpha blending.
Hardik Shah [Thu, 16 Apr 2009 13:30:11 +0000 (19:00 +0530)]
DSS2: Added support for setting and querying alpha blending.

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: Added the function pointer for getting default color.
Hardik Shah [Thu, 16 Apr 2009 13:17:49 +0000 (18:47 +0530)]
DSS2: Added the function pointer for getting default color.

V4L2 Framework has a CID for getting/setting default color.
So added the function pointer for doing same.
SYSFS based getting the default color will remain same

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: VRAM: improve omap_vram_add_region()
Tomi Valkeinen [Thu, 16 Apr 2009 14:56:00 +0000 (17:56 +0300)]
DSS2: VRAM: improve omap_vram_add_region()

Combine postponed and non-posponed versions of omap_vram_add_region.
Make the func non-static, so it can be called from board files.

14 years agoDSS2: Prefer 3-tap filter
Ville Syrjälä [Thu, 9 Apr 2009 13:04:43 +0000 (15:04 +0200)]
DSS2: Prefer 3-tap filter

The 5-tap filter seems rather unstable. With some scaling settings it
works and with some it doesn't even though the functional clock remains
within the TRM limits. So prefer the 3-tap filter unless the functional
clock required for it is too high.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: Fix DISPC_VID_FIR value for omap34xx
Ville Syrjälä [Thu, 9 Apr 2009 13:04:44 +0000 (15:04 +0200)]
DSS2: Fix DISPC_VID_FIR value for omap34xx

The msbs of the DISPC_VID_FIR fields were incorrectly masked out on
omap34xx and thus 4:1 downscale did not work correctly.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: do bootmem reserve for exclusive access
Imre Deak [Tue, 14 Apr 2009 12:50:11 +0000 (14:50 +0200)]
DSS2: do bootmem reserve for exclusive access

BOOTMEM_DEFAULT would allow multiple reservations for the same location,
we need to reserve the region for our exclusive use. Also check if the
reserve succeeded.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: dispc_get_trans_key was returning wrong key type
Hardik Shah [Wed, 15 Apr 2009 11:35:18 +0000 (17:05 +0530)]
DSS2: dispc_get_trans_key was returning wrong key type

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: OMAPFB: Set line_length correctly for YUV with VRFB.
Tim Yamin [Mon, 13 Apr 2009 20:57:42 +0000 (13:57 -0700)]
DSS2: OMAPFB: Set line_length correctly for YUV with VRFB.

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
14 years agoDSS2: OMAPFB: Added support for the YUV VRFB rotation and mirroring.
Hardik Shah [Thu, 9 Apr 2009 06:43:07 +0000 (12:13 +0530)]
DSS2: OMAPFB: Added support for the YUV VRFB rotation and mirroring.

DSS2 now requires roatation_type to be specified by driver.
Added support for that.
DSS2 OMAPFB: Modified to pass the dss mode to omap_vrfb_setup function.

VRFB size register requires the width to be halved when the
mode is YUV or UYVY.  So VRFB is modifed to pass the mode to omap_vrfb_setup
function.

Few changes done by Tim Yamin
Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: VRFB rotation and mirroring implemented.
Hardik Shah [Thu, 9 Apr 2009 06:39:44 +0000 (12:09 +0530)]
DSS2: VRFB rotation and mirroring implemented.

DSS2 modified to accept the rotation_type input
to get the dma or VRFB rotation.

DSS2: VRFB: Changed to pass DSS mode to vrfb_setup instead of Bpp.

VRFB size registers requires the width to be halved when the
mode is YUV or UYVY.  So modifed to pass the mode to omap_vrfb_setup
function.

Code added by Tim Yamin for few bug fixes

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: DSI: sidlemode to noidle while sending frame
Tomi Valkeinen [Wed, 15 Apr 2009 11:06:54 +0000 (14:06 +0300)]
DSS2: DSI: sidlemode to noidle while sending frame

DISPC interrupts are not wake-up capable. Smart-idle in DISPC_SIDLEMODE
causes DSS interface to go to idle at the end of the frame, and the
FRAMEDONE interrupt is then delayed until something wakes up the DSS
interface.

So we set SIDLEMODE to no-idle when we start sending the frame, and
set it back to smart-idle after receiving FRAMEDONE.

14 years agoDSS2: VRFB: Macro for calculating base address of the VRFB context was faulty
Hardik Shah [Mon, 13 Apr 2009 13:20:24 +0000 (18:50 +0530)]
DSS2: VRFB: Macro for calculating base address of the VRFB context was faulty

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: Beagle: Use gpio_set_value
Tomi Valkeinen [Thu, 9 Apr 2009 09:10:46 +0000 (12:10 +0300)]
DSS2: Beagle: Use gpio_set_value

14 years agoDSS2: pass the default FB color format through board info
Imre Deak [Wed, 8 Apr 2009 10:51:46 +0000 (12:51 +0200)]
DSS2: pass the default FB color format through board info

Add a field to the FB memory region platform data, so that board
init code can pass a default color format to the driver. Set this
format as an initial setting for the given FB.

This is needed for an upcoming patch that adds detection of the
color format set by the bootloader.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: FB: remove unused var warning
Imre Deak [Mon, 6 Apr 2009 20:26:04 +0000 (22:26 +0200)]
DSS2: FB: remove unused var warning

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: Add venc register dump
Ville Syrjälä [Mon, 6 Apr 2009 15:32:06 +0000 (17:32 +0200)]
DSS2: Add venc register dump

Add a new file to debugfs to dump the VENC registers. The function
prototype was already there but the implementation was missing.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: Check scaling limits against proper values
Ville Syrjälä [Mon, 6 Apr 2009 15:32:05 +0000 (17:32 +0200)]
DSS2: Check scaling limits against proper values

Move the ilace and fieldmode related height adjustments to be performed
before checking the scaling limits.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: Check fclk limits when configuring video planes
Ville Syrjälä [Mon, 6 Apr 2009 15:32:04 +0000 (17:32 +0200)]
DSS2: Check fclk limits when configuring video planes

Check that the currect functional clock is fast enough to support
the requested scaling ratios. Also check if 5-tap filtering can be
used even though the downscaling ratio is less than 1:2 since the
functional clock rate required for 5-tap filtering can be less than
the requirement for 3-tap filtering, and 5-tap filtering should look
better.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: check for ovl paddr only when enabling
Tomi Valkeinen [Tue, 7 Apr 2009 07:01:58 +0000 (10:01 +0300)]
DSS2: check for ovl paddr only when enabling

It seems Xvideo uses SETUP_PLANE ioctl even when
the fb memory has not been allocated. Sigh.

14 years agoDSS2: Disable video planes on sync lost error
Ville Syrjälä [Fri, 3 Apr 2009 17:09:20 +0000 (19:09 +0200)]
DSS2: Disable video planes on sync lost error

When encountering the sync lost error disable the display and all video
planes on the affected manager. Afterwards re-enable the display.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: DSI: improve packet len calculation
Tomi Valkeinen [Thu, 2 Apr 2009 14:42:26 +0000 (17:42 +0300)]
DSS2: DSI: improve packet len calculation

14 years agoDSS2: DSI: calculate VP_CLK_RATIO properly
Tomi Valkeinen [Thu, 2 Apr 2009 13:49:27 +0000 (16:49 +0300)]
DSS2: DSI: calculate VP_CLK_RATIO properly

14 years agoDSS2: Add function to get DSS logic clock rate
Tomi Valkeinen [Thu, 2 Apr 2009 13:48:41 +0000 (16:48 +0300)]
DSS2: Add function to get DSS logic clock rate

14 years agoDSS2: Verify that overlay paddr != 0
Tomi Valkeinen [Thu, 2 Apr 2009 11:21:12 +0000 (14:21 +0300)]
DSS2: Verify that overlay paddr != 0

14 years agoDSS2: Fix DMA rotation
Tomi Valkeinen [Thu, 2 Apr 2009 10:47:11 +0000 (13:47 +0300)]
DSS2: Fix DMA rotation

u16 was not a good type for offsets. First, they need to be signed,
and second, 16 bits is not enough.

14 years agoDSS2: Allocated memory for Color Look-up-table
Vaibhav Hiremath [Tue, 31 Mar 2009 13:08:31 +0000 (18:38 +0530)]
DSS2: Allocated memory for Color Look-up-table

We were not allocating memory for CMAP buffer and due to that
G_CMAP was failing, since it does check for size of CMAP buffer.

Called "fb_alloc_cmap" for llocating memory for CMAP.

We are currently not supporting 1,2,4,8 bpp, so meaning less
for us as of now. But for completeness this is required.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
14 years agoDSS2: Small VRFB context allocation bug fixed
Vaibhav Hiremath [Tue, 31 Mar 2009 13:17:32 +0000 (18:47 +0530)]
DSS2: Small VRFB context allocation bug fixed

This is minor bug while requesting and mapping memory for
VRFB space.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
14 years agoDSS2: Add acx565akm panel
Imre Deak [Thu, 2 Apr 2009 08:47:13 +0000 (11:47 +0300)]
DSS2: Add acx565akm panel

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: Add function to display object to get the backlight level
Imre Deak [Wed, 1 Apr 2009 12:36:39 +0000 (14:36 +0200)]
DSS2: Add function to display object to get the backlight level

This is needed by an upcoming patch that changes the backlight
initialization to use the backlight level set by the bootloader.

Also add a field for the maximum backlight level.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: Add DSS2 support for SDP, Beagle, Overo, EVM
Tomi Valkeinen [Thu, 2 Apr 2009 07:36:05 +0000 (10:36 +0300)]
DSS2: Add DSS2 support for SDP, Beagle, Overo, EVM

Also custom dss_*_defconfigs as an example.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoDSS2: HACK: Add DSS2 support for N800
Tomi Valkeinen [Thu, 2 Apr 2009 07:31:57 +0000 (10:31 +0300)]
DSS2: HACK: Add DSS2 support for N800

Works, but it an ugly quick hack.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoDSS2: Add panel drivers
Tomi Valkeinen [Thu, 2 Apr 2009 07:29:56 +0000 (10:29 +0300)]
DSS2: Add panel drivers

- Generic panel
- Samsung LTE430WQ-F0C LCD Panel
- Sharp LS037V7DW01 LCD Panel

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoDSS2: OMAP framebuffer driver
Tomi Valkeinen [Thu, 2 Apr 2009 07:25:48 +0000 (10:25 +0300)]
DSS2: OMAP framebuffer driver

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoDSS2: OMAP2/3 Display Subsystem driver
Tomi Valkeinen [Thu, 2 Apr 2009 07:23:42 +0000 (10:23 +0300)]
DSS2: OMAP2/3 Display Subsystem driver

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoOMAPFB: move omapfb.h to include/linux/
Tomi Valkeinen [Wed, 11 Feb 2009 14:33:02 +0000 (16:33 +0200)]
OMAPFB: move omapfb.h to include/linux/

This is needed so that omapfb.h is automatically exported to user space.

omapfb.h should be cleaned up later. Some stuff can probably be moved
to omapfb's private include file.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoAdd omap_rev() hack
Grazvydas Ignotas [Thu, 16 Apr 2009 09:44:54 +0000 (12:44 +0300)]
Add omap_rev() hack

omap_rev() was added in .28 (renamed from system_rev), so we
use this hack here.

14 years agoOMAP: Add clk_get_parent() for OMAP2/3
Mans Rullgard [Mon, 20 Oct 2008 23:24:24 +0000 (00:24 +0100)]
OMAP: Add clk_get_parent() for OMAP2/3

This makes clk_get_parent() work on OMAP2/3.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years ago[ARM] OMAP: Make dpll4_m4_ck programmable with clk_set_rate()
Paul Walmsley [Wed, 28 Jan 2009 02:13:12 +0000 (19:13 -0700)]
[ARM] OMAP: Make dpll4_m4_ck programmable with clk_set_rate()

Filling the set_rate and round_rate fields of dpll4_m4_ck makes
this clock programmable through clk_set_rate().  This is needed
to give omapfb control over the dss1_alwon_fck rate.

This patch includes a fix from Tomi Valkeinen <tomi.valkeinen@nokia.com>.

linux-omap source commits are e42218d45afbc3e654e289e021e6b80c657b16c2 and
9d211b761b3cdf7736602ecf7e68f8a298c13278.

Signed-off-by: Måns Rullgård <mans@mansr.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 years agovsense: change polling time
Grazvydas Ignotas [Sun, 8 Mar 2009 21:56:18 +0000 (23:56 +0200)]
vsense: change polling time

Do polls every ~30ms instead of ~25ms with hope to avoid
some strange breakage of nub operation.

15 years agoinput: hack: get gpio-keys registered with joydev
Grazvydas Ignotas [Sun, 8 Mar 2009 21:36:52 +0000 (23:36 +0200)]
input: hack: get gpio-keys registered with joydev

Make d-pad send absolute events too and hack joydev to
notice that.

15 years agoUSB: gadget: fix rndis working at high speed
David Brownell [Tue, 25 Nov 2008 07:11:03 +0000 (23:11 -0800)]
USB: gadget: fix rndis working at high speed

Fix a bug specific to highspeed mode in the recently updated RNDIS
support:  it wasn't setting up the high speed notification endpoint,
which prevented high speed RNDIS links from working.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Tested-by: Anand Gadiyar <gadiyar@ti.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoUSB: gadget rndis: send notifications
Richard Röjfors [Sun, 16 Nov 2008 03:53:24 +0000 (19:53 -0800)]
USB: gadget rndis: send notifications

It turns out that atomic_inc_return() returns the *new* value
not the original one, so the logic in rndis_response_available()
kept the first RNDIS response notification from getting out.
This prevented interoperation with MS-Windows (but not Linux).

Fix this to make RNDIS behave again.

Signed-off-by: Richard Röjfors <richard.rojfors@endian.se>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoUSB: gadget rndis: stop windows self-immolation
David Brownell [Sun, 16 Nov 2008 03:53:21 +0000 (19:53 -0800)]
USB: gadget rndis: stop windows self-immolation

Somewhere in the conversion of the RNDIS gadget code to the new
framework, the descriptor of its data interface seems to have
been copied from the CDC Ethernet driver.  Unfortunately that
means it got a nonzero altsetting ... which is incorrect.  Issue
uncovered by Richard Röjfors <richard.rojfors@endian.se>.

This patch fixes that problem, and resolves at least some cases
of Windows XP bluescreening itself.

Tested-by: Richard Röjfors <richard.rojfors@endian.se>.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>