platform/kernel/linux-amlogic.git
6 years agoionvideo: update ionvideo dts for tv
Jian Wang [Fri, 19 Jan 2018 10:08:58 +0000 (18:08 +0800)]
ionvideo: update ionvideo dts for tv

PD#158997: update ionvideo dts for tv

Change-Id: Iefa4ed1b93dc244d23aa0892e04722aed2836eb7
Signed-off-by: Jian Wang <jian.wang@amlogic.com>
6 years agoPD#158974: touchscreen: goodix GT1X driver support
Sunny Luo [Thu, 18 Jan 2018 13:27:27 +0000 (21:27 +0800)]
PD#158974: touchscreen: goodix GT1X driver support

Change-Id: I45b6e97a2fdba801c681e1858a155e2df7f050fd
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
6 years agodi: add dummy buffer for first field
kele bai [Tue, 16 Jan 2018 10:46:05 +0000 (18:46 +0800)]
di: add dummy buffer for first field

PD#158592: di: add dummy buffer for first field

1) only middle buffer can be process in di

Change-Id: Ide92f1a17428cf5c27468a6dfc086ad2f4685fe3
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agochar_dev: extend dynamic allocation of majors into a higher range
Logan Gunthorpe [Thu, 15 Jun 2017 20:05:20 +0000 (14:05 -0600)]
char_dev: extend dynamic allocation of majors into a higher range

PD#159028: char_dev: extend dynamic allocation of majors into a higher range

We've run into problems with running out of dynamicly assign char
device majors particullarly on automated test systems with
all-yes-configs. Roughly 40 dynamic assignments can be made with such
kernels at this time while space is reserved for only 20.

Currently, the kernel only prints a warning when dynamic allocation
overflows the reserved region. And when this happens drivers that have
fixed assignments can randomly fail depending on the order of
initialization of other drivers. Thus, adding a new char device can cause
unexpected failures in completely unrelated parts of the kernel.

This patch solves the problem by extending dynamic major number
allocations down from 511 once the 234-254 region fills up. Fixed
majors already exist above 255 so the infrastructure to support
high number majors is already in place. The patch reserves an
additional 128 major numbers which should hopefully last us a while.

Kernels that don't require more than 20 dynamic majors assigned (which
is pretty typical) should not be affected by this change.

Change-Id: Ibf1ddaf0b7ce623c9f1a18c42a1ad39a89bb3f41
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
Link: https://lkml.org/lkml/2017/6/4/107
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
6 years agopinctrl: correct spelling mistakes for txlx and axg
Xingyu Chen [Thu, 18 Jan 2018 09:41:00 +0000 (17:41 +0800)]
pinctrl: correct spelling mistakes for txlx and axg

PD#158937: pinctrl: correct spelling mistakes for txlx and axg

Change-Id: I465cd138b9b9a5e7089715c8495f47137d21e6ad
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agomedia: fixed the issure of crash when get pts rec num.
Nanxin Qin [Tue, 16 Jan 2018 08:02:49 +0000 (16:02 +0800)]
media: fixed the issure of crash when get pts rec num.

PD#158950: fixed the issure of crash when get pts rec num.

Change-Id: Iadba80bd5c0c1c4dc001e0321ed0e1a460c57ced
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
6 years agoDRM: fix gem object leak in PRIME_EXPORT operation.
sky zhou [Wed, 17 Jan 2018 04:12:59 +0000 (12:12 +0800)]
DRM: fix gem object leak in PRIME_EXPORT operation.

PD#158474: fixed exported fd leaked.

Exported fd didnot bind correct release function,
use core gem-prime function to re-write export function.
The import function is not provded, for now we only import
the buffer created from meson driver.

Change-Id: I15fad65741631ee2b367d088e733f20af8b0cf5a
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
6 years agoPD#158972: touchscreen: focaltech ft3x27 driver support
Sunny Luo [Thu, 18 Jan 2018 06:08:22 +0000 (14:08 +0800)]
PD#158972: touchscreen: focaltech ft3x27 driver support

Change-Id: I5e1de4a6074a75c288d52fd388323978415610bd
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
6 years agosd: add txlx r311 sd_uart support
Nan Li [Wed, 17 Jan 2018 02:58:29 +0000 (10:58 +0800)]
sd: add txlx r311 sd_uart support

PD#158480: r321 sd_emmc_b port is sdio wifi,
so modify r321 dts b port pinname.

Change-Id: I6a7e44c7b567f1ba9467c2696b6d5637b12939de
Signed-off-by: Nan Li <nan.li@amlogic.com>
6 years agoemmc: optimize emmc dts config
Nan Li [Tue, 16 Jan 2018 07:05:44 +0000 (15:05 +0800)]
emmc: optimize emmc dts config

PD#158871: optimize emmc dts config,
delete "status" cfg.

Change-Id: I5ae2aa66384db84619ffcad7354facd4aa2bac54
Signed-off-by: Nan Li <nan.li@amlogic.com>
6 years agoRevert "drm: force ARGB8888 format to osd display"
Yalong Liu [Thu, 18 Jan 2018 00:11:35 +0000 (08:11 +0800)]
Revert "drm: force ARGB8888 format to osd display"

PD#152825: Revert "drm: force ARGB8888 format to osd display"
This reverts commit 63a6fdd4fa329e0ac41da0ac672d014b7ad5a5ef.

Change-Id: Icc99d5ec3bcbf6e879bedf9385b4b56be679741b
Signed-off-by: Yalong Liu <yalong.liu@amlogic.com>
6 years agoledring: add suspend/resume for ledring
Renjun Xu [Wed, 17 Jan 2018 02:42:13 +0000 (10:42 +0800)]
ledring: add suspend/resume for ledring

PD#158940: add suspend/resume for ledring

Change-Id: I64827cd230708481768be7aabc3b4f814af8b636
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
6 years agomm: fix compile error on other configs
tao zeng [Tue, 16 Jan 2018 06:47:49 +0000 (14:47 +0800)]
mm: fix compile error on other configs

PD#153120: mm:fix compile error on other configs

Change-Id: I8e72afa508c44149f69c6d8c34698d13848e539c
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agonand: add llseek for fw_env tools
Liang Yang [Fri, 12 Jan 2018 06:18:52 +0000 (14:18 +0800)]
nand: add llseek for fw_env tools

PD#158552: Implememt llseek for fw_printenv/fw_setenv tools

Change-Id: Ie6176903c7155cdb7daf17049a7356ed8f61e463
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
6 years agosd: add txlx r311 sd_uart support
Nan Li [Thu, 11 Jan 2018 08:43:14 +0000 (16:43 +0800)]
sd: add txlx r311 sd_uart support

PD#158480: add sd_uart support on txlx r311.

Change-Id: I62a094e66ca5934e0992cc6a5cc44d14e8ce20c3
Signed-off-by: Nan Li <nan.li@amlogic.com>
6 years agomm: close debug print of cma alloc
tao zeng [Mon, 15 Jan 2018 06:04:52 +0000 (14:04 +0800)]
mm: close debug print of cma alloc

PD#153120: mm: close debug print of cma alloc

These print message may print a lot when video playback
And cause it not smooth.

Change-Id: If1f18d5e8a0234f1daca2c6e803a23ba90354414
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agomm: check pfn overflow for low memory platform
tao zeng [Tue, 9 Jan 2018 06:03:15 +0000 (14:03 +0800)]
mm: check pfn overflow for low memory platform

PD#158373: mm: check pfn overflow for low memory platform

On ARM64 platform, when vmemmap_populate is called for reserve
memory for struct page, it reserved based 1GB a loop. And 16MB
memory will be reserved at least. This caused memory waste if
total RAM is less than 1GB.

Basically reserve memory size for struct page is calculated by:

    reserve size = sizeof(struct page) * number of pages.

For example, currently struct page is 64 bytes on ARM64. A page
is 4KB. So reserve size table can be:

    Memory  |  page count  |  reserve size(bytes)
-------------------------------------------------
     128MB  |       32768  |         2097152(2MB)
     256MB  |       65536  |         4194304(4MB)
     512MB  |      131072  |         8388608(8MB)

Note, This reserve is aligned at 2MB.

Change-Id: I912ab01252d68fd065eb94fa2c5556cefa59a256
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agoledring: modify ioctl support 32bit and 64bit
Renjun Xu [Thu, 11 Jan 2018 05:54:10 +0000 (13:54 +0800)]
ledring: modify ioctl support 32bit and 64bit

PD#157849: modify ioctl support 32bit and 64bit

Change-Id: I2f2395110454a2a05ec089601a937a1c884fa800
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
6 years agoclkmsr: init clkmsr earlier for lcd driver called
Evoke Zhang [Thu, 11 Jan 2018 08:51:36 +0000 (16:51 +0800)]
clkmsr: init clkmsr earlier for lcd driver called

PD#158608: clkmsr: init clkmsr earlier for lcd driver called.
also add missed pwm config in dts for backlight,
and add pwm pointer protection in backlight driver.

Change-Id: Ib3d435a0f4418e31d94e65b1cee9919f1f6325c8
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agoemmc: optimize emmc driver configs.
Nan Li [Tue, 9 Jan 2018 11:44:58 +0000 (19:44 +0800)]
emmc: optimize emmc driver configs.

PD#158348: modify emmc dts config data to match data.

Change-Id: Id1f29a8f5b47342376cfa976c6dba7e88bcc5514
Signed-off-by: Nan Li <nan.li@amlogic.com>
6 years agoaudio: tdm: set tdmin max channals by dts
Yueguie He [Wed, 10 Jan 2018 05:22:33 +0000 (13:22 +0800)]
audio: tdm: set tdmin max channals by dts

PD#158473: set tdmin max channals by dts

Change-Id: Ia6ff262fec6b3c156ac35f89b72cd690621f12fc
Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
6 years agodi: add protection for no mirror function
kele bai [Wed, 20 Dec 2017 02:12:46 +0000 (10:12 +0800)]
di: add protection for no mirror function

PD#157314: di: add protection for no mirror function

1) disable mirror function, set keep frame to 0 avoid post process
   buffer
2) modify for keep function, avoid crash caused by calling de post
   in blankout mode
3) move mutex operation out of tasklet
4) remove framereset in hw disable function

Change-Id: I6166a855a7fe6ad38a21c570e9ad0a6f9a204424
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agoled: modify ledring for mic board
Renjun Xu [Tue, 9 Jan 2018 07:53:15 +0000 (15:53 +0800)]
led: modify ledring for mic board

PD#157849: modify ledring for mic board

Change-Id: I81c8400ee559dcf6f2bc3620d75e449c360df4f3
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
6 years agowifi: add wifi build in support[2/2]
Rongjun Chen [Tue, 5 Dec 2017 06:12:35 +0000 (14:12 +0800)]
wifi: add wifi build in support[2/2]

PD#158061: wifi: add wifi build in supportD

Change-Id: I42987b8579035cc0ca83d286f7a46fc0b83047e9
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
6 years agoalarm: fixed the tiemerE counter's reading order
hong.guo [Tue, 9 Jan 2018 08:36:07 +0000 (16:36 +0800)]
alarm: fixed the tiemerE counter's reading order

PD#157845: fixed the tiemerE counter's reading order

Change-Id: Ieccfc2fded45da398fa45e957497eff670790fa6
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agoaudio: add headphone and microphone detect feature
Peipeng Zhao [Mon, 8 Jan 2018 11:51:22 +0000 (19:51 +0800)]
audio: add headphone and microphone detect feature

PD#158258: audio: add headphone and microphone detect feature

Change-Id: Iaf6170904470753b5c826fdbcbd4fac3c7884c8c
Signed-off-by: Peipeng Zhao <peipeng.zhao@amlogic.com>
6 years agomedia: codec_mm: del a printk info
Zhi Zhou [Tue, 9 Jan 2018 06:28:24 +0000 (14:28 +0800)]
media: codec_mm: del a printk info

PD#157881: disabled a debug msg info.
this msg is not a bug.

Change-Id: I043c57955646bcff92ee2dd9dbe41b8485e7c136
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
6 years agohdmirx: enable the hdmirx module and code optimize
Yicheng Shen [Thu, 4 Jan 2018 02:56:31 +0000 (10:56 +0800)]
hdmirx: enable the hdmirx module and code optimize

PD#158047: hdmirx: enable the hdmirx module and code optimize

1.Enable hdmirx in meson64_defconfig;
2.Remove useless code;
3.Add EXTCON interface(communicate with systemcontrol);
4.Modify dump esm log methode;
5.Modify esm/skp clk handle(use clk tree);
6.Fix coding style errors;

Change-Id: I62982ab8f5a6a3b1f482759cd8c2c79236951783
Signed-off-by: Yicheng Shen <yicheng.shen@amlogic.com>
6 years agoaudio: dts: disabled dmic
Xing Wang [Mon, 8 Jan 2018 08:17:38 +0000 (16:17 +0800)]
audio: dts: disabled dmic

PD#157997: audio: dts: disabled dmic

Change-Id: I7d43dccdfea30eb3de6e6243bbc64c279a4edb6b
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agoMerge branch 'android-4.9' into amlogic-4.9-dev
Victor Wan [Mon, 8 Jan 2018 10:44:19 +0000 (18:44 +0800)]
Merge branch 'android-4.9' into amlogic-4.9-dev

Conflicts:
arch/arm/configs/omap2plus_defconfig
drivers/Makefile
drivers/android/binder.c

6 years agodi: move enable pre mif before frame reset avoid timeout
Bencheng Jing [Thu, 28 Dec 2017 09:30:07 +0000 (17:30 +0800)]
di: move enable pre mif before frame reset avoid timeout

PD#154836: di:  move enable pre mif before frame reset avoid timeout

1) enable pre mif before&after frame reset for
   mc mif will be clear by pre frame reset

Change-Id: Ied15c337c4b28a62a873bd36361357b8fecdaf32
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
6 years agosd: add the polling method of sd card_detect
Nan Li [Thu, 4 Jan 2018 08:09:31 +0000 (16:09 +0800)]
sd: add the polling method of sd card_detect

PD#156898: add the polling method of sd card_detect,
because gpio irq remove raising & falling trigger method.

Change-Id: If270d27619d2686e74fe5e6d02748242faec4ce8
Signed-off-by: Nan Li <nan.li@amlogic.com>
6 years agopinctrl: define the pinmux with the same format [4/4]
Xingyu Chen [Thu, 14 Dec 2017 13:04:29 +0000 (21:04 +0800)]
pinctrl: define the pinmux with the same format [4/4]

PD#157965: pinctrl: define the pinmux with the same format.

there are two different pin controllers in Meson Soc Series, one of
them uses continuous 4-bit register to select function for each pin
(Eg: AXG and next), the other use indefinite bits that maybe from
different registers (Eg: Before AXG and GXLX)

previously, the driver use two different format to define the pinmux,
as follows:
[1] Before AXG and GXLX:
mux {
groups = "uart_ao_tx_a", "uart_ao_rx_a";
function = "uart_ao_a";
}

[2] AXG and next
mux {
pins = "GPIOAO_0", "GPIOAO_1";
function = "uart_ao_a";
}

which is a little confusing,and in this patch define the pinmux with
one format[1].

Change-Id: I04fb256294e1b664224c50a1baa622eb3a50b1c1
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agopinctrl: separate soc drivers [3/4]
Xingyu Chen [Thu, 14 Dec 2017 07:59:11 +0000 (15:59 +0800)]
pinctrl: separate soc drivers [3/4]

PD#157965: pinctrl: separate soc drivers

When meson pinctrl is enabled, all meson platforms pinctrl drivers are
built in the kernel, with a significant amount of data.

This leads to situation where pinctrl drivers targeting an architecture
are also compiled and shipped on another one (ex: meson8 - ARM - compiled
and shipped on ARM64 builds). This is a waste of memory we can easily
avoid.

This change makes 3 pinctrl drivers (1 per SoC) out the original single
driver, allowing to compile and ship only the ones required.

porting from the upstream v4.15-rc2, commits as follows:

commit 277d14eb815fdfb95a72ea126bc09f75a2bd58fd

Change-Id: I68832eaf4a86233f89b8c32c44aaaab3593711d7
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agopinctrl: get rid of unneeded domain structures [2/4]
Xingyu Chen [Thu, 14 Dec 2017 05:03:27 +0000 (13:03 +0800)]
pinctrl: get rid of unneeded domain structures [2/4]

PD#157965: pinctrl: get rid of unneeded domain structures

porting from the upstream v4.15-rc2, commits as follows:

commit db80f0e158e62164308a857bce442dfeddb5c29e

Change-Id: I7c65b6844159378b7ef766569cb373fb78997d51
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agopinctrl: remove offset and pin_base from pinctrl [1/4]
Xingyu Chen [Wed, 13 Dec 2017 12:05:49 +0000 (20:05 +0800)]
pinctrl: remove offset and pin_base from pinctrl [1/4]

PD#157965: pinctrl: remove offset and pin_base from pinctrl

porting from the upstream v4.15-rc2, commits as follows:

commit 634e40b0c2bde81051e309cdfe4c26bbca3164ec
commit 70e5ecb1b994f2704c234cb12366d45474b98f32
commit 40833a84faed72f333b1626f00f59e6bebea4d98
commit 6affd6981ca5d2b1d3d9d5191b18bd4a692587fe

Change-Id: Ia856617fc202589199a9fc47664886a25779e8a0
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agoirqchip: replace the gpio IRQ driver with upstream
Xingyu Chen [Sat, 30 Sep 2017 06:53:15 +0000 (14:53 +0800)]
irqchip: replace the gpio IRQ driver with upstream

PD#151900: irqchip: replace the gpio IRQ driver with upstream v4.15-rc2

1) separate the driver from the pinctrl driver
2) add support for GPIOAO* of M8B as interrupt source
3) irq lines of GPIOAO* maximum up to eight
4) remove the GPIO IRQ Controller in AO domain

note that the driver does not support for detecting the double-edge signal
through the pin,if you have related needs, please consider using polling.

test pass on axg_skt, p212

Change-Id: Iaa8da8a0cbfa0fe90d26fc8c2b775e045c8768f2
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agomm: fix first 256MB lost problem
tao zeng [Wed, 3 Jan 2018 04:32:54 +0000 (12:32 +0800)]
mm: fix first 256MB lost problem

PD#157955: fix first 256MB lost problem

1. add Makefile.boot for define of ZRELADDR/
   PARAMS_PHYS/INITRD_PHYS
2. remove config of ARM_PATCH_PHYS_VIRT/AUTO_ZRELADDR
   to avoid boot panic when first 256MB memory enabled

Change-Id: I0495803f22bcfaa550437169a345adc988b40ef7
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agodts: add dts for r311 with memory 1G
Xingyu Chen [Mon, 25 Dec 2017 05:54:14 +0000 (13:54 +0800)]
dts: add dts for r311 with memory 1G

PD#158049: dts: add dts for r311 with memory 1G

1. add pinmux definition of lcd in dts for r311

2. disable hdmitx for r311

Change-Id: I827f2a4ce1b2408166983d41b75b4b0b1ea9651b
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agosound: meson: add audio split mmap mode
Peipeng Zhao [Tue, 2 Jan 2018 11:19:40 +0000 (19:19 +0800)]
sound: meson: add audio split mmap mode

PD#157943: sound: add audio split mmap mode on meson directory for gxl chip

1. i2s in mmap
2. pdm in mmap
3. pdm in supports sample rate
4. if enable to mmap, please enable  CONFIG_AMLOGIC_SND_SPLIT_MODE_MMAP

Change-Id: I08e94c0332269db7c3fa1e42e02a9b17cb4a4b84
Signed-off-by: Peipeng Zhao <peipeng.zhao@amlogic.com>
6 years agowifi/bt: for wifi/bt share the power pin
Larson Jiang [Wed, 3 Jan 2018 05:37:18 +0000 (13:37 +0800)]
wifi/bt: for wifi/bt share the power pin

PD#156561: for wifi/bt share the power pin

Change-Id: Id10edb58cf6d6d8658c40b6d1ec7004838527efe
Signed-off-by: Larson Jiang <larson.jiang@amlogic.com>
6 years agoaudio: meson: fixed kenerl panic and no sound card issue
Xing Wang [Fri, 29 Dec 2017 13:46:25 +0000 (21:46 +0800)]
audio: meson: fixed kenerl panic and no sound card issue

PD#157797: audio: meson: fixed kenerl panic and no sound card issue

1. fixed kernel panic for txlx codec when reboot
2. solve pinmux conflicted for dmic
3. fix i2s mpll of dts config
3. fix tv sound card name of dts config

Change-Id: I88537ac7a3ee9e949cb89c5cd047b9bd9f4ef169
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agodts: fix q201 build error
Zhiwei Gong [Tue, 2 Jan 2018 04:45:27 +0000 (12:45 +0800)]
dts: fix q201 build error

PD#156681: dts: fix q201 build error

fix q201 build error

Change-Id: Ifca66ee62f30251399bbcda82b24b9e8e033ae7c
Signed-off-by: Zhiwei Gong <zhiwei.gong@amlogic.com>
6 years agoUSB: gadget: add mtp 32bit ioctl support
Ao Xu [Mon, 25 Dec 2017 08:19:30 +0000 (16:19 +0800)]
USB: gadget: add mtp 32bit ioctl support

PD#156196: USB: gadget: add mtp 32bit ioctl support

Change-Id: Ic83ca7f6b6736070e8ac435630a16a5a80014922
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
6 years agodts: Add gxm q201 dts
Zhiwei Gong [Tue, 21 Nov 2017 02:20:46 +0000 (10:20 +0800)]
dts: Add gxm q201 dts

PD#156681: dts: Add gxm q201 dts for s912 bringup

Add gxm q201 dts

Change-Id: Idcd0ff7ded99c196e362d966062bcfb09d41a378
Signed-off-by: Zhiwei Gong <zhiwei.gong@amlogic.com>
6 years agolcd_extern: add st7701 driver
Weiming Liu [Thu, 21 Dec 2017 10:16:25 +0000 (18:16 +0800)]
lcd_extern: add st7701 driver

PD#157223: lcd_extern: add st7701 driver for CES

Change-Id: I49d6930c4a4358a8a97a73cbe0194a77f39f55e3
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
6 years agomm: fix lowmem issue
tao zeng [Thu, 21 Dec 2017 10:07:37 +0000 (18:07 +0800)]
mm: fix lowmem issue

PD#157252: mm: fix lowmem issue

1. add statistics for CMA pages;
2. reduce cma print and not protect cma unless driver called;
3. fix cma usage policy in alloc path;
4. increase file scan ratio in kswapd;
5. using NOOP for default IO-scheduler;
6. change alloc flags of ZRAM to retry harder.

Change-Id: If7b0363da03da1682efe3996c69bb9d511299209
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agolcd: add lcd support for txlx
Weiming Liu [Mon, 20 Nov 2017 05:24:27 +0000 (13:24 +0800)]
lcd: add lcd support for txlx

PD#154260: lcd: add txlx support

Add panel dtsi for txlx r311.
Also add backlight local dimming driver.

Change-Id: I8d6cbc0a2099c17de1adc4087a3f58e1c34264ae
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
6 years agohdmitx: fix the non_hdr effect in UI
Yi Zhou [Fri, 22 Dec 2017 09:13:24 +0000 (17:13 +0800)]
hdmitx: fix the non_hdr effect in UI

PD#156644: hdmitx: fix the non_hdr effect in UI

Change-Id: I9b31757838a422bdf2e8c67bb838bb1bbc8dc497
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agomm: do not increase CMA bitmap base pfn if retry
tao zeng [Thu, 28 Dec 2017 09:07:53 +0000 (17:07 +0800)]
mm: do not increase CMA bitmap base pfn if retry

PD#157412: mm: do not increase CMA bitmap base pfn if retry

This behavior may cause some device can't allocate buffer.

From bit map debug:
txlx_t962x_r311:/ # cat /sys/kernel/debug/cma/cma-0/bitmap
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffefff ffffffff ffffffff ffffffff
                                    ~~~~~~~~ Here is a bit map gap!!!
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff 003fffff 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ff000000 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 3fffffff 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Change-Id: Ic3440d62ab1b339d6b5531ebc5aa7aa9e28df0e2
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agodts: add p241 partition table for cts [1/2]
WenCai You [Wed, 27 Dec 2017 11:03:50 +0000 (19:03 +0800)]
dts: add p241 partition table for cts [1/2]

PD#156150: dts: add p241 partition table for cts
cts require data partition at least 4G

1. change system to 1024M
2. change cache to 600M

Change-Id: I9a7e32fc863d58c5fd0b17e28aa7d35193c1dffb
Signed-off-by: WenCai You <wencai.you@amlogic.com>
6 years agoeth: phy: add the debug interface to read/write regs
Yixun Lan [Tue, 5 Sep 2017 04:17:20 +0000 (12:17 +0800)]
eth: phy: add the debug interface to read/write regs

PD#150437: eth: phy: add the debug interface to read/write regs

Change-Id: I206760b46c63fcea544cbfb2c127a6488ce4ad8f
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
6 years agommext: fix panic caused by page trace
tao zeng [Mon, 25 Dec 2017 02:36:14 +0000 (10:36 +0800)]
mmext: fix panic caused by page trace

PD#157417: mmext: fix panic caused by page trace

stackframe.graph is not init if CONFIG_FUNCTION_GRAPH_TRACER
is opened.

Change-Id: Iea270dadd4579e71a778d0da764c4da27323938e
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agohdmitx: update hdmitx driver
Kaifu Hu [Thu, 21 Dec 2017 08:18:45 +0000 (16:18 +0800)]
hdmitx: update hdmitx driver

PD#154260: hdmitx: update hdmitx driver

1. using pr_info or pr_debug instead of printk.
2. remove unuse code.
3. change modulepara to sysfs.
4. use iomap api for read and write reg

Change-Id: I523329d7b26cd7c6675bdae55cda76a6a11c533e
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
6 years agocec: add cec support for txlx
hongmin hua [Tue, 21 Nov 2017 12:53:39 +0000 (20:53 +0800)]
cec: add cec support for txlx

PD#154260: cec: add cec support for txlx

Change-Id: I16465d59fe73e85f7e760a660260590bc179ee53
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
6 years agoiomap: enable hiu interface for gxl/gxm
Xingyu Chen [Fri, 22 Dec 2017 11:53:28 +0000 (19:53 +0800)]
iomap: enable hiu interface for gxl/gxm

PD#154260: iomap: enable hiu interface for gxl/gxm

Change-Id: I0df51f9d782b17901a6b1ea7e6c5aa8a43703583
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agoamvecm: add bitdepth config and keystone for txlx
MingLiang Dong [Thu, 14 Dec 2017 10:57:13 +0000 (18:57 +0800)]
amvecm: add bitdepth config and keystone for txlx

PD#154260: amvecm: add bitdepth config and keystone for txlx

1. add bitdepth 10bit/12bit config for txlx
2. add keystone alg for txlx

Change-Id: Id3c31199dde9df9585c7d7a9d7ff5aab20d32d1f
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agotvin: tvafe: add tvafe driver support
Nian Jing [Thu, 30 Nov 2017 11:15:25 +0000 (19:15 +0800)]
tvin: tvafe: add tvafe driver support

PD#154260: tvin: tvafe: add tvafe driver support

1. palm paln pq adjust.
2. ntsc50 pq adjust.

Change-Id: I03b2e301d70a82560a37791457e524b916db3b16
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
6 years agodi: merge latest di driver
kele bai [Wed, 22 Nov 2017 07:00:32 +0000 (15:00 +0800)]
di: merge latest di driver

PD#154260: di: add latest driver

1) add nr4&cue
2) remove pq releated hard-code
3) add pq load support
4) remove timerc, add hrtimer
5) remove tffbff detection
6) remove extern & global variables
7) move pulldown detection to separate directory
8) update amvecm head file
9) up to commit of PD#154436

Change-Id: I9cde21bb1fd4b4ee08ea88e883ef1c5368ad5b5d
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agohdmirx: add hdmirx support for txlx
Yicheng Shen [Mon, 20 Nov 2017 04:18:58 +0000 (12:18 +0800)]
hdmirx: add hdmirx support for txlx

PD#154260: hdmirx: add hdmirx support for txlx

Change-Id: I26a0dee8aa79eec5f09d72b899ee067949380b12
Signed-off-by: Yicheng Shen <yicheng.shen@amlogic.com>
6 years agovdin: amlogic: add vdin driver support
Bencheng Jing [Tue, 28 Nov 2017 05:00:01 +0000 (13:00 +0800)]
vdin: amlogic: add vdin driver support

PD#154260: vdin: amlogic: add vdin driver support

Merge from kernel 3.14.
Optimize and fix memset error.

Change-Id: I0707de5cb6313da4e1ff8a3a1e91dfb098234529
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
6 years agocvbs: add cvbs driver support for txlx
Nian Jing [Fri, 17 Nov 2017 12:14:34 +0000 (20:14 +0800)]
cvbs: add cvbs driver support for txlx

PD#154260: add cvbs driver support for txlx

Update dts for all platforms.

1. Remove get_cpu type api and support dts match table data.
2. Add clock tree support.
3. Add performance property in device node.
4. Add protection flag for clk_gate on/off.

Change-Id: I082e48ecbbb44cfec5deb31a3a73b67b31370798
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
6 years agounifykey: refine codes
Jiamin Ma [Fri, 22 Dec 2017 01:48:58 +0000 (09:48 +0800)]
unifykey: refine codes

PD#154260: refine unifykey codes

1. delete calling of cpu version related apis
2. replace self-implemented list with kernel-implemented one
3. delete unused MACRO defination
4. replace global variables with private data structure
5. define pr_fmt in each module
6. fix code defects:
   e438
   e527
   e550
   e570
   e650
7. add safe guard

Change-Id: I3dc93e3fef8ccfe3593d3275a69e0e21786e3ef1
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
6 years agoaudio: meson: add sound driver support for txlx
Xing Wang [Thu, 21 Dec 2017 14:10:21 +0000 (22:10 +0800)]
audio: meson: add sound driver support for txlx

PD#154260: audio: meson: add sound driver support for txlx

1. add sound driver support for txlx
2. add amaudio/amaudio2 driver
3. optimizing sound card driver

Change-Id: I726a139e6e34b82891ee4e72832dc529789f8ce7
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agovout: update vout info support
Evoke Zhang [Thu, 16 Nov 2017 10:39:56 +0000 (18:39 +0800)]
vout: update vout info support

PD#154260: vout: update vout info support

1. add htotal, vtotal support.
2. optimize dv_info, fresh_tx_pkt to vout_device.
3. add vinfo_base struct for vout IOCTL support.
4. set default invalid for hdmimode.

Change-Id: If9d99fd99b5f2d00eaee17504697c2dba3d47d6d
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agovpu: add vpu support for txlx
Evoke Zhang [Tue, 14 Nov 2017 01:22:38 +0000 (09:22 +0800)]
vpu: add vpu support for txlx

PD#154260: vpu: add vpu support for txlx

Update dts for all platforms.

1. add support for txlx
2. add clktree support for clk change
3. remove unused vpu module for mem_pd
4. remove vpu_parent "vid_pll","mpll1","mpll2"

Change-Id: I43aa2435305fd02664ae825bc2f62664ffb526be
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agoosd: meson-txlx: add osd support
pengcheng chen [Fri, 17 Nov 2017 03:24:33 +0000 (11:24 +0800)]
osd: meson-txlx: add osd support

PD#154260: osd: meson-txlx: add osd support

Change-Id: I4c899bea555b7d654d8888a0c7433eb6c44893ad
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agocrypto: meson-txlx: enable amlogic crypto dma
Matthew Shyu [Tue, 7 Nov 2017 09:10:22 +0000 (17:10 +0800)]
crypto: meson-txlx: enable amlogic crypto dma

PD#154260: enable crypto driver

restructure crypto driver on top of dma and enable it on txlx

Change-Id: I0ffc0aaf9ad94c9652b9141bf92201c92463a893
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
6 years agousb: fix usb PLL set.
Yue Wang [Tue, 26 Dec 2017 10:27:52 +0000 (18:27 +0800)]
usb: fix usb PLL set.

PD#157680: usb: fix usb PLL set.

meson-txlx: fix usb PLL set.

Change-Id: I3580e6d24a4bd9d22d4173fc370d5263339486f1
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agoi2c: meson8b: add i2c surpport
Jian Hu [Sat, 23 Dec 2017 06:23:45 +0000 (14:23 +0800)]
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>
6 years agoemmc: fixed emmc compatible in p241 dts
Long Yu [Tue, 26 Dec 2017 08:13:48 +0000 (16:13 +0800)]
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>
6 years agovout_serve: add extcon for display mode change.[1/2]
Evoke Zhang [Thu, 21 Dec 2017 10:58:23 +0000 (18:58 +0800)]
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>
6 years agoemmc: refixed support for sdio wifi
Long Yu [Tue, 26 Dec 2017 05:09:38 +0000 (13:09 +0800)]
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>
6 years agoemmc: refixed how to get host->data variable in M8bab
Long Yu [Mon, 25 Dec 2017 08:56:21 +0000 (16:56 +0800)]
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>
6 years agoemmc: add host->data variable in M8baby
Long Yu [Fri, 22 Dec 2017 09:27:53 +0000 (17:27 +0800)]
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>
6 years agoiio: adc: meson-txlx: add sar adc support
Xingyu Chen [Fri, 17 Nov 2017 10:05:23 +0000 (18:05 +0800)]
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>
6 years agoarm64: meson64_defconfig: add leds configuration
Bo Yang [Wed, 29 Nov 2017 13:17:37 +0000 (21:17 +0800)]
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>
6 years agoarm64: dts: update i2c device node name for all platforms
Jian Hu [Tue, 21 Nov 2017 11:49:28 +0000 (19:49 +0800)]
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>
6 years agoi2c: meson: add i2c driver
Jian Hu [Mon, 18 Sep 2017 06:44:13 +0000 (14:44 +0800)]
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>
6 years agospicc: meson: add spicc driver support for txlx
Sunny Luo [Mon, 27 Nov 2017 03:37:25 +0000 (11:37 +0800)]
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>
6 years agowatchdog: meson: add debug info
Bo Yang [Wed, 6 Dec 2017 07:17:25 +0000 (15:17 +0800)]
watchdog: meson: add debug info

PD#154260: watchdog: meson: add debug info

Change-Id: I98cb723099bc05f721ba8d52002cb724d9c5a978
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agousb: meson-txlx: add usb host & device driver
Yue Wang [Fri, 17 Nov 2017 07:40:15 +0000 (15:40 +0800)]
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>
6 years agopwm: meson-txlx: add pwm driver support
Jian Hu [Tue, 21 Nov 2017 08:12:24 +0000 (16:12 +0800)]
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>
6 years agoemmc: use device data matching for different platform
Nan Li [Thu, 23 Nov 2017 12:01:41 +0000 (20:01 +0800)]
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>
6 years agoarm64: dts: add dts for txlx
Xingyu Chen [Sun, 12 Nov 2017 07:06:50 +0000 (15:06 +0800)]
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>
6 years agodts: sync axg_s400.dts and axg_s400_v03.dts
Renjun Xu [Fri, 22 Dec 2017 01:32:29 +0000 (09:32 +0800)]
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>
6 years agoPD# 156339 wifi: add prealloc mem size to fix vts test fail
Rongjun Chen [Tue, 19 Dec 2017 05:57:17 +0000 (13:57 +0800)]
PD# 156339 wifi: add prealloc mem size to fix vts test fail

Change-Id: I2c401e01c835626c16b271fc37d04a471e8d465a
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
6 years agoMerge "audio: check toddr and fix clk of tdmout for loopback" into amlogic-4.9-dev
Jianxin Pan [Thu, 21 Dec 2017 07:21:44 +0000 (23:21 -0800)]
Merge "audio: check toddr and fix clk of tdmout for loopback" into amlogic-4.9-dev

6 years agoledring: add ledring rgb case
Renjun Xu [Thu, 21 Dec 2017 06:05:36 +0000 (14:05 +0800)]
ledring: add ledring rgb case

PD#156869: add ledring rgb case

Change-Id: I4015a7c16ddac575eada958633f43fcffbc3a577
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
6 years agoaudio: check toddr and fix clk of tdmout for loopback
Xing Wang [Tue, 12 Dec 2017 07:58:06 +0000 (15:58 +0800)]
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>
6 years agoclk: meson-txlx: add clock tree driver
Jian Hu [Fri, 10 Nov 2017 07:51:52 +0000 (15:51 +0800)]
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>
6 years agopinctrl: meson-txlx: add pinctrl & gpio driver
Xingyu Chen [Wed, 15 Nov 2017 08:21:52 +0000 (16:21 +0800)]
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>
6 years agoledring: add ledring driver
Renjun Xu [Wed, 20 Dec 2017 11:29:25 +0000 (19:29 +0800)]
ledring: add ledring driver

PD#156869: add ledring driver

Change-Id: I162133eb7eedbf8705ec7c7cdd6ec401be9b92ea
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
6 years agodi: modify true bypass conditions
Bencheng Jing [Tue, 19 Dec 2017 05:26:30 +0000 (13:26 +0800)]
di: modify true bypass conditions

PD#155786: di: modify true bypass conditions

Change-Id: I5e8ef74b87915870089497166d272830ceb453db
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
6 years agocpuid: amlogic: add cpu id for gxlx and txhd
Xingyu Chen [Mon, 13 Nov 2017 06:49:51 +0000 (14:49 +0800)]
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>
6 years agoscript: amlogic: add new build script
Bo Yang [Tue, 19 Dec 2017 09:21:39 +0000 (17:21 +0800)]
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>
6 years agodefconfig: add module version support
Ao Xu [Mon, 4 Sep 2017 02:07:34 +0000 (10:07 +0800)]
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>
6 years agomodule: skip sublevel and crc when ver check
jianxin.pan [Sun, 17 Dec 2017 15:21:14 +0000 (23:21 +0800)]
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>
6 years agoUSB: add mass stoarge function
Yueguie He [Mon, 18 Dec 2017 13:48:49 +0000 (21:48 +0800)]
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>
6 years agoconfig: disable nfs client option [2/2]
Yixun Lan [Wed, 13 Dec 2017 05:48:50 +0000 (13:48 +0800)]
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>