aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-26Avoid the high_memory check on arm platformsJorge Zapata
Handle correctly the proc/dri/0/name printing Helper function to check the PLATFORM feature
2009-03-26Platform's DRM driver loading, unloading and sysfs interface support.Jorge Zapata
2009-03-26Kconfig/Makefile DRM platform supportJorge Zapata
2009-03-26CodingStyle with copy-src also fixedWerner Almesberger
Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
2009-03-26Fix trivial whitespace slippage.Werner Almesberger
Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-26Clean up pcf50606_client_dev_registertim.niemeyer@mastersword.de
platform_device_add_data copies the data, so no need for kmalloc. Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
2009-03-26retain gllin compatibilitytim.niemeyer@mastersword.de
added bus link from neo1973-pm-gps.0 to gta01-pm-gps.0 added pwron attr wich is the same as power_on also one typo fixed (3V instead of 3V3 in gps_power_3v_set) [ Werner: Documentation/CodingStyle line 83, don't ignore the error if sysfs_create_group fails. ] Signed-off-by: Tim Niemeyer <reddog@mastersword.de> Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-26Add forgotten PCF50606 Kconfig/Makefile entriestim.niemeyer@mastersword.de
Watchdog and RTC entries were missing. Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
2009-03-26Remove double INPUT_PCF6333_PMU in Kconfig/Makefiletim.niemeyer@mastersword.de
Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
2009-03-26Really clean up, as promised in 1350d5dfaac7dadf6cab9e812f0acfabcce60e58Werner Almesberger
Signed-off-by: Werner Almesberger <werner@openmoko.org> Reported-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2009-03-26Change disable serial driver for gta02 onlytim.niemeyer@mastersword.de
Change RTS and TXD pins on UART 0 to be inputs only on GTA02. On GTA01 the UART 0 maybe used otherwise. [ Werner: removed unexplained addition of DEBUG, Documentation/CodingStyle lines 105, 224, and 448. ] Signed-off-by: Tim Niemeyer <reddog@mastersword.de> Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-26extend work around boot-time ordering on GTA01Tim Niemeyer
[ Werner: Documentation/CodingStyle lines 166 and 448, put blank line after local variables. ] Signed-off-by: Tim Niemeyer <reddog@mastersword.de> Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-26disabling fast_charge is done with 0tim.niemeyer@mastersword.de
Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
2009-03-26little debug msg copied from gta02tim.niemeyer@mastersword.de
Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
2009-03-26Remove debug-aux-key-probe-resume-death.patchtim.niemeyer@mastersword.de
Get resume by AUX to work. Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
2009-03-26new-style i2c driver doesn't work with inconsistent names.tim.niemeyer@mastersword.de
Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
2009-03-26Glamo fb: needs cfb_{fillrect,copyarea,imageblit} to linkRask Ingemann Lambertsen
The kernel would fail to link because cfb_fillrect, cfb_copyarea and cfb_imageblit weren't build. This patch fixes it. Signed-off-by: Rask Ingemann Lambertsen <rask@sygehus.dk>
2009-03-26Zero packet length detection for RNDIS fix. Migrated from 2.6.24 series kernelAric D. Blumer
This patch fixes the issues of RNDIS on the Openmoko Freerunner (and subsequently Windows networking with the Freerunner). It arises from the case where a stall is being issued by the upper level RNDIS driver to the s3c2410_udc.c in the 2.6.28 series driver and it not being handled correctly. This patch changes the RNDIS driver to send zero-length packets instead of a stall, a condition that allowed the udc driver to function correctly in 2.6.24 series kernels. Further investigation into the udc driver is recommended. I am currently looking into it to be able to use the Android ADB gadget driver, which currently has stability issues using the underlying udc on both Linux and Windows (although, it's possible that the Android ADB gadget has problems). Traces and logs of the USB traffic are available upon request. Thanks to Aric at SDG Systems for all of his work on this matter. Regards, Brian Code From de386af349bbfe1ad6d45c810185123975888d8d Mon Sep 17 00:00:00 2001 From: Aric D. Blumer <aric@sdgsystems.com> Date: Mon, 16 Mar 2009 16:04:02 -0600 Subject: [PATCH] Zero packet length detection for RNDIS fix. Migrated from 2.6.24 series kernel Signed-off-by: Aric D. Blumer <aric@sdgsystems.com> Signed-off-by: Brian Code <Brian.Code@koolu.com>
2009-03-26Forced shutdown for GTA02Ondrej Zary
Hello, this patch adds "force-shutdown" feature for GTA02. When the power button is held pressed for 8 seconds, the power is turned off. No need to remove the battery anymore. Patch is against andy-tracking. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@gmail.com>
2009-03-25S3C64XX: Add gpio_to_irq method for external interrupt group.Matt Hsu
Add to_irq method to convert gpio to irq for external interrupt group (GPN). Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
2009-03-25Fewer HDQ errors on 3D7KWerner Almesberger
If no battery is connected, we periodically get a burst of HDQ error messages (at least on 3D7K), interrupting whatever we're doing on the console. This patch reduces this to only one message per sequence of errors, and one more message if communication with HDQ is successful later. Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-11Add proper audio route for headphone speaker in 3d7k.Matt Hsu
The power mode of ROUT1 is always off which results in the voice only comes from left channel (LOUT1). This issues is fixed by adding dapm control for ROU1 channel. Signed-off-by: Matt Hsu <matt_hsu@openmoko.org> Reported-by: Candy Chou <candy_chou@openmoko.com>
2009-03-11Enable camera interface clockWerner Almesberger
This patch explicitly enabled to "camif" clock, to make the driver work again with Qi commit a24b5fcf84d2cf633a3f660edd23fa4c2a3da231. Note that this is not fully tested since the Qi change also broke the LCM driver. Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-11Add real CAMIF clock to S3C6410Werner Almesberger
This patch adds the real "camif" clock (off HCLK.) Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-11Rename CAMERA clockWerner Almesberger
Identifiers related to the "camera" clock were mis-named as camif. This patch renames them. Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-11fix-hdq-suspend-level.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-10add primitive camera power controlWerner Almesberger
This dirty hack adds camera activation/deactivation on open/close. This code will have to move to a machine/platform area later. The general driver is the wrong place for it. It also removes the unconditional activation and moves the domain setting to the rest of the power control code. (Thanks, Andy !) Note that opening the camera now always takes about 20 seconds until the settings are downloaded, not just on the first open. Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-10Add filter_chain objectNelson Castillo
Filter chains should be completely opaque to the drivers that use it. We fix this with this patch. ~ Make the "filter chain" a new object. ~ We can build with CONFIG_TOUCHSCREEN_FILTER=n with no problems in a cleaner way. ~ Update s3c2410_ts.c to use the filter_chain object. ~ Cleanups. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-03-10Export symbols and make a few symbols constant.Nelson Castillo
~ Make a few symbols constant. ~ Export symbols explicitly. ~ Move ts_filter.c to ts_filter_chain.c (this will make sense later). Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-03-10Use non-void configurationsNelson Castillo
This patch defines a ts_filter_configuration structure to avoid using void* in the filter initialization, fixing another upstream correction. This also makes the initialization more readable. Tested in GTA02/rev6. Other changes: ~ Comment filter configuration structures. ~ ts_filter.c:ts_filter_chain_create improved. ~ Small cleanups. ~ More TODOs/FIXMEs. ~ Updated GTA02 filter configuration. ~ Updated GTA01 filter configuration. ~ Updated mach-s3c2410/include/mach/ts.h for the new ts. configuration structure. ~ Updated all the filters to use the new configuration structure. ~ Removed MAX_TS_FILTER_CHAIN constant that is no longer needed. No more evil casts left it seems. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-03-10Improve filter API and update filtersNelson Castillo
This patch turns upstream feedback into API modifications and code improvements. There will be more patches implementing upstream corrections but this one is the that will make most of the invasive changes and make the most important improvements to the API. Tested in a GTA02/rev06. The goals of this patch are: * Replace recursive calls with iteration. * General code improvements. * Make ts_filter_mean.c a reference for the rest of the filters. * Make the (almost)minimum number of changes to the other filters so that they compile and work, patches for cleaning these up will come next. * Filters should do what they were doing before. Some important changes: * Move "struct ts_filter tsf" in the private structures to force a crash (or break things) if we forget to remove an open-coded cast. * ts_filter.c/ts_filter.h ~ API modifications. * s3c2410_ts.c: ~ Use the new API. ~ Cleanups. * ts_filter_mean.c ~ Replace with a simple mean. ~ Use as a reference for the new API. ~ Move private structure from the .h to the .c. * ts_filter_group.c ~ Update to use the new API. * ts_filter_median.c ~ Update to use the new API. * ts_filter_linear.c ~ Remove functions that are no longer needed. Note: I might leave some TODOs and FIXMEs with this patch. Most of them will be removed shortly. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-03-10config-om3d7k-ohci.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-10config-om3d7k-cpufreq.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-10fix-3d7k-camif-disable-config.patchAndy Green
This lets us turn off CONFIG_S3C_DEV_CAMIF and suppress it turning on power (still seemed to issue clock though). Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-10MERGE-andy-tracking-patchset-editsmerge
2009-03-10Fix the start condition of comparing setup mode in lp5521 device.Matt Hsu
Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
2009-03-09Clean up camera driverWerner Almesberger
This patch does some light cleanup on the camera driver: - removed unused return values or unused initializations - remove backslashes at regular line ends (Python-style ?) - removed redundant casts - remove redundant parentheses - wrapped long lines - general whitespace cleanup - fixed broken logic in s3c_camif_v4l2_g_input and s3c_camif_v4l2_g_output - let mutex that really really wants to be a semaphore have its way Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-09config-gta02-usb-host.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-09Adjust MCLK for use with PLLWerner Almesberger
The PLL converts a 26.6 MHz input clock to 87.8 MHz, which is later divided by two and becomes PCLK. (See comments below for details.) All this looks like a textbook example for platform stuff, but let's take it one step a time. Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-09Fix clock shift in s3c64xx_setrate_clksrcWerner Almesberger
s3c64xx_setrate_clksrc used the clock selection shift sclk->shift instead of the divider shift sclk->divider_shift, causing clocks to be clobbered. Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-09Fix division in s3c64xx_roundrate_clksrcWerner Almesberger
s3c64xx_roundrate_clksrc got the rate vs. parent order wrong. Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-09Add CAMIF clock to S3C6410Werner Almesberger
[ Resending it. Seems that commit 9e723603e46500e2c9fbf09ac823de210bf05d31 used one of the empty mails I got with formail :-( ] Add camera interface clock to S3C6410. Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-09Clean up camera sensor driverWerner Almesberger
This patch does some light cleanup on the S5K4BA driver: - change structure initializers from field: to .field = syntax - exlicitly name fields in structure initializers - added proper error handling to sensor_read - use ARRAY_SIZE - remove redundant parentheses and braces - change // to /* ... */ - remove non-ASCII characters - general whitespace cleanup - removed an unused variable warning (4xa_sensor.h is only partially cleaned up.) Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-09Clean up camera interface driverWerner Almesberger
This patch does some cleanup on the camera interface driver: - remove backslashes at regular line ends (Python-style ?) - removed unused return values or unused initializations - combined duplicated or otherwise highly redundant code - remove redundant parentheses - wrapped long lines - general whitespace cleanup - s3c_camif_input_msdma_codec, s3c_camif_input_msdma_preview, s3c_camif_set_target_format: fixed clearing of old register values Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-09Clean up camera driverWerner Almesberger
This patch does some light cleanup on the camera driver: - removed unused return values or unused initializations - remove backslashes at regular line ends (Python-style ?) - removed redundant casts - remove redundant parentheses - wrapped long lines - general whitespace cleanup - fixed broken logic in s3c_camif_v4l2_g_input and s3c_camif_v4l2_g_output - let mutex that really really wants to be a semaphore have its way Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-09fix-s3c-cpu-detect-make-compatible-atag16.patchAndy Green
The current version of CPU detection patch from Mark Brown and Kyungmin Park takes a dump on system_rev. This patch changes it to retain the low 16 of system_rev from the bootloader ATAG, and adds access #defines and changes to use them. No doubt they'll issue a better version of the CPU detection patch and then this can be reverted. Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-09S3C64XX: Add DVFS support to the S3C64XX cpufreq driverMark Brown
Use the regulator framework to provide optional support for DVFS in the S3C64XX cpufreq driver. When a software controllable regulator is configured the driver will use it to lower the supply voltage when running at a lower frequency, giving improved power saving. When regulator support is disabled or no regulator can be obtained for VDDARM the driver will fall back to scaling only the frequency. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2009-03-09S3C64XX: Initial support for CPU frequency scalingMark Brown
This patch provides initial support for CPU frequency scaling on the Samsung S3C64XX series processors. Currently only S3C6410 processors are supported, though addition of another data table with supported clock rates should be sufficient to enable support for further CPUs. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2009-03-09S3C64XX: Add initial support for ARMCLKMark Brown
Add support for reconfiguring the clock for the ARM core, enabling CPUfreq support. Currently only the divider for ARMCLK may be changed, ARMPLL is left static. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>