platform/kernel/linux-amlogic.git
5 years agothermal: support A32 driver
Huan Biao [Thu, 2 Aug 2018 07:47:58 +0000 (15:47 +0800)]
thermal: support A32 driver

PD#169652: thermal: support A32 driver

Change-Id: Ic0d86782f1b10743435588080c1a1548ccd80e04
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
5 years agodeinterlace: txl: fix di abnormal when dtv on inverted screen
Jihong Sui [Wed, 15 Aug 2018 07:44:28 +0000 (15:44 +0800)]
deinterlace: txl: fix di abnormal when dtv on inverted screen

PD#171587: txl: fix di abnormal when dtv on inverted screen

Change-Id: I38a1d2c73b0dd961739a010b36e06bb1f51e7be8
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agohdmirx: add new hdcp14 key configuration method
yicheng shen [Tue, 26 Jun 2018 03:02:22 +0000 (11:02 +0800)]
hdmirx: add new hdcp14 key configuration method

PD#168660: hdmirx: add new hdcp14 key configuration method

set hdcp1.4 key via secure OS to protect the key

Change-Id: If455aebe1c7fb65b4b16e8cf3ba7a70cf20702ac
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agoclocksource: remove LOCAL_TIMER config in meson64_a32
Ao Xu [Wed, 15 Aug 2018 08:22:16 +0000 (04:22 -0400)]
clocksource: remove LOCAL_TIMER config in meson64_a32

PD#169652: clocksource: remove LOCAL_TIMER config in meson64_a32

use soc timer instead of local timer

Change-Id: Ie2fd614cc6978496474fefcd39f0f21136197f34
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agoboard: add A32 support for gxl&txlx
Ao Xu [Thu, 2 Aug 2018 08:50:14 +0000 (16:50 +0800)]
board: add A32 support for gxl&txlx

PD#169652: board: add A32 support for gxl&txlx

add dts for gxl&txlx

Change-Id: Id2e79c9d2611bc2fb84ee344568ed9276566e872
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agoclk: fix 32bit system compatibility issue
Shunzhou Jiang [Fri, 6 Jul 2018 05:02:34 +0000 (13:02 +0800)]
clk: fix 32bit system compatibility issue

PD#169833: clk: fix 32bit system compatibility issue

Change-Id: I3ded0352c88267275cb1f128f1bfb79618f2226c
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agodrm: Create a format/modifier blob
Ben Widawsky [Mon, 24 Jul 2017 03:46:39 +0000 (20:46 -0700)]
drm: Create a format/modifier blob

Updated blob layout (Rob, Daniel, Kristian, xerpi)

v2:
* Removed __packed, and alignment (.+)
* Fix indent in drm_format_modifier fields (Liviu)
* Remove duplicated modifier > 64 check (Liviu)
* Change comment about modifier (Liviu)
* Remove arguments to blob creation, use plane instead (Liviu)
* Fix data types (Ben)
* Make the blob part of uapi (Daniel)

v3:
Remove unused ret field.
Change i, and j to unsigned int (Emil)

v4:
Use plane->modifier_count instead of recounting (Daniel)

v5:
Rename modifiers to modifiers_property (Ville)
Use sizeof(__u32) instead to reflect UAPI nature (Ville)
Make BUILD_BUG_ON for blob header size

Change-Id: Ibb2490b0510cbae9b5f4252483f8b1531fddf73f
Cc: Rob Clark <robdclark@gmail.com>
Cc: Kristian H. Kristensen <hoegsberg@gmail.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Daniel Stone <daniels@collabora.com> (v2)
Reviewed-by: Liviu Dudau <liviu@dudau.co.uk> (v2)
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (v3)
Signed-off-by: Daniel Stone <daniels@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170724034641.13369-2-ben@bwidawsk.net
5 years agodrm: Plumb modifiers through plane init
Ben Widawsky [Mon, 24 Jul 2017 03:46:38 +0000 (20:46 -0700)]
drm: Plumb modifiers through plane init

This is the plumbing for supporting fb modifiers on planes. Modifiers
have already been introduced to some extent, but this series will extend
this to allow querying modifiers per plane. Based on this, the client to
enable optimal modifications for framebuffers.

This patch simply allows the DRM drivers to initialize their list of
supported modifiers upon initializing the plane.

v2: A minor addition from Daniel

v3:
* Updated commit message
* s/INVALID/DRM_FORMAT_MOD_INVALID (Liviu)
* Remove some excess newlines (Liviu)
* Update comment for > 64 modifiers (Liviu)

v4: Minor comment adjustments (Liviu)

v5: Some new platforms added due to rebase

v6: Add some missed plane inits (or maybe they're new - who knows at
this point) (Daniel)

Change-Id: I717e6240f729902af34c1419140bbf0b8c0a421d
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Daniel Stone <daniels@collabora.com> (v2)
Reviewed-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Daniel Stone <daniels@collabora.com>
5 years agodrm: Nuke modifier[1-3]
Ville Syrjälä [Wed, 16 Nov 2016 11:33:16 +0000 (13:33 +0200)]
drm: Nuke modifier[1-3]

It has been suggested that having per-plane modifiers is making life
more difficult for userspace, so let's just retire modifier[1-3] and
use modifier[0] to apply to the entire framebuffer.

Obviosuly this means that if individual planes need different tiling
layouts and whatnot we will need a new modifier for each combination
of planes with different tiling layouts.

For a bit of extra backwards compatilbilty the kernel will allow
non-zero modifier[1+] but it require that they will match modifier[0].
This in case there's existing userspace out there that sets
modifier[1+] to something non-zero with planar formats.

Mostly a cocci job, with a bit of manual stuff mixed in.

@@
struct drm_framebuffer *fb;
expression E;
@@
- fb->modifier[E]
+ fb->modifier

@@
struct drm_framebuffer fb;
expression E;
@@
- fb.modifier[E]
+ fb.modifier

Change-Id: Iebf536e81ea538e157d57eebed1ae3f9b3d912ce
Cc: Kristian Høgsberg <hoegsberg@gmail.com>
Cc: Ben Widawsky <benjamin.widawsky@intel.com>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Tomeu Vizoso <tomeu@tomeuvizoso.net>
Cc: dczaplejewicz@collabora.co.uk
Suggested-by: Kristian Høgsberg <hoegsberg@gmail.com>
Acked-by: Ben Widawsky <ben@bwidawsk.net>
Acked-by: Daniel Stone <daniels@collabora.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1479295996-26246-1-git-send-email-ville.syrjala@linux.intel.com
5 years agodrm: Extract drm_mode_config.[hc]
Daniel Vetter [Mon, 14 Nov 2016 11:58:23 +0000 (12:58 +0100)]
drm: Extract drm_mode_config.[hc]

And shuffle the kernel-doc structure a bit since drm_crtc.[hc] now
only contains CRTC-related functions and structures.

v2:
- rebase onto drm-misc
- don't forget to move drm_mode_config_cleanup.
- move 2 internal decls under the right heading (Chris)

Change-Id: Ia84e8ea0df4be681c2e6a7856e11ec4bf7edfcdb
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
5 years agodrm: add helper for printing to log or seq_file
Rob Clark [Sat, 5 Nov 2016 15:08:07 +0000 (11:08 -0400)]
drm: add helper for printing to log or seq_file

Sometimes it is nice not to duplicate equivalent printk() and
seq_printf() code.

v2: simplify things w/ va_format, and use dev_printk, docs

Change-Id: Idad43e786b5007cc4c794afaf04dd3ad03d58941
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1478358492-30738-3-git-send-email-robdclark@gmail.com
5 years agodrm_fourcc: Document linear modifier
Daniel Vetter [Wed, 9 Nov 2016 12:36:36 +0000 (13:36 +0100)]
drm_fourcc: Document linear modifier

Not setting the fb modifiers flag is something different from setting
the fb modifiers to 0 (which means explicitly linear). We kinda failed
to document that properly. Spotted by Kristian.

Change-Id: I165c4b32bcd2c329786aa05fac268b066a9af159
Cc: hoegsberg@google.com
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1478694996-4200-1-git-send-email-daniel.vetter@ffwll.ch
5 years agodrm: WARN when calling drm_format_info() for an unsupported format
Laurent Pinchart [Mon, 17 Oct 2016 22:41:12 +0000 (01:41 +0300)]
drm: WARN when calling drm_format_info() for an unsupported format

The format helpers have historically treated unsupported formats as part
of the default case, returning values that are likely wrong. We can't
change this behaviour now without risking breaking drivers in difficult
to detect ways, but we can WARN on unsupported formats to catch faulty
callers.

The only exception is the framebuffer_check() function that calls
drm_format_info() to validate the format passed from userspace. This is
a valid use case that shouldn't generate a warning.

Change-Id: I57ea2b59765006e9f160f0e85e77f019ab6b977a
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1476744081-24485-5-git-send-email-laurent.pinchart@ideasonboard.com
5 years agodrm: Implement the drm_format_*() helpers as drm_format_info() wrappers
Laurent Pinchart [Mon, 17 Oct 2016 22:41:10 +0000 (01:41 +0300)]
drm: Implement the drm_format_*() helpers as drm_format_info() wrappers

Turn the drm_format_*() helpers into wrappers around the drm_format_info
lookup function to centralize all format information in a single place.

Change-Id: I599e5a857b267f5ef24746991b7f3c25a9d92479
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1476744081-24485-3-git-send-email-laurent.pinchart@ideasonboard.com
5 years agodrm/edid: Rename local variable block to edid
Chris Wilson [Mon, 17 Oct 2016 08:35:12 +0000 (09:35 +0100)]
drm/edid: Rename local variable block to edid

The "block" variable points to the entire edid, not individual blocks
despite it being named such.

Change-Id: Ief86411390d9368c6e179a65e11ffc0065fd3b7f
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161017083514.21772-1-chris@chris-wilson.co.uk
5 years agodrm/fb-helper: reject any changes to the fbdev
Stefan Agner [Tue, 11 Oct 2016 23:15:04 +0000 (16:15 -0700)]
drm/fb-helper: reject any changes to the fbdev

The current fbdev emulation does not allow to push back changes in
width, height or depth to KMS, hence reject any changes with an
error. This makes sure that fbdev ioctl's fail properly and user
space does not assume that changes succeeded.

Change-Id: Iaefb728b04d4599ef5bd6f32b37dd9dcab830989
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161011231504.17688-1-stefan@agner.ch
5 years agodrm: Use drm_format_info() in DRM core code
Laurent Pinchart [Mon, 17 Oct 2016 22:41:11 +0000 (01:41 +0300)]
drm: Use drm_format_info() in DRM core code

Replace calls to the drm_format_*() helper functions with direct use of
the drm_format_info structure. This improves efficiency by removing
duplicate lookups.

Change-Id: I731a8def0d5835d0488e3a100794a09790f4f9fc
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1476744081-24485-4-git-send-email-laurent.pinchart@ideasonboard.com
5 years agodrm: Centralize format information
Laurent Pinchart [Mon, 17 Oct 2016 22:41:09 +0000 (01:41 +0300)]
drm: Centralize format information

PD#170175: drm: Centralize format information

Various pieces of information about DRM formats (number of planes, color
depth, chroma subsampling, ...) are scattered across different helper
functions in the DRM core. Callers of those functions often need to
access more than a single parameter of the format, leading to
inefficiencies due to multiple lookups.

Centralize all format information in a data structure and create a
function to look up information based on the format 4CC.

Change-Id: I25dc415450c89e5eb69726b3dda521c5800c4d68
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1476744081-24485-2-git-send-email-laurent.pinchart@ideasonboard.com
5 years agodrm: Use u64 for intermediate dotclock calculations
Chris Wilson [Fri, 21 Oct 2016 14:15:40 +0000 (15:15 +0100)]
drm: Use u64 for intermediate dotclock calculations

We have reached the era where monitor bandwidths now exceed 31bits in
frequency calculations, though as we stored them in kHz units we are
safe from overflow in the modelines for some time.

[   48.723720] UBSAN: Undefined behaviour in ../drivers/gpu/drm/drm_modes.c:325:49
[   48.726943] signed integer overflow:
[   48.728503] 2240 * 1000000 cannot be represented in type 'int'

Change-Id: Ib0ab1c82e0f5fb9d11244a5dbc53b565e1179127
Reported-by: Martin Liška <marxin.liska@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98372
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161021141540.26837-1-chris@chris-wilson.co.uk
5 years agodrm: Add drm_rotation_90_or_270()
Ville Syrjälä [Mon, 26 Sep 2016 16:30:46 +0000 (19:30 +0300)]
drm: Add drm_rotation_90_or_270()

We have intel_rotation_90_or_270() in i915 to check if the rotation is
90 or 270 degrees. Similar checks are elsewhere in drm, so let's move
the helper into a central place and use it everwhere.

v2: Drop the BIT()
    Convert all new intel_rotation_90_or_270() calls
    Deal with superfluous code shuffling

Change-Id: I84d48ebfa010f7c28fad6e492fdda2bddd305ccf
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (v1)
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1474907460-10717-2-git-send-email-ville.syrjala@linux.intel.com
5 years agoRevert "Fix up non-directory creation in SGID directories"
Ao Xu [Fri, 10 Aug 2018 06:14:25 +0000 (02:14 -0400)]
Revert "Fix up non-directory creation in SGID directories"

This reverts commit d2c7c52431819aa05d76fae77bb3f95dd0955da1.

Change-Id: I096cd7fd49ccad4bd032bb365211930fa1aa74d4
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agocodec_mm: fix some coverity error.
Peng Yixin [Fri, 27 Jul 2018 02:18:54 +0000 (10:18 +0800)]
codec_mm: fix some coverity error.

PD#170543: codec_mm: fix some coverity error.

fix some coverity error

Change-Id: Idf234f08bc6d7522fdeb04c14956d046c94012c4
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
5 years agoatv_demod: add atv all band scan [8/8]
nengwen.chen [Fri, 10 Aug 2018 11:46:10 +0000 (19:46 +0800)]
atv_demod: add atv all band scan [8/8]

PD#171216: add atv all band scan

Change-Id: If5c0664a25206b9a330d05af04574da4a1e5e016
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoatv_demod: modify atv audio state disable when search [1/1]
nengwen.chen [Tue, 7 Aug 2018 07:34:20 +0000 (15:34 +0800)]
atv_demod: modify atv audio state disable when search [1/1]

PD#171279: modify atv audio state disable when search

Change-Id: I15c3fddb77bfe1125dafd1f63f8a74ff141bf1df
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodtv_demod: txl: fix dvbc can't lock
Jihong Sui [Fri, 10 Aug 2018 01:48:27 +0000 (09:48 +0800)]
dtv_demod: txl: fix dvbc can't lock

PD#169985: txl: fix dvbc can't lock

Change-Id: I6094cfb546832cc4c54dae4a065147a05d20c251
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agohdmirx: set rxsense sync with hpd for every port
Hang Cheng [Mon, 6 Aug 2018 12:06:08 +0000 (20:06 +0800)]
hdmirx: set rxsense sync with hpd for every port

PD#159499: hdmirx: set rxsense sync with hpd for every port

Change-Id: Ief053dc7772b12516153ef733d057a6b9a02aca2
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agohdmitx: add dynamic hdr info to vpp
Yi Zhou [Wed, 8 Aug 2018 08:45:26 +0000 (16:45 +0800)]
hdmitx: add dynamic hdr info to vpp

PD#171350: hdmitx: add dynamic hdr info to vpp

cat /sys/class/amhdmitx/amhdmitx/hdr_cap
cat /sys/class/display/vinfo

Change-Id: I0d42c33e33ccc1f8d56545df25efc2cc60e08f58
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agolcd: mipi-dsi: optimize mipi read function for video mode
Evoke Zhang [Tue, 7 Aug 2018 11:13:39 +0000 (19:13 +0800)]
lcd: mipi-dsi: optimize mipi read function for video mode

PD#171352: lcd: mipi-dsi: optimize mipi read function for video mode

Change-Id: I7fec036ad568c00ca3573feb3eb5d0544050bfb2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodefconfig: remove WQ_WATCHDOG amd DETECT_HUNG_TASK
Jianxin [Fri, 10 Aug 2018 10:59:46 +0000 (18:59 +0800)]
defconfig: remove WQ_WATCHDOG amd DETECT_HUNG_TASK

PD#171500
WQ_WATCHDOG amd DETECT_HUNG_TASK are debug options to detect task/workqueue are
blocked for a long time. Sometimes, error messages are misreported.

Change-Id: Ia898429359b2ff4c656b8b9b009c4a7fa1888931
Signed-off-by: Jianxin <jianxin.pan@amlogic.com>
5 years agoscritp: update merge check pl
Jianxin [Fri, 10 Aug 2018 10:54:11 +0000 (18:54 +0800)]
scritp: update merge check pl

PD#146811
':' and extral message folling PD#xxxx is not a must in line three

Change-Id: Ibe115f6a64bc267730020aaa52f8b21adb2f66a5
Signed-off-by: Jianxin <jianxin.pan@amlogic.com>
5 years agoboard: add CONFIG_ARM64_A32 and CONFIG_COMPAT
Ao Xu [Wed, 1 Aug 2018 11:56:37 +0000 (19:56 +0800)]
board: add CONFIG_ARM64_A32 and CONFIG_COMPAT

PD#169652: add CONFIG_ARM64_A32 and CONFIG_COMPAT

add CONFIG_ARM64_A32 support and add missing
CONFIG_COMPAT

Change-Id: Id041292cccd39618ba9932d123a219f0583fd4c5
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agodts: Rename the dts name for u220.[2/2]
Tong Li [Mon, 13 Aug 2018 02:26:52 +0000 (10:26 +0800)]
dts: Rename the dts name for u220.[2/2]

PD#171618: update dts name g12a_s905d2_u220 to g12a_s905y2_u220

Rename the dts name for u220.[2/2]

Change-Id: I3a9dde9210772bb50f26b68a884d7bdc6346752c
Signed-off-by: Tong Li <tong.li@amlogic.com>
5 years agoaudio:fix dtv no sound output issue[3/3]
live.li [Mon, 23 Jul 2018 01:33:48 +0000 (09:33 +0800)]
audio:fix dtv no sound output issue[3/3]

PD#170315: audio:fix dtv no sound output issue

add dtv patch in tsync

Change-Id: Idad75b7b3563a251e6bf96141b4d9b2314c2983b
Signed-off-by: live.li <live.li@amlogic.com>
5 years agoosd: wait for vsync no need lock [1/1]
shuze.ma [Thu, 19 Jul 2018 13:59:30 +0000 (21:59 +0800)]
osd: wait for vsync no need lock [1/1]

PD#170791

wait for vsync no need lock

Change-Id: I61f9090b03c3b1d6971265bd1aacf9740a6ce168
Signed-off-by: shuze.ma <shuze.ma@amlogic.com>
5 years agoosd: fixed compile error on buildroot
Jiyu Yang [Fri, 10 Aug 2018 03:56:03 +0000 (11:56 +0800)]
osd: fixed compile error on buildroot

PD#170791: osd: fixed compile error on buildroot
Change-Id: Ic2e9d2898b3e5596d18590c4323ac7a1c5599037
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
5 years agodvb: add configuration items to control dvb module compilation. [1\2]
Chuanzhi Wang [Thu, 26 Jul 2018 05:49:49 +0000 (13:49 +0800)]
dvb: add configuration items to control dvb module compilation. [1\2]

PD#169652: Kconfig: Add configuration items.

Change-Id: If5d0a987bda435975fb3a6fa7be26ff8f7099e6f
Signed-off-by: Chuanzhi Wang <chuanzhi.wang@amlogic.com>
5 years agocec: otp: support one touch play and enter source
Yong Qin [Wed, 8 Aug 2018 07:23:00 +0000 (15:23 +0800)]
cec: otp: support one touch play and enter source

PD#170723: cec: support otp and enter source

1.get wakeup reason from stick register
2.add get wakeup reason from wakeup

Change-Id: Idb0e56980569d3092fde971c0dcb73a4684bff0b
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agocec: cec: auto power down function fail
Yong Qin [Wed, 8 Aug 2018 11:27:05 +0000 (19:27 +0800)]
cec: cec: auto power down function fail

PD#171408: cec: auto power down function fail

1.reason: set auto pw down, disabled cec function

Change-Id: I554b085345bc144e6ff4166aae8c2d9d6620c524
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoemmc: upgrade gpt or ept based on priority
Ruixuan Li [Thu, 14 Jun 2018 12:21:50 +0000 (20:21 +0800)]
emmc: upgrade gpt or ept based on priority

PD#168362: P211: emmc: upgrade gpt or ept based on priority

Change-Id: I0e7ea483ac5fc0a59ee24ae21d2e40e1c5d32465
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agodi: add mif enable after reset for g12
frank zhao [Wed, 8 Aug 2018 13:43:28 +0000 (09:43 -0400)]
di: add mif enable after reset for g12

PD#171440: di: add mif enable after reset for g12

Change-Id: I61e3b7e96b88b8875d7de4948fa627c4882ab810
Signed-off-by: frank zhao <frank.zhao@amlogic.com>
5 years agoosd: adjust render kthreads priority [1/1]
Jiyu Yang [Tue, 31 Jul 2018 03:34:43 +0000 (11:34 +0800)]
osd: adjust render kthreads priority [1/1]

PD#170791: by default, it is SCHED_NORMAL.

https://android.googlesource.com/kernel/msm/+/1a7a93bd33f48a369de29f6f2b56251127bf6ab4%5E!/
AOSP suggested to use SCHED_FIFO , 2, in Qcom platform.
there are another 2 sleeping point for osd_toggle_buffer.
need to adjust it still.

Change-Id: Ic94a4e1cfee218fc95b53358d2c2e72bbde7bfdd
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
5 years agoboard: use do_div for divid operation
Ao Xu [Thu, 2 Aug 2018 06:48:41 +0000 (14:48 +0800)]
board: use do_div for divid operation

PD#169652: board: use do_div for divid operation

when dividend is 64bit number, divid operation should
use do_div, otherwise link stage will fail for 32bit
system.

Change-Id: Iff2fdc328e364cec6486ab64e2e0f630ccb8534d
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agobacklight: add step power on support
Evoke Zhang [Thu, 2 Aug 2018 09:03:18 +0000 (17:03 +0800)]
backlight: add step power on support

PD#171081: backlight: add step power on support
default disable with bl_step_on_flag = 0.
change bl_step_on_flag to 1 to enable step_on function:
echo 1 >/sys/class/aml_bl/step_on
the brightness will be level_default first,
then come to the system brightness value.

Change-Id: I47ae56c0f814b2e0e5989b71f151ed84ffee795b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoatv_demod: add xtal config for tuner [1/3]
nengwen.chen [Mon, 6 Aug 2018 11:04:10 +0000 (19:04 +0800)]
atv_demod: add xtal config for tuner [1/3]

PD#171245: add xtal config for tuner

Change-Id: Id682294ea1e0de265df56509fa5fc4480212f7a7
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoext4: fix check to prevent initializing reserved inodes
Theodore Ts'o [Sat, 28 Jul 2018 12:12:04 +0000 (08:12 -0400)]
ext4: fix check to prevent initializing reserved inodes

Commit 8844618d8aa7: "ext4: only look at the bg_flags field if it is
valid" will complain if block group zero does not have the
EXT4_BG_INODE_ZEROED flag set.  Unfortunately, this is not correct,
since a freshly created file system has this flag cleared.  It gets
almost immediately after the file system is mounted read-write --- but
the following somewhat unlikely sequence will end up triggering a
false positive report of a corrupted file system:

   mkfs.ext4 /dev/vdc
   mount -o ro /dev/vdc /vdc
   mount -o remount,rw /dev/vdc

Instead, when initializing the inode table for block group zero, test
to make sure that itable_unused count is not too large, since that is
the case that will result in some or all of the reserved inodes
getting cleared.

This fixes the failures reported by Eric Whiteney when running
generic/230 and generic/231 in the the nojournal test case.

Change-Id: I3967036c1d84cc69798b7c948420735c623c9ae8
Fixes: 8844618d8aa7 ("ext4: only look at the bg_flags field if it is valid")
Reported-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agoboard: fix ioremap call fail issue
Ao Xu [Thu, 2 Aug 2018 07:42:02 +0000 (15:42 +0800)]
board: fix ioremap call fail issue

PD#169652: board: fix ioremap call fail issue

for arm 32, ioremap will check if page is mapped

Change-Id: Icb5dda1b9de06d32e47c82a6bc45b62873332487
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agoboard: fix stack overflow issue
Ao Xu [Wed, 1 Aug 2018 11:30:04 +0000 (19:30 +0800)]
board: fix stack overflow issue

PD#169652: board: fix stack overflow issue

it is better to use kmalloc to alloc buffer
instead of in stack buffer.

Change-Id: I6825d8acff19248f2f6c789ed2218af42ca4ffd3
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agowifi: fix broadcom pcie wifi driver use static buf failed
libo [Wed, 8 Aug 2018 04:51:48 +0000 (12:51 +0800)]
wifi: fix broadcom pcie wifi driver use static buf failed

PD#171351: fix broadcom pcie wifi driver use static buf failed

Change-Id: I1ce8f0d96b1e2ecd5bbd5b3f9ac805c433d548a2
Signed-off-by: libo <bo.li@amlogic.com>
5 years agodvb-core: recover dvb-core support dtmb in dvb v3 [1/1]
nengwen.chen [Wed, 8 Aug 2018 07:10:48 +0000 (15:10 +0800)]
dvb-core: recover dvb-core support dtmb in dvb v3 [1/1]

PD#170409: dvb-core: recover dvb-core support dtmb in dvb v3

Change-Id: I31c1ed779a92f3b7c19a1053eaf739d531a3b31e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agocec: add port info for mix mode
Yong Qin [Fri, 3 Aug 2018 01:02:00 +0000 (09:02 +0800)]
cec: add port info for mix mode

PD#170794: cec: add port info for mix mode

1.add port info for output and input mix mode
2.port number= input number + output number
3.r321 dts add 1 output number for mix mode

Change-Id: I17692f5fb4526b4f95474f5ea36c11213034724f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agohdmitx: hdmitx: add debug info
Kaifu Hu [Fri, 3 Aug 2018 07:55:47 +0000 (15:55 +0800)]
hdmitx: hdmitx: add debug info

PD#170492: hdmitx: add debug info

1. add avi package info.
   ->echo avi_info > /sys/class/amhdmitx/amhdmitx0/debug
2. add vsif package info.
   ->echo dv_info > /sys/class/amhdmitx/amhdmitx0/debug
3. add drm package info.
   ->echo hdr_info > /sys/class/amhdmitx/amhdmitx0/debug
4. add audio info frame info.
   ->echo aud_info > /sys/class/amhdmitx/amhdmitx0/debug
5. add audio acr info.
   ->echo acr_info > /sys/class/amhdmitx/amhdmitx0/debug
6. add audio sample.
   ->echo aud_sample > /sys/class/amhdmitx/amhdmitx0/debug
7. add audio channel status.
   ->echo aud_chls > /sys/class/amhdmitx/amhdmitx0/debug
8. add audio info in sysfs config.
   ->cat /sys/class/amhdmitx/amhdmitx0/config
9. add gcp package.
   -> echo gcp_info > /sys/class/amhdmitx/amhdmitx0/debug

Change-Id: If8e566a18edead21d659ce20e77c475d83287887
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
5 years agoBACKPORT:dma-buf/fence: Fix lock inversion within dma-fence-array
Chris Wilson [Tue, 14 Nov 2017 16:27:19 +0000 (16:27 +0000)]
BACKPORT:dma-buf/fence: Fix lock inversion within dma-fence-array

Ages ago Rob Clark noted,

"Currently with fence-array, we have a potential deadlock situation.  If
we fence_add_callback() on an array-fence, the array-fence's lock is
acquired first, and in it's ->enable_signaling() callback, it will install
cbs on it's array-member fences, so the array-member's lock is acquired
second.

But in the signal path, the array-member's lock is acquired first, and
the array-fence's lock acquired second."

Rob proposed either extensive changes to dma-fence to unnest the
fence-array signaling, or to defer the signaling onto a workqueue. This
is a more refined version of the later, that should keep the latency
of the fence signaling to a minimum by using an irq-work, which is
executed asap.

Reported-by: Rob Clark <robdclark@gmail.com>
Suggested-by: Rob Clark <robdclark@gmail.com>
References: 1476635975-21981-1-git-send-email-robdclark@gmail.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20171114162719.30958-1-chris@chris-wilson.co.uk
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
Change-Id: Ia08cb17615ff15b18c208cff2000d92344c9f399

5 years agoBACKPORT: dma-buf/sync_file: Allow multiple sync_files to wrap a single dma-fence
Chris Wilson [Fri, 28 Jul 2017 21:29:51 +0000 (22:29 +0100)]
BACKPORT: dma-buf/sync_file: Allow multiple sync_files to wrap a single dma-fence

Up until recently sync_file were create to export a single dma-fence to
userspace, and so we could canabalise a bit insie dma-fence to mark
whether or not we had enable polling for the sync_file itself. However,
with the advent of syncobj, we do allow userspace to create multiple
sync_files for a single dma-fence. (Similarly, that the sw-sync
validation framework also started returning multiple sync-files wrapping
a single dma-fence for a syncpt also triggering the problem.)

This patch reverts my suggestion in commit e24165537312
("dma-buf/sync_file: only enable fence signalling on poll()") to use a
single bit in the shared dma-fence and restores the sync_file->flags for
tracking the bits individually.

Reported-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Fixes: f1e8c67123cf ("dma-buf/sw-sync: Use an rbtree to sort fences in the timeline")
Fixes: e9083420bbac ("drm: introduce sync objects (v4)")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170728212951.7818-1-chris@chris-wilson.co.uk
[astrachan: rediffed against changed context lines in 4.9]
Bug: 79383895
PD#170298 [1/3]
Change-Id: I70d1f19796c6cb33cd4c19e40276d7298aa4ba5d
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agovideo: support hdr new interface [3/4]
Yao.Liu [Fri, 13 Jul 2018 11:07:34 +0000 (19:07 +0800)]
video: support hdr new interface [3/4]

PD#170058: support hdr new interface

Change-Id: I45368f3651781078edbc4d86e5c2bb12afb53a7f
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
6 years agodts: update the gpio key node for atom and sei210
Yingyuan Zhu [Tue, 7 Aug 2018 06:07:39 +0000 (14:07 +0800)]
dts: update the gpio key node for atom and sei210

PD#170502: dts: update the gpio key node for atom and sei210

Change-Id: Ib92167c36c2a756a784494da5dbe73a13c63dff0
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
6 years agoRevert "BACKPORT: dma-buf/sync_file: Allow multiple sync_files to wrap a single dma...
Victor Wan [Tue, 7 Aug 2018 06:45:33 +0000 (14:45 +0800)]
Revert "BACKPORT: dma-buf/sync_file: Allow multiple sync_files to wrap a single dma-fence"

This reverts commit 74fa0af47306baf118b32b7acdba4ae98eda7a7d.

The commit 74fa0af caused GPU driver loading failed.

Change-Id: I255eb6b7a26e3b00e4f11489ece49896ff004d79

6 years agoMerge branch 'android-4.9' into amlogic-4.9-dev
Victor Wan [Tue, 7 Aug 2018 06:43:24 +0000 (14:43 +0800)]
Merge branch 'android-4.9' into amlogic-4.9-dev

Signed-off-by: Victor Wan <victor.wan@amlogic.com>
 Conflicts:
drivers/md/dm-bufio.c
drivers/media/dvb-core/dvb_frontend.c
drivers/usb/dwc3/core.c
drivers/usb/gadget/function/f_fs.c

6 years agodts: add dtsi for system as root [1/9]
Xindong Xu [Mon, 9 Jul 2018 05:49:38 +0000 (13:49 +0800)]
dts: add dtsi for system as root [1/9]

PD#170278: dts: add dtsi for system as root

Change-Id: Ie2eda798ac17425ddaf73d90bc04a3d9fdb74ade
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
6 years agomtd: spifc: add spifc support for txl
Yi Zeng [Thu, 2 Aug 2018 06:22:04 +0000 (14:22 +0800)]
mtd: spifc: add spifc support for txl

PD#171041: mtd: spifc: add spifc support for txl

Change-Id: I487161c6e85e3b232ed0c3891784b5a37f6d878c
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
6 years agoamvecm: dnlp coverity fix
MingLiang Dong [Mon, 6 Aug 2018 03:30:52 +0000 (11:30 +0800)]
amvecm: dnlp coverity fix

PD#171026: amvecm: dnlp coverity fix

1. fix dnlp coverity
2. add kernel auto make dnlp_alg.ko

Change-Id: Idafc02e95655a9970ad778820b33c044e87bb767
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agodts:txlx_t962x_r311_720p: fix commit error[1/1]
Lei Qian [Mon, 6 Aug 2018 13:35:20 +0000 (21:35 +0800)]
dts:txlx_t962x_r311_720p: fix commit error[1/1]

PD#170749:dts:txlx_t962x_r311_720p: fix commit error

Change-Id: Ie2f8398fab203e752657d54c77ac5ffbe56abebc
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
6 years agodts:txl:sync fb config with txlx
Lei Qian [Sat, 4 Aug 2018 06:53:40 +0000 (14:53 +0800)]
dts:txl:sync fb config with txlx

PD#171168:dts:txl:sync fb config with txlx

Change-Id: I17f2521c5c571258c249ed042dc2978ebb21a5f9
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
6 years agocec: proble cec fail
Yong Qin [Mon, 6 Aug 2018 09:14:41 +0000 (17:14 +0800)]
cec: proble cec fail

PD#171266: cec: proble cec fail on sei 210 board

Change-Id: If45588072a6d700e0b90be4778cb73eed1deeb34
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
6 years agodi: optimize di pre mif config
Dezhi Kong [Wed, 1 Aug 2018 08:31:50 +0000 (16:31 +0800)]
di: optimize di pre mif config

PD#170980: di: optimize di pre mif config

1.add protect for di pre reset
2.add pre de done check when unreg
3.merge afbc hold line from alishan code
4.optimize pre mif enable sequence

Change-Id: I18851ad644aaee7c6c1d76c69f41a91f9599a36d
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
6 years agoclk: fix txl crash issue
Lei Qian [Mon, 6 Aug 2018 05:10:55 +0000 (13:10 +0800)]
clk: fix txl crash issue

PD#169833: clk: fix txl crash issue

Revert "clk: fix 32bit system compatibility issue"

This reverts commit e39e646127c08cc462cf5ecffbe34f0be630fd43.

Change-Id: I6c7af24e60a46bb386d64b794dd76fb2ec5db354
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
6 years agounifykey: add secure node
jiamin ma [Fri, 22 Jun 2018 11:04:40 +0000 (19:04 +0800)]
unifykey: add secure node

PD#168660: secure hdcp1.4 key

echo key_name > name
cat secure
to query whether a key is secure

Change-Id: If416fc8f2946176ecc956b73f1c9e77a55f7e57b
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
6 years agocec: add the port info and connect status for audio system
hongmin hua [Thu, 2 Aug 2018 12:33:23 +0000 (20:33 +0800)]
cec: add the port info and connect status for audio system

PD#170794: cec: add the port info and connect status for audio system

Change-Id: I433788d4f5fcbb3164f894ebc0f6827dd47b0633
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
6 years agohdmirx: add lock for top sw reset & edid size protect [1/2]
hongmin hua [Tue, 5 Jun 2018 13:06:00 +0000 (21:06 +0800)]
hdmirx: add lock for top sw reset & edid size protect [1/2]

PD#170713: hdmirx: add lock for top sw reset & edid size protect

Change-Id: I97502324d01d2e99d3a30bb1829affef5d2c123b
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
6 years agoamvecm: packet dnlp algorithm
MingLiang Dong [Wed, 1 Aug 2018 11:54:44 +0000 (19:54 +0800)]
amvecm: packet dnlp algorithm

PD#171026: amvecm: packet dnlp algorithm

Change-Id: I29dec857c1ca2eed47fd27f6cb3ec986daeaab6a
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agomm: decrease DEFAULT_TVP_SIZE_FOR_4K and reserved-memory
Wencai You [Fri, 18 May 2018 14:36:23 +0000 (22:36 +0800)]
mm: decrease DEFAULT_TVP_SIZE_FOR_4K and reserved-memory

PD#166821: decrease DEFAULT_TVP_SIZE_FOR_4K and reserved-memory

DEFAULT_TVP_SIZE_FOR_4K to 192M
codec_mm_cma to 208M
ion_reserved to 78M

Change-Id: I2fd38f40c242ef531f8cf2226822bed4b0250a4f
Signed-off-by: Wencai You <wencai.you@amlogic.com>
6 years agoaudio: fix adc3101 8ch PCM format support
Renjun Xu [Fri, 3 Aug 2018 05:54:52 +0000 (13:54 +0800)]
audio: fix adc3101 8ch PCM format support

PD#171085: fix adc3101 8ch PCM format support

For S400 & S420 board, please modify dts to enable adc3101 8ch PCM
please read following file:
Documentation/devicetree/bindings/amlogic/axg-adc3010-pcm.txt

Change-Id: I945441f80d269b167148ccf3d6c33093a20a4f2f
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
6 years agoclk: fix 32bit system compatibility issue
Shunzhou Jiang [Fri, 6 Jul 2018 05:02:34 +0000 (13:02 +0800)]
clk: fix 32bit system compatibility issue

PD#169833: clk: fix 32bit system compatibility issue

Change-Id: I4033611ab0863448deb66d7ec1d06e645919fdc6
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
6 years agovdin: add vdin output color depth selection from dts
xuhua zhang [Fri, 27 Jul 2018 09:09:48 +0000 (17:09 +0800)]
vdin: add vdin output color depth selection from dts

PD#170749: vdin: add vdin output color depth selection

when vdin receive 4K && 50/60hz && 10bit data,
we can select vdin output color depth 8bit or 10bit from dts

Change-Id: I9c030b4769927dbf53880fad6c80707d7b282e86
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
6 years agoarm64: dts: txl: add decoder support
Conglin Guo [Thu, 26 Jul 2018 10:53:21 +0000 (18:53 +0800)]
arm64: dts: txl: add decoder support

PD#170321: arm64: dts: txl: add decoder support

add ionvideo devicetree node

Change-Id: I5b628d86a64ff7920546e8122895cc048d8fc039
Signed-off-by: Conglin Guo <conglin.guo@amlogic.com>
6 years agodeinterlace: txl: fix di abnormal when inverted screen
Jihong Sui [Fri, 3 Aug 2018 06:20:28 +0000 (14:20 +0800)]
deinterlace: txl: fix di abnormal when inverted screen

PD#170301: txl: fix di abnormal when inverted screen

Change-Id: I2777e0092413115da5f4fdd4975c721c3f086ee3
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
6 years agobacklight: ldim: algorithms clear up
Evoke Zhang [Fri, 27 Jul 2018 12:08:19 +0000 (20:08 +0800)]
backlight: ldim: algorithms clear up

PD#170815: backlight: ldim: algorithms clear up

Change-Id: Ic6fc691dc67478ae4af6fc842427a839acf9d381
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agotvin: tvafe: fix black side on atv snow
Nian Jing [Tue, 10 Jul 2018 06:52:02 +0000 (14:52 +0800)]
tvin: tvafe: fix black side on atv snow

PD#168366: tvin: tvafe: fix black side on atv snow

Change-Id: I3e40ff3d6e9dbee5ba4db4f720ae3c2d7aebc690
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
6 years agoatv_demod: modify atv audio for txl [1/1]
nengwen.chen [Wed, 1 Aug 2018 05:32:43 +0000 (13:32 +0800)]
atv_demod: modify atv audio for txl [1/1]

PD#170705: modify atv audio for txl

1.txl non supprot audio decode.

Change-Id: I535354b03b40b8189c050358f96a73e44fc89399
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
6 years agodeinterlace: txl: add patch for hdmi progressive input
Jihong Sui [Fri, 27 Jul 2018 03:00:14 +0000 (11:00 +0800)]
deinterlace: txl: add patch for hdmi progressive input

PD#170301: deinterlace: txl: add patch for hdmi progressive input

Change-Id: I12a534d8aa545cfc2c8d5cfb0b9ab763da58d015
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
6 years agothermal: add thermal meson cooldev point check
Huan Biao [Thu, 2 Aug 2018 07:07:46 +0000 (15:07 +0800)]
thermal: add thermal meson cooldev point check

PD#170391: thermal: add thermal meson cooldev point check.

Change-Id: I9aa705a764399670583cb51e0dc8b743ec80fd54
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
6 years agodts: txl: add cpu-idle-states nodes to str fun[1/1]
Yan Wang [Wed, 1 Aug 2018 03:12:22 +0000 (11:12 +0800)]
dts: txl: add cpu-idle-states nodes to str fun[1/1]

PD#170812: gxbb_pm: get system suspend level fail,
need to add cpu-idle-states nodes

Change-Id: I38128bcc6ef84cb1af0dbba556e65d47928182a1
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
6 years agoMerge "audio: fail to play DD and DTS files" into amlogic-4.9-dev
Yixun Lan [Thu, 2 Aug 2018 09:39:57 +0000 (02:39 -0700)]
Merge "audio: fail to play DD and DTS files" into amlogic-4.9-dev

6 years agodts: decrease the codec mm size for u200
can.cao [Wed, 18 Jul 2018 05:03:02 +0000 (13:03 +0800)]
dts: decrease the codec mm size for u200

PD#170726: Modify reserved code_mm size value

Change-Id: Id5454f7759ca05dd3e1705cefce9ddd1eb6611ab
Signed-off-by: can.cao <can.cao@amlogic.com>
6 years agoaudio: fail to play DD and DTS files
weijia.zhu [Mon, 30 Jul 2018 10:36:32 +0000 (06:36 -0400)]
audio: fail to play DD and DTS files

PD#170383: add audio_data in p321.dts

Change-Id: I0763daf316821ceed179205e7adbd7b89e5a2185
Signed-off-by: weijia.zhu <weijia.zhu@amlogic.com>
6 years agoarm64: dts: add atom & Beast project [1/1]
Xindong Xu [Tue, 24 Jul 2018 01:45:31 +0000 (09:45 +0800)]
arm64: dts: add atom & Beast project [1/1]

PD#170502: add atom & Beast project

Change-Id: I50da79dbb660372528c5abcdf5da4bb13773bf6c
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
6 years agodts: keypad: fix u200 dtb compile error
Yixun Lan [Thu, 2 Aug 2018 08:17:24 +0000 (16:17 +0800)]
dts: keypad: fix u200 dtb compile error

PD#169209: dts: keypad: fix u200 dtb compile error

Change-Id: Id4956084ae3ee0910860a830d65cfdecb07fbb32
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
6 years agoosd: debug for osd suspend fail issue
zhilei.wu [Fri, 13 Jul 2018 05:33:15 +0000 (13:33 +0800)]
osd: debug for osd suspend fail issue

PD#164508: osd: debug for osd suspend fail issue

Change-Id: Ibd7930c64d102bbe53e1775fa4f52aab0c67d078
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
6 years agokeypad: gpio key drive optimization
Yingyuan Zhu [Thu, 28 Jun 2018 07:54:02 +0000 (15:54 +0800)]
keypad: gpio key drive optimization

PD#169209: keypad: gpio key drive optimization

1.replace the old interface gpio_ with gpiod_.
2.add irq detection mode,can be configured as
 interrupt mode or polling mode through DTS.
3.add keys to eliminate jitter.
4.remove useless code.

Change-Id: I81ef3cd0061e36faa10f58932588ff5031208b25
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
6 years agoCPUFREQ: modify cpufreq driver.
Hong Guo [Tue, 31 Jul 2018 06:45:00 +0000 (14:45 +0800)]
CPUFREQ: modify cpufreq driver.

PD#170037: modify cpufreq driver.

Change-Id: Ic07e887dda26447653c407d06b009755aacc0d41
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
6 years agousb: dwc2: modify SOF interrupt
Jianxin Qin [Wed, 25 Jul 2018 05:43:26 +0000 (13:43 +0800)]
usb: dwc2: modify SOF interrupt

PD#170407: usb: dwc2: modify SOF interrupt

SOF interrupt leads to the system overloading, so we reduce the
workload in the SOF interrupt handler.

Change-Id: I6bf11e672e0f024ac4b2da1ba47effe1da1ab476
Signed-off-by: Jianxin Qin <jianxin.qin@amlogic.com>
6 years agoboard: solve 32bit printk type error
Ao Xu [Wed, 1 Aug 2018 08:48:16 +0000 (16:48 +0800)]
board: solve 32bit printk type error

PD#169652: board: solve 32bit printk type error

for some data type, printk should follow below rule:
size_t: %zu or %zx
phys_addr_t: %pa

Change-Id: I456bd2f010080e6365b521a787367cc51bb4e9f4
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
6 years agoinput: avin_detect: add avin detect driver
Xingyu Chen [Mon, 30 Jul 2018 07:29:03 +0000 (15:29 +0800)]
input: avin_detect: add avin detect driver

PD#170716: input: avin_detect: add avin detect driver

porting from the Linux-3.14

Change-Id: Id0566a62be7d587ca6368b3d29f3887bab1f6d87
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agoatv_demod: modify afc to prevent demod error locking [1/1]
nengwen.chen [Mon, 30 Jul 2018 08:35:18 +0000 (16:35 +0800)]
atv_demod: modify afc to prevent demod error locking [1/1]

PD#169984: modify afc to prevent demod error locking

Change-Id: I02d184309fdeb5696da6158e0f29311cdc7675a5
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
6 years agohdmirx: keep bandgap enabled to fix bibi sound issue
yicheng shen [Mon, 30 Jul 2018 05:50:20 +0000 (13:50 +0800)]
hdmirx: keep bandgap enabled to fix bibi sound issue

PD#170722: hdmirx: keep bandgap enabled to fix bibi sound issue

Change-Id: I55e6cb9084ea93f5bf4accf1cffc04d873cb7c0e
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
6 years agobacklight: optimize pwm level step calculation
Evoke Zhang [Fri, 15 Jun 2018 09:23:24 +0000 (17:23 +0800)]
backlight: optimize pwm level step calculation

PD#168569: backlight: optimize pwm level step calculation

Change-Id: I570c12cc44af399a861ca54ad98180314924c180
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agopower: battery add dummy battery driver [1/1]
Shuide Chen [Thu, 21 Jun 2018 01:56:02 +0000 (09:56 +0800)]
power: battery add dummy battery driver [1/1]

PD#169027: add dummy battery and charger for CTS/VTS

some CTS and VTS testcases use the battery information, here
implement a dummy battery for it.
for P, it requires a dummy charger to set the online property to 1.

Change-Id: I7cf516f7050b3930cfdd933dc65b811289f89c4f
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
6 years agodts: bingup for u212 [2/3]
Shuide Chen [Tue, 31 Jul 2018 00:19:07 +0000 (08:19 +0800)]
dts: bingup for u212 [2/3]

PD#170940: dts for u212, change codec cma to 196M

add dts for u212

Change-Id: I9d3f20d9c8e3a8a60a67d28d85bdfdfa7d4932b7
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
6 years agocec: add debug cmd interface
Yong Qin [Tue, 24 Jul 2018 05:55:25 +0000 (13:55 +0800)]
cec: add debug cmd interface

PD#170470: cec: add debug cmd interface

1.enable cec error_initator interrupt
2.add debug cmd interfacec
 1)dump info
 2)register read write
 3)bypass hal cmd
3.boot reson ioctrl add mutex unlock

Change-Id: I340e4d363a46890001ff0494744cd9ec2fb28ea3
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
6 years agodi: fix pre mif reset issue for g12a
Dezhi Kong [Tue, 31 Jul 2018 08:45:46 +0000 (16:45 +0800)]
di: fix pre mif reset issue for g12a

PD#169426: di: fix pre mif reset issue for g12a

Change-Id: I851ef6ff9a1ac844afd32bc40e73c4a189a47b6f
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
6 years agotvafe: fix avin unstable issue
Nian Jing [Mon, 30 Jul 2018 13:08:30 +0000 (21:08 +0800)]
tvafe: fix avin unstable issue

PD#170316: fix avin unstable issue

Change-Id: Id229eff1e996399251cf2d3c93c3d4b2561f8451
Signed-off-by: Nian Jing <nian.jing@amlogic.com>