Commit Graph

651617 Commits

Author SHA1 Message Date
Dongjin Kim
50f67111e2 ODROID-COMMON: net/ethernet: fix compilation error of implicit delcaration
Change-Id: I054510f2d0671563b42575c60e5441ed3351347d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-18 13:48:33 +09:00
Dongjin Kim
a79ad488a8 ODROID-COMMON: net/ethernet: MAC address from eFuse memory
Change-Id: Ic7c01dba43300c8fb507fbfcc87404585a09e220
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-18 13:19:48 +09:00
Kevin Kim
4b79a61ce3 odroid-common:pwm-fan device enabled for active cooling.
Change-Id: I1dcdfa4c22ab72cd24b1be870727420683073f9a
2019-03-15 11:13:10 +09:00
Joy Cho
5d01c3b7ee remote: Add a setup of user remote wakeup decode type
Change-Id: Ib7bb759dfec67433b596ed64997f6894d1c7ec27
2019-03-14 15:43:25 +09:00
Joy Cho
4a534ab482 Merge "media: rc: Add lirc helper to support user remote wakeup" into odroidn2-4.9.y 2019-03-14 15:42:48 +09:00
Dongjin Kim
22d698f4d2 ODROID-N2: phy/realtek: add to support Wake On Lan enable
Adding new kernel command line "enable_wol=<1|0>" will configure the WOL
features on next power off.

Change-Id: I4830aeb1651e90d4699887199000def1163fb6db
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-14 00:10:05 -04:00
Mauro Ribeiro
b20575b938 Merge "Revert "pinctrl: meson: add gen_clk_ee/ao pin groups for G12A/B [1/1]"" into odroidn2-4.9.y 4.9.162-19 2019-03-14 01:42:29 +09:00
Mauro Ribeiro
0317819759 Merge "Revert "clk: g12a: add gen clock [1/1]"" into odroidn2-4.9.y 2019-03-14 01:42:23 +09:00
Joy Cho
444000231d media: rc: Add lirc helper to support user remote wakeup
- set user remote wakeup key
- set ir decode protocol for wakeup

Change-Id: If083545f64d4e0b9c30bed89ce4bc9ecd37ea8ac
2019-03-13 16:52:21 +09:00
Kevin Kim
a11bceab27 ODROID-COMMON:audio mclk set to continuous clock
Change-Id: I2184521fb9370018f7d38fad2aea2bb63adab4fa
2019-03-13 16:03:06 +09:00
Kevin Kim
8f4e460c92 odroid-common:Matching the mixer control with alsa-util
Change-Id: I276e86be72f8bd00215b540e4c312ba5a4a1706c
2019-03-13 16:03:05 +09:00
Dongjin Kim
71551e3aa1 ODROID-C3/N2: remove unsupported feature 'MEDIA_ENHANCEMENT_DOLBYVISION'
Change-Id: I8674837de099f3653d7b101c47cae012273fc8d1
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-12 18:39:18 +09:00
Dongjin Kim
c0adde9190 Revert "pinctrl: meson: add gen_clk_ee/ao pin groups for G12A/B [1/1]"
This reverts commit ef149016c1.

Change-Id: If7da89a658a76e346d8daa40f422fecfa4a38a06
2019-03-12 18:32:02 +09:00
Dongjin Kim
d7eb7fe638 Revert "clk: g12a: add gen clock [1/1]"
This reverts commit 4e9d208858.

Change-Id: I54a05c486c2a8a3d024a40dbea7ddc154ce7a4a0
2019-03-12 18:31:59 +09:00
Dongjin Kim
99b7123712 media: rc: quick fix missing 'GPIO_IR_DRIVER_NAME'
Change-Id: I008fd318b57d5afee9e0b2828b7320cdbb12bc3b
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-12 17:46:22 +09:00
Dongjin Kim
8b155a4361 ODROID-COMMONfbcon: quick fix missing '/'
Change-Id: I8cc674ae263959646c9034545a1f639de0504d97
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-12 17:45:02 +09:00
Dongjin Kim
06e489b8ed ODROID-COMMON: fbcon: use soft cursor instead of hardware cursor
The hardware cursor is not visible, so ....use soft cursor instead.

Change-Id: Ibb4e4b831940f0a4674adf27a6b6e5653a59d001
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-12 17:20:31 +09:00
Dongjin Kim
ad5225bace ODROID-COMMON: media/osd: add new kernel parameter 'overscan='
The new kernel parameter 'overscan=' is to set the ratio to control the overscan
ratio in percent.

Change-Id: I0fc667ccf20349247d4e10196d7acdbc6e5a1fb2
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-12 17:18:47 +09:00
Dongjin Kim
05e8bced71 ODROID-N2: bios: include PCF8563 RTC driver
Change-Id: I9434ccb11ba2ceeddafdc88dca56713497906961
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-12 17:15:15 +09:00
Dongjin Kim
e31fd75ab7 ODROID-N2: config: Add 'gpioplug_ir_recv' for GPIO-based IR receiver
Change-Id: I09c12bfa0f4832971ddedd5140128085bc26087d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-12 14:43:01 +09:00
Joy Cho
d52a3aa42a media: rc: Add new IR receiver to specify gpio number for IR sensor
This driver helps to register the device of GPIO based IR receiver, "gpio-ir-recv"
with the gpio number and pulse trigger when driver is loading. For example,

	# modprobe gpio-ir-recv
	# modprobe gpioplug-ir-recv gpio_nr=473 active_low=1

Change-Id: I377be5e1d1926d0e777b7e18feef7f0d4bc45f40
Signed-off-by: Joy Cho <joy.cho@hardkernel.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-12 14:42:57 +09:00
Dongjin Kim
e5ff7549fd ODROID-N2: arm64/dtb: change to suport 'both' interrupt edge trigger
Change-Id: I033e6bf4cbb35199a26572fd442264cc4cb0e58b
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-11 15:34:53 +09:00
Kevin Kim
a4a2424ceb ODROID-N2:40p expansion I2C function enabled by default.
Change-Id: Ifd14a7a8b0fbd14d636122c013cad3452e3ae245
2019-03-11 12:22:05 +09:00
Dongjin Kim
56eab9fb24 Merge "ODROID-COMMON: mm: quick fix if 'CONFIG_AMLOGIC_PAGE_TRACE' is not enabled" into odroidn2-4.9.y 2019-03-07 14:50:49 +09:00
Dongjin Kim
39e8c749c5 ODROID-COMMON: mm: quick fix if 'CONFIG_AMLOGIC_PAGE_TRACE' is not enabled
Change-Id: Id63e7c4cd0decfacc3708bd8887758d16df132ea
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-07 12:44:57 +09:00
Dongjin Kim
d2327f354d Revert "Revert "canvas: get canvas w/h for frame check [2/2]""
This reverts commit f9e4d0b2e6.

Change-Id: I9652945625684ca880215858621651c324b8ef63
(cherry picked from commit dd2a580802222ced106aae8e5351c0de945d5da2)
2019-03-07 10:50:18 +09:00
Mauro (mdrjr) Ribeiro
a79c7062da Merge tag 'v4.9.162' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidn2-4.9.y
This is the 4.9.162 stable release

Change-Id: I8042a515f639d3857bb6aae03284aabaede1f7b9
4.9.162-18
2019-03-06 10:45:14 -03:00
Mauro (mdrjr) Ribeiro
2ab9e6444f Merge tag 'v4.9.161' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidn2-4.9.y
This is the 4.9.161 stable release
2019-03-06 10:45:05 -03:00
Mauro (mdrjr) Ribeiro
9c7f743d41 ODROID-N2: config: re-enable f2fs as built-in
Change-Id: Iea1adf6dfe1cb612a4cbe2b60e568246a25682af
2019-03-06 10:39:03 -03:00
Dongjin Kim
0f42b08762 Merge branch 'odroidn2-4.9.y-upstream' into odroidn2-4.9.y
Change-Id: I72085e10de290bd3a6116fd60abdd58fd76c2246
2019-03-06 18:51:45 +09:00
Dongjin Kim
e76386a854 ODROID-N2: config: reconfig based on BSP openlinux-20190220
Change-Id: I09d6bba84c65b72e72c32f4de9af4bc9ff41b605
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-06 18:51:23 +09:00
Cheng Tong
577a82f2da dts: g12a: add clk_81 to enable demux pcr [1/1]
PD#SWPL-4469

Problem:
dolby files have no sounds after replay

Solution:
in u212, the clk_81 is null when init, it is related
to demux pcr, so add clk_81 to enable demux pcr

Verify:
verify by franklin

Change-Id: Id862e4e8ac49c19bbd52fa6fa4831de20abad6c8
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2019-03-06 18:50:40 +09:00
Guosong Zhou
9d329b38f5 isp: config temper buffer size in dts [1/2]
PD#SWPL-4177

Problem:
temper buffer size is a fixed value in code

Solution:
config temper buffer size from dts

Verify:
verify by w400

Change-Id: I17ef428221f149a888e0318bc27d7b7d309c00ce
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-03-06 18:50:40 +09:00
Guosong Zhou
21a425ae2e camera: support the dvp camera [1/1]
PD#SWPL-2133

Problem:
don't support dvp camera

Solution:
add dvp camera driver

Verify:
verify by u200

Change-Id: I8517913e0c3724247b396e8d054d6a4541a1993a
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-03-06 18:50:40 +09:00
Guosong Zhou
9278c8f0e7 camera: add dvp camera [1/1]
PD#OTT-1204

Problem:
don't support dvp camera

Solution:
add dvp camera gc2145 camera driver

Verify:
test pass on U200

Change-Id: I5927d49a93952587af7bb460a5c405293d692153
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

Conflicts:
	MAINTAINERS
2019-03-06 18:50:40 +09:00
shuanglong.wang
e00528d754 video: video peek do not post video start event [1/1]
PD#SWPL-4317

Problem:
for video peek, before audio post audio start, video may have rended.

Solution:
do not post video start for video peek, all wait for audio start to
start pcr

Verify:
verify by p212

Change-Id: If5656154e30613164465f84c44d3fd1ee386d654
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-03-06 18:50:40 +09:00
Huan Biao
cd637a0dcb arm64: dts: gxl: optimize ipa parameter [1/1]
PD#SWPL-3726

Problem:
game cannot run smoothly

Solution:
1:modify cooling devices min status
    cpufreq 1000Mhz-->1200Mhz
    gpufreq 400MHz -->500MHz
2:modify switch trippoint freq trippoint hotplug trippoint
    70000-->80000
    80000-->90000
    85000-->100000

Verify:
p215 pass

Change-Id: I36d8ac8ca578f92c8aeda7d979df1f3f56311ce3
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-03-06 18:50:40 +09:00
Huan Biao
95ce9e5084 arm: dts: gxl: optimize ipa parameter [1/1]
PD#SWPL-3726

Problem:
game cannot run smoothly

Solution:
1:modify cooling devices min status
	cpufreq 1000Mhz-->1200Mhz
	gpufreq 400MHz -->500MHz
2:modify switch trippoint freq trippoint hotplug trippoint
	70000-->80000
	80000-->90000
	85000-->100000
3:fix gpupp get fail issue

Verify:
p215 pass

Change-Id: Id0a1e1ac9619f0d9a20e2aad172ba0c84c7a2e9d
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-03-06 18:50:40 +09:00
Pengcheng Chen
8387e7cc22 osd: fix a green line displayed when output is yuv420 4k/60hz [1/1]
PD#SWPL-4427

Problem:
a green line displayed when output is yuv420 4k/60hz

Solution:
set dummy data to 0x808000 can fix a green line
displayed when output is yuv420 4k/60hz

Verify:
verify by fanklin

Change-Id: I06125d36c2fb06a61dd072a1789217e7c3705207
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-03-06 18:50:40 +09:00
riqun.ou
b6b3fba9a9 sound: add resample node for axg_s420_v03gva.dts [1/1]
PD#SWPL-365

Problem:
System can't use resample function on GVA project.

Solution:
Add resample node in axg_s420_v03gva.dts

Verify:
Passed on s420

Change-Id: Ie48c579e9e9f6e1d61147f5410c95e5bca55b0a7
Signed-off-by: riqun.ou <riqun.ou@amlogic.com>

audio: codecs: fix TL1 reference board volume too small [2/2]

PD#SWPL-2652

Problem:
    X301/T309 AMP volume configured to small

Solution:
    change the default external AMP codec mixer name to a match
    the ini parsing function in audio hal.
    TODO: need dynamically check the different codec mixer name
    in ini file.

Verify:
    verify by x301

Change-Id: Iba835d37ea02bec3095556d54fbf327bd6390904
Signed-off-by: Jian Xu <jian.xu@amlogic.com>

audio: codec: the DAC gain set of acodec not work [1/1]

PD#SWPL-3134

Problem:
the DAC gain set is not work

Solution:
update and aml_codec_tl1_acodec.c, change the method of
getting codec pointer from kcontrol pointer.

Verify:
verify by T962x2_X301 board

Change-Id: I02f02b73fab3b8391ef4866a71ffaf0d48bbbbbf
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>

audio: add tas5805 [1/1]

PD#SWPL-3081

Problem:
compatiable tas5805 module

Solution:
add tas5805 drivers

Verify:
T962X2

Change-Id: I3608e47fe768af0f924751a8bcc103389d0811de
Signed-off-by: Yonghao Jiao <yonghao.jiao@amlogic.com>

audio: auge: add HDMIRX SPDIF in support [1/2]

PD#SWPL-2956

Problem:
HDMI in DTS/Dolby input has noise when treated to LPCM

Solution:
By default,we are using PAO mode for HDMIRX,but we have not
enabled the PaPb search for 61937 raw data input, after add
that, we can detect the raw data, but it can not by clear when
switch from NONE-LPCM to NONE-LPCM, need add IRQ function to
clear that by sw.we enabled spdif in from HDMIRX, which is  the same
design as txl/txlx.we can get the Pc information now.
also we add a new interface to set spdif in source when hdmirx input.

Verify:
x301

Change-Id: I3c4e8b387308ef862a069c29d15b8b5a9e865564
Signed-off-by: Jian Xu <jian.xu@amlogic.com>

udio: auge: tl1 acodec mapping to data 1 [1/2]

PD#SWPL-3277

Problem:
tl1 internal codec volume can by adjusted

Solution:
configure the acodec data layout mapping
to a fixed volume

Verify:
x301

Change-Id: I14d3762b39a0a5291722ef5489026f10fc960120
Signed-off-by: Jian Xu <jian.xu@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tl1_t962x2_t309.dts

audio: Fix TDM not wokring on HDMI I2S in [1/1]

PD#SWPL-2887

Problem:
  When TDM is used for HDMI I2S in, the solt set is wrong.

Solution:
  Fix the lane max value from 3 to 4

Verify:
  A113

Change-Id: I33f5ca21bf1e2407d83fa5d0f22e21f7b1f5e749
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>

audio: codec: fix to resume ad82584's volume after suspend [1/1]

PD#SWPL-3456

Problem:
1) After suspend, volume is not resume
2) ARC connected, still sound out from spk

Solution:
1) save channel volume when suspend, then resume the volume
2) add mute mixer control for ad82584

Verify:
x301

Change-Id: Ic6e7502e3f9689cc2d1053295f26aaf4d5be2603
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

audio: auge: add vad driver [1/1]

PD#SWPL-2404

Problem:
VAD for wake up

Solution:
Add vad driver to fetch VAD buffer and ALSA buffer, in userspace, they
will be combined for wakeup engine

Verify:
x301

Change-Id: I3b4de5fdfe173ce18e58a187a3adeda601e226b3
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

audio: fix pop snd after bootup [2/2]

PD#SWPL-3178

Problem:
output big pop noise after system boot up.

Solution:
Add zero and then unmute the stream.
NOTICE: user should unmute the AD82584F after boot.

Verify:
local verified.

Change-Id: I21555318f9347c5340a28f7e5cf0e3e2cde849a0
Signed-off-by: Shuai Li <shuai.li@amlogic.com>

audio: fix no audio after resume of ad82584f [1/1]

PD#SWPL-4090

Problem:
No audio after suspend and resume.
Suspend won't save the mute value,
and after resume, it could not be restored.

Solution:
Add a mute val to save when suspend,
and after resume, restore the mute value.

Verify:
Verified by QA.

Change-Id: Ie24bb11f5c565048391846a66b5d12bab1d55666
Signed-off-by: Shuai Li <shuai.li@amlogic.com>

audio: auge: fix sharebuffer channel map [1/1]

PD#SWPL-2645

Problem:
play ddp source, then play pcm source, no sound

Solution:
1. fix same source control and channel map issue
2. i2s 8ch, spdif 2ch, channels are not mapped, make spdif 8 channel mask
3. when same source used, keep mpll use same mpll

Verify:
x301

Change-Id: I2fe4bbcbcbfff0a1c1a6cebf61d1da5aba9b7a9d
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts

audio: add stream mute and continuous clk [1/1]

PD#SWPL-2952

Problem:
Pop noise could be heard
when switching between sources.

Solution:
1. Add stream digital mute functions.
2. continuous clock to eliminate
  the clk reset issue.

Verify:
Local verified.

Change-Id: I372f4c03aaf875d75aa903c9c2dfda00619af000
Signed-off-by: Shuai Li <shuai.li@amlogic.com>

dts: tl1: enable resample for tl1 [1/2]

PD#SWPL-3365

Problem:
not resample for audio in, so output in wrong sample rate

Solution:
1. enable resample in dts
2. fix to check whether resample is needed

Verify:
x301

Change-Id: I99238cc21a00ab53df6a1f8ab1703bc9ab48cbaa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts
2019-03-06 18:50:40 +09:00
shuanglong.wang
81feeec71f video: omx get first frame toggoled flag [1/2]
PD#SWPL-4048

Problem:
omx can not detect first frame have toggled

Solution:
omx get first frame toggoled flag

Verify:
verify by p212

Change-Id: I632824390287dd0257dca23a009ff8851054f68d
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-03-06 18:50:40 +09:00
Yi Zhou
cca59be788 dv: keep dv enable when connecting to sdr TV [1/1]
PD#SWPL-3226

Problem:
turn off the dv core, the osd flutters

Solution:
keeping core2 open when dv enable under sdr TV

Verify:
u212

Change-Id: Idf57c6e67676fb5eec944e543cb596247c932df4
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-03-06 18:50:40 +09:00
Luan Yuan
9dac02ad8d hdmitx: fixed logo flash error [1/1]
PD#SWPL-4194

Problem:
array need to initial.

Solution:
fixed it.

Verify:
verify by ampere

Change-Id: Ia72eb1afa54f092bbbb7265694ecec314691b14e
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-03-06 18:50:40 +09:00
Kaifu Hu
3136e7fbb1 hdmi: fix uboot logo flash [1/2]
PD#SWPL-4194

Problem:
Systemcontorl set display mode when attr is difference

Solution:
Fix color space property parser

Verify:
G12A/U200

Change-Id: Iddbcbbf3925b175833f534a287de413315ca1170
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2019-03-06 18:50:40 +09:00
Jihong Sui
07e64bc716 deinterlace: change holdline default value to 8 [1/1]
PD#SWPL-3384

Problem:
DI post holdline setting is not map with video

Solution:
change holdline to 8

Verify:
verified by gxl

Change-Id: Ia352604086cefb4c69d5dd268d12741c4cf4f173
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-03-06 18:50:40 +09:00
Cheng Tong
d50f2c9e62 dts: u212 2G ddr add dvb dts config [1/1]
PD#SWPL-4140

Problem:
u212 2G dts didn't have dvb config

Solution:
add dvb dts config
defalut commented out as reference

Verify:
Verify by Android P franklin

Change-Id: I1ffc631ff0a729e6701fd8cd17b28f70666b1e30
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2019-03-06 18:50:40 +09:00
Pengcheng Chen
0834d4ae76 osd: afbc decode error when write afbc start before afbc reset [1/1]
PD#SWPL-4016

Problem:
afbc decode error when write afbc start before afbc reset reg

Solution:
replace invalid reg when found afbc start before afbc reset reg

Verify:
test pass on franklin

Change-Id: Ia01608fe4d5c6132d0b54e63c48560e9e77bfe0a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-03-06 18:50:40 +09:00
Yi Zhou
affaecacce dv: mute the first frame when playing video [1/1]
PD#SWPL-4091

Problem:
due to the ip bug, the first frame has dirty data

Solution:
mute the first frame

Verify:
u212

Change-Id: Ia21e96c338b22e25d1073f27083f10634a09edad
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-03-06 18:50:40 +09:00
Luan Yuan
33d2629189 Revert "canvas: get canvas w/h for frame check [2/2]"
This reverts commit 8667f1fbc1.
2019-03-06 18:50:40 +09:00
MingLiang Dong
06c0ec7605 hdr: sdr2hdr on/off switch, osd flutter [1/1]
PD#SWPL-3038

Problem:
sdr2hdr on/off switch, osd flutter

Solution:
always enable osd1 hdr, if osd hdr bypass, set hdr bypass parameters

Verify:
verify on G12A

Change-Id: I4d5ae0588b06c4989b3a4f22b00ba41ef80be0d0
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-03-06 18:50:40 +09:00