Commit Graph

648993 Commits

Author SHA1 Message Date
Joy Cho
086700791a ODROID-N2: clk: add cpu overclocking frequency sets
Change-Id: I47c38143e051faa97234cf05a0b53ac10e404734
2019-12-11 15:42:15 +09:00
Dongjin Kim
ee1488ae2f ODROID-C3/N2: mmc: remap the MPT partition table
After reduce the size of boot loader area to fit in 1MB, MPT partition table
can be fit at 2048 LBA and this partition table would be used by Android
for numerous partitions other than Linux based platforms.

Change-Id: Ic8b8defedb4103abf547bae7f533036904578b59
Signed-off-by: Dongjin Kim <tobetter@gmail.com>

Conflicts:
	drivers/mmc/card/block.c
2019-12-11 15:42:06 +09:00
Dongjin Kim
3f6e08705e ODROID-COMMON: arm64/dts: move common device node into 'mesong12_odroid_common.dtsi'
Change-Id: I98055ccfb746a33c57d38beac0a1b19ad39b86a9
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:41:47 +09:00
Dongjin Kim
c1248dfce3 ODROID-COMMOM: arm64/dts: build selected device tree
Change-Id: I37d1aa678d851c9ce994fadf525c9a2fa430f680
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:38:41 +09:00
Dongjin Kim
87e8058d85 ODROID-C3/N2: mmc: read MPT partition from a certain sector
Change-Id: Ibac5bb733270583f1a3a2ee7a24091c453261753
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:38:29 +09:00
Dongjin Kim
cab14d47f1 ODROID-C3/N2: arm64/dts: remove NAND device nodes
Change-Id: Icc3b4b1e10de53d0c6190036d1c2f3ddfb1364da
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:38:20 +09:00
Dongjin Kim
19c29f2526 ODROID-C3/N2: usb/phy: use 'CONFIG_ARCH_MESON64_ODROID_COMMON'
Change-Id: Ib78b7e773705e930f3493fa3b56be2617450d0f2
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:38:01 +09:00
Dongjin Kim
6778b77c3c ODROID-N2: arch/arm64: enable CONFIG_ODROID_N2
Change-Id: I063fa3c44b96c866d79e7570d4c864972905f83d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:31:39 +09:00
codewalker
240c9a6fcc ODROID-C3: config: add bluetooth stuffs.
Change-Id: I6cfbc58d05e9182e37d97ca54881e2f3de5df1df
2019-12-11 15:31:28 +09:00
codewalker
2a4796c0bd ODROID-C3: config: remove amlogic bt.
Change-Id: Icdeb0159d553047ca2ed786548b48e43a5b7e0db
2019-12-11 15:31:18 +09:00
codewalker
7319338b7a ODROID-C3: config: add to enable Hardkernel's ODROID-C3 board
divide buildroot and android config.

Change-Id: I05a6bd8a2a3df4df5ed98c4b440aa33422c544c8
2019-12-11 15:31:06 +09:00
Dongjin Kim
a561bbaeb0 ODROID-C3/N2: configs: retune the default kernel config
Change-Id: I92d70879831321c21095cba5e507a6defc5dba11
Signed-off-by: Dongjin Kim <tobetter@gmail.com>

Conflicts:
	arch/arm64/configs/odroidc3_android_defconfig
2019-12-11 15:30:58 +09:00
Dongjin Kim
9c7be702ef ODROID-N2: arch/arm64: add kernel config and DTS for ANDROID
Change-Id: I8e2dd02ae5e7db69dfec1b5167433b198d1e75cc
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:30:41 +09:00
codewalker
73a6828181 ODROID-C3: dts, kbuild: add s905d2_odroidc3_android.dtb
Change-Id: Id9d7c6c0bd8aad126214f373581922040be7a3f1
2019-12-11 15:30:32 +09:00
Joy Cho
ce14a513f1 ODROID-N2: add odroid-n2 defconfig and dts
Conflicts:
	MAINTAINERS

Change-Id: I4d4544e282e60f40b0cb120981ca3701e1db3434
2019-12-11 15:29:06 +09:00
Luke Go
3e6f224642 ODROID-C3: arm64/dts: Add remote controller mappings.
Change-Id: I215eb1ae34766840822a9bfd1078de5eba057fdf
2019-12-11 15:03:52 +09:00
Luke Go
80b9ade1bb ODROID-C3: arm64/dts: Add android firmware & fstab infos.
- Add android dts.

Change-Id: I0cddcd443735e82ca0b58fb9f696ab2e21e5fa00
2019-12-11 15:03:40 +09:00
Kevin Kim
914cbd827e ODROID-C3: arm64/dts: changes for sound card configuration
Change-Id: I45b73be84c7e9a406b1d71ec141f706d40cce228
2019-12-11 15:03:32 +09:00
Kevin Kim
d4320f5488 ODROID-C3: arm64/dts: add support UHS-1 for uSD card
Change-Id: I365c7d333ae6a4e1568f7a486ab134f1afb679e3
2019-12-11 15:03:22 +09:00
Dongjin Kim
f22bb2af44 ODROID-C3: arm64/dts: add 'drive-strength = <3>' to i2c-3
Change-Id: I440ca37ae62fdfdd9909f7e7121d4ef35ab98130
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:03:13 +09:00
Dongjin Kim
9f6ed4a03d ODROID-C3: config: add to enable RTC driver PCF8563
Change-Id: I5b6d9ac23d3e930eeffd11725a983515a59b3c93
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:03:02 +09:00
Dongjin Kim
ee6827088f ODROID-C3: arm64/dts: add RTC component 'pcf8563' to 'i2c3'
Change-Id: I8b55481be6efee867b67f807e9b40870f2b3fc2d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:02:47 +09:00
Dongjin Kim
34b93a8184 ODROID-C3: config: add to enable Hardkernel's ODROID-C3 board
Change-Id: I374bed44b920583708ddb5ae719fdaf64fb24783
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:02:35 +09:00
Dongjin Kim
1fe29d0099 ODROID-C3: add new Hardkernel's ARMv8 based board configuration
Change-Id: I8c20c453c60698b05e3adc7160653e5996a3db9c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:02:25 +09:00
Dongjin Kim
72602869e4 ODROID-C3: arm64/dts: remove invalid hardware, external LCD panel
Change-Id: Ib45f41e24ccd3d258d3b9bfea38a4e52d6bc7827
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:02:11 +09:00
Dongjin Kim
dbe8710b98 ODROID-N2: usb/gadget: add 'compat_ioctl(...)' for 32bit Android
Change-Id: I0ff9c0c97feb7388db8bb8ec4fb283fceb088ee7
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:01:53 +09:00
Dongjin Kim
6944c4ae46 ODROID-C3: arm64/dts: remove non-onboard components on 'i2c0'
Change-Id: I141f36c3c5b7dbaf1eaaf2d20d7a1d4ee65bf4b6
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:01:43 +09:00
Dongjin Kim
fb303002f3 ODROID-C3: arm64/dts: fix to set the model name
Change-Id: I490de55a4aae3d93940ea007ac11470cb5a641c2
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:01:24 +09:00
Dongjin Kim
da5ec008c4 ODROID-C3: arm64/dts: add system LED with 'heartbeat' trigger
Change-Id: I78e85d395975a0c4849b9f67915e3fa680d65e53
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:01:12 +09:00
Robert Richter
2141927ed9 ODROID-C3: dts, kbuild: Implement support for dtb vendor subdirs
This patch adds support of vendor sub directories for dtb files.
Subdirectories can be specified in $(dts-dirs). Kbuild traverses over
all directories while building and installing dtb files. The directory
tree is also reflected in the install path.

Change-Id: Iab8d4cf4b76f7122892e87137fd0ec60565e1db0
Tested-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:00:36 +09:00
Robert Richter
536ed4340f ODROID-C3: dts, arm64: Add dtbs_install make target
This adds the dtbs_install make target to arm64. The target has been
introduced already to arch/arm with the following commit:

 f4d4ffc03e kbuild: dtbs_install: new make target

Implementation for arm64 is the same as for arm.

With 'dtbs_install' all config enabled dtb files are installed to
either the INSTALL_DTBS_PATH directory or the default location:

 $INSTALL_PATH/dtbs/$KERNELRELEASE

Change-Id: I5605ea7d723e2a658f7d85177d1221b83d612bcb
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 14:57:48 +09:00
Joy Cho
1982cc2e11 ODROID-C3: arm64: configs: add odroid-c3 defconfig and dts
Change-Id: I2630a3a3d5ce9489990276ca655f37438ffdef3b
2019-12-11 14:57:38 +09:00
renjiang.han
76de9b2a7a ppmgr: Unbound kstrdup and Potential Null Dereference. [1/1]
PD#OTT-4872

Problem:
Unbound kstrdup and Potential Null Dereference.

Solution:
Add a judgment on the return value and the null pointer.

Verify:
on u212

Change-Id: I1e493c8125e08d4a6fb9fb46f28309eba6f0e47b
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:34:44 +08:00
renjiang.han
68580b1246 ppmgr: modify first frame garbage. [1/1]
PD#SWPL-9350

Problem:
ppmgr first frame garbage for afbc.

Solution:
alloc canvas.

Verify:
on u212

Change-Id: Ifd8d865240fee07f37d8ed47b224a39f24eac3d4
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:31:57 +08:00
renjiang.han
26ca83e283 ppmgr: add compatibility with doublewrite. [1/1]
PD#SWPL-9350

Problem:
For output with compressed and uncompressed formats,
ppmgr recognizes the compressed format and returns directly.

Solution:
add compatibility with doublewrite.

Verify:
on u212

Change-Id: I9fffa720deee80b5db4ef21086c4638a630f9a80
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:29:12 +08:00
renjiang.han
1f4c27e21f ppmgr: Interlaced video only shows half. [1/1]
PD#SWPL-9350

Problem:
Interlaced video only shows half.

Solution:
Interlaced video height is divided by 2.

Verify:
on U212

Change-Id: I983e3369687eeb55f03d3e7f8474b9e37549440f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:25:02 +08:00
renjiang.han
3c257cbf92 ppmgr: add phy_addr add support. [6/6]
PD#SWPL-9350

Problem:
ppmgr not support vf with phy_addr.

Solution:
config canvas

Verify:
on U212

Change-Id: I96629ed6287edaf4e7d7a2673ff604e99e3b12df
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:23:25 +08:00
renjiang.han
74a6fddf48 ppmgr: add keep last frame in ppmgr. [5/6]
PD#SWPL-9350

Problem:
freeze frame fail among two vertical videos switching.

Solution:
add keep last frame in ppmgr

Verify:
on U212

Change-Id: I7192c69725ce08a546af3f2252e743224ad19ec3
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:20:18 +08:00
renjiang.han
307be27f2a ppmgr: Add the value of stats_get to protect tb_task. [4/6]
PD#SWPL-9350

Problem:
Low probability of system crash when play live channel

Solution:
Increase the value of stats_get to protect tb_task.

Verify:
on U212

Change-Id: I4a13a3f7f2a4259fc8d4dd6630dd28d82a8c2541
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:13:10 +08:00
renjiang.han
598c7e0fae ppmgr: Rotate the screen after rotation. [3/6]
PD#SWPL-9350

Problem:
After the HDR video is played, play normal video,
and the display is abnormal.

Solution:
Signal_type and bitdepth need to be reassigned.

Verify:
on U212

Change-Id: Ie2acddff3be34e01062a69d48bf4e82619559fb9
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:09:32 +08:00
renjiang.han
27aa9062d7 ppmgr: Detection of top and bottom for interlace sources. [2/6]
PD#SWPL-9350

Problem:
HDMI connection vertical screen, 1080i signal picture jitter.

Solution:
The interlace source is extracted based on the top and bottom values.

Verify:
on U212

Change-Id: I38f91fda32d1275dcc286fbb33034b4fd099e18f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:37:36 +08:00
renjiang.han
44a35c9d11 ppmgr: add vdin support 10bit. [1/6]
PD#SWPL-9350

Problem:
ppmgr does not support 10bit to cause a rotating screen.

Solution:
add vdin support 10bit.

Verify:
on U212

Change-Id: Idbe90f7e351edbc12e0e2d905f06e0cdd18da148
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:34:09 +08:00
renjiang.han
86ce227bc3 ppmgr: Add IS_ERR_OR_NULL to determine if the thread exists [1/1]
PD#SWPL-8658

Problem:
handle is NULL cause kernel panic.

Solution:
Add IS_ERR_OR_NULL to prevent hanle from being NULL
to cause kernel panic.

Verify:
on T962X2

Change-Id: I3086a497d99646e6475a93b5a53b3c9aca2d2ada
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:27:28 +08:00
renjiang.han
a8ced46329 ppmgr: The cut table caused a crash. [1/1]
PD#SWPL-6557

Problem:
The cut table caused a crash.

Solution:
modify dma flag

Verify:
on X301

Change-Id: Ic0ced1f4934d1125c56a79d1e102de9d2e02a528
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:15:15 +08:00
Gongwei Chen
8660584028 dts: sync w400_a form W400 [1/1]
PD#SWPL-15005

Problem:
sync w400_a form W400

Solution:
sync w400_a form W400

Verify:
Verify by Android P w400_a

Change-Id: I0ace7496f26bacac6343fd772ec2ab8c87721e76
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-28 19:06:40 +08:00
Luan Yuan
b36aaedd1c galilei: update g12b_w200 config for compile error.[1/1]
PD#SWPL-15005

Problem:
update g12b_w200 dts config for compile error

Solution:
update g12b_w200 dts config for compile error.

Verify:
verify by galilei.

Change-Id: Id0cffc41a9bf633dba3d1d052d28bb7a0a2e9d69
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-26 17:13:31 +08:00
Cheng Wang
8e9563d189 amvecm: control cm_en status [1/1]
PD#SWPL-14964

Problem:
the screen color will abnormal after open cm_en

Solution:
adjust am_en status according to chip ID

Verify:
on newton

Change-Id: I8619dc4119c4d6c7e5a2d8f2985bbd508c7f94d7
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2019-10-25 16:15:21 +08:00
Shuai Li
e5f05183b0 audio: make loopback compitable with chips [1/1]
PD#TV-8363

Problem:
Loopback doesn't work on TM2.
TL1 doesn't support loopback in OE pins.

Solution:
Make it compitable with chips.
Add tdm_lb format and chmasks.

Verify:
TM2 AB311 and TL1 X301.

Change-Id: If878fe75fc87857eae7a44439a451c5b2f494c67
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-10-24 14:28:47 +08:00
Gongwei Chen
76ba3b956e audio: no_mclk for amp [1/1]
PD#SWPL-15422

Problem:
Play video without HDMI connection, no sound output

Solution:
no_mclk for amp

Verify:
Verify by Android P w400

Change-Id: Ic95a1e28f8ccbf6e3ba4a21f7d7b329f5854ea49
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-24 13:50:16 +08:00
Gongwei Chen
cac66d706a audio: no_mclk for amp [1/1]
PD#SWPL-15422

Problem:
Play video without HDMI connection, no sound output

Solution:
no_mclk for amp

Verify:
Verify by Android P w400

Change-Id: Ic95a1e28f8ccbf6e3ba4a21f7d7b329f5854ea49
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-24 13:33:18 +08:00