Commit Graph

648550 Commits

Author SHA1 Message Date
cancan.chang
cde1c6ac1d usb: add NN power control [1/1]
PD#SWPL-5380

Problem:
add NN power control

Solution:
add NN power control

Verify:
sm1

Test: pass

Change-Id: I729d782181490fc31b0b18bb27718ad12b3937c0
Signed-off-by: cancan.chang <cancan.chang@amlogic.com>
2019-04-03 15:34:51 +08:00
cancan.chang
f6c7c33686 NNA: add NNA support on sm1 [1/1]
PD#SWPL-5380

Problem:
sm1 not support NNA now.

Solution:
add NNA support.

Verify:
sm1_ac200 & sm1_skt

Change-Id: I3de566bbc730ef69f26160ad9f915ac92b4f2e2b
Signed-off-by: Cancan Chang <cancan.chang@amlogic.com>
2019-04-03 15:34:45 +08:00
Jian Cao
6bb4242e03 ge2d: change ge2d to independent power [1/1]
PD#SWPL-5391

Problem:
change ge2d to independent power

Solution:
add independent power switch

Verify:
verified on SM1-AC200 board

Change-Id: Ifce980fc88753db63317c11bc1126e492b677a64
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-04-03 15:33:04 +08:00
Tao Guo
1551d80352 debug: add atrace support [1/1]
PD#SWPL-4956

Problem:
Need atrace to debug multimedia issue

Solution:
Add atrace functions

Verify:
P212

Change-Id: Ieee441fc75b6f83e8e8a22350a402ec7e77f1134
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
2019-04-03 15:32:58 +08:00
Yi Zhou
ddf75cb98b dv: dv bringup for sm1 [1/1]
PD#SWPL-5408

Problem:
dv bringup for sm1

Solution:
dv bringup for sm1, add chip id

Verify:
sm1 ptm

Change-Id: Ifbf175cb5c495949f5e4bd02b98690f08239a735
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-04-03 15:32:52 +08:00
Yi Zhou
92eadbe3eb hdmitx: hdmitx bringup for sm1 [1/1]
PD#SWPL-5408

Problem:
hdmitx bringup for sm1

Solution:
hdmitx bringup for sm1, add chip id

Verify:
sm1 ptm

Change-Id: I804dec4b743c660b180b7061d110ab76b9ec0468
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-04-03 15:32:46 +08:00
Pengcheng Chen
f0d2cd13c6 osd: add osd SM1 feature [1/1]
PD#SWPL-6106

Problem:
bring up osd for SM1

Solution:
add osd SM1 feature

Verify:
Verified on SM1-AC200

Change-Id: I5cba13f7539e48f6cba1ca0fb3abcaad2ba8494d
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-04-03 15:32:21 +08:00
Qianggui Song
27c6ca3df1 pinctrl: add extra pins for sm1 base on g12b [1/1]
PD#SWPL-5405

Problem:
sm1 add some new pins base on g12b, pinmux need update.

Solution:
update extra pins to g12b pinmux.

Verify:
pxp

Change-Id: Idbdddb1e64ffb4e5a63ee3a69b5fc40e7ecfcc44
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-04-03 15:32:15 +08:00
Jian Cao
710379695e media: add codec support for SM1 [1/1]
PD#SWPL-2867

Problem:
bringup codec for SM1.

Solution:
add the register ops for SM1

Verify:
Verified on SM1-AC200

Change-Id: I31db8f0b5816d67664e8161b3dc73574909afe31
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-04-03 15:32:09 +08:00
Qiang Li
e044060497 dts: sm1: dts enable sdio node. [1/1]
PD#SWPL-5409

Problem:
dts sdio node disable.

Solution:
dts enable sdio node.

Verify:
SM1_AC200

Change-Id: Ifd33de0f08adb202af07eee13db8894fdf0c77fa
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
2019-04-03 15:32:02 +08:00
Qiang Li
3714a0fb90 sdcard: sm1: fix dts problem. [2/2]
PD#SWPL-5409

Problem:
dts compile error.

Solution:
delect sd_emmc_b2 node.

Verify:
SM1_AC200

Change-Id: Ib3965a083fdc3f95a5c0a9de37bff98c898d0993
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
2019-04-03 15:31:57 +08:00
Qiang Li
b38fea2ba9 sdcard: sm1: add sdcard support. [1/2]
PD#SWPL-5409

Problem:
sm1 sdcard failed.

Solution:
change sm1 sdcard high speed mode co_phase.

Verify:
SM1_AC200

Change-Id: I295c6fac2594e611bf278f83a97bb503fb8bb13b
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-04-03 15:31:51 +08:00
Huan Biao
db43491933 thermal: dts: enable sm1 thermal [1/1]
PD#SWPL-6071

Problem:
enable thermal for sm1

Solution:
enable thermal for sm1

Verify:
test pass on sm1_skt

Change-Id: I54fd4431bec1a48135da0b0b9c05cd53d4055a56
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-04-03 15:28:33 +08:00
Qianggui Song
18ab8fffb3 irqchip: sm1 support double-edge gpio irq trigger [1/1]
PD#SWPL-5395

Problem:
sm1 support double-edge trigger, current code do not support.

Solution:
add relatvie bitmask to support this function.

Verify:
ptm & sm1_skt

Change-Id: I48ebc9b38db868f946c49b6fd5f98d427b2669df
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-04-03 15:28:26 +08:00
Shunzhou Jiang
74dcf06299 clk: sm1: add sm1 special clk [1/1]
PD#SWPL-5407

Problem:
not include sm1 special defined clk

Solution:
add this clk

Verify:
sm1_skt

Change-Id: Iaf20aebe377d077d95eb053f7eea99473e3ac45d
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2019-04-03 15:27:23 +08:00
Shunzhou Jiang
20114ecec2 clk: sm1: add clk measure driver [1/2]
PD#SWPL-5407

Problem:
sm1 support clk measure

Solution:
support clk measure

Verify:
ac200

Change-Id: I43c74375c16fee73037a1df4e4531c429e1229fd
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2019-04-03 15:27:17 +08:00
Shunzhou Jiang
8dbe83b58e clk: sm1: add clk measure driver [2/2]
PD#SWPL-5407

Problem:
sm1 support clk measure

Solution:
support clk measure

Verify:
ac200

Change-Id: If87c7c0bc53c8e2bcbf58a685f9ef7ac75462a70
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2019-04-03 15:27:11 +08:00
Shunzhou Jiang
7308fec275 clk: sm1: add clk driver [1/1]
PD#SWPL-5407

Problem:
sm1 not have clk driver

Solution:
add clk driver

Verify:
PxP

Change-Id: Id48257d88ef200fd4adb309bf2e4ada1be407753
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2019-04-03 15:27:05 +08:00
Yue Wang
f7ceebf77e usb: modify usb dts for sm1 [1/1]
PD#SWPL-5385

Problem:
SM1 bring up

Solution:
modify usb dts for SM1 bringup

Verify:
g12a

Test: pass

Change-Id: Ie6f2925315ce12b3ad2964cf85aa3f4cee4bf2a7
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2019-04-03 15:26:56 +08:00
Yong Qin
4e5bb4795a di: add di for sm1 bringup [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
add the chipid

Verify:
sm

Change-Id: I9b738efea210b4fb3deb2dab9de6a443aabadb53
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

Conflicts:
	drivers/amlogic/media/deinterlace/deinterlace.c
	drivers/amlogic/media/deinterlace/deinterlace_dbg.c
	drivers/amlogic/media/deinterlace/deinterlace_hw.c
	drivers/amlogic/media/deinterlace/nr_drv.c
2019-04-03 15:25:01 +08:00
Jianxiong Pan
dfb4226f14 dts: add dts-id for sm1 and g12a_u200. [1/1]
PD#SWPL-5865

Problem:
add dts-id for sm1 and g12a.

Solution:
sm1_ac200_2g
g12a_u200_1g
g12a_u200_2g

Verify:
no test.

Change-Id: Id09b2b811529d11b85898e5f3e83f558dc7ba5f6
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-04-03 15:16:19 +08:00
Hanjie Lin
fb1a987c70 dts: arm: disable cpu idle [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
cpu idle has not ready, disable it

Verify:
AC200

Change-Id: I5dd4bf8d2940587b10b8c85ff64122ce931bfb85
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2019-04-03 15:16:12 +08:00
zhiqiang liang
431abb3487 cpu: add the cpuid check interface [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
add the cpuid check interface

Verify:
AC200

Change-Id: Ifa7dd8fb0b6ec621411652acf6b799e69c4069b7
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
2019-04-03 15:16:06 +08:00
zhiqiang liang
bd79037a35 dts: modify the dts for skt and ac200 board [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
modify the dts for skt and ac200 board

Verify:
AC200

Change-Id: I5e5d52329d7a190ad2b4bd967be837b4ae91ea11
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
2019-04-03 15:15:57 +08:00
zhiqiang liang
dca74f8981 dts: add the chipid for sm1 bringup [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
add the chipid

Verify:
PxP

Change-Id: I7164a4fff39932f81de1b5c4404f1ad0d878484c
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
2019-04-03 15:15:52 +08:00
Jianxiong Pan
74e12fd846 dts: sm1: add sm1_s905d3_ac200 and sm1_s905d3_skt dts. [1/1]
PD#SWPL-5865

Problem:
add sm1 dts.

Solution:
copy from g12a_s905d2_u200.dts.

Verify:
no.

Change-Id: Idcd997d2c1a52a247c55ad41b557941314dfcb2c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-04-03 15:15:46 +08:00
zhiqiang liang
76edfb52af dts: add the partition info for sm1 bringup [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
add the partition info

Verify:
PxP

Change-Id: I779369d92780f9380cb634a90cabb012df11859d
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
2019-04-03 15:15:40 +08:00
Jiyu Yang
01a2215e3b dts: use mesong12a-bifrost instead [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
commit dts for SM1 bringup

Verify:
PxP

Change-Id: Ifdbc751e2fa9ecb3d747c114ac820ab60021294d
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
2019-04-03 15:15:34 +08:00
zhiqiang liang
79e482d74b dts: modify dts for SM1 bringup with SMP [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
modify dts for SM1 bringup with smp

Verify:
PxP

Change-Id: Ie83ad7434acfb8c6232a8e373dfc63ef0ba9b87e
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
2019-04-03 15:15:29 +08:00
zhiqiang liang
317ce6598f dts: rename dts for SM1 bringup [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
rename dts for SM1 bringup

Verify:
PxP

Change-Id: I991b6a0fb65cf9a03c6cb75a1ad8823a067e6bdd
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-04-03 15:15:23 +08:00
zhiqiang liang
fe9f63aaff dts: commit dts for SM1 bringup [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
commit dts for SM1 bringup

Verify:
PxP

Change-Id: Id117d7ff130c67feb8ca04657d8a4ad463793fed
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

Conflicts:
	MAINTAINERS
2019-04-03 15:15:12 +08:00
long yu
a4c61827ab storage: emmc: Compatible with G12B revA and revB [1/1]
PD#SWPL-5575

Problem:
not Compatible with G12B version a and b

Solution:
add revA match-data

Verify:
G12B-W400 RevA and RevB

Change-Id: Iee09861f7b162ee0660ea12dab60a238a9ae6be5
Signed-off-by: long yu <long.yu@amlogic.com>
2019-04-03 09:37:12 +08:00
he.he
e46f696c0b usb: revB usb EL compliance test [2/1]
PD#SWPL-4941

Problem:
EL27,28,29,31 failed in the el compliance test.
tl1 frameworks test result(USB20CV) failed.

Solution:
Change the parameters (0x10 and 0x38) of usb phy
to solve the el failed problem and modified the
dwc_otg_pcd_handle_enum_done_intr function to solve
the USB20CV failed problem.

Verify:
verify on revB

Test: Pass

Change-Id: I9d7dc6472f95c6bcdf2c031222db4fed25be8a13
Signed-off-by: he.he <he.he@amlogic.com>
2019-04-02 09:48:31 +08:00
Nan Li
a2180110bc sdio: set sdio hs mode co_phase [1/1]
PD#SWPL-5152

Problem:
Setup time in sdio highspeed mode of g12a is
inconsistent with the protocol standard.

Solution:
set co_phase = 2.

Verify:
u212

Change-Id: Ifc4576ce83c810c2ae5cbd57fe53d12959a9acca
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-04-01 20:52:32 +08:00
Luan Yuan
f281faf1a6 config: replace stack protector config [1/1]
PD#SWPL-4617

Problem:
CONFIG_CC_STACKPROTECTOR_STRONG will increase stack size for some large
functions and may cause stack overflow problems or increase real stack
usage after we have enabled VMAP STACK config. But direct remove it
from defconfig will cause CTS fail.

Solution:
using CONFIG_CC_STACKPROTECTOR_STRONG_AMLOGIC for real stack protect
config

Verify:
p212

Change-Id: Ic7d205459523f6156b1014f139b4da31068165ae
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-01 13:42:57 +08:00
Hong Guo
8e9b8bfbfd cpufreq: set fixpll to 1G when cpufreq init. [1/1]
PD#SWPL-5392

Problem:
set fixpll to 1G when cpufreq init.

Solution:
set fixpll to 1G when cpufreq init.

Verify:
test pass on A311D-W400

Change-Id: I65eb70b86eca5192f8d153ac59a24a03d6018421
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-03-19 09:50:23 +08:00
Brian Zhu
f932ceb227 vpp: disable vd2 again if the last vframe is MVC [1/1]
PD#SWPL-4003

Problem:
VD2 keep displaying after keep last frame for mvc streaming

Solution:
check the last frame type and disable vd2 again

Verify:
verify by tl1

Change-Id: Ia2b598331e8f65c02974d41c498408bee40a407e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-03-18 17:45:52 +08:00
Rongjun Chen
a0e02167a0 wifi: change mem size to support multi wifi [2/2]
PD#SWPL-2210

Problem:
multi wifi not support

Solution:
add multi wifi support

Verify:
ampere

Change-Id: Iea32268fd081a71a1ade00e56a2dcecd975da849
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2019-03-18 17:07:13 +08:00
deng.liu
42b6b8e053 common: NN API implementation [1/3]
PD#SWPL-86

Problem:
Android tensorflow lite ,NN API implementation

Solution:
NN API implementation

Verify:
Local on galilei

Change-Id: I699a53b3fa2fd199cea7ef4db2f439ef49536a9c
Signed-off-by: deng.liu <deng.liu@amlogic.com>
2019-03-15 21:22:29 +08:00
Daniel Rosenberg
5ca19dc886 ANDROID: sdcardfs: Change current->fs under lock
PD#SWPL-5666

Problem:
STS test fail
testPocCVE_2018_9515

Solution:
bug: 111641492 from security

Verify:
U212

Change-Id: I79e9894f94880048edaf0f7cfa2d180f65cbcf3b
Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Daniel Rosenberg <drosen@google.com>
2019-03-15 17:58:27 +08:00
Jiamin Ma
93dbb6ea7d debug: fail to show active cpu stacks [1/1]
PD#SWPL-4718

Problem:
Will have "PC=0, LR=0" issue when try to
show active cpu stacks via sysrq

Solution:
Save the addr of current interrupted task's context to the
interrupt stack first, so that we can easily obtain pt_regs
later

Verify:
Locally on Ampere

Change-Id: I1cc5095e0ec356bed90f76cdf9af1b2617ce7834
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-03-15 12:17:47 +08:00
Jiamin Ma
f5cc587820 debug: fail to show active cpu stacks [1/1]
PD#SWPL-4718

Problem:
The task stack address is not saved to irq_stack_ptr-0x08,
so when switching from irq stack to task stack, we can not
obtain the right task stack address

Solution:
save task stack address to irq_stack_ptr-0x08

Verify:
Locally on Ampere

Change-Id: I8ad9a45cee33681cc00de3a0bb264dbd9f1b859f
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-03-15 12:17:41 +08:00
Tao Zeng
29f215b1db mm: close vmap stack print for armv7 [1/1]
PD#SWPL-2681

Problem:
If cpu support idle/hotplug, there are many vmap stack prints:
[   74.096973@1] cpu 1, vmap stack:[e8e90000-e8e91de0]
[   74.097084@1] cpu 1, irq  stack:[e8e92000-e8e93de0]
[   74.105901@3] cpu 3, vmap stack:[e8ee0000-e8ee1de0]
[   74.105984@3] cpu 3, irq  stack:[e8ee2000-e8ee3de0]

Solution:
Close these debug print

Verify:
P212

Change-Id: I000df1f0952328af9f359f20341eb0fe88590056
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-03-15 12:17:34 +08:00
tao zeng
8021e13c8e mm: optimize thread stack usage on ARMv7 [1/1]
PD#SWPL-2681

Problem:
Kernel stack usage is large when running many tasks.

Solution:
Map kernel stack to module space and handle page-fault
for stack fault. This can save about 50% memory of stack
usage

Verify:
p212

Change-Id: Ie894bc8f00cb525ddf8ac63c6d99d9c6e937fdc0
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2019-03-15 12:17:27 +08:00
Nanxin Qin
fbfabaddb3 codec_mm: changes the prot of pages to PAGE_KERNEL. [2/2]
PD#SWPL-4597

Problem:
Probabilistic full-screen display mosaic after seek 8K H265

Solution:
alloc mem area with the cached which from the vmap. this way
can improve the efficiency of I/O.

Change-Id: Icf18b9cd57bdc54f832aa827a535399939b28611
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-03-15 12:14:13 +08:00
Nanxin Qin
d275f05e95 codec_mm: fixed some issues of the mem operation. [1/2]
PD#SWPL-3593

Problem:
the memory data might be discordant.

Solution:
1. opitimize the mem mapping and change the page type to nocache.
2. modified the way of flush mem which from lowmem or highmem.

Verify:
x301

Change-Id: I82351c235915c98a86fd201c2ff3994e4d2085ec
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-03-15 12:11:17 +08:00
Rong Zhang
50316b9780 media_module: vdec [1/1]
PD#OTT-1699

Problem:
	not support multi-vdec user data read

Solution:
	Add getting available user data vdec interface

Verify:
	Verified U212

Change-Id: I9ec65367935ac42a83808db23f2fb08f694e1483
Signed-off-by: Rong Zhang <rong.zhang@amlogic.com>
2019-03-15 12:01:46 +08:00
Jian Hu
5b2512bb6c clkmsr: axg: delete hard code which added during bringup [1/1]
PD#SWPL-5356

Problem:
when cat clkmsr node in sysfs, i2c bus does not work

Solution:
delete hard code

Verify:
verify on axg s400

Change-Id: Ib01f251f4b77685db5a57df395f1c1a75620c07b
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-03-14 20:00:03 +08:00
Zhuo Wang
6e62feb9d9 ethernet: remove internal_phy_remove [1/1]
PD#SWPL-5478

Problem:
system will crash rately if not init success

Solution:
remote internal_phy_remove function for chip
later then g12a

Verify:
verify on u200 board

Change-Id: Id6c3bf77c2a448aee9675deff47dc106206146d6
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-03-14 19:44:49 +08:00
Yi Zhou
eea6139bb6 dv: hang when home during DoVi playback [1/1]
PD#SWPL-4406

Problem:
SDR meta size > 0 during DoVi to SDR transition

Solution:
fixed SDR meta size to 0 for SDR

Verify:
u212

Change-Id: I92129163da0df9c81bb508ce56b78268fbd87a2e
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-03-14 19:42:09 +08:00