aboutsummaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2009-07-15Merge branch 'drm-kms' into drm-trackingThomas White
Conflicts: drivers/mfd/glamo/glamo-cmdq.c drivers/mfd/glamo/glamo-cmdq.h drivers/mfd/glamo/glamo-drm-drv.c drivers/mfd/glamo/glamo-drm-private.h Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-11De-bodge pixel clocksThomas White
.. or re-bodge them, depending on your perspective. This makes mode->clock contain a value in Hz, in line with the KMS convention. This is at the expense of more calculations when generating the mode from the mach_info and when setting the mode. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-09DebugThomas White
Just a little bit more debug information Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-09Expose more memory via glamo-kms-fbThomas White
This increases the amount of memory exposed via the framebuffer. This should eventually allow an fbdev-based DDX or a KMS DDX to run on the same kernel, albeit suboptimally. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-09Fix resume, part 2Thomas White
This removes a bogus check of var->pixclock. With KMS, this value is not relevant. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-06Fix resume, part 1Thomas White
This seems to fix the kernel-level suspend/resume. There remains a problem which causes Xorg to crash on resume. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-02Initial suspend/resumeThomas White
Doesn't work yet... Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-02More whitespaceThomas White
Fix a whitespace error introduced by the earlier debug stuff. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-02WhitespaceThomas White
Fix trailing whitespace Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-02Alter jbt6k74 state on DPMSThomas White
This uses the "stopgap" method implemented earlier. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-02Do not switch the screen off when changing modeThomas White
...because the clock(s) must be running while we talk to the chip. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-01Remove debug watchpointsThomas White
Finished with these now. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-01Fix scanout timingsThomas White
This fixes the scanout timing conversion so that it works. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-01Nasty jbt stuffThomas White
This adds a stopgap measure to permit manipulation of the LCD controller chip in the absence of an fb notifier chain. It also adds some messing around with the DPMS stuff. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-01DebugThomas White
This adds some register debugging watchpoints Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-01Compatibility glamo-drm <---> glamo-fbThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-30Enable the LCD engineThomas White
Well, duh. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-30Whitespace and debuggingThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-30Set gdrm->devThomas White
This was uninitialised before. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
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-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-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-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-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-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 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>