aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-06-30Program the LCD registersThomas White
This also alters some debug lines. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-28KMS bits and piecesThomas White
This adds some missing bits and pieces to make most of the KMS initialisation flow work.` Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-27Call the helper init functionThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-24Muppetry and comments, and other small thingsThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-24This is not a PCI deviceThomas White
pdev -> platform_dev Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-24GTA0[12]: add nls 866, 1251 to defconfigsPaul Fertser
These codepages are still widely used by inferior operating systems to represent cyrillic letters in filenames, both in fat filesystem and by some samba-servers. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-21RNDIS: crude hack to fix oops on connecting to WXP SP2Paul Fertser
F4t discovered that his freerunner panics on connect to his windows box. This crude hack workarounds the problem. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-18Revert "Front buffer kludge"Thomas White
That wasn't the right way to go about this. And it didn't compile. This reverts commit d8e4b9ff4dc8bf57e53fa174f977c8fb00ec4e90. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-18More KMS plumbingThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-15Just backing up progress (again)Thomas White
Nearly there... Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-13Platform device bits in drm_stub.cThomas White
This adds some bits which were missed out before, necessary to (amongst other things) get the DRM driver's "load" callback to get called. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-13gta02: move debugging messages to the appropriate levelsPaul Fertser
Clean up debugging messages so that we don't see any output with loglevel=4 (default for Qi). This avoids slowing down suspend/resume by slow fb output. Checkpatch barks on this patch but i guess most of that debugging would have to be changed prior to upstream submission anyway. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-11Front buffer kludgeThomas White
This makes the GEM "info" ioctl produce an object handle which can be used to refer to the front buffer (i.e. screen pixmap) in Xorg or otherwise. This is unfortunately necessary since this memory is allocated in the kernel by the framebuffer driver, and is not available to DRM until we move to KMS. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-10CONFIG_BATTERY_BQ27000_HDQ selects CONFIG_HDQ_GPIO_BITBANGLuca Capello
This is because of commit 1f06c28eaa6e77384a366c3d2ab1ccdbb8a807e0 The BQ27000 Battery requires HDQ. Otherwise the battery is not available at all. Signed-off-by: Luca Capello <luca@pca.it>
2009-06-10gta01: asoc: fix lm4857 controlPaul Fertser
Commit 4eaa9819dc08d7bfd1065ce530e31b18a119dcaf changed semantics of private_value member of kcontrol. This resulted in inability to control amplifier and subsequently in very low output volume. Tested-by: Johannes Schauer <josch@pyneo.org> Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-09GTA0[12]: make headset button report PLAY pressed on pressPaul Fertser
As discussed on the ML, currently headset button reports "KEY_PAUSE released" on press and "pressed" on release. For "pause" semantics it makes sense but if someone thinks of that as of just another button, it'd be good to have "pressed/released" events consistent with button press/release. Luca Capello <luca@pca.it> suggested to change the button event to KEY_PLAY and to invert the state to make it more consistent. This trivial patch inverts button events for GTA03 KEY_PLUS and KEY_MINUS, i'm not sure how undesirable that is. I can prepare an alternative that preserves current behaviour on GTA03 per request. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-09GTA02: gps power management bugfixPaul Fertser
After suspending with GPS powered on power_on sysfs node reports 0 and GPS is actually unpowered but "echo 1 > power_on" has no effect. This patch fixes it. Reported and analised by Timo Juhani Lindfors <timo.lindfors@iki.fi>, ticket #2293. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-08Just backing up progressThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-08Merge branch 'andy-tracking' into drm-trackingThomas White
2009-06-08Merge branch 'drm-tracking-cleanup' into drm-trackingThomas White
2009-06-08Glamo: Bugfix for wraparound in queueAndreas Pokorny
The rest_size was treated like the count of words instead of bytes. This code also switches to memcpy_toio. Signed-off-by: Andreas Pokorny <andreas.pokorny@gmail.com>
2009-06-08Glamo:Removing IRQ ExperimentsAndreas Pokorny
Removed the isr and everything interrupt related. IRQ is not needed for basic operation on the glamo cmdq. This code directly updates the write pointer of the queue without any waits. Signed-off-by: Andreas Pokorny <andreas.pokorny@gmail.com>
2009-06-05more trial and errorAndreas Pokorny
2009-06-05removed setting the CMDQ IRQ in the clear register - indents cleaned upAndreas Pokorny
2009-06-05Adding Glamo CMDQ IRQAndreas Pokorny
The code is still not functional, only the first set of commands get executed. Signed-off-by: Andreas Pokorny <andreas.pokorny@gmail.com>
2009-06-04GTA01, GTA02: remove RTC_DEBUG from defconfigsPaul Fertser
This option is meant for debugging and is not any more of interest to ordinary users. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-04GTA01: disable android wakelocksPaul Fertser
Enabling wakelocks leads to immediate suspend after resume. See ce6840da7184043a09dd57d4c201a32ef7b6c083 for clarifications. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-04GTA02: bq27000 report current chargePaul Fertser
Using HAL for E's battery gadget highlighted an oddity: the kernel exposed last full charge property but didn't expose current charge property. This resulted in the wrong computation of current battery capacity by E's gadget (and probably other programs as well). This patch exposes a corresponding bq27000 register to make E battery gadget happy (it is still not showing correct values because of bugs in HAL resulting in 3 batteries (apm emulation and usb supply being bogus here) instead of one). Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-03Adding IRQ to DRM CMDQ - not workingAndreas Pokorny
2009-06-03Glamo DRM: Adding a Semaphore and SpinlockAndreas Pokorny
This is the first step towards the irq based update of the write pointer. With this revision the previous wait, and direct update is deactivated. Signed-off-by: Andreas Pokorny <andreas.pokorny@gmail.com>
2009-06-03KMS Skeleton BitsThomas White
This adds more of the bare bones for KMS, to be fleshed out later. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-03Tidy up KconfigThomas White
This just tidies up the Glamo Kconfig file a bit. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-02Reorganise memory map (again)Thomas White
This reuinites the "framebuffer" and "work" VRAM areas. With KMS, both roles will be done by one pool of memory. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-01Improve battery status notificationMichael Trimarchi
This patch adds a call to cancel_delayed_work before a call to schedule_delayed_work. Signed-off-by: Michael Trimarchi <michael@panicking.kicks-ass.org> Signed-off-by: Daniel Willmann <daniel@totalueberwachung.de>
2009-05-27Initial KMS stuffThomas White
2009-05-25gta01: fix jbt6k74 spi registrationPaul Fertser
Without this jbt6k74 is not seen by the system and consequently display doesn't work with Qi. Rebasing to .28 introduced a regression (probably in a6af63e826b79ae1ba2d8cbfa66805cc2dfe367c) resulting in jbt6k74 no longer manageable by the kernel. This was unnoticed before because u-boot does its own LCM initialization. With Qi it resulted in a white screen. This patch is fixing it by making spi host bus number (unspecified, defaults to 0) and spi device (jbt6k74) bus number match. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-05-22Implement glamo_ioctl_gem_mmapThomas White
This implements the ioctl used for mapping GEM objects into memory. This needs a unit test in glamo-dri-tests, but for the time being appears to make X.org less segfaulty. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-15 Add a vbus polling function for use by the udc driver.Mike Westerhof
Signed-off-by: Mike Westerhof <mwester@dls.net>
2009-05-15 This patch adds the option to poll vbus status to the s3c24xx udc driver.Mike Westerhof
Machines that do not route the USB vbus signal to a GPIO can use this mechanism as an alternate way for the udc driver to detect the usb connect/disconnect state, which is useful (for example) to enable the link up/down state to be determined for the g_ether gadget. Signed-off-by: Mike Westerhof <mwester@dls.net>
2009-05-15usb gadget: fix ethernet link reports to ethtoolJonathan McDowell
The g_ether USB gadget driver currently decides whether or not there's a link to report back for eth_get_link based on if the USB link speed is set. The USB gadget speed is however often set even before the device is enumerated. It seems more sensible to only report a "link" if we're actually connected to a host that wants to talk to us. The patch below does this for me - tested with the PXA27x UDC driver. Signed-off-by: Jonathan McDowell <noodles@earth.li> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-05-14Avoid null pointer access on early call to pcf50633_mbc_get_statusNelson Castillo
Avoid a kernel panic during an early call to the pcf50633_mbc_get_status function.
2009-05-05Glamo MFD: MFD_GLAMO_SPI_GPIO requires SPI_BITBANG to buildRask Ingemann Lambertsen
This patch fixes a linking failure in the Glamo GPIO SPI bitbang support. Signed-off-by: Rask Ingemann Lambertsen <rask@sygehus.dk>
2009-05-05Glamo MFD: Fix indentation of Kconfig, convert spaces to tabsRask Ingemann Lambertsen
This patch fixes some indentation which was off by one and converts spaces to tabs. Signed-off-by: Rask Ingemann Lambertsen <rask@sygehus.dk>
2009-05-06Buffer relocation stuffThomas White
This allows command sequences to make use of buffer objects by providing their GEM handles. It also reorganises the code a bit, and adds a lot of missing security stuff. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-05Patch up the memory managementThomas White
This fixes things which were broken after the previous commit. VRAM allocation now appears to work. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-04Add (untested) memory managementThomas White
This implements the GEM 'create' ioctl. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-03Create glamo-buffer.cThomas White
This just creates a new file for the memory management stuff. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-03Reset command queue on resumeThomas White
Reinitialise the command queue on resume, so the fun can continue... Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-02Fix and/or remove debugThomas White
This removes a lot of debugging. We can't afford to splurge out a page of printk()s on every command submission. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-02Enable GEN51_EN_DIV_GCLKThomas White
We must enable the clock divider for the 2D engine in order for anything interesting to happen. Well, duh. Signed-off-by: Thomas White <taw@bitwiz.org.uk>