aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd
AgeCommit message (Collapse)Author
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-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-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-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-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-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>
2009-05-02Reorder startup of enginesThomas White
This just moves the engine enabling calls around a bit. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-02Debugging stuffThomas White
This adds [glamo-drm] before the debugging messages. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-29Command queue fixesThomas White
This still doesn't quite work... Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-28Implement command queue resetThomas White
This implements resetting of the command queue engine. Hint: Do this before trying to read registers.. :) Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-28Enable MCLK dividerThomas White
This is just brought across from xf86-video-glamo Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-28Allow command queue timeoutThomas White
This allows glamo_cmdq_wait() to timeout. We will probably need to substitute this for something better later on, but for the time being I wanted to avoid a deadlock if the command queue never cleared. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-28Tidy up, fix silly mistake, and enable command queueThomas White
Tidy up the code in glamodrm_probe by doing glamodrm->gdrm Pass 'gdrm' to glamo_cmdq_init, not glamo_core (d'oh!) Enable the command queue engine at the start Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-28Copyright noticeThomas White
This fixes the licence text at the top of glamo-cmdq.c, noting that code from Xorg has been incorporated. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-28Build fixesThomas White
This fixes up the Makefile so that the build actually works. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-27Kernel handling of command queueThomas White
This adds handling of Glamo's ring buffer at the kernel level, to be accessed via ioctl DRM_GLAMO_CMDBUF. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-26Tweak ioctlsThomas White
This provides the necessary tweak to get our ioctls to be called properly. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-25Merge branch 'andy-tracking' into drm-trackingThomas White
Conflicts: drivers/mfd/glamo/Kconfig
2009-04-21glamo_fb: make Xglamo workaround conditionalNelson Castillo
Distributions that use Xorg will not need the workaround at all and now they can disable it. Updated configurations to enable it by default. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-04-21glamo_fb: Small cleanupNelson Castillo
~ Cleanup of a redundant call I introduced before. ~ Removed useless assignation. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-04-20Make Xglamo workaround opt-out. Fixes #2255.Nelson Castillo
To disable the workaround at run-time run: echo 0 > /sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.9/glamo3362.0/glamo-fb.0/xglamo_hack I guess I should add a compile option now to completely disable the workaround but let's call this an enhancement and let's close the bug now. By default the workaround is enabled. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net> Reported-by: Timo Juhani Lindfors <timo.lindfors@iki.fi>
2009-04-21Fix ioctl definitionThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-19Start to define ioctlsThomas White
This is the beginnings of the definition of our GEM interface Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-19Revert "Revert "Fixed the LCM driver state transition delay and pixel clock ↵Nelson Castillo
issue"" This reverts commit aa2dbc74bed8cf60e591c654ba1882011b9a8ece. Reverting the revert. Sorry for the noise. Check: http://lists.openmoko.org/pipermail/openmoko-kernel/2009-April/010023.html
2009-04-19Revert "Fixed the LCM driver state transition delay and pixel clock issue"Nelson Castillo
This reverts commit bd4b7e8e84ab43a13a4620b001d52d373c2122b3 which brought WSOD back for some devices. It was reported that the problem does not happen with Qi and it seem it is good news. See: https://docs.openmoko.org/trac/ticket/2274 Conflicts: drivers/video/display/jbt6k74.c
2009-04-14Too many info messages for apm battery supportTim Niemeyer
Changing dev_info => dev_dbg. Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2009-04-05Fixed the LCM driver state transition delay and pixel clock issueNicolas Dufresne
Space transition between sleep-in and sleep-out of at least 120 ms as mentionned in the spec. Also, made sure the LCM is moved into sleep state before the pixel clock is turned off. To do so, I've modified glamo-fb to send FB_BLANK_POWERDOWN before turning off the pixel clock. Also fixed various violation of coding style. This patch should reduce the risk of white screen. Signed-off-by: Nicolas Dufresne <nicolas.dufresne@gmail.com>
2009-03-26Add to Glamo-DRM initialisation routineThomas White
This adds some MMIO initialisation stuff to glamo-drm.c. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-03-26Fix MMC buffer locationsThomas White
This fixes the MMC buffer locations in glamo-mci.c, which were broken by the reorganisation of Glamo's memory. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-03-26Pass core Glamo device to DRM moduleThomas White
This adds a missing statement to let glamo-drm.c know the core Glamo handle, so it can manipulate registers such as the 2D and 3D clocks. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-03-26Tidy up Glamo memory map declarationsThomas White
This just cosmetically tidies up the declarations in glamo-core.h. We have to be very clear about what lives where in the memory. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-03-26Remove Glamo's 2D, 3D, JPEG and MPEG devicesThomas White
This patch removes the platform devices corresponding to Glamo's 2D, 3D, JPEG and MPEG engines. These will later be handled via DRM. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-03-26Initial DRM driver for GlamoJorge Zapata
2009-03-26Import part of Thomas White DRM tree:Jorge Zapata
Handle new memory layout. The "not-needed" memory should not be taken by the framebuffer driver. Use that for the DRM driver. Add the cmdq platform device Set aside 4k for hardware cursor, reject cursors that don't fit.
2009-03-26Kconfig/Makefile DRM platform supportJorge Zapata