firefly-linux-kernel-4.4.55.git
9 years agodts: box fixed ddr freq to 800M
huang zhibao [Wed, 10 Jun 2015 08:30:00 +0000 (16:30 +0800)]
dts: box fixed ddr freq to 800M

9 years agoRK3368 Mailbox: add mailbox version information
Tang Yun ping [Wed, 10 Jun 2015 07:32:09 +0000 (15:32 +0800)]
RK3368 Mailbox: add mailbox version information

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
9 years agorga2 compile error on 64 bit platform
Shengqin.Zhang [Wed, 10 Jun 2015 09:28:17 +0000 (17:28 +0800)]
rga2 compile error on 64 bit platform

Signed-off-by: Shengqin.Zhang <zsq@rock-chips.com>
9 years agofix rga2 compile error
Shengqin.Zhang [Wed, 10 Jun 2015 08:38:03 +0000 (16:38 +0800)]
fix rga2 compile error

Signed-off-by: Shengqin.Zhang <zsq@rock-chips.com>
9 years agoarm64: dts: rk3368-tb_8846.dts: modify rk818 battery node
Jianhong Chen [Tue, 9 Jun 2015 12:44:18 +0000 (20:44 +0800)]
arm64: dts: rk3368-tb_8846.dts: modify rk818 battery node

Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
9 years agork3x: rmic: rk818: fix the code build warning in rk3288.
zhangqing [Tue, 9 Jun 2015 14:31:06 +0000 (07:31 -0700)]
rk3x: rmic: rk818: fix the code build warning in rk3288.

Signed-off-by: chenjianhong <cjh@rock-chips.com>
9 years agoVPU: fix the code cannot be built in 32bits environment.
Alpha Lin [Tue, 9 Jun 2015 02:58:57 +0000 (10:58 +0800)]
VPU: fix the code cannot be built in 32bits environment.

compat_uptr_t isn't define under 32bits environment, using
this definition under the CONFIG_COMPAT macro.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
9 years agovideo: rockchip: rk312x lcdc: fix set standby err if not support uboot display
Wenlong Zhuang [Tue, 9 Jun 2015 01:25:53 +0000 (09:25 +0800)]
video: rockchip: rk312x lcdc: fix set standby err if not support uboot display

Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
9 years agousb: ehci: rename hsic and HSIC to ehci1 and EHCI1
Wu Liang feng [Mon, 8 Jun 2015 14:23:26 +0000 (22:23 +0800)]
usb: ehci: rename hsic and HSIC to ehci1 and EHCI1

Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
9 years agork3x: pmic: rk818: support low battery detect,and slove otg error.
zhangqing [Mon, 8 Jun 2015 17:30:41 +0000 (10:30 -0700)]
rk3x: pmic: rk818: support low battery detect,and slove otg error.

Add function:
1)battery voltage low then 3.0V not allow to power on.
2)battery voltage low then 3.4V have irq to wakeup from deep sleep.
3)disable otg_en when rk818 shutdown..

Signed-off-by: zhangqing <zhangqing@rock-chips.com>
9 years agohdmi: v2: update phy register value to improve output signal.
Zheng Yang [Mon, 8 Jun 2015 08:40:18 +0000 (16:40 +0800)]
hdmi: v2: update phy register value to improve output signal.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agohdmi: edid: distinguish deep color mode between YCbCr444 and YCbCr420.
Zheng Yang [Mon, 8 Jun 2015 08:36:18 +0000 (16:36 +0800)]
hdmi: edid: distinguish deep color mode between YCbCr444 and YCbCr420.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agork3368 camera: hold vio0 noc clock during the camera work, fixed isp iommu stall...
CMY [Thu, 28 May 2015 03:40:32 +0000 (11:40 +0800)]
rk3368 camera: hold vio0 noc clock during the camera work, fixed isp iommu stall failed

<6>[  142.697985] Enable stall request failed, MMU status is 0x00000011
<6>[  142.698006] rk_iommu ff914000.isp_mmu: (isp_mmu), rockchip_iommu_disable failed

Signed-off-by: CMY <cmy@rock-chips.com>
Tested-by: GY <gy@rock-chips.com>
9 years agopower: rk81x-battery: check sec base by rsoc trend anyway
Jianhong Chen [Sat, 6 Jun 2015 05:42:45 +0000 (13:42 +0800)]
power: rk81x-battery: check sec base by rsoc trend anyway

Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
9 years agopower: rk81x-battery: update verison to 4.0.0
chenjh [Tue, 12 May 2015 09:22:33 +0000 (17:22 +0800)]
power: rk81x-battery: update verison to 4.0.0

this verison can support both ARM and SOFIA platform.

Signed-off-by: chenjh <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
9 years agoarm64: dts: rk3368-p9_818:modify battery node
chenjh [Tue, 12 May 2015 09:18:10 +0000 (17:18 +0800)]
arm64: dts: rk3368-p9_818:modify battery node

Signed-off-by: chenjh <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
9 years agovop: rk3288: update dither config for 10bit output mode
hjc [Fri, 5 Jun 2015 07:03:05 +0000 (15:03 +0800)]
vop: rk3288: update dither config for 10bit output mode

example for 10bit dual lvds output:
timing0 {
screen-type = <SCREEN_DUAL_LVDS>;
out-face    = <OUT_P101010>;
color-mode  = <COLOR_RGB>;
...
}

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3368 vop: cabc lut update only when cabc enable
hjc [Thu, 4 Jun 2015 09:20:47 +0000 (17:20 +0800)]
rk3368 vop: cabc lut update only when cabc enable

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agohdmi:edid: improve edid check redundancy.
Zheng Yang [Fri, 5 Jun 2015 06:20:31 +0000 (14:20 +0800)]
hdmi:edid: improve edid check redundancy.

If edid first block header check or checksum is error,
but data[126] value is smaller than 4, we think it is
accecptable, return suscess.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoVPU: add cru reset if vpu hardware hang or vpu report
Alpha Lin [Thu, 4 Jun 2015 09:36:18 +0000 (17:36 +0800)]
VPU: add cru reset if vpu hardware hang or vpu report
error.

It depend on pmu driver. and require pmu to complete
its idle request function.

temporary, it haven't enable yet, because rk3368 pmu
function had not completed.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
9 years agoVPU: add a hardware error check in interrupt handle.
Alpha Lin [Thu, 4 Jun 2015 09:31:22 +0000 (17:31 +0800)]
VPU: add a hardware error check in interrupt handle.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
9 years agoVPU: use debugfs_remove_recursive to recursive remove
Alpha Lin [Thu, 4 Jun 2015 09:24:59 +0000 (17:24 +0800)]
VPU: use debugfs_remove_recursive to recursive remove
debugfs node.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
9 years agoVPU: abondon old time consume log print, used new time record
Alpha Lin [Thu, 4 Jun 2015 09:02:08 +0000 (17:02 +0800)]
VPU: abondon old time consume log print, used new time record
interface to calculate and print time logs.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
9 years agoVPU: add debug log classification output method.
Alpha Lin [Thu, 4 Jun 2015 08:51:06 +0000 (16:51 +0800)]
VPU: add debug log classification output method.

Use /sys/module/vcodec_service/parameters/debug to
control log output, each bit represent a type of debug
information.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
9 years agoVPU: support compatible vpu request from userspace.
Alpha Lin [Thu, 4 Jun 2015 07:15:01 +0000 (15:15 +0800)]
VPU: support compatible vpu request from userspace.

This revision need rk3368 android library libvpu to
revert it VPUReq_t definition, Revert RK_U64 req;
to RK_U32 *req;

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
9 years agork1000: shorter reset delay time.
Zheng Yang [Thu, 4 Jun 2015 08:10:44 +0000 (16:10 +0800)]
rk1000: shorter reset delay time.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agork1000: fix create sysfs file permission error.
Zheng Yang [Thu, 4 Jun 2015 07:35:35 +0000 (15:35 +0800)]
rk1000: fix create sysfs file permission error.

Wrong permission will case following warning:

------------[ cut here ]------------
WARNING: at drivers/base/core.c:576 device_create_file+0x74/0xa4()
Attribute rkcontrl: write permission without 'store'
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.0 #247
Call trace:
[<ffffffc000087dc0>] dump_backtrace+0x0/0x10c
[<ffffffc000087edc>] show_stack+0x10/0x1c
[<ffffffc00087c0e4>] dump_stack+0x1c/0x28
[<ffffffc0000a1b08>] warn_slowpath_common+0x74/0x9c
[<ffffffc0000a1b7c>] warn_slowpath_fmt+0x4c/0x58
[<ffffffc00036cfec>] device_create_file+0x70/0xa4
[<ffffffc000399fc4>] rk1000_probe+0x1d0/0x20c
[<ffffffc00058b190>] i2c_device_probe+0x9c/0xd4
[<ffffffc000370e70>] driver_probe_device+0xd0/0x210
[<ffffffc00037105c>] __driver_attach+0x60/0x90
[<ffffffc00036f394>] bus_for_each_dev+0x60/0x88
[<ffffffc00037096c>] driver_attach+0x1c/0x28
[<ffffffc000370540>] bus_add_driver+0xf4/0x210
[<ffffffc000371698>] driver_register+0xbc/0x138
[<ffffffc00058b054>] i2c_register_driver+0x48/0xac
[<ffffffc000bf2934>] rk1000_init+0x14/0x20
[<ffffffc000081554>] do_one_initcall+0x80/0x120
[<ffffffc000bdb8f0>] kernel_init_freeable+0x148/0x1e8
[<ffffffc000876a10>] kernel_init+0x10/0xcc
---[ end trace 1cc1e45d37744cff ]---

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agork1000: fix rk1000-core.c code style.
Zheng Yang [Thu, 4 Jun 2015 07:15:20 +0000 (15:15 +0800)]
rk1000: fix rk1000-core.c code style.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoarm64: rockchip: rockchip_defconfig enable PRINTK_PROCESS
Huang, Tao [Tue, 2 Jun 2015 11:11:02 +0000 (19:11 +0800)]
arm64: rockchip: rockchip_defconfig enable PRINTK_PROCESS

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoadd support show process information on printks
Huang, Tao [Tue, 2 Jun 2015 11:09:35 +0000 (19:09 +0800)]
add support show process information on printks

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agork fb: if win close we have to set 4 area state to 0, otherwise will lead to pagefault
hjc [Wed, 3 Jun 2015 03:38:39 +0000 (11:38 +0800)]
rk fb: if win close we have to set 4 area state to 0, otherwise will lead to pagefault

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: 2 pixel align for interlace and xact offset
hjc [Mon, 1 Jun 2015 10:26:02 +0000 (18:26 +0800)]
rk fb: 2 pixel align for interlace and xact offset

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3368 lcdc: in interlace mode & resolutation is p to i scale, disable vscale done...
hjc [Mon, 1 Jun 2015 10:13:58 +0000 (18:13 +0800)]
rk3368 lcdc: in interlace mode & resolutation is p to i scale, disable vscale done and enable gt2

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agorfkill-wlan.c: solve mac addr all zero error, cause can't connect ap problem
hwg [Wed, 3 Jun 2015 01:28:46 +0000 (09:28 +0800)]
rfkill-wlan.c: solve mac addr all zero error, cause can't connect ap problem

9 years agoarm64: rockchip: rockchip_defconfig sync with samsung product
Huang, Tao [Tue, 2 Jun 2015 10:23:41 +0000 (18:23 +0800)]
arm64: rockchip: rockchip_defconfig sync with samsung product

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agork: RK_CONSOLE_THREAD no depends on FIQ_DEBUGGER_CONSOLE
Huang, Tao [Tue, 2 Jun 2015 08:58:26 +0000 (16:58 +0800)]
rk: RK_CONSOLE_THREAD no depends on FIQ_DEBUGGER_CONSOLE

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoRK3368 GPU version: Rogue L 0.17
zxl [Tue, 2 Jun 2015 08:07:27 +0000 (16:07 +0800)]
RK3368 GPU version: Rogue L 0.17
1. Support gpu disable dvfs case.
2. Add rk_tf_check_version to compatible for rk3328.
3. merge 1.4_ED3573678 DDK code.
   Tip: Need update RK3368 GPU so version to L0.17(@vendor/rockchip/common).

9 years agork: gcc-wrapper.py fix psci ignore
Huang, Tao [Tue, 2 Jun 2015 06:26:58 +0000 (14:26 +0800)]
rk: gcc-wrapper.py fix psci ignore

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoMerge branch android-common-3.10
Huang, Tao [Tue, 2 Jun 2015 03:25:51 +0000 (11:25 +0800)]
Merge branch android-common-3.10

9 years agoMerge tag 'lsk-v3.10-15.05-android' into develop-3.10
Huang, Tao [Tue, 2 Jun 2015 03:25:34 +0000 (11:25 +0800)]
Merge tag 'lsk-v3.10-15.05-android' into develop-3.10

9 years agoRevert "zram: don't grab mutex in zram_slot_free_noity"
Huang, Tao [Tue, 2 Jun 2015 03:25:10 +0000 (11:25 +0800)]
Revert "zram: don't grab mutex in zram_slot_free_noity"

This reverts commit 66db73c14bd16d8ad05ecb80e6bf6050d8828467.

9 years agoarm64: rockchip: efuse: support set system serial
Huang, Tao [Tue, 2 Jun 2015 00:56:49 +0000 (08:56 +0800)]
arm64: rockchip: efuse: support set system serial

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agobcmdhd wifi: update to 1.201.59.4
hwg [Mon, 1 Jun 2015 07:54:19 +0000 (15:54 +0800)]
bcmdhd wifi: update to 1.201.59.4

9 years agorfkill-wlan, solve rockchip_wifi_mac_addr error
hwg [Mon, 1 Jun 2015 07:41:27 +0000 (15:41 +0800)]
rfkill-wlan, solve rockchip_wifi_mac_addr error

9 years agoHDMI: add mutex lock to edid modelist operation.
Zheng Yang [Fri, 29 May 2015 02:08:34 +0000 (10:08 +0800)]
HDMI: add mutex lock to edid modelist operation.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoandroid: drivers: workaround debugfs race in binder
Riley Andrews [Thu, 28 May 2015 19:10:05 +0000 (12:10 -0700)]
android: drivers: workaround debugfs race in binder

If a /d/binder/proc/[pid] entry is kept open after linux has
torn down the associated process, binder_proc_show can deference
an invalid binder_proc that has been stashed in the debugfs
inode.  Validate that the binder_proc ptr passed into binder_proc_show
has not been freed by looking for it within the global process list
whilst the global lock is held. If the ptr is not valid, print nothing.

Bug 19587483
Change-Id: Ice878c171db51ef9a4879c2f9299a2deb873d255
Signed-off-by: Riley Andrews <riandrews@android.com>
9 years agoesp8089 wifi: solve warning in 64bit, new method
hwg [Thu, 28 May 2015 06:35:42 +0000 (14:35 +0800)]
esp8089 wifi: solve warning in 64bit, new method

9 years agork: iommu: support iommu region guard
CMY [Fri, 22 May 2015 09:26:42 +0000 (17:26 +0800)]
rk: iommu: support iommu region guard

Add an guard area after each iommu region, it is used to detect cross-border access

Signed-off-by: CMY <cmy@rock-chips.com>
Signed-off-by: XXM <xxm@rock-chips.com>
9 years agork fb: act_height should be 2 pix align for interlace output
hjc [Thu, 28 May 2015 02:13:44 +0000 (10:13 +0800)]
rk fb: act_height should be 2 pix align for interlace output

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agoneigh: Better handling of transition to NUD_PROBE state
Erik Kline [Mon, 18 May 2015 10:44:41 +0000 (19:44 +0900)]
neigh: Better handling of transition to NUD_PROBE state

[1] When entering NUD_PROBE state via neigh_update(), perhaps received
    from userspace, correctly (re)initialize the probes count to zero.

    This is useful for forcing revalidation of a neighbor (for example
    if the host is attempting to do DNA [IPv4 4436, IPv6 6059]).

[2] Notify listeners when a neighbor goes into NUD_PROBE state.

    By sending notifications on entry to NUD_PROBE state listeners get
    more timely warnings of imminent connectivity issues.

    The current notifications on entry to NUD_STALE have somewhat
    limited usefulness: NUD_STALE is a perfectly normal state, as is
    NUD_DELAY, whereas notifications on entry to NUD_FAILURE come after
    a neighbor reachability problem has been confirmed (typically after
    three probes).

Change-Id: I1d01d40ef3bc4753b0eaa79da2b27235425b1934
Signed-off-by: Erik Kline <ek@google.com>
Acked-By: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
9 years agoNew Build Breakage in branch: kernel-m-dev-tegra-flounder-3.10 @ 1960706
Mark Salyzyn [Wed, 27 May 2015 18:08:16 +0000 (11:08 -0700)]
New Build Breakage in branch: kernel-m-dev-tegra-flounder-3.10 @ 1960706

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Change-Id: I5682198bce94e66ff3de52989c7e361ffc25ba51

9 years agonet/unix: sk_socket can disappear when state is unlocked
Mark Salyzyn [Thu, 21 May 2015 16:25:02 +0000 (09:25 -0700)]
net/unix: sk_socket can disappear when state is unlocked

got a rare NULL pointer dereference in clear_bit

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 21252747
Change-Id: I27e70f2543034097c8a590a212c2c6fa846fe695

9 years agorm64: rockchip: rockchip_defconfig disable EARLY_PRINTK
Huang, Tao [Wed, 27 May 2015 08:51:40 +0000 (16:51 +0800)]
rm64: rockchip: rockchip_defconfig disable EARLY_PRINTK

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoarm64: rockchip: check tf version later
Huang, Tao [Wed, 27 May 2015 08:49:32 +0000 (16:49 +0800)]
arm64: rockchip: check tf version later

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agovcodec: add soft reset after reading dec registers
Herman Chen [Wed, 27 May 2015 02:42:38 +0000 (10:42 +0800)]
vcodec: add soft reset after reading dec registers

Sometimes decoder got a timeout error and can not recover from error status.
We need to add soft reset after reading dec registers.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
9 years agovcodec: fix enable race condition when power on/off
Herman Chen [Wed, 27 May 2015 02:26:33 +0000 (10:26 +0800)]
vcodec: fix enable race condition when power on/off

When multi-instances power on at same time the condition enabled maybe
set mutli-times. Use atomic function to replace orginal
read/compare/change operation to avoid multi-instances.
Also add power on/off count to debugfs for checking

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
9 years agoadd func: check tf ver
xxx [Wed, 27 May 2015 01:04:58 +0000 (09:04 +0800)]
add func: check tf ver

9 years agork3368 lcdc: update hdmi overscan config path
hjc [Tue, 26 May 2015 08:17:28 +0000 (16:17 +0800)]
rk3368 lcdc: update hdmi overscan config path

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: fix in interlace mode switch between ntsc and pal lead to pagefault
hjc [Tue, 26 May 2015 07:54:49 +0000 (15:54 +0800)]
rk fb: fix in interlace mode switch between ntsc and pal lead to pagefault

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3368 lcdc: add wait frame start for uboot logo switch kernel logo and enable iommu
hjc [Tue, 26 May 2015 06:39:36 +0000 (14:39 +0800)]
rk3368 lcdc: add wait frame start for uboot logo switch kernel logo and enable iommu

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: fix uboot logo switch to kernel logo splash screen
hjc [Tue, 26 May 2015 06:38:23 +0000 (14:38 +0800)]
rk fb: fix uboot logo switch to kernel logo splash screen

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agodvfs: rockchip: add cpu thermal management test nodes
Xiao Feng [Tue, 26 May 2015 08:14:50 +0000 (16:14 +0800)]
dvfs: rockchip: add cpu thermal management test nodes

Signed-off-by: Xiao Feng <xf@rock-chips.com>
9 years agoMakefile: revert to 899286fb6a7a20f5b5c5d0a9a22e4fc39b2d9e70
Zheng Yang [Tue, 26 May 2015 08:17:05 +0000 (16:17 +0800)]
Makefile: revert to 899286fb6a7a20f5b5c5d0a9a22e4fc39b2d9e70

9 years agodisplay-sys: fix compile warning
Zheng Yang [Tue, 26 May 2015 08:14:09 +0000 (16:14 +0800)]
display-sys: fix compile warning

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agodisplay-sys: function mode_string check input parameter.
Zheng Yang [Tue, 26 May 2015 06:57:22 +0000 (14:57 +0800)]
display-sys: function mode_string check input parameter.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agomodify smc call func id to Standard sip id for efuse and pm-rk3368
xxx [Tue, 26 May 2015 06:53:55 +0000 (14:53 +0800)]
modify smc call func id to Standard sip id for efuse and pm-rk3368

9 years agork3368 lcdc: fix iommu crash when resume
hjc [Mon, 25 May 2015 08:01:12 +0000 (16:01 +0800)]
rk3368 lcdc: fix iommu crash when resume

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agoarm64: rockchip: rk3368: refactor efuse code
Huang, Tao [Mon, 25 May 2015 07:45:53 +0000 (15:45 +0800)]
arm64: rockchip: rk3368: refactor efuse code

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoarm64: rockchip: rk3368: dts: add rockchip,rk3368-efuse-256
Huang, Tao [Mon, 25 May 2015 07:26:54 +0000 (15:26 +0800)]
arm64: rockchip: rk3368: dts: add rockchip,rk3368-efuse-256

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agofix rga mmu buf cause system crash when use ion mmu buf
Shengqin.Zhang [Mon, 25 May 2015 07:30:20 +0000 (15:30 +0800)]
fix rga mmu buf cause system crash when use ion mmu buf

Signed-off-by: Shengqin.Zhang <zsq@rock-chips.com>
9 years agork3368: iommu: fix region free position when iovmm_activate failed
Simon [Mon, 25 May 2015 03:48:31 +0000 (11:48 +0800)]
rk3368: iommu: fix region free position when iovmm_activate failed

Signed-off-by: Simon <xxm@rock-chips.com>
9 years agoRevert "mmc: rk_sdmmc: manually zero desc after allocated on ARM64 platform."
Shawn Lin [Mon, 25 May 2015 02:50:47 +0000 (10:50 +0800)]
Revert "mmc: rk_sdmmc: manually zero desc after allocated on ARM64 platform."

This reverts commit e68d16d33646fabf36e782b300404f112eb94d1d.

9 years agommc: dw_mmc: init desc in dw_mci_idmac_init
Zhangfei Gao [Mon, 25 May 2015 02:46:54 +0000 (10:46 +0800)]
mmc: dw_mmc: init desc in dw_mci_idmac_init

Set 0 to des1 in 32bit case.
Otherwise the random value of des1 will be used in
dw_mci_translate_sglist: IDMAC_SET_BUFFER1_SIZE(desc, length)

Signed-off-by: Fei Wang <w.f@huawei.com>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
9 years agodts: arm64: rk3368: fix wrong property for esd
Shawn Lin [Mon, 25 May 2015 02:08:48 +0000 (10:08 +0800)]
dts: arm64: rk3368: fix wrong property for esd

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
cc: Sam Guo <sam.guo@rock-chips.com>
cc: Xiao Yao <xiaoyao@rock-chips.com>

9 years agoCVBS: Add gm7122 driver.
ShenZhengyi [Sat, 23 May 2015 07:49:05 +0000 (15:49 +0800)]
CVBS: Add gm7122 driver.

      If you use it, should add board information to dts file, such as i2c address, sleep pin.
      like that:
gm7122_tve@44 {
compatible = "gm7122_tve";
reg = <0x44>;
rockchip,source = <0>; //0: LCDC0; 1: LCDC1
rockchip,prop = <PRMRY>;//<EXTEND>
gpio-reset = <&gpio0 GPIO_A1 GPIO_ACTIVE_HIGH>;
gpio-sleep = <&gpio0 GPIO_C6 GPIO_ACTIVE_HIGH>;
status = "okay";
};

Signed-off-by: ShenZhengyi <szy@rock-chips.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoHDMI: No need to set audio when hdmi is not connected.
Zheng Yang [Sat, 23 May 2015 03:08:49 +0000 (11:08 +0800)]
HDMI: No need to set audio when hdmi is not connected.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoarm64: kernel: add system revision support
Peng Du [Mon, 12 Aug 2013 21:42:59 +0000 (14:42 -0700)]
arm64: kernel: add system revision support

Bug 1248538

Change-Id: I272a264ba2904dfc7a2c6d74ab4fbfdd301b8985
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/260756
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
9 years agoselinux: enable genfscon labeling for sysfs and pstore files
Stephen Smalley [Wed, 20 May 2015 16:33:16 +0000 (12:33 -0400)]
selinux: enable genfscon labeling for sysfs and pstore files

Support per-file labeling of sysfs and pstore files based on
genfscon policy entries.  This is safe because the sysfs
and pstore directory tree cannot be manipulated by userspace,
except to unlink pstore entries.
This provides an alternative method of assigning per-file labeling
to sysfs or pstore files without needing to set the labels from
userspace on each boot.  The advantages of this approach are that
the labels are assigned as soon as the dentry is first instantiated
and userspace does not need to walk the sysfs or pstore tree and
set the labels on each boot.  The limitations of this approach are
that the labels can only be assigned based on pathname prefix matching.
You can initially assign labels using this mechanism and then change
them at runtime via setxattr if allowed to do so by policy.

Change-Id: If5999785fdc1d24d869b23ae35cd302311e94562
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Suggested-by: Dominick Grift <dac.override@gmail.com>
9 years agoHDMI: register display type according lcdc property.
Zheng Yang [Fri, 22 May 2015 10:34:17 +0000 (18:34 +0800)]
HDMI: register display type according lcdc property.

If property of lcdc connected by HDMI is EXTERN,
we register HDMI as a aux display device.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agodisplay-sys: delete unused code.
Zheng Yang [Fri, 22 May 2015 10:34:03 +0000 (18:34 +0800)]
display-sys: delete unused code.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agommc: rk_sdmmc: fix compile warning
Shawn Lin [Fri, 22 May 2015 10:17:48 +0000 (18:17 +0800)]
mmc: rk_sdmmc: fix compile warning

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
9 years agommc: core: add wrapper for timeout value
Shawn Lin [Fri, 22 May 2015 09:39:26 +0000 (17:39 +0800)]
mmc: core: add wrapper for timeout value

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
cc: Xiao yao <xiaoyao@rock-chips.com>

9 years agommc: rk_sdmmc: do more timeout recovery operation
Shawn Lin [Fri, 22 May 2015 08:08:48 +0000 (16:08 +0800)]
mmc: rk_sdmmc: do more timeout recovery operation

  We stop slaver and rebank our setting for better
compatibility.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Roger Hu <roger.hu@rock-chips.com>
Tested-by: Allen Lee <allen.lee@rock-chips.com>
cc: Xiao yao <xiaoyao@rock-chips.com>

9 years agommc: core: skyrocket timeout for cmd erase_group_xxx
Shawn Lin [Fri, 22 May 2015 07:38:08 +0000 (15:38 +0800)]
mmc: core: skyrocket timeout for cmd erase_group_xxx

  It shocked me that a buggy emmc need quite a long period
of time for setting its erase_group_xxx. Increase timeout
value does not harm to normal case which just under constrain.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Tested-by: Yongzhong Yang <yongzhong.yang@rock-chips.com>
cc: Xiao yao <xiaoyao@rock-chips.com>

9 years agommc: rk_sdmmc: disable controller int before enter deepsleep
Shawn Lin [Fri, 22 May 2015 06:56:11 +0000 (14:56 +0800)]
mmc: rk_sdmmc: disable controller int before enter deepsleep

   Generally when machine enter deepsleep, with no cirrcumstance,
host can interact with slavery devices. So disbale our int generater
ourself. By occasionly, we find reset controller will trigger an
unexpected SEB int. It exists a race condition for reset and IO timing
before switched to gpio and confuse state machine.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Tested-and-Reviewed-by: Xiao yao <xiaoyao@rock-chips.com>
9 years agommc: rk_sdmmc: add platform hook for special pm ops during deepsleep
lintao [Fri, 22 May 2015 02:54:34 +0000 (10:54 +0800)]
mmc: rk_sdmmc: add platform hook for special pm ops during deepsleep

  We register a platform hook and restore all of our regs if platform does
need to cutoff controller's power-supply during deepsleep in period of time.
Make sure your have added "controller-power-down" property AND comment out
"keep-power-in-suspend" in related dts file.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Xiaoyao <xiaoyao@rock-chips.com>
Reviewed-by: Chenjh <chenjh@rock-chips.com>
Tested-by: Chenjh <chenjh@rock-chips.com>
9 years agodtsi: ddr_freq: add vop bandwidth freq table
Xiao Feng [Thu, 21 May 2015 07:10:25 +0000 (15:10 +0800)]
dtsi: ddr_freq: add vop bandwidth freq table

Signed-off-by: Xiao Feng <xf@rock-chips.com>
9 years agofb: add sysfs node lcdcid.
Zheng Yang [Fri, 22 May 2015 07:18:37 +0000 (15:18 +0800)]
fb: add sysfs node lcdcid.

Now we have many fb devices, each vop layer is mapped to a fb device.
If there is 2 vop, we can not distinguish the vop between these fb devices.
Add sysfs node lcdcid to get the lcdc id mapped by fb device.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agorfkill-wlan: skip can't find rockchip,grf property error in none 3368 platform
hwg [Fri, 22 May 2015 01:52:18 +0000 (09:52 +0800)]
rfkill-wlan: skip can't find rockchip,grf property error in none 3368 platform

9 years agork3368: pmic: rk818:adjust dcdc voltage step
zhangqing [Thu, 21 May 2015 18:56:16 +0000 (11:56 -0700)]
rk3368: pmic: rk818:adjust dcdc voltage step

Signed-off-by: zhangqing <zhangqing@rock-chips.com>
9 years agoselinux: enable per-file labeling for debugfs files.
Stephen Smalley [Tue, 19 May 2015 17:59:12 +0000 (13:59 -0400)]
selinux: enable per-file labeling for debugfs files.

upstream commit 6f29997f4a3117169eeabd41dbea4c1bd94a739c

Add support for per-file labeling of debugfs files so that
we can distinguish them in policy.  This is particularly
important in Android where certain debugfs files have to be writable
by apps and therefore the debugfs directory tree can be read and
searched by all.

Since debugfs is entirely kernel-generated, the directory tree is
immutable by userspace, and the inodes are pinned in memory, we can
simply use the same approach as with proc and label the inodes from
policy based on pathname from the root of the debugfs filesystem.
Generalize the existing labeling support used for proc and reuse it
for debugfs too.

[sds:  Back-ported to 3.10.  superblock_security_struct flags field
is only unsigned char in 3.10 so we have to redefine SE_SBGENFS.
However, this definition is kernel-private, not exposed to userspace
or stored anywhere persistent.]

Change-Id: I6460fbed6bb6bd36eb8554ac8c4fdd574edf3b07
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
9 years agoASoC: es8316: use startup/shutdown to manager power consumption.
Sugar Zhang [Thu, 21 May 2015 10:38:13 +0000 (18:38 +0800)]
ASoC: es8316: use startup/shutdown to manager power consumption.

use startup/shutdown to reduce power consumption, every time codec
standby, we shutdown codec. so, there is no need extra operation in
suspend.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
9 years agoarm: rockchip: vcodec_service: allow no rockchip,grf in dts
Huang, Tao [Thu, 21 May 2015 10:28:22 +0000 (18:28 +0800)]
arm: rockchip: vcodec_service: allow no rockchip,grf in dts

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoclk: rockchip: allow no rockchip,grf in dts on arm
Huang, Tao [Thu, 21 May 2015 10:23:29 +0000 (18:23 +0800)]
clk: rockchip: allow no rockchip,grf in dts on arm

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoASoC: dmaengine: use dma_request_slave_channel to request dma chan.
Sugar Zhang [Thu, 21 May 2015 07:53:59 +0000 (15:53 +0800)]
ASoC: dmaengine: use dma_request_slave_channel to request dma chan.

if i2s module probe before dma module, dma chan resources are not ready.
use dma_request_slave_channel to reinitialize dma chan if not ready.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
9 years agoHDMI: support show edid status.
Zheng Yang [Thu, 21 May 2015 05:45:22 +0000 (13:45 +0800)]
HDMI: support show edid status.

Use /sys/class/display/HDMI/debug node to
show sink EDID status and raw status.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agodisplay-sys: debug node support to show debug information.
Zheng Yang [Thu, 21 May 2015 05:40:15 +0000 (13:40 +0800)]
display-sys: debug node support to show debug information.

Add a callback function getdebug() to show debug information.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoHDMI: just list common format when edid is not valid.
Zheng Yang [Thu, 21 May 2015 02:26:34 +0000 (10:26 +0800)]
HDMI: just list common format when edid is not valid.

If EDID is not valid, list following common format:
1920x1080p-60
1920x1080p-50
1280x720p-60
1280x720p-50
720px576p-50
720px480p-60

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoext4: don't save the error information if the block device is read-only
Theodore Ts'o [Thu, 14 May 2015 22:37:30 +0000 (18:37 -0400)]
ext4: don't save the error information if the block device is read-only

Google-Bug-Id: 20939131
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 years agoMerge branch 'linux-linaro-lsk-v3.10' into linux-linaro-lsk-v3.10-android
Alex Shi [Thu, 21 May 2015 02:13:07 +0000 (10:13 +0800)]
Merge branch 'linux-linaro-lsk-v3.10' into linux-linaro-lsk-v3.10-android