aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
AgeCommit message (Collapse)Author
2009-10-02GTA01/GTA02: disable android drivers in default configsRadek Polak
Android drivers are not needed for standard linux systems. We can save memory by disabling them. Android low memory killer (CONFIG_ANDROID_LOW_MEMORY_KILLER) also prevents using swap by killing applications before swapping can start on non android systems. Reported-by: Jim Morris <morris@wolfman.com> Signed-off-by: Radek Polak <psonek2@seznam.cz> Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-10-01Fix s3c-adc suspendVasily Khoruzhick
Fix for a bug that shows when the s3c2410 TS driver requests a conversion from the s3c-adc driver and the machine goes into suspend. In this case the touchscreen stops working. Note: Nelson edited the original patch with a few small changes. Reported-by: Radek Polak <psonek2@seznam.cz> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-09-23Fix wrong commitNelson Castillo
I'm quite sorry I sent the commit that crashes GTA01. The fix is quite short. Fixing is easier than reverting and fixing conflicts. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-09-23Require CONFIG_S3C24XX_ADC for GTA01/GTA02Nelson Castillo
Select CONFIG_S3C24XX_ADC by defult for GTA01/GTA02. Somebody will hate me if I don't send this patch soon. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-09-22GTA01: Disable glamoNelson Castillo
Remove glamo from defconfig. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-09-22Make s3c TS driver use s3c-adc APINelson Castillo
I had a patch by Vasily Khoruzhick <anarsoul@gmail.com> in the linux-arm-kernel as a guide for some of the changes. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-09-22s3c24xx: introduce s3c-adc delayVasily Khoruzhick
Without this patch we cannot make the s3c2410/s3c2440 touchscreen driver work. Is this delay device-dependant? Is there a better way to do this? We specify the delay value (S3C2410_ADCDLY). Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-09-22S3C: ADC: Expose number of remaining conversions to convert callbackNelson Castillo
This patch allow us to efficiently modify the number of remaining conversions from the client side. This us useful when we do not know in advance how many conversions we will need or when we need to cancel pending conversions. This change is simple enough to be compatible with existing code that can just define the new pointer in the callback and ignore it. Sample usage: http://tinyurl.com/s3c2410-ts-c (function stylus_adc_action). Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
2009-09-22S3C: ADC: Fix lines with more than 80 chars in adc.hNelson Castillo
Small cleanup. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net> [ben-linux@fluff.org: rewrote subject] Signed-off-by: Ben Dooks <ben-linux@fluff.org>
2009-09-02gta01: when charging the current reported should be negativePaul Fertser
Reported-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-08-23Fix max voltage of LDO1Sven Rebhan
This patch fixes a typo in the voltage setting of LDO1. In the function mangle_pmu_pdata_by_system_rev() the value of min_uV is set twice, while the value of max_uV stays at the initialized value. This leaves us with .constraints.min_uV = 3300000 and .constraints.max_uV = 1300000, which is probably not what we want. This patch is only required on andy-tracking. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-08-02GTA02: add support for dumb battery driverPaul Fertser
This allows to use gta01 battery driver on gta02. echo bq27000-battery.0 > /sys/bus/platform/drivers/bq27000-battery/unbind modprobe gta01_battery Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-08-02gta02: use a dedicated function to query usb online statusPaul Fertser
We need to use a dedicated function because we can't get charger status from an irq context and that is required by usb gadgets. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-08-02gta02: charging_restart_interval should no longer be used, count on MBC ↵Paul Fertser
auto-restart Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-07-27gta02: fix compile without CHARGER_PCF50633Lars-Peter Clausen
gta02_pmu_force_shutdown is only defined when CONFIG_CHARGER_PCF50633 is set, but it's used unconditionally. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2009-07-05GTA01: fix current and voltage reporting unitsPaul Fertser
According to power_supply class specification all voltages and currents must be reported in uV and uA correspondingly. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
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-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-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-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-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-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-20Disable EXT4 / enable reiserfsNelson Castillo
Disable EXT4 in gta02_moredrivers_defconfig. Enable reiserfs3 in gta02_moredrivers_defconfig and gta02_packaging_defconfig. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net> Reported-by: W.Kenworthy <billk@iinet.net.au>
2009-04-19remove-ext4-from-gta02_packaging_defconfig.patchMike (mwester)
Removes ext4 support from the packaging defconfig; there is little value in having this built into the kernel, and a bug in the current 2.6.29-rc3 kernel results in the kernel attempting to mount an ext2 rootfs as ext4, which fails. Signed-off-by: Mike Westerhof <mwester@dls.net>
2009-04-16Revert "update gta01 config based on gta02 config"Nelson Castillo
This reverts commit 962780e3631255fc5423192d0762f30a1fa45239. Nothing really wrong with it but the resulting kernel was too big for the GTA01 NAND flash. GTA01 boots.
2009-04-16gta02: fix re-enabling backlight with <12 valuesPaul Fertser
If brightness value was set to anything less than 12, the backlight wasn't re-enabled after unblanking the display. Closes ticket #2262. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-04-15make touchscreen filter symbols const static in mach-gta01.c and mach-gta02.cNelson Castillo
Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-04-14better naming for filter_configurationTim Niemeyer
this affects gta01 and gta02, now we can enable both in the .config Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2009-04-14update gta01 config based on gta02 configTim Niemeyer
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2009-04-07Correct platform s3c-ohci device name, makes bluetooth workPaul Fertser
Not sure what is the correct naming scheme and if MODULE_ALIAS in drivers/usb/host/ohci-s3c2410.c is needed at all (if yes, probably it should be modified too). Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-03-31remove sysfs-links on removeTim Niemeyer
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2009-03-30Fix cpu_is_s3c2442() returning false for an S3C2442BRask Ingemann Lambertsen
An S3C2442B would be detected as S3C2440 by the cpu_is_s3cxxxx() macros. This patch fixes it. Signed-off-by: Rask Ingeman Lambertsen <rask@sygehus.dk>
2009-03-26CodingStyle with copy-src also fixedWerner Almesberger
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-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-26disabling fast_charge is done with 0tim.niemeyer@mastersword.de
Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
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-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-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>