Commit Graph

648219 Commits

Author SHA1 Message Date
xuhua zhang
aae91b2ff3 tvin: add vdin and viu support for tl1 [1/1]
PD#172587

Problem:
do not suppoert for tl1

Solution:
add vdin and viu support for fl1

Verify:
verified on PTM

Change-Id: If4e267356fa666541853cfc7b49008795f9ec301
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
2018-12-21 13:01:34 +09:00
Nian Jing
d10acbbebb avin: add avin detect support for tl1 [1/1]
PD#172587

Problem:
do not suppoert for tl1

Solution:
add avin detect support for fl1

Verify:
just coding for tl1 will test later

Change-Id: I809f7068c9d0a45c89bd7dc4e6615db99b11f015
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2018-12-21 13:01:34 +09:00
Nian Jing
932a8ec2af vdac: vdac: add vdac support for tl1 [1/1]
PD#172587

Problem:
do not suppoert for tl1

Solution:
add vdac support for fl1

Verify:
test pass on local

Change-Id: I7b3da34289dfe0638a24b812658db7e462ebdd4c
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2018-12-21 13:01:34 +09:00
Xing Wang
6d61f0ca5f audio: auge: add sound card support for tl1 [1/1]
PD#172587

Problem:
Bringup tl1 sound card.

Solution:
Add tl1 sound card.
Add external interface for audio input/output.

Verify:
Tested by PTM
Sound card is setup.
TDM and SPDIF internel loopback is ok

Change-Id: I60830ca44a62ee2a8e16343e91e7311152cab161
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-12-21 13:01:34 +09:00
Brian Zhu
ccb0c72813 amvideo: add amvideo support for tl1 [1/1]
PD#172587

Problem:
TL1 needs support amvideo driver.

Solution:
1. Add amvideo node into dts file, default enable.
2. Change the vd mif and sr reg offset.
3. Force bypass dolby vision function.
4. Change the register following hardware design.
5. Make amvideo afbc work for tl1.

Verify:
On PTM.

Change-Id: I0d857f8a707328383328daa23e6ba8e156c2e6e0
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-12-21 13:01:34 +09:00
pengcheng chen
ecec993998 osd: tl1: add osd support for tl1 [1/1]
PD#172587

Problem:
Bringup osd for TL1.

Solution:
Add osd support for TL1.
Add ge2d device tree node for TL1.

Verify:
Verified on PXP/PTM.

Change-Id: I3d20934f015108f545c3c72b979d1bd8187b282e
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-12-21 13:01:34 +09:00
pengcheng chen
8904c4a5a0 rdma: add rdma support for tl1 [1/1]
PD#172587

Problem:
Bringup rdma for TL1.

Solution:
Add rdma support for TL1.

Verify:
Verified on PXP/PTM.

Change-Id: I425edc1e47db2ea834fcc5acb0e3d0ee1f30a9f7
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-12-21 13:01:34 +09:00
pengcheng chen
fd882a2860 media: add codec support for tl1 [1/1]
PD#172587

Problem:
Bringup codec for TL1.

Solution:
Add codec iomap device tree node for TL1.
Add canvas device tree node for TL1.

Verify:
Verified on PXP/PTM.

Change-Id: I8b9a6645f1f9fd7d4aa9cae6166895e61ddc3e36
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-12-21 13:01:34 +09:00
shihong.zheng
f8e942ffd8 arm: dts: tl1: add decoder device tree [3/3]
PD#174543

PD#172587

Problem:
new added function for tl1

Solution:
add vdin afbce support for tl1

Verify:
verified on PTM

Change-Id: I42054b8228161713ac10446491ebdb50a71975ad
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2018-12-21 13:01:34 +09:00
Evoke Zhang
2c323f9dfc backlight: add support for tl1 [1/1]
PD#172587

Problem:
do not suppoert for tl1

Solution:
add backlight support for fl1

Verify:
verified on PTM

Change-Id: I052a7ef93ec9cb21a544e4823a4c9a339d38b5f9
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-12-21 13:01:34 +09:00
Evoke Zhang
305c7bab71 lcd: add tl1 support [1/1]
PD#172587

Problem:
not support tl1

Solution:
add tl1 support

Verify:
test pass on PTM

Change-Id: I5a9073fc08a98ae95d4961297a7427864d92279b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-12-21 13:01:34 +09:00
Evoke Zhang
2d02918260 vpu: add support for tl1 [1/1]
PD#172587

Problem:
Bringup vpu for TL1.

Solution:
Add vpu support for TL1.

Verify:
Verified on PTM/PXP.

Change-Id: Ic2fb7682ddc1b21840e1be1d8462d4c0902e739d
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-12-21 13:01:34 +09:00
Bencheng Jing
bf8276c345 amvecm: fix flicker when change between Launcher and Signal Source [1/1]
PD#SWPL-848

Problem:
ioctrl set the same gamma value again

Solution:
if the gamma value is same as the ioctrl userspace value, do not set again

Verify:
txlx

Change-Id: I6f17f5ff234513c5a886004aedea81b9945c5b98
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2018-12-21 13:01:34 +09:00
Xingyu Chen
a68607a44b pinctrl: fix some mistakes [1/1]
PD#172438

Problem:
1. return a negative when parsing the dts property
"output-high/output-low"
2. the prefix "bt565" don't meet corepinmux document

Solution:
1. add break statement in case PIN_CONFIG_OUTPUT to avoid
returning a negative value.
2. rename the "bt565" to "bt656" according to corepinmux document

Verify:
test pass on U200

Change-Id: Ieeb98367e2269007a6774592abac86ef05ee8f64
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-12-21 13:01:34 +09:00
Xingyu Chen
ab112d2373 irqchip: add a new gpio IRQ driver to support double-edge detection [1/1]
PD#SWPL-922

Problem:
the existing gpio IRQ driver(porting from the upstream) does not
double-edge detection

Solution:
add a new gpio IRQ driver to support the double-edge detection,
the new driver is with different software structure but compatible
with functions of the existing driver

Verify:
test pass on s400

Change-Id: Id69dd0b4459eef20a6755947c7d95a24d7b17fa9
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-12-21 13:01:34 +09:00
MingLiang Dong
13aff3ac96 amvecm: hdr: add hdr10 plus support [1/2]
PD#SWPL-869

Problem:
new feature, add hdr10 plus support

Solution:
1. add hdr10 plus metadat parser
2. add hdr10 plus code support
3. add hdr10 plus bypass mode

Verify:
verify on U200

Change-Id: I957954ce148021882e17f2913dd2552e64f1298c
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2018-12-21 13:01:34 +09:00
Blance Tang
fba6589ebd buildroot: Enable fb memory allocation in g12b_skt dts [1/1]
PD#SWPL-802

Problem:
  Kernel crash when run GPU slt program

Solution:
  Enable meson fb memory allocation in g12b_skt dts

Verify:
  w400

Change-Id: I3074c2053cda06cf4ae237d24bad2c89d789f90d
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
2018-12-21 13:01:34 +09:00
jiejing.wang
8ae27e4c8c audioinfo: fix kasan compile problem [1/1]
PD#173553

Problem:
check stack out of bounds

Solution:
change variable's definition

Verify:
verifyed by r311

Change-Id: Id6efc3ac56b297b6812e2af786732e65867a07da
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
2018-12-21 13:01:34 +09:00
Luke Go
037b7aa6ca ODROID: sysfs: Add poweroff_trigger sysfs node.
Change-Id: I1b0fa30ebc9cb6165816c248be7ce7a709fdec09
2018-12-21 13:01:34 +09:00
Chris KIM
4d963aceaf ODROID-N2: Add Ralink wifi drivers.
Change-Id: I6979b7929a0730349b9c6d3068eec978f9214d37
2018-12-21 13:01:34 +09:00
Luke Go
f7e0a6501d Revert "arm64/dts: android: fstab: Remove the odm partition.[DO NOT MERGE.]"
This reverts commit 72706a8af0.

Change-Id: Ic92c9b155475d1b8e70f942c42d606f94f24127a
2018-12-05 09:55:25 +09:00
Luke Go
0e10eae628 ODROID-COMMON: arm64/config: removing CONFIG_PCI on android.
Change-Id: I37ad415fd840053a977027fe2535772f4e343ed2
2018-12-03 15:52:07 +09:00
Luke Go
72706a8af0 arm64/dts: android: fstab: Remove the odm partition.[DO NOT MERGE.]
- Temporarily remove the odm partition to ignore it.

Change-Id: Ibcd5110fbfc862be4518aaedfcabf0eb5e44e086
2018-12-03 15:52:07 +09:00
Luke Go
3e320dc4c9 arm64/dts: android: fstab: add product partition and remove vmeta.
Change-Id: I4d28a4e82959f04f39f6fec141355f3d99940b81
2018-12-03 15:52:07 +09:00
Luke Go
4cd7f486a6 arm64/configs: android: Apply 4.9.113 kernel configs.
Change-Id: I278357e3e87c400d83b369ba41e4167743ed9910
2018-12-03 15:52:07 +09:00
Dongjin Kim
8d932b938c 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>
2018-12-03 15:52:07 +09:00
Joy Cho
459bbe7c63 ODROID-N2: dts: adjust default cpu opp table
Change-Id: I42ed48f07936c6bb92416a666cb472d7da144c81
2018-11-27 10:51:18 +09:00
Kevin Kim
10bdbdd937 ODROID-N2:Merge Amlogic 4.9.113 kernel
Change-Id: Id4f2cf50da7ed889d221727fdc6e5945a5b0d747
2018-11-22 16:40:10 +09:00
Kevin Kim
7034b69121 ODROID-N2:Merge Amlogic 4.9.113 kernel
Change-Id: Id4f2cf50da7ed889d221727fdc6e5945a5b0d747
2018-11-22 14:07:32 +09:00
Kevin Kim
02b13d9a58 ODROID-COMMON:USB hub enable/reset control && Unused i2c0 disabled.
Change-Id: Ib66ca11cdad3d65187ff06fe3ac981300c894bc3
2018-11-22 12:27:35 +09:00
Joy Cho
7702722138 media: hdmi: add switching vout mode logic (dvi/hdmi)
ex)
setenv bootargs ${bootargs} voutmode=hdmi
setenv bootargs ${bootargs} voutmode=dvi

Change-Id: I2fd6cdafa6ae7dff7a7297982add66b038f3ae40
2018-11-22 12:27:35 +09:00
Joy Cho
a1760d8011 media: osd: adjust initcall order of osd module
To fix an issue caused by the initialization process
of framebuffer console driver with built-in option
(CONFIG_FRAMEBUFFER_CONSOLE=y)

Change-Id: I8a84f206b1f73776ccc188193aa217d39d61f16f
2018-11-22 12:27:34 +09:00
Joy Cho
1ab30dc0cc ODROID: dts: add hardkernel remote IR table
Change-Id: I0f02af4becf3059e25062f3e6525b6ad475a1ea7
2018-11-22 12:27:34 +09:00
Joy Cho
765c650be4 media: hdmi: fix a warning
Change-Id: I178d7ff937e23ac25e40d4837212f78b36d8b964
2018-11-22 12:27:33 +09:00
Joy Cho
1bf959a7df media: hdmitx: add new hdmi resolutions
Change-Id: I909abfcfd408d1b3014ba7b9b750903e10e06aa6
2018-11-22 12:27:32 +09:00
Joy Cho
9cde9ea29b ODROID: clk: add overclocking freq sets
Change-Id: I82b691007a48b8f24ea7686205a464d54e3277c7

Conflicts:
	drivers/amlogic/clk/g12a/g12a.h
2018-11-21 16:55:02 +09:00
Joy Cho
9ab58cd116 ODROID: dts: adjust thermal throttling rules
Change-Id: Iec2c134e2996ea57b7c7fcae394e66d3b7d56593
2018-11-21 16:52:22 +09:00
Luke Go
fd94347f4e ODROID: dts: Change odm type and mnt_flags on N2.
Change-Id: Ie4bc1691aa47103990db5b8909572ba2f0ee215c
2018-11-21 16:52:10 +09:00
Dongjin Kim
912575de3a ODROID-COMMON: arm64/config: removing CONFIG_PCI
Change-Id: I949d7a05cebf2786afe513fa67c0614a4ef2ebea
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2018-11-21 16:51:53 +09:00
Kevin Kim
50253617ed ODROID-COMMON:Support up to 384KHz sample rate.
Change-Id: Iad8a1337637b5f09d444c632935a1326123a04d8
2018-11-21 16:51:38 +09:00
Joy Cho
6d2f5104cb ODROID-N2: cpufreq: Add setup routine to set max cpu freq using boot.ini
setenv bootargs ${bootargs}
	max_freq_a53=${a53_cpufreq_in_mhz} max_freq_a73=${a73_cpufreq_in_mhz}

ex) setenv bootargs ${bootargs} max_freq_a53=1512 max_freq_a73=1896

Change-Id: I2a9e90c57fe94f43b17dd6408d0a5ab4533a8443
2018-11-21 16:51:25 +09:00
Dongjin Kim
040074a430 ODROID-COMMON: mmc/block: add to validate MPT partition table on eMMC
The 'MPT' partition table is non-standard type which contains the partitions
at certain blocks on eMMC device to provide many partitions more than MBR
partition. When this partition table is discovered, standard partitions
such as MBR are ignored such that only the partitions from MPT are valid.

But there is a kernel crash bug when 'MPT' partition table is not exist.
This patch will check if 'MPT' partition is exist while checking its magic
number and proceed further more if it's valid.

Since Android needs to use 'MPT' partition, this cannot be simply eliminated.

Change-Id: Ic27fef3e28eab009affbb0f11a12472d58a373f6
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2018-11-21 16:50:55 +09:00
Luke Go
2fc2674d1c ODROID: dts: change odm partition type and flags.
- ext4 -> vfat.

Change-Id: Ie1c68e28e54321f5f3f890811bff210b7f92fa8b
2018-11-21 16:50:34 +09:00
Luke Go
35a713b6f6 Revert "ODROID-C3: dts: Remove the odm from fstab."
This reverts commit 645a61575c62b8bdad75c0cd2b9dd7b771fd9991.

Change-Id: I6a8213c41598ee6629b55696cb2501501e8fb8d6
2018-11-21 16:50:21 +09:00
Dongjin Kim
3430b61ca0 ODROID: arch/arm64: fix to run 'dtbs_install'
Change-Id: I3e2249c444aa407712a133837dc3b1d84cdc5682
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2018-11-21 16:50:05 +09:00
Dongjin Kim
526cdb7107 ODROID-COMMON: arch/arm64: remove ',' from model name in a device-tree
Change-Id: Ie3126e5470e0a8b70661b071d5a76d619ead0538
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2018-11-21 16:49:48 +09:00
Joy Cho
3c5d514163 ODROID-N2: dts: remove usable-memory that overrides memory config as a fixed one
Change-Id: I0ea7eba3d59deb3ee89a032b138e0c552f89630e
2018-11-21 16:49:22 +09:00
Joy Cho
2a0a933b9d ODROID-C3: clk: add a new higher cpu frequency, 2GHz for ODROID-C3
Change-Id: I28496cd7d93c1ccc8770fa010e9ba6f7d2995ed6

Conflicts:
	drivers/amlogic/clk/g12a/g12a.h
2018-11-21 16:47:58 +09:00
Joy Cho
f86cd9487c ODROID-N2: clk: add cpu overclocking frequency sets
Change-Id: I47c38143e051faa97234cf05a0b53ac10e404734
2018-11-21 16:29:12 +09:00
Dongjin Kim
cacd743113 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
2018-11-21 16:23:46 +09:00