aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c2442
AgeCommit message (Collapse)Author
2009-09-27Merge commit 'refs/remotes/openmoko/andy-tracking' into drm-trackingThomas White
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-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-11Merge commit 'remotes/openmoko/andy-tracking' into drm-trackingThomas White
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-06-08Merge branch 'andy-tracking' into drm-trackingThomas White
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-04-25Merge branch 'andy-tracking' into drm-trackingThomas White
Conflicts: drivers/mfd/glamo/Kconfig
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-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-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-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-09config-gta02-usb-host.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
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-09Subject: USB: Change s3c2410_ohci into s3c_ohci and change gta02 to use itBalaji Rao
X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=b55b8e56a4a7e43b7243be48f77a326236a37c68 USB: Change s3c2410_ohci into s3c_ohci and change gta02 to use it Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
2009-03-09GTA02: Name regulator suppliesMark Brown
Give the regulator supplies names corresponding to the names their supplies are given in the schematic, making it easier to tie the software up with the schematic. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2009-03-08fix-gta02-fiq-init.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-08fix-gta02-fiq-timing.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-02Fix typo in mach-gta02Sven Rebhan
Improve the comment on falling back to 100mA if ADC is missing. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-03-02GTA02 GSM requires PCF50633 GPIOSven Rebhan
The GSM part of all MACH_NEO1973s require GPIO functions, thus we should select PCF50633_GPIO for GTA02. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-03-02OpenMoko: Update for normal WM8753 device registration.Mark Brown
The WM8753 driver now uses the standard I2C device registration model and so requires the platform to register the device. Convert the OpenMoko GTA0x series devices to do so. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2009-03-02Subject: Get rid of board_info information in glamo and s3c24xx_gpio ↵Balaji Rao
spigpio_info. X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=740c6704e830829d8539a6cc34346ff1980cd9ee Get rid of board_info information in glamo and s3c24xx_gpio spigpio_info. The board info does not belong there and has been removed. In spi_s3c24xx_gpio, board_info has been removed in mainline. Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
2009-02-26Subject: lis302dl_use_s3c24xx_gpio_spi_bitbang.patchBalaji Rao
X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=5689ad9b0ded29adec4be64df53e488c648b9831 lis302dl_use_s3c24xx_gpio_spi_bitbang.patch Change lis302dl driver to use generic spi code. This requires that we define a s3c24xx_gpio spi bitbang based controller in mach-gta02.c. Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
2009-02-23Move bq27000 data structuresSven Rebhan
It's always a good idea to first define the data structures you use. ;-) Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23Cleanup s3c2442 KconfigSven Rebhan
For GTA02 we can remove GTA02_HDQ (not used anywhere) and S3C2410_CLOCK (already selected by CPU_S3C2442). Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23Revert "Cleanup s3c2442 Kconfig"Sven Rebhan
This reverts commit fe8b7ff1a79648146501f37d467fcb2f2bea0164. I undo the reordering of the options here, as it hides what really happend. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23Cleanup s3c2442 KconfigSven Rebhan
For GTA02 we can remove GTA02_HDQ (not used anywhere) and S3C2410_CLOCK (already selected by CPU_S3C2442). Additionally I reordered the options a bit. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23Care about PCF50633 ADC disabledSven Rebhan
If the PCF50633 ADC is disabled, but the charger is enabled we can't determine the charger type using the pulldown. The safest thing we can do is to fallback to 100mA that should be supplied according to the USB specs. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23Allow disabling of GTA02 vibratorSven Rebhan
If the vibrator is disabled we don't need to register a platform device. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23PCF50633 core depends on I2CSven Rebhan
We select the PCF50633 core part, which depends on I2C, in our Kconfig. However, make oldconfig does not automatically resolve this "depends on I2C" dependency. We should select I2C for GTA02 as it's needed anyway. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23The BQ27000 Battery requires HDQSven Rebhan
Move the battery section within the HDQ_GPIO_BITBANG ifdef because it uses functions only available if HDQ bitbanging is enabled. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23Care about PCF50633 charger disabledSven Rebhan
If we disable CONFIG_CHARGER_PCF50633 the build fails with a bunch of errors. This patch defines placeholders for the functions that require the charger. All users of the function pointers care about the case when they are NULL, so this won't break anything. Furthermore a small restructuring of the mach file was necessary to not sprinkle ifdefs all over. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23Remove double include.Sven Rebhan
Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-23Select PCF50633Sven Rebhan
Remove the old config option and use the correct new one instead. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2009-02-22gta02_use_new_fiq_and_hdq_stuff.patchBalaji Rao
Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
2009-02-22move_pwm_code_to_plat_s3c.patchBalaji Rao
Since the pwm code in mach-2410 can be reused for 6410, move it to plat-s3c. Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
2009-02-20clean-gta02.h-remove-v1v2.patchAndy Green
This strips out the v1 and v2 GTA02 revision specific defines (we do not support these internal non-shipped revisions) and fixes a bug in the glamo reset resource found from that. Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-20clean-move-gta02.h.patchAndy Green
This break gta02.h out of s3c2410 jail and brings it into the more logical mach-s3c2442 dir. Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-19clean-move-mach-gta02-s3c2442.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-07CPU_S3C2442 does not depend on ARCH_S3C2440Sven Rebhan
The dependency on ARCH_S3C2440 forces us to select at least one S3C2440 machine to get the makefile system to select the required options for our S3C2442 GTA02. By removing this option I can build fine with only the GTA02 machine selected. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>