kernel.git
8 years agoAdd proper audio route for headphone speaker in 3d7k. andy-latest
Matt Hsu [Wed, 11 Mar 2009 11:25:26 +0000 (11:25 +0000)]
Add proper audio route for headphone speaker in 3d7k.

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>

8 years agoEnable camera interface clock
Werner Almesberger [Wed, 11 Mar 2009 11:25:23 +0000 (11:25 +0000)]
Enable camera interface clock

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>

8 years agoAdd real CAMIF clock to S3C6410
Werner Almesberger [Wed, 11 Mar 2009 11:25:20 +0000 (11:25 +0000)]
Add real CAMIF clock to S3C6410

This patch adds the real "camif" clock (off HCLK.)

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoRename CAMERA clock
Werner Almesberger [Wed, 11 Mar 2009 11:25:17 +0000 (11:25 +0000)]
Rename CAMERA clock

Identifiers related to the "camera" clock were mis-named as camif.
This patch renames them.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agofix-hdq-suspend-level.patch
Andy Green [Wed, 11 Mar 2009 11:25:15 +0000 (11:25 +0000)]
fix-hdq-suspend-level.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoadd primitive camera power control
Werner Almesberger [Tue, 10 Mar 2009 14:02:28 +0000 (14:02 +0000)]
add primitive camera power control

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>

8 years agoAdd filter_chain object
Nelson Castillo [Tue, 10 Mar 2009 12:04:40 +0000 (12:04 +0000)]
Add filter_chain object

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>

8 years agoExport symbols and make a few symbols constant.
Nelson Castillo [Tue, 10 Mar 2009 12:04:26 +0000 (12:04 +0000)]
Export symbols and make a few symbols constant.

~ 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>

8 years agoUse non-void configurations
Nelson Castillo [Tue, 10 Mar 2009 12:04:16 +0000 (12:04 +0000)]
Use non-void configurations

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>

8 years agoImprove filter API and update filters
Nelson Castillo [Tue, 10 Mar 2009 12:04:05 +0000 (12:04 +0000)]
Improve filter API and update filters

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>

8 years agoconfig-om3d7k-ohci.patch
Andy Green [Tue, 10 Mar 2009 12:03:50 +0000 (12:03 +0000)]
config-om3d7k-ohci.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoconfig-om3d7k-cpufreq.patch
Andy Green [Tue, 10 Mar 2009 12:03:37 +0000 (12:03 +0000)]
config-om3d7k-cpufreq.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agofix-3d7k-camif-disable-config.patch
Andy Green [Tue, 10 Mar 2009 09:59:22 +0000 (09:59 +0000)]
fix-3d7k-camif-disable-config.patch

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>

8 years agoMERGE-andy-tracking-patchset-edits
merge [Tue, 10 Mar 2009 08:10:41 +0000 (08:10 +0000)]
MERGE-andy-tracking-patchset-edits

8 years agoFix the start condition of comparing setup mode in lp5521 device.
Matt Hsu [Tue, 10 Mar 2009 08:10:07 +0000 (08:10 +0000)]
Fix the start condition of comparing setup mode in lp5521 device.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>

8 years agoClean up camera driver
Werner Almesberger [Mon, 9 Mar 2009 21:17:46 +0000 (21:17 +0000)]
Clean up camera driver

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>

8 years agoconfig-gta02-usb-host.patch
Andy Green [Mon, 9 Mar 2009 21:03:02 +0000 (21:03 +0000)]
config-gta02-usb-host.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoAdjust MCLK for use with PLL
Werner Almesberger [Mon, 9 Mar 2009 21:02:36 +0000 (21:02 +0000)]
Adjust MCLK for use with PLL

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>

8 years agoFix clock shift in s3c64xx_setrate_clksrc
Werner Almesberger [Mon, 9 Mar 2009 21:02:33 +0000 (21:02 +0000)]
Fix clock shift in s3c64xx_setrate_clksrc

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>

8 years agoFix division in s3c64xx_roundrate_clksrc
Werner Almesberger [Mon, 9 Mar 2009 21:02:30 +0000 (21:02 +0000)]
Fix division in s3c64xx_roundrate_clksrc

s3c64xx_roundrate_clksrc got the rate vs. parent order wrong.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoAdd CAMIF clock to S3C6410
Werner Almesberger [Mon, 9 Mar 2009 21:02:27 +0000 (21:02 +0000)]
Add CAMIF clock to S3C6410

[ 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>

8 years agoClean up camera sensor driver
Werner Almesberger [Mon, 9 Mar 2009 21:02:24 +0000 (21:02 +0000)]
Clean up camera sensor driver

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>

8 years agoClean up camera interface driver
Werner Almesberger [Mon, 9 Mar 2009 21:02:21 +0000 (21:02 +0000)]
Clean up camera interface driver

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>

8 years agoClean up camera driver
Werner Almesberger [Mon, 9 Mar 2009 21:02:19 +0000 (21:02 +0000)]
Clean up camera driver

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>

8 years agofix-s3c-cpu-detect-make-compatible-atag16.patch
Andy Green [Mon, 9 Mar 2009 21:02:16 +0000 (21:02 +0000)]
fix-s3c-cpu-detect-make-compatible-atag16.patch

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>

8 years agoS3C64XX: Add DVFS support to the S3C64XX cpufreq driver
Mark Brown [Mon, 9 Mar 2009 21:02:13 +0000 (21:02 +0000)]
S3C64XX: Add DVFS support to the S3C64XX cpufreq driver

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>

8 years agoS3C64XX: Initial support for CPU frequency scaling
Mark Brown [Mon, 9 Mar 2009 21:02:09 +0000 (21:02 +0000)]
S3C64XX: Initial support for CPU frequency scaling

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>

8 years agoS3C64XX: Add initial support for ARMCLK
Mark Brown [Mon, 9 Mar 2009 21:02:06 +0000 (21:02 +0000)]
S3C64XX: Add initial support for ARMCLK

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>

8 years agoS3C: CPU detection support
Kyungmin Park [Mon, 9 Mar 2009 21:01:41 +0000 (21:01 +0000)]
S3C: CPU detection support

Stroe the CPU ID to system_rev and use it to detect the CPU architecture.

Even though s3c64xx has almost same IPs, some IPs such as OneNAND are different.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoclean-ohci-warning.patch
Andy Green [Mon, 9 Mar 2009 21:01:30 +0000 (21:01 +0000)]
clean-ohci-warning.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agofix-s3c-ohci-move-usb-control.h
Andy Green [Mon, 9 Mar 2009 21:01:27 +0000 (21:01 +0000)]
fix-s3c-ohci-move-usb-control.h

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoSubject: om3d7k: Add support for s3c_ohci device.
Balaji Rao [Mon, 9 Mar 2009 21:01:21 +0000 (21:01 +0000)]
Subject: om3d7k: Add support for s3c_ohci device.
X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=d9235e3a8bdcef02865eed27c0d6012d253f11e7

om3d7k: Add support for s3c_ohci device.

Adds s3c_ohci support to om3d7k.

Signed-off-by: Balaji Rao <balajirrao@openmoko.org>

8 years agoSubject: USB: Change s3c2410_ohci into s3c_ohci and change gta02 to use it
Balaji Rao [Mon, 9 Mar 2009 21:01:18 +0000 (21:01 +0000)]
Subject: USB: Change s3c2410_ohci into s3c_ohci and change gta02 to use it
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>

8 years agoGTA02: Name regulator supplies
Mark Brown [Mon, 9 Mar 2009 21:01:15 +0000 (21:01 +0000)]
GTA02: Name regulator supplies

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>

8 years agoASoC: Fix headset output for GTA02
Mark Brown [Mon, 9 Mar 2009 21:01:12 +0000 (21:01 +0000)]
ASoC: Fix headset output for GTA02

At least one of the speaker options should disable the speaker.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Remove unneeded forward reference to WM8753 SPI implementation
Mark Brown [Mon, 9 Mar 2009 21:01:09 +0000 (21:01 +0000)]
ASoC: Remove unneeded forward reference to WM8753 SPI implementation

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Don't directly reference DAI ops in GTA02 driver
Mark Brown [Mon, 9 Mar 2009 21:01:06 +0000 (21:01 +0000)]
ASoC: Don't directly reference DAI ops in GTA02 driver

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years ago(AG: there's some more rationale for changing this here
Neil Brown [Mon, 9 Mar 2009 21:01:01 +0000 (21:01 +0000)]
(AG: there's some more rationale for changing this here

http://lists.openmoko.org/pipermail/openmoko-kernel/2009-March/009387.html
)

Change accelerometers to use ABS events rather than REL events.

[Obviously if this patch is accepted we need to tell developers about
 it.  I have a number of other improvements to the accelerometers I
 hope to deliver over the next couple of weeks.  They will have minimal
 or zero disruption to current code. ]

REL events should be used when there is no absolute reference, and
only changes are meaningful.  The classic example is a "mouse" where
the absolute position of the device is not measurable and not
particularly meaning, but change in position from one time to the next
is interesting.
With REL events, a value of '0' is not reported, as 'not change' is
not interesting.
With REL events, the expectation is that successive values will be
eventually summed (possibly with acceleration and clipping
adjustments) to get a usable value.

ABS events should be used when there is an absolute references against
which things that be measured.
With ABS events, the 'current value' is meaningful and can be read
(EVIOCGABS).
With ABS events, the value '0' is very meaningful and is reported.
However if consecutive values are the same, the value is only reported
once.
ABS events can be used as-is or compared with previous events to get
some measure of change.
An obvious example is a touchscreen where each measure in
independently meaningful.

Acceleration is an absolute value as it is measuring against a frame
of reference.  '0' acceleration is just as meaningful as any other
value, and finding the 'current' acceleration is each direction is a
potentially useful thing to do.

The Freerunner accelerometers currently report REL events.  This is
wrong.  So this patch changes them to report ABS events.

With this patch, the min/max/level/fuzz values are left at zero.  It
might be useful to make use of these in a subsequent patch.
min/max/level can be used to calibrate the accelerometers if accuracy
is important.
fuzz could possibly be used in conjunction with the 'threshold' sysfs
value to get less frequent, lower-precision reports.

This may well break some applications that read accelerometer data.
This cannot be helped, but it is quite easy to write code that copes
with the incorrect EV_REL events as well as the more correct and
useful EV_ABS events.

Signed-off-by: NeilBrown <neilb@suse.de>

8 years agofix-gta02-fiq-init.patch
Andy Green [Sun, 8 Mar 2009 09:14:13 +0000 (09:14 +0000)]
fix-gta02-fiq-init.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agofix-gta02-fiq-timing.patch
Andy Green [Sun, 8 Mar 2009 08:54:25 +0000 (08:54 +0000)]
fix-gta02-fiq-timing.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoIncrease camera IO drive strength from 2 mA to 8 mA
Werner Almesberger [Sat, 7 Mar 2009 16:08:17 +0000 (16:08 +0000)]
Increase camera IO drive strength from 2 mA to 8 mA

The camera driver reduced all IO drivers from their reset defaults of
6 mA to only 2 mA, which caused severe signal distortion at higher
speeds. This patch sets them to 8 mA and also removes apparently
useless repetitions of the setting.

Note that the correct setting of the I2C pullups still needs to be
verified.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoEnable jbt6k74 LCM driver IC device for 3d7k.
Matt Hsu [Sat, 7 Mar 2009 07:38:41 +0000 (07:38 +0000)]
Enable jbt6k74 LCM driver IC device for 3d7k.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>

8 years agoAdd concurrent solution of supporting l1k002 and jbt6k74 (LCM ASIC device) for 3d7k.
Matt Hsu [Sat, 7 Mar 2009 07:38:38 +0000 (07:38 +0000)]
Add concurrent solution of supporting l1k002 and jbt6k74 (LCM ASIC device) for 3d7k.

By parsing kernel command, 3d7k can probe two different LCM driver accordingly.
The default attached LCM device is l1k002, if you wanna to use jbt6k74, you don't
need to re-compile the kernel. Just add one option om_3d7k_lcm=jbt6k74 in
boot/append-OM_3D7K in rootfs.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>

8 years agoAdd LED channel information in lp5521 platform data for 3d7k.
Matt Hsu [Fri, 6 Mar 2009 12:28:36 +0000 (12:28 +0000)]
Add LED channel information in lp5521 platform data for 3d7k.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>

8 years agoRe-write lp5521 LED driver.
Matt Hsu [Fri, 6 Mar 2009 12:28:25 +0000 (12:28 +0000)]
Re-write lp5521 LED driver.

- provide clean sysfs to control RGB channel directly.
  They are looked like the following:

channel_mode
   channel_pwm
channel_cur

- add platform data to export RGB channel accordingly.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>

8 years agoCorrect the start-up delay of LED(lp5521) device on 3d7k.
Matt Hsu [Fri, 6 Mar 2009 12:28:23 +0000 (12:28 +0000)]
Correct the start-up delay of LED(lp5521) device on 3d7k.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>

8 years agoTemporarily mark INT of LED device on 3d7k.
Matt Hsu [Fri, 6 Mar 2009 12:28:20 +0000 (12:28 +0000)]
Temporarily mark INT of LED device on 3d7k.

LED INT is connected to EXT group6_9, the handling of EXT group1~group9
is not yet implemented. Besides, we don't need this IRQ now.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>

8 years agoFrom b003024f41b34cc9a8442f7dab1b9ce099faf08b Mon Sep 17 00:00:00 2001
Tim Niemeyer [Thu, 5 Mar 2009 14:40:35 +0000 (14:40 +0000)]
From b003024f41b34cc9a8442f7dab1b9ce099faf08b Mon Sep 17 00:00:00 2001
Subject: [PATCH] fix-alsa-bt-dai-registration-missing

8 years agoFrom 52da4d313dd3263824023f6f3c16a32a0078710e Mon Sep 17 00:00:00 2001
Tim Niemeyer [Thu, 5 Mar 2009 14:40:33 +0000 (14:40 +0000)]
From 52da4d313dd3263824023f6f3c16a32a0078710e Mon Sep 17 00:00:00 2001
Subject: [PATCH] Typo in I2C device registration

Signed-off-by: Tim Niemeyer <reddog@redlap.wired.rednet.mastersword.de>

8 years agoAdd Samsung S3C camera interface registers
Werner Almesberger [Thu, 5 Mar 2009 14:40:30 +0000 (14:40 +0000)]
Add Samsung S3C camera interface registers

These are the Samsung S3C camera interface register definitions directly
from the 2.6.21 BSP. The only changes to the original code are the removal
of trailing whitespace and the change of location.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoDirty hacks to make it all work
Werner Almesberger [Thu, 5 Mar 2009 14:40:27 +0000 (14:40 +0000)]
Dirty hacks to make it all work

A few dirty hacks to make the camera driver work:

- because V4L no longer guarantees that minor numbers provided by the
  client are actually used, the preview/codec selection mechanism falls
  apart. We work around this by defaulting to preview when we don't
  know better.

- power up the camera in platform code, not cleanly via power control
  device.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoEnable camera in 3D7K defconfig
Werner Almesberger [Thu, 5 Mar 2009 14:40:24 +0000 (14:40 +0000)]
Enable camera in 3D7K defconfig

Enable V4L and camera driver in 3D7K default configuration.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoAdd camera interface driver to 3D7K
Werner Almesberger [Thu, 5 Mar 2009 14:40:08 +0000 (14:40 +0000)]
Add camera interface driver to 3D7K

This patch adds the camera interface driver and the corresponding
configuration option to the 3D7K machine.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoSamsung S3C camera subsystem config and Makefile
Werner Almesberger [Thu, 5 Mar 2009 14:39:57 +0000 (14:39 +0000)]
Samsung S3C camera subsystem config and Makefile

Add Samsung S3C camera subsystem to kernel configuration and build process.
Original code is from Samsung's BSP.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoFix Samsung S5K4BA camera driver.
Werner Almesberger [Thu, 5 Mar 2009 14:39:54 +0000 (14:39 +0000)]
Fix Samsung S5K4BA camera driver.

This patch makes the Samsung S5K4BA driver work in 2.6.29 and also solves
a few minor issues, such as trailing whitespace.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoAdd Samsung S5K4BA camera driver
Werner Almesberger [Thu, 5 Mar 2009 14:39:51 +0000 (14:39 +0000)]
Add Samsung S5K4BA camera driver

This is the original Samsung S5K4BA camera driver code from the 2.6.21
BSP.  The changes that are needed to make this work in 2.6.29 are in
the next patch.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoAdd I2C IDs for Samsung S5K series cameras
Werner Almesberger [Thu, 5 Mar 2009 14:39:48 +0000 (14:39 +0000)]
Add I2C IDs for Samsung S5K series cameras

These are te I2C IDs for all the Samsung S5K series cameras. This code
is directly from Samsung's BSP.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoAdd Samsung S3C CAMIF driver
Werner Almesberger [Thu, 5 Mar 2009 14:39:46 +0000 (14:39 +0000)]
Add Samsung S3C CAMIF driver

Add Samsung S3C camera interface driver.
Original code is from Samsung's BSP and was written for 2.6.21.

Only tested on S3C6410.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoUpdate Samsung S3C camera interface driver
Werner Almesberger [Thu, 5 Mar 2009 14:39:43 +0000 (14:39 +0000)]
Update Samsung S3C camera interface driver

Update the camera interface driver from 2.6.21 to 2.6.29 and fix some
trivial issues. There are still a few ugly spots, marked with "@@@".

Only tested on S3C6410.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoAdd Samsung S3C camera driver for V4L
Werner Almesberger [Thu, 5 Mar 2009 14:39:41 +0000 (14:39 +0000)]
Add Samsung S3C camera driver for V4L

This is the original Samsung S3C camera driver code from the 2.6.21 BSP.
The changes that are needed to make this work in 2.6.29 are in the next
patch.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoAdd CAMIF clock to S3C6410.
Werner Almesberger [Thu, 5 Mar 2009 14:39:38 +0000 (14:39 +0000)]
Add CAMIF clock to S3C6410.

Add camera interface clock to S3C6410.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoAdd HCLKx2 to S3C64xx.
Werner Almesberger [Thu, 5 Mar 2009 14:39:33 +0000 (14:39 +0000)]
Add HCLKx2 to S3C64xx.

Add doubled HCLK to S3C64xx.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoFix s3c64xx_setrate_clksrc
Werner Almesberger [Thu, 5 Mar 2009 14:39:30 +0000 (14:39 +0000)]
Fix s3c64xx_setrate_clksrc

Note: this patch is already on the way upstream but is currently missing
in the Openmoko kernel.

Some of the rate selection logic in s3c64xx_setrate_clksrc uses what
appears to be parent clock selection logic. This patch corrects it.

I also added a check for overly large dividers to prevent them
from changing unrelated clocks.

Signed-off-by: Werner Almesberger <werner@openmoko.org>

8 years agoconfig-3d7k-remove-mac80211.patch
Andy Green [Wed, 4 Mar 2009 17:12:27 +0000 (17:12 +0000)]
config-3d7k-remove-mac80211.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoclean-3d7K-3d7k.patch
Andy Green [Wed, 4 Mar 2009 15:05:46 +0000 (15:05 +0000)]
clean-3d7K-3d7k.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agofix-3d7k-misaligned-iis.patch
Andy Green [Wed, 4 Mar 2009 15:05:43 +0000 (15:05 +0000)]
fix-3d7k-misaligned-iis.patch

This one is specially for Candy Chou :-)

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoconfig-3d7k-correct-alsa-driver-name.patch
Andy Green [Wed, 4 Mar 2009 15:05:41 +0000 (15:05 +0000)]
config-3d7k-correct-alsa-driver-name.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agofix-3d7k-iis-constants.patch
Andy Green [Wed, 4 Mar 2009 15:05:38 +0000 (15:05 +0000)]
fix-3d7k-iis-constants.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoMERGE-andy-tracking-patchset-edits
merge [Wed, 4 Mar 2009 12:53:41 +0000 (12:53 +0000)]
MERGE-andy-tracking-patchset-edits

8 years agoIntroduce generic backlight device on 3d7k.
Matt Hsu [Wed, 4 Mar 2009 08:11:21 +0000 (08:11 +0000)]
Introduce generic backlight device on 3d7k.
The code is borrowed from gta02.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>

8 years agofix-3d7k-remove-gps-wlan-pm.patch
Andy Green [Wed, 4 Mar 2009 07:38:13 +0000 (07:38 +0000)]
fix-3d7k-remove-gps-wlan-pm.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agofix-hdq-timeout-overflow.patch
Andy Green [Wed, 4 Mar 2009 07:38:10 +0000 (07:38 +0000)]
fix-hdq-timeout-overflow.patch

Reported-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoS3C64XX: Initial support for CPU frequency scaling
Mark Brown [Wed, 4 Mar 2009 07:38:08 +0000 (07:38 +0000)]
S3C64XX: Initial support for CPU frequency scaling

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>

8 years agoS3C64XX: Add initial support for ARMCLK
Mark Brown [Wed, 4 Mar 2009 07:38:05 +0000 (07:38 +0000)]
S3C64XX: Add initial support for ARMCLK

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>

8 years agoS3C: CPU detection support
Kyungmin Park [Wed, 4 Mar 2009 07:38:03 +0000 (07:38 +0000)]
S3C: CPU detection support

Stroe the CPU ID to system_rev and use it to detect the CPU architecture.

Even though s3c64xx has almost same IPs, some IPs such as OneNAND are different.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agofix-hdq-sample-period-calc.patch
Andy Green [Tue, 3 Mar 2009 17:25:02 +0000 (17:25 +0000)]
fix-hdq-sample-period-calc.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoSubject: ohci_s3c2410: Implement PM resume functionality
Balaji Rao [Tue, 3 Mar 2009 14:50:44 +0000 (14:50 +0000)]
Subject: ohci_s3c2410: Implement PM resume functionality
X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=522c644d34461fcd65a94cce1fcac9dc0d6cd828

ohci_s3c2410: Implement PM resume functionality

It was observed that that s3c2410_hc's root hub was not autoresumed when the
system was suspended with the root hub itself autosuspended.

As an effect of this, it was observed that the bluetooth module wouldn't get
detected at the hc's roothub ports when powered up after resume. And when
'lsusb' was executed, the roothub got out of autosuspend by force with a
'roothub lost power, resetting' message.

This patch brings the hcd roothub out of resume at global resume thereby
avoiding the issue.

Signed-off-by: Balaji Rao <balajirrao@openmoko.org>

8 years agoASoC: Put LM4853 under DAPM control on GTA02
Mark Brown [Tue, 3 Mar 2009 11:29:04 +0000 (11:29 +0000)]
ASoC: Put LM4853 under DAPM control on GTA02

Control for the power for the LM4853 on the GTA02 had been made directly
visible to user space, needlessly burning power when no output was being
produced and causing pops and clicks to be worsened due to a lack of
integration with the power sequencing done by DAPM.

Bring the amplifier power under DAPM control, saving power and reducing
the levels of pops and clicks caused.

The existing control is left in place for the benefit of scenario files
but now has no effect.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Tone down debug for PCM enqueue
Mark Brown [Tue, 3 Mar 2009 11:29:00 +0000 (11:29 +0000)]
ASoC: Tone down debug for PCM enqueue

It's a little verbose...

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Use SND_SOC_DAPM_PIN_SWITCH for GTA02
Mark Brown [Tue, 3 Mar 2009 11:28:57 +0000 (11:28 +0000)]
ASoC: Use SND_SOC_DAPM_PIN_SWITCH for GTA02

Factors out a lot of code.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Add Openmoko state file compatibility for DAPM switches
Mark Brown [Tue, 3 Mar 2009 11:28:34 +0000 (11:28 +0000)]
ASoC: Add Openmoko state file compatibility for DAPM switches

Openmoko had similar controls with "DAPM " prefixed to them - add that
back to maintain compatibility with existing ALSA state files.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Update GTA02 for current DAPM pin APIs
Mark Brown [Tue, 3 Mar 2009 11:28:31 +0000 (11:28 +0000)]
ASoC: Update GTA02 for current DAPM pin APIs

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Use snd_soc_dapm_nc_pin() in GTA02 driver
Mark Brown [Tue, 3 Mar 2009 11:28:28 +0000 (11:28 +0000)]
ASoC: Use snd_soc_dapm_nc_pin() in GTA02 driver

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Remove #if 0 code from GTA02
Mark Brown [Tue, 3 Mar 2009 11:28:26 +0000 (11:28 +0000)]
ASoC: Remove #if 0 code from GTA02

More code cleanup.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Remove some unused headers from the GTA02 audio driver
Mark Brown [Tue, 3 Mar 2009 11:28:22 +0000 (11:28 +0000)]
ASoC: Remove some unused headers from the GTA02 audio driver

Stops anyone wondering what they're needed for.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Strip in code changelog from GTA02 audio driver
Mark Brown [Tue, 3 Mar 2009 11:28:20 +0000 (11:28 +0000)]
ASoC: Strip in code changelog from GTA02 audio driver

It's patchy and we have git history.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Add SND_SOC_DAPM_PIN_SWITCH controls for exposing DAPM pins
Mark Brown [Tue, 3 Mar 2009 11:28:17 +0000 (11:28 +0000)]
ASoC: Add SND_SOC_DAPM_PIN_SWITCH controls for exposing DAPM pins

On some systems it is desirable for control for DAPM pins to be provided
to user space. This is the case with things like GSM modems which are
controlled primarily from user space, for example. Provide a helper which
exposes the state of a DAPM pin to user space for use in cases like this.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Constify pin names for DAPM pin status APIs
Mark Brown [Tue, 3 Mar 2009 11:28:15 +0000 (11:28 +0000)]
ASoC: Constify pin names for DAPM pin status APIs

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoSubject: pcf50633_charger_detection_fix.patch
Balaji Rao [Tue, 3 Mar 2009 11:28:12 +0000 (11:28 +0000)]
Subject: pcf50633_charger_detection_fix.patch
X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=f4fd6631973dbc67a5f4708014e81ca6e610ca05

pcf50633_charger_detection_fix.patch

Fix PCF50633 charger detection code.

Signed-off-by: Balaji Rao <balajirrao@openmoko.org>

8 years agoRe: About roothub losing power / SPI bitbang 3D7K blowout
Balaji Rao [Tue, 3 Mar 2009 11:28:08 +0000 (11:28 +0000)]
Re: About roothub losing power / SPI bitbang 3D7K blowout

> |> on current andy-tracking / OM_3D7K build.
> |>
> |> I didn't see this before, it seems to related to SPI bitbang, did we
> |> break something?

Here is the patch. I've not tested it, but it's most likely the fix, as
I had seen a similar thing in spi_s3c24xx_gpio.

8 years agokernel.git/build: use "git branch" instead of "git-branch"?
Timo Juhani Lindfors [Tue, 3 Mar 2009 07:10:19 +0000 (07:10 +0000)]
kernel.git/build: use "git branch" instead of "git-branch"?

Hi,

git 1.6.0 in debian unstable does not put "git-branch" to a directory
that is in PATH anymore

> git-core (1:1.6.0.2-1) experimental; urgency=low
>
>   * new upstream point release.
>   * debian/git-core.NEWS.Debian: new; mention that most of the programs
>     now are installed outside the default $PATH; the "git-xyzzy" form
>     in scripts and on the command line is no longer supported in 1.6.0.

so the build script should probably be modified:

8 years agortc-pcf50633: Fix month off-by-one error
Rask Ingemann Lambertsen [Tue, 3 Mar 2009 06:40:34 +0000 (06:40 +0000)]
rtc-pcf50633: Fix month off-by-one error

   The PCF50633 stores a month value of 1-12, but the kernel wants 0-11.

Signed-off-by: Rask Ingemann Lambertsen <rask@sygehus.dk>

8 years agorename-gta03-dropped-3d7k-new-moniker.patch
Andy Green [Mon, 2 Mar 2009 18:51:56 +0000 (18:51 +0000)]
rename-gta03-dropped-3d7k-new-moniker.patch

GTA03 project is dropped, long live Openmoko 3d7k project.

This name was literally generated by picking the first character
of the next four car license plates to pass by I am told.

The should catch all GTA03 instances except the machine name.

I registered a new machine name since the 3d7k is different
from original GTA03, the machine number is 2120.

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoMERGE-via-pending-tracking-hist-add-om_3d7k_machine-type-patch
merge [Mon, 2 Mar 2009 16:23:51 +0000 (16:23 +0000)]
MERGE-via-pending-tracking-hist-add-om_3d7k_machine-type-patch
pending-tracking-hist top was add-om_3d7k_machine-type-patch / e4e3848be23080f6ca6727d2a4353f09e53b9781 ... parent commitmessage:
From: Andy Green <andy@openmoko.com>
add-om_3d7k_machine-type.patch

Signed-off-by: Andy Green <andy@openmoko.com>

8 years agoFix typo in mach-gta02
Sven Rebhan [Mon, 2 Mar 2009 11:25:16 +0000 (11:25 +0000)]
Fix typo in mach-gta02

Improve the comment on falling back to 100mA if ADC is missing.

Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>

8 years agoGTA02 GSM requires PCF50633 GPIO
Sven Rebhan [Mon, 2 Mar 2009 11:25:13 +0000 (11:25 +0000)]
GTA02 GSM requires PCF50633 GPIO

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>

8 years agoOpenMoko: Update for normal WM8753 device registration.
Mark Brown [Mon, 2 Mar 2009 11:22:03 +0000 (11:22 +0000)]
OpenMoko: Update for normal WM8753 device registration.

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>

8 years agoASoC: Convert WM8753 to register via normal device probe
Mark Brown [Mon, 2 Mar 2009 11:22:00 +0000 (11:22 +0000)]
ASoC: Convert WM8753 to register via normal device probe

The base support for the only in-tree user, the GTA01, is out of tree
and will be updated separately.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoASoC: Shuffle WM8753 device registration code
Mark Brown [Mon, 2 Mar 2009 11:21:58 +0000 (11:21 +0000)]
ASoC: Shuffle WM8753 device registration code

This patch should be pure code motion, separating that out from the
functional changes to move to new style device registration.

[Backported from upstream with some modifications for old code.]

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

8 years agoMERGE-via-pending-tracking-hist-asoc-only-write-back-non-defau
merge [Mon, 2 Mar 2009 11:15:46 +0000 (11:15 +0000)]
MERGE-via-pending-tracking-hist-asoc-only-write-back-non-defau
pending-tracking-hist top was asoc-only-write-back-non-defau / 04f55b6c2392d4af2b8b2178c333c7f131d3cdc0 ... parent commitmessage:
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
ASoC: Only write back non-default registers when resuming WM8753

This will reduce the number of writes done on resume, allowing that to
complete faster (especially on systems with very slow I2C like the
current Samsung driver).

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>