Commit Graph

172755 Commits

Author SHA1 Message Date
黄涛
f304d79d0c rk29: pm: better and faster printch 2011-03-16 17:04:19 +08:00
黄涛
00b5e193e5 rk29: board-* call rk29_setup_early_printk 2011-03-16 16:57:05 +08:00
黄涛
94863c8f32 rk29: add early printk support 2011-03-16 16:53:31 +08:00
zhaoyifeng
81c7fda6fa modify reboot code. 2011-03-16 14:42:33 +08:00
zhaoyifeng
2bb18991f1 change emmc dma brst_len form 1 to 16 2011-03-16 14:30:23 +08:00
ubuntu
32f9892072 cwz close vdd1 voltage debug 2011-03-15 19:09:52 -07:00
黄涛
3da6a3c9ce rk29: pm: rk29_idle just restore CRU_MODE_CON, arm may run slow mode before enter idle 2011-03-15 19:49:24 +08:00
杜坤明
17f8e96ae3 update early suspend 2011-03-15 09:27:02 +08:00
黄涛
023aa2291a rk29: support zImage for buggy RK29xxLoader 2011-03-14 21:16:15 +08:00
黄涛
2f0da049b9 rk29: uncompress implement putc 2011-03-14 21:12:27 +08:00
ddl
c36bc66d8a camera: support front sensor 2011-03-07 17:57:13 +08:00
ddl
ad6937f76e camera: update sensor(s5k6aa) driver, preview/capture/suspend/resume is pass 2011-03-07 17:54:03 +08:00
ddl
76419122be camera:camera driver must check vip memory is enough or not for scale process by IPP 2011-03-07 17:47:18 +08:00
ddl
a07ababd55 camera: fix sensor driver have not enter power down after probe 2011-03-07 17:37:42 +08:00
lbt
2057346e3e wifi:bcm4329: add SDIO_ISR_THREAD define 2011-03-12 15:52:53 +08:00
ubuntu
6ba95bd59d cwz set default regulator status 2011-03-11 22:42:04 -08:00
hxy/ubuntu
7db5695dd0 fix ddr enter and exit self-refresh by hcy 2011-03-11 17:37:53 +08:00
ChenJQ
155929fc84 解决喇叭播放音乐时音量增大声音失真问题 2011-03-11 00:27:47 -08:00
黄涛
b02fd5a7e6 rk29: implement sched_clock() 2011-03-11 13:20:01 +08:00
john stultz
2455208a7a Fix rounding in clocks_calc_mult_shift()
Russell King reports:
| On the ARM dev boards, we have a 32-bit counter running at 24MHz.  Calling
| clocks_calc_mult_shift(&mult, &shift, 24MHz, NSEC_PER_SEC, 60) gives
| us a multiplier of 2796202666 and a shift of 26.
|
| Over a large counter delta, this produces an error - lets take a count
| from 362976315 to 4280663372:
|
| (4280663372-362976315) * 2796202666 / 2^26 - (4280663372-362976315) * (1000/24)
|  => -38.91872422891230269990
|
| Can we do better?
|
| (4280663372-362976315) * 2796202667 / 2^26 - (4280663372-362976315) * (1000/24)
| 19.45936211449532822051
|
| which is about twice as good as the 2796202666 multiplier.
|
| Looking at the equivalent divisions obtained, 2796202666 / 2^26 gives
| 41.66666665673255920410ns per tick, whereas 2796202667 / 2^26 gives
| 41.66666667163372039794ns.  The actual value wanted is 1000/24 =
| 41.66666666666666666666ns.

Fix this by ensuring we round to nearest when calculating the
multiplier.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Tested-by: Mikael Pettersson <mikpe@it.uu.se>
Tested-by: Eric Miao <eric.y.miao@gmail.com>
Tested-by: Olof Johansson <olof@lixom.net>
Tested-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-03-11 12:50:28 +08:00
Thomas Gleixner
cfc80b6829 clocksource: Provide a generic mult/shift factor calculation
MIPS has two functions to calculcate the mult/shift factors for clock
sources and clock events at run time. ARM needs such functions as
well.

Implement a function which calculates the mult/shift factors based on
the frequencies to which and from which is converted. The function
also has a parameter to specify the minimum conversion range in
seconds. This range is guaranteed not to produce a 64bit overflow when
a value is multiplied with the calculated mult factor. The larger the
conversion range the less becomes the conversion accuracy.

Provide two inline wrappers which handle clock events and clock
sources. For clock events the "from" frequency is nano seconds per
second which corresponds to 1GHz and "to" is the device frequency. For
clock sources "from" is the device frequency and "to" is nano seconds
per second.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Mikael Pettersson <mikpe@it.uu.se>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Cc: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <20091111134229.766673305@linutronix.de>
2011-03-11 12:46:18 +08:00
Russell King
b9d82c9f88 ARM: sched_clock: make minsec argument to clocks_calc_mult_shift() zero
The purpose of the minsec argument is to prevent 64-bit math overflow
when the number of cycles is multiplied up.  However, the multipler
is 32-bit, and in the sched_clock() case, the cycle counter is up to
32-bit as well.  So the math can never overflow.

With a value of 60, and clock rates greater than 71MHz, the calculated
multiplier is unnecessarily reduced in value, which reduces accuracy by
maybe 70ppt.  It's almost not worth bothering with as the oscillator
driving the counter won't be any more than 1ppm - unless you're using
a rubidium lamp or caesium fountain frequency standard.

So, set the minsec argument to zero.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-03-11 11:37:02 +08:00
Russell King
4ce92e81ee ARM: sched_clock: allow init_sched_clock() to be called early
sched_clock is supposed to be initialized early - in the recently added
init_early platform hook.  However, in doing so we end up calling
mod_timer() before the timer lists are initialized, resulting in an
oops.

Split the initialization in two - the part which the platform calls
early which starts things off.  The addition of the timer can be
delayed until after we have more of the kernel initialized - when the
normal time sources are initialized.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-03-11 11:36:09 +08:00
Russell King
78a8e9426d ARM: sched_clock: provide common infrastructure for sched_clock()
Provide common sched_clock() infrastructure for platforms to use to
create a 64-bit ns based sched_clock() implementation from a counter
running at a non-variable clock rate.

This implementation is based upon maintaining an epoch for the counter
and an epoch for the nanosecond time.  When we desire a sched_clock()
time, we calculate the number of counter ticks since the last epoch
update, convert this to nanoseconds and add to the epoch nanoseconds.

We regularly refresh these epochs within the counter wrap interval.
We perform a similar calculation as above, and store the new epochs.

We read and write the epochs in such a way that sched_clock() can easily
(and locklessly) detect when an update is in progress, and repeat the
loading of these constants when they're known not to be stable.  The
one caveat is that sched_clock() is not called in the middle of an
update.  We achieve that by disabling IRQs.

Finally, if the clock rate is known at compile time, the counter to ns
conversion factors can be specified, allowing sched_clock() to be tightly
optimized.  We ensure that these factors are correct by providing an
initialization function which performs a run-time check.

Acked-by: Peter Zijlstra <peterz@infradead.org>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Tested-by: Mikael Pettersson <mikpe@it.uu.se>
Tested-by: Eric Miao <eric.y.miao@gmail.com>
Tested-by: Olof Johansson <olof@lixom.net>
Tested-by: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-03-11 11:34:57 +08:00
root
7fe63eebbe in video mode chage ui to 565 fail 2011-03-10 17:08:32 +08:00
黄涛
f860da4e0e rtc: hym8563: work around set alarm problem and indent 2011-03-10 14:46:33 +08:00
杜坤明
ec3f59ef1c update the conctrl of gpu' clk 2011-03-10 14:13:33 +08:00
杜坤明
0208ee3eda add gpu's earlysuspend & remove soft reset before poweron 2011-03-09 18:39:05 +08:00
root
bb754595de In video mode change to PIXEL_FORMAT_RGB_565 2011-03-09 16:27:27 +08:00
黄涛
21bd655e72 rk29: no reset while panic and fix gcc warning 2011-03-09 15:22:35 +08:00
ChenJQ
852190b9ff reduce the wm8900 pop noise 2011-03-08 23:15:26 -08:00
zyw
cf69e4c66f del CONFIG_MACH_RK29_AIGO in drivers/video/display/screen/lcd_hsd100pxn.c 2011-03-09 14:45:49 +08:00
黄涛
f3e5699fbb rk29: pm: dump irq status when resume 2011-03-09 14:01:40 +08:00
蔡枫
22a3ef29d6 Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop 2011-03-09 11:32:06 +08:00
蔡枫
ae315af2c6 disable set hardware cursor log 2011-03-09 11:31:33 +08:00
蔡枫
ad9e546646 add hardware cursor support, auto switch to hardware cursor mode when using TVOUT or HDMI output 2011-03-09 11:17:40 +08:00
luowei
32c8242e01 modify wm831x voltage according to hardware 2011-03-09 11:04:42 +08:00
hhb
cd455647f1 migrate touch screen driver xpt2046 2011-03-08 20:45:33 +08:00
ddl
b697fe9f97 camera: FIH defconfig for camera, mt9p111 debug and board config 2011-03-03 22:39:28 +08:00
lyx
bccf1d5352 backlight:set bl_pwm as gpio and set it low, make sure backlight be off 2011-03-07 00:44:45 -08:00
cch
15d8aa5d91 fix the Audio indicators(S/R), and the speak Playback distortion 2011-03-07 14:42:33 +08:00
陈辉
2997fa8f65 Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop 2011-03-04 18:05:30 +08:00
陈辉
3ddadcad61 update rk29sdk-v0.16 rk29_sdk_defconfig: support host 3G 2011-03-04 18:04:54 +08:00
ChenJQ
f1a47fe013 Open SPK playback channel 2011-03-04 01:08:11 -08:00
邱建斌
84a568df72 添加wm8994驱动支持 2011-03-04 14:31:56 +08:00
陈恒明
6d74f4e4f1 rk29: vpu: fix bug on pp reset 2011-03-04 12:38:38 +08:00
宋秀杰
41ef7d91e3 fix bq27510 read error 2011-03-03 20:26:10 -08:00
ubuntu
92bf30d7fd cwz update tps65910 irq 2011-03-03 19:09:16 -08:00
杜坤明
65dec0f994 update gpu_shutdown & gpu_suspend 2011-03-04 10:31:43 +08:00
root
d1bde7242d swj add pwm reinit function for reboot 2011-03-04 09:56:25 +08:00