Commit Graph

266102 Commits

Author SHA1 Message Date
黄涛
84a3957cd4 Merge remote-tracking branch 'origin/develop-3.0' into develop-3.0-rk2928 2012-07-13 19:24:46 +08:00
黄涛
93e23ed866 rk: move CLK_SWITCH_TO_32K config from mach-rk30 to plat-rk 2012-07-13 14:56:44 +08:00
yxj
a0132e447e rkfb:use macro HDMI_HPD_ACTIVED to judge HDMI plug or not 2012-07-13 12:17:00 +08:00
yxj
6378d30555 rk30fb :fix a bug in rk_fb_switch_screeen
after close lcdc the hdmi used ,return directly
2012-07-13 12:14:20 +08:00
黄涛
33246c59d0 rk30: ddr.c: always compile with Os, else may hung on boot 2012-07-13 11:45:06 +08:00
chenhui
68c1c4acaf update arm and logic voltage,
from product experiment
2012-07-13 09:51:18 +08:00
kfx
a6c33cb21c rk2928: add spi&i2c board config 2012-07-12 17:32:13 +08:00
Zheng Yang
85961a9a25 rk30 hdmi: lower ddc frequency to pass hdmi cts. 2012-07-12 17:31:05 +08:00
kfx
e2dbca8dae rk2928: update i2s driver 2012-07-12 14:57:37 +08:00
kfx
0f7b346795 rk2928: i2s init 2012-07-12 14:31:18 +08:00
kfx
ec0d6b3a8a rk2928: update gpio driver(gpio-rk30.c) 2012-07-12 13:05:31 +08:00
kfx
d37628c897 rk2928: gpio enable & iomux enable & fpga keypad init 2012-07-12 10:50:10 +08:00
zwp
33af2d2d14 solve gsensor deadlock problem. 2012-07-12 10:11:47 +08:00
黄涛
dbc0fca461 sched: Cleanup cpu_active madness
commit 5fbd036b55 upstream.

Stepan found:

CPU0		CPUn

_cpu_up()
  __cpu_up()

		boostrap()
		  notify_cpu_starting()
		  set_cpu_online()
		  while (!cpu_active())
		    cpu_relax()

<PREEMPT-out>

smp_call_function(.wait=1)
  /* we find cpu_online() is true */
  arch_send_call_function_ipi_mask()

  /* wait-forever-more */

<PREEMPT-in>
		  local_irq_enable()

  cpu_notify(CPU_ONLINE)
    sched_cpu_active()
      set_cpu_active()

Now the purpose of cpu_active is mostly with bringing down a cpu, where
we mark it !active to avoid the load-balancer from moving tasks to it
while we tear down the cpu. This is required because we only update the
sched_domain tree after we brought the cpu-down. And this is needed so
that some tasks can still run while we bring it down, we just don't want
new tasks to appear.

On cpu-up however the sched_domain tree doesn't yet include the new cpu,
so its invisible to the load-balancer, regardless of the active state.
So instead of setting the active state after we boot the new cpu (and
consequently having to wait for it before enabling interrupts) set the
cpu active before we set it online and avoid the whole mess.
2012-07-12 09:49:51 +08:00
黄涛
8215d8fbbf rk30: cpufreq: prevent deadlock by disable call get_online_cpus
The deadlock happens when:
rk30_cpufreq_temp_limit_work_func:
 cpufreq_driver_target
  lock_policy_rwsem_write
  mutex_lock(&cpufreq_mutex)

cpufreq_interactive_up_task:
 mutex_lock(&cpufreq_mutex)
 mutex_lock(&cpu_hotplug.lock)

_cpu_down:
 mutex_lock(&cpu_hotplug.lock)
 lock_policy_rwsem_write
2012-07-12 09:49:51 +08:00
黄涛
9100f92c1f rk: fiq_debugger: better support cpu cmd, never switch when target cpu is offline 2012-07-12 09:49:51 +08:00
kfx
9344f9d599 rk2928: i2c: SZ_4K -> RK2928_XXI2CX_SIZE 2012-07-11 18:53:07 +08:00
kfx
615c024517 rk2928: uart init 2012-07-11 18:43:53 +08:00
kfx
dfeede9fe7 rk2928: spi init 2012-07-11 17:24:11 +08:00
kfx
02b33dc94f rk2928: i2c init 2012-07-11 16:38:16 +08:00
kfx
c0c865ee36 rk2928: add board_clock_init 2012-07-11 15:52:07 +08:00
kfx
7c34875193 rk2928: iomux init 2012-07-11 15:13:02 +08:00
黄涛
da66e13f0c rk: add RK_CLOCK_PROC config, disable /proc/clocks by default 2012-07-11 14:54:48 +08:00
陈辉
83e84ca2ed add arm-eabi-4.4.3 toolchain 2012-07-11 00:35:20 +08:00
kfx
10690a80e1 Merge remote-tracking branch 'origin/develop-3.0' into develop-3.0-rk2928 2012-07-10 14:57:28 +08:00
kfx
fdf7df16f3 i2c: 'move rk30_i2c_platform_data from mach-rk30 to plat-rk' and 'disable i2c4 select on rk2928' 2012-07-10 14:55:11 +08:00
黄涛
b9eb3fa8bb rk2928: enable RK_PL330_DMA config 2012-07-10 13:13:32 +08:00
黄涛
3e3fca27c6 Merge remote-tracking branch 'remotes/origin/develop-3.0' into develop-3.0-rk2928
Conflicts:
	arch/arm/plat-rk/Makefile
2012-07-10 13:11:01 +08:00
黄涛
0b821e09a8 rk: add RK_PL330_DMA config 2012-07-10 13:07:59 +08:00
kfx
897f46a57c rk2928: dma init 2012-07-10 11:53:00 +08:00
赵子初
9f1e202b42 add mt6229 for rk30 2012-07-10 11:23:13 +08:00
kfx
9e853b76d4 rk2928: add devices.c 2012-07-10 10:49:34 +08:00
黄涛
14774179cb rk2928: fpga: defconfig: enable vfp 2012-07-10 09:32:00 +08:00
黄涛
009df1d1a5 rk2928: add board-rk2928-fpga.c timer.c, irqs.h add IRQ_DEBUG_UART define 2012-07-09 20:03:06 +08:00
许盛飞
a823ab919a rk30☎️ the bug of charge_display 2012-07-09 20:01:42 +08:00
黄涛
cfd51ed06f rk2928: fpga: add defconfig 2012-07-09 17:01:12 +08:00
黄涛
be7fa86fae rk2928: add common.c io.c gpio.h io.h irqs.h memory.h vmalloc.h pm.c reset.c board.h 2012-07-09 17:00:55 +08:00
赵子初
edd704202a add mw100 for rk30 2012-07-09 15:50:25 +08:00
赵子初
c4370f4587 add mu509 for rk30 2012-07-09 15:15:54 +08:00
zwp
9c0c1755b7 add twl60xx low battery detection function at rk30_phone_defconfig. 2012-07-09 10:55:20 +08:00
yangkai
b61b9880f0 hcd nonper channel problem & suspend when no device connect 2012-07-09 10:41:30 +08:00
zwp
9d19ca3097 add charge display function at rk30_phone_defconfig. 2012-07-09 10:06:32 +08:00
许盛飞
a6fd7f7fb5 rk30:sdk:change load order order 2012-07-09 10:01:02 +08:00
hhb
56b9a8b3cd camera:modify ov5640_for_td8801.c 2012-07-09 09:55:52 +08:00
张晴
30d38160f8 rk30:phone:support pmic tps80032 vbat low detection,support pmic tps80032 early suspend 2012-07-09 09:49:32 +08:00
许盛飞
9e94d2b544 rk30:sdk: update power calculation method 2012-07-06 18:02:17 +08:00
zsq
a0a99a29ca del rga dump for bug fix 2012-07-06 17:51:20 +08:00
chenxing
54f6c42e54 Revert "rk30:sdk: store clock request frequency and auto scale frequency when limit clock frequency"
This reverts commit f0a1404739.
2012-07-06 15:18:14 +08:00
chenxing
f0a1404739 rk30:sdk: store clock request frequency and auto scale frequency when limit clock frequency 2012-07-06 15:09:02 +08:00
许盛飞
33212cdac1 rk30: not gating the gpios clock 2012-07-05 19:51:52 +08:00