Commit Graph

641926 Commits

Author SHA1 Message Date
Jian Hu
ce1681b1ae i2c: meson8b: add i2c surpport
PD#154260: i2c: meson8b: add i2c surpport
PD#157452: i2c: meson8b: add i2c surpport

1. add i2c surpport.
2. update gx/axg/txlx dts.
3. setup i2c b pinctrl for all platforms of axg.

Change-Id: I7fe41b7f42c741cb70cce1c4b7dd57d288deafa7
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
2017-12-27 14:01:23 +08:00
Long Yu
ed9d4cf21d emmc: fixed emmc compatible in p241 dts
PD#157611: emmc: fixed emmc compatible in p214 dts

Change-Id: I6f45bf56770a7f4f936c79389f4755a85d7f8c64
Signed-off-by: Long Yu <long.yu@amlogic.com>
2017-12-26 19:12:57 -07:00
Evoke Zhang
9adda5c93c vout_serve: add extcon for display mode change.[1/2]
PD#157561: vout_serve: add extcon for display mode change

add extcon in vout_serve and eliminate the same mode in hdmitx

Change-Id: I1063facae39534d93720632cf441b45680da954c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2017-12-26 03:47:56 -07:00
Long Yu
d0a5e915d2 emmc: refixed support for sdio wifi
PD#154260: emmc: refixed support for sdio wifi

1. adjust sdio timing parameters

Change-Id: Iecd400b0570c363cc1df450bc09f8dfa2d7fa533
Signed-off-by: Long Yu <long.yu@amlogic.com>
2017-12-26 00:26:37 -07:00
Long Yu
94e0d11b88 emmc: refixed how to get host->data variable in M8bab
PD#154260: emmc: refixed how to get host->data variable for M8b

    1. refixed how to get host->data variable

    2. Compatible m8b and 905

Change-Id: I647fb191f71a3a4b6b63eee29be1a91e6581af12
Signed-off-by: Long Yu <long.yu@amlogic.com>
2017-12-25 16:56:35 +08:00
Long Yu
d7e777497e emmc: add host->data variable in M8baby
PD#154260: emmc: Add host->data variable in M8b platform

1. add host->data variable in M8baby

Change-Id: I5ed70f3f1af96b225f018cbcf030c68e49929e1a
Signed-off-by: Long Yu <long.yu@amlogic.com>
2017-12-22 17:28:04 +08:00
Xingyu Chen
7ab8721cfc iio: adc: meson-txlx: add sar adc support
PD#154260: iio: adc: meson-txlx: add sar adc support

Change-Id: I2a692adddcf3721fac1e24af251d14932ea7e0a5
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2017-12-22 00:50:50 -07:00
Bo Yang
a910157748 arm64: meson64_defconfig: add leds configuration
PD#154260: arm64: meson64_defconfig: add leds configuration

+CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_PWM=y
+CONFIG_LEDS_TRIGGER_GPIO=y
+CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
+CONFIG_LEDS_TRIGGER_TRANSIENT=y
+CONFIG_LEDS_TRIGGER_PANIC=y

Change-Id: I9da3dfd9e61b16a50e25daffc3fb10094b06f63e
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
2017-12-22 00:49:49 -07:00
Jian Hu
b31f931bf6 arm64: dts: update i2c device node name for all platforms
PD#154260: arm64: dts: update i2c device node name for all platforms

This commit base on previous commit of i2c.

Change-Id: Ie5a3619db4739d7b9c9574f5628775b274681047
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2017-12-22 00:49:25 -07:00
Jian Hu
071b97fd8a i2c: meson: add i2c driver
PD#154260: i2c: meson: add i2c driver

Initial add i2c driver reference to upstream i2c.

Change-Id: I69c5b6e451c10232c183343b97a26a56cd3ba226
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2017-12-22 00:47:24 -07:00
Sunny Luo
812545a94f spicc: meson: add spicc driver support for txlx
PD#154260: spicc: meson: add spicc driver support for txlx

Move from upstream linux 4.14.

Change-Id: Ia5e4c76194974397bfb39d863b7a36f44ad4ecee
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2017-12-22 00:46:51 -07:00
Bo Yang
8ad4f7756b watchdog: meson: add debug info
PD#154260: watchdog: meson: add debug info

Change-Id: I98cb723099bc05f721ba8d52002cb724d9c5a978
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
2017-12-22 00:45:17 -07:00
Yue Wang
135e4dae04 usb: meson-txlx: add usb host & device driver
PD#154260: usb: meson-txlx: add usb host & device driver

Change-Id: Ie7a1deba06bf97eb6e7f1ddc7876206d8b0a336d
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2017-12-22 00:44:40 -07:00
Jian Hu
e1e8711e7f pwm: meson-txlx: add pwm driver support
PD#154260: pwm: meson-txlx: add pwm driver support

Verified on pwm d channel,gpiodv_2 pin.

Change-Id: I8e2f5506a9f37791824c5dc1888a9fe2a3245b0e
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2017-12-22 00:44:14 -07:00
Nan Li
69ed27ff47 emmc: use device data matching for different platform
PD#154260: emmc: use device data matching for different platform

Use device data matching for different platforms.

Optimize suspend & resume clksrc switch.
Optimize clksrc on HS400.

Change-Id: I6b927edf85062e1ddffe75e08331feff0b3de805
Signed-off-by: Nan Li <nan.li@amlogic.com>
2017-12-22 00:43:24 -07:00
Xingyu Chen
f30c29856c arm64: dts: add dts for txlx
PD#154260: ARM64: dts: add dts for txlx

Change-Id: I4e6d7eca99a80b40bba23ee599d08a12489a07f0
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2017-12-22 00:42:09 -07:00
Renjun Xu
137c7dd411 dts: sync axg_s400.dts and axg_s400_v03.dts
PD#157225: sync axg_s400.dts and axg_s400_v03.dts

Change-Id: I851550eeb1b2c1d8c61f98435d83eb5b0d489667
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
2017-12-22 09:32:38 +08:00
Rongjun Chen
b6cf6a60cc PD# 156339 wifi: add prealloc mem size to fix vts test fail
Change-Id: I2c401e01c835626c16b271fc37d04a471e8d465a
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2017-12-21 00:47:30 -07:00
Jianxin Pan
dd1e17fefc Merge "audio: check toddr and fix clk of tdmout for loopback" into amlogic-4.9-dev 2017-12-20 23:21:44 -08:00
Renjun Xu
e3307fd658 ledring: add ledring rgb case
PD#156869: add ledring rgb case

Change-Id: I4015a7c16ddac575eada958633f43fcffbc3a577
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
2017-12-20 23:47:47 -07:00
Xing Wang
7eae7770d0 audio: check toddr and fix clk of tdmout for loopback
PD#155103: audio: fix toddr checking and tdm clks for loopback
1) check toddr whether for loopback
2) fix clks of tdmout for loopback

Change-Id: Ifd5ddc88114ebb8e7dcf5a0e991ead9b190c8621
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2017-12-20 23:47:24 -07:00
Jian Hu
70aee99c74 clk: meson-txlx: add clock tree driver
PD#154260: clk: meson-txlx: add clock tree driver

Change clkc driver init order

The loading order of vpu driver is postcore_initcall,
but clock order is device_initcall.clock order should
be higher,change macro CLK_OF_DECLARE instead

Optimizing mux/div/gate descriptions.

Change-Id: I20cd8111ac6bd60f350cdddc224bad48c13fcfb1
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2017-12-20 20:22:06 +08:00
Xingyu Chen
de48f69ab6 pinctrl: meson-txlx: add pinctrl & gpio driver
PD#154260: pinctrl: meson-txlx: add pinctrl & gpio driver

Change-Id: I279691096150ac3ed74660f1bcf602ae86b6b1e4
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2017-12-20 19:49:21 +08:00
Renjun Xu
672f0d3993 ledring: add ledring driver
PD#156869: add ledring driver

Change-Id: I162133eb7eedbf8705ec7c7cdd6ec401be9b92ea
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
2017-12-20 19:29:45 +08:00
Bencheng Jing
39627ff3ea di: modify true bypass conditions
PD#155786: di: modify true bypass conditions

Change-Id: I5e8ef74b87915870089497166d272830ceb453db
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2017-12-20 00:33:27 -07:00
Xingyu Chen
7f22cf4c89 cpuid: amlogic: add cpu id for gxlx and txhd
PD#154260: add cpu id for gxlx and txhd

Change-Id: I346ba42dc3473626ab70e86bb8847e926e465576
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2017-12-19 04:36:44 -07:00
Bo Yang
370c8bf462 script: amlogic: add new build script
PD#154260: script: amlogic: add new build script

Add new kernel build script.
	mkimage_32.sh for arm
	mkimage_64.sh for arm64

Usage: mkimage_xx.sh [-k def] [-d dts | -p chip] [-f rootfs] [-c] [-h]

Examples:

	# build kernel using default meson32_defconfig
	mkimage_32.sh

	# build kernel using default meson64_defconfig
	mkimage_64.sh

	# build kernel using defconfig specified by the option -k
	# with full name.
	mkimage_64.sh -k meson64_defconfig

	# build all dtb for the board with prefix or suffix <p320>
	# specified by the option -d
	mkimage_64.sh -d p320

	# build all dtb for the chip with prefix <txl>
	# specified by the option -p
	mkimage_64.sh -p txl

	# make distclean and build kernel and dtb
	mkimage_64.sh -k meson64_defconfig -d p320 -c

	# make distclean
	mkimage_64.sh -c

	# print help
	mkimage_64.sh -h

Change-Id: I617a2546a40ab74e741706f4625afb924421953a
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
2017-12-19 04:36:36 -07:00
Ao Xu
cae7a2e49c defconfig: add module version support
PD#149771: add module version support

A module compiled for one kernel won't load if
you boot a different kernel. If you're having
trouble loading the modules because of versioning
errors, compile a kernel with modversioning turned off.

Change-Id: Id00f10af84426a8f26a3439796d2de56e28fb9c6
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2017-12-19 04:35:56 -07:00
jianxin.pan
872270857a module: skip sublevel and crc when ver check
PD#157069: skip SUBLEVEL and crc when ver check durning insmod

When CONFIG_MODVERSIONS enabled, vermagic and crc are checked
durning insmod.

Change-Id: I6eb7bdda5b771afa754f7b783a7bbfe1be7cedd1
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
2017-12-19 04:11:48 -07:00
Yueguie He
0ad11cb314 USB: add mass stoarge function
PD#157133: USB: add mass storage function

1. add udisk partition to s400 emmc dts
2. add mass storage config

Change-Id: I8e90403c2803e216b7f11a420c5087b3ef859746
Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
2017-12-19 03:55:59 -07:00
Yixun Lan
811719006f config: disable nfs client option [2/2]
PD#156770: config: disable nfs client option

this attempt to make android 8.1 compatible

Change-Id: I47d84695df00a9ab83a203565f3dd3cfd1a0159a
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
2017-12-19 03:55:49 -07:00
Yixun Lan
000e9115a9 config: enable BFP option [1/2]
PD#156770: config: enable BFP option

this attempt to make android 8.1 compatible

Change-Id: I2b0b91fe33902fc5680ffec62f2dc205c0b7c5f3
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
2017-12-19 03:39:30 -07:00
Jiamin Ma
e9fd448041 rng: replace abandoned rng register with new one
PD#157034: enable hw random generator for meson AXG

Change-Id: I0012465da1e7d22fc04a61de374277b2d6af32fd
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2017-12-19 14:33:36 +08:00
Yi Zeng
58384aae5b nand: add a error handler in aml_nand_add_partition
PD#156335: nand: add a error handler in aml_nand_add_partition

add a error handler in aml_nand_add_partition to avoid the endless
loop, when dts config a over size partition.

Change-Id: I8375990283bc6b36a09e09a37d041ebd929990d6
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2017-12-17 18:17:49 -07:00
Jiamin Ma
231ce0586c rng: enable hw random generator for meson AXG
PD#157034: enable hw random generator for meson AXG

Change-Id: Ie72368b25a1d028627d4212d31b49da33be3185f
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2017-12-15 07:10:53 -07:00
Zhi Zhou
abdb7453fb media: codec mm scatter used reserved first.
PD#155696: if have reserved used reserved first
	so we can init&play fast.

Change-Id: Id3c5319acef88d373ac1bf76bbb26163ab0c12d5
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
2017-12-15 15:03:07 +08:00
Yi Zeng
6facb53203 nand: add three new slc-nand support
PD#154862: nand: add three new slc-nand support

According to new customer demand, we need add this three new nand into
our code:
1. GD 9FU1G8F2AMGI
2. Winbond W29N04GVSIAA
3. Samsung k9f2g08u0d

Change-Id: Ibb098fa79edca50613bbafb3ebcd706a86c46c3e
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2017-12-14 21:37:17 -07:00
wenbiao zhang
ed0298c9a2 dts: add p241 buildroot v2 dts [1/2]
PD#154923: dts: add p241 v2 dts for v2 hardware
support multi dts for v1/v2 hardware

Change-Id: Ie0fade5d0d8cbfa200e7717219b1b0ba29e66da4
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2017-12-14 19:04:57 -07:00
Jianxin Pan
d2e8bd39db Merge "clk: update clk total number [1/1]" into amlogic-4.9-dev 2017-12-14 18:04:34 -08:00
Yi Zeng
49832da244 mtd: fix the macro of BCH mode index
PD#155673: mtd: fix the macro of BCH mode index

Change-Id: Iee7d1b11569411c2edcd43e2355299735b7dd1d1
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2017-12-14 05:05:06 -07:00
Hui Zhang
2dc5888c59 codec_mm: fixed scatter def setting [1/1]
PD#155696: fixed scatter def setting

Change-Id: I2c3299bd7003c340079622369e51407a823ce80e
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
2017-12-14 04:11:08 -07:00
Zhi Zhou
31a5e03143 media: fixed codec_mm fast play bug
PD#155696:

	1. if no res & have cma_res, may crashed on
	codec_mm alloc.
	2. if cma res is not set the has_res, some module may alloc failed
	on no res.
	3. scatter memory fast wait used complete.

Change-Id: I2104ec948762ca587d0c90f221c811de6bc4d3c4
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
2017-12-14 03:39:06 -07:00
wenbiao zhang
c9814937de clk: update clk total number [1/1]
PD#152261: clk: update clk total number
add bt656 clk, but total number not update

Change-Id: I24f2f17e4e773a883bab3f564144a49768fc16d5
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2017-12-14 03:28:27 -07:00
kele bai
ec371bebf7 di: remove bypass pre print [1/1]
PD#156889: di: remove bypass pre process print

Change-Id: If9f6d4af26088b18d67072a01011aad3e64552cd
Signed-off-by: kele bai <kele.bai@amlogic.com>
2017-12-14 14:57:49 +08:00
pengcheng chen
1a5125cc8b osd: fix cursor support with 32bit app[1/2]
PD#156057: osd: fix cursor support with 32bit app

Change-Id: I69f4c94ea16efca4e130af665e0fc7e4b05c5312
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2017-12-13 00:50:41 -07:00
Luan Yuan
61a614707e dts: optimize p241 fb addr error [1/2]
PD#156267: optimize p241 fb addr error

Change-Id: I652fc5e2c068383700be58a0cc36be5fefaca14c
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2017-12-12 19:17:16 -07:00
binqi.zhang
942dd16d98 revert "sync_file: Return consistent status in SYNC_IOC_FILE_INFO [2/3]"
This reverts commit fe912ab314899e3add2993c630c15d28638a3348.

This reverts part commit of ARM and reserved original commit in upstread.

Change-Id: I4e0f39bee86342cd89aa2fb8f10c81f92e4b1985
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
2017-12-12 03:10:54 -07:00
Lianlian Zhu
b26a613a44 audio: fixed multi ch pcm switch to passthrough mute issue[3/3]
PD#154595: fixed multi ch pcm out to IEC raw out mute issue

Change-Id: I2a6643975bea0970e9fecbd59cc6282886eacdbb
Signed-off-by: LianLian Zhu <lianlian.zhu@amlogic.com>
2017-12-12 00:24:32 -07:00
Jian Hu
10df19ebb1 arm64: dts: fix pwm c/d base reg for gx SoCs
PD#156419: arm64: dts: fix pwm c/d base reg for gx SoCs

Change-Id: Ie3d17330d2d460a1071c09efb9ce5521b8c80837
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2017-12-11 22:39:09 -07:00
tao zeng
de9dedcaed mm: correct page stat API
PD#156236: mm: correct page stat API

Using mod_zone_page_state instead of __mod_zone_page_state to
avoid SMP warning of __this_cpu_preempt_check

Change-Id: I3f95768beabf5d330d13189d189b32aef39448cd
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2017-12-11 16:34:05 +08:00